2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="src/subcommand.h"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars='am__EXEEXT_FALSE
638 CROSS_COMPILING_FALSE
665 MAINTAINER_MODE_FALSE
675 INSTALL_STRIP_PROGRAM
717 program_transform_name
730 enable_option_checking
731 enable_maintainer_mode
732 enable_dependency_tracking
733 enable_install_libgui
738 ac_precious_vars='build_alias
749 # Initialize some variables set by options.
751 ac_init_version=false
752 ac_unrecognized_opts=
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name=s,x,x,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE}'
788 infodir='${datarootdir}/info'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855 as_fn_error "invalid feature name: $ac_useropt"
856 ac_useropt_orig=$ac_useropt
857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';;
865 eval enable_$ac_useropt=no ;;
867 -docdir | --docdir | --docdi | --doc | --do)
869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 -enable-* | --enable-*)
878 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881 as_fn_error "invalid feature name: $ac_useropt"
882 ac_useropt_orig=$ac_useropt
883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
891 eval enable_$ac_useropt=\$ac_optarg ;;
893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
895 | --exec | --exe | --ex)
896 ac_prev=exec_prefix ;;
897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
899 | --exec=* | --exe=* | --ex=*)
900 exec_prefix=$ac_optarg ;;
902 -gas | --gas | --ga | --g)
903 # Obsolete; use --with-gas.
906 -help | --help | --hel | --he | -h)
908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
909 ac_init_help=recursive ;;
910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
911 ac_init_help=short ;;
913 -host | --host | --hos | --ho)
914 ac_prev=host_alias ;;
915 -host=* | --host=* | --hos=* | --ho=*)
916 host_alias=$ac_optarg ;;
918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922 htmldir=$ac_optarg ;;
924 -includedir | --includedir | --includedi | --included | --include \
925 | --includ | --inclu | --incl | --inc)
926 ac_prev=includedir ;;
927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
928 | --includ=* | --inclu=* | --incl=* | --inc=*)
929 includedir=$ac_optarg ;;
931 -infodir | --infodir | --infodi | --infod | --info | --inf)
933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
934 infodir=$ac_optarg ;;
936 -libdir | --libdir | --libdi | --libd)
938 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
942 | --libexe | --libex | --libe)
943 ac_prev=libexecdir ;;
944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
945 | --libexe=* | --libex=* | --libe=*)
946 libexecdir=$ac_optarg ;;
948 -localedir | --localedir | --localedi | --localed | --locale)
950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
951 localedir=$ac_optarg ;;
953 -localstatedir | --localstatedir | --localstatedi | --localstated \
954 | --localstate | --localstat | --localsta | --localst | --locals)
955 ac_prev=localstatedir ;;
956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
958 localstatedir=$ac_optarg ;;
960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966 # Obsolete; use --without-fp.
969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
970 | --no-cr | --no-c | -n)
973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
979 | --oldin | --oldi | --old | --ol | --o)
980 ac_prev=oldincludedir ;;
981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
984 oldincludedir=$ac_optarg ;;
986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 -program-prefix | --program-prefix | --program-prefi | --program-pref \
992 | --program-pre | --program-pr | --program-p)
993 ac_prev=program_prefix ;;
994 -program-prefix=* | --program-prefix=* | --program-prefi=* \
995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
996 program_prefix=$ac_optarg ;;
998 -program-suffix | --program-suffix | --program-suffi | --program-suff \
999 | --program-suf | --program-su | --program-s)
1000 ac_prev=program_suffix ;;
1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1003 program_suffix=$ac_optarg ;;
1005 -program-transform-name | --program-transform-name \
1006 | --program-transform-nam | --program-transform-na \
1007 | --program-transform-n | --program-transform- \
1008 | --program-transform | --program-transfor \
1009 | --program-transfo | --program-transf \
1010 | --program-trans | --program-tran \
1011 | --progr-tra | --program-tr | --program-t)
1012 ac_prev=program_transform_name ;;
1013 -program-transform-name=* | --program-transform-name=* \
1014 | --program-transform-nam=* | --program-transform-na=* \
1015 | --program-transform-n=* | --program-transform-=* \
1016 | --program-transform=* | --program-transfor=* \
1017 | --program-transfo=* | --program-transf=* \
1018 | --program-trans=* | --program-tran=* \
1019 | --progr-tra=* | --program-tr=* | --program-t=*)
1020 program_transform_name=$ac_optarg ;;
1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1025 pdfdir=$ac_optarg ;;
1027 -psdir | --psdir | --psdi | --psd | --ps)
1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 sbindir=$ac_optarg ;;
1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1044 | --sharedst | --shareds | --shared | --share | --shar \
1046 ac_prev=sharedstatedir ;;
1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 sharedstatedir=$ac_optarg ;;
1053 -site | --site | --sit)
1055 -site=* | --site=* | --sit=*)
1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1061 srcdir=$ac_optarg ;;
1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1064 | --syscon | --sysco | --sysc | --sys | --sy)
1065 ac_prev=sysconfdir ;;
1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1068 sysconfdir=$ac_optarg ;;
1070 -target | --target | --targe | --targ | --tar | --ta | --t)
1071 ac_prev=target_alias ;;
1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1073 target_alias=$ac_optarg ;;
1075 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 -version | --version | --versio | --versi | --vers | -V)
1079 ac_init_version=: ;;
1082 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid package name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1095 eval with_$ac_useropt=\$ac_optarg ;;
1097 -without-* | --without-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1111 eval with_$ac_useropt=no ;;
1114 # Obsolete; use --with-x.
1117 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1118 | --x-incl | --x-inc | --x-in | --x-i)
1119 ac_prev=x_includes ;;
1120 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1121 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1122 x_includes=$ac_optarg ;;
1124 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1125 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1126 ac_prev=x_libraries ;;
1127 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1128 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1129 x_libraries=$ac_optarg ;;
1131 -*) as_fn_error "unrecognized option: \`$ac_option'
1132 Try \`$0 --help' for more information."
1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1137 # Reject names that are not valid shell variable names.
1138 case $ac_envvar in #(
1139 '' | [0-9]* | *[!_$as_cr_alnum]* )
1140 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1142 eval $ac_envvar=\$ac_optarg
1143 export $ac_envvar ;;
1146 # FIXME: should be removed in autoconf 3.0.
1147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1150 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1156 if test -n "$ac_prev"; then
1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1158 as_fn_error "missing argument to $ac_option"
1161 if test -n "$ac_unrecognized_opts"; then
1162 case $enable_option_checking in
1164 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169 # Check all directory arguments for consistency.
1170 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171 datadir sysconfdir sharedstatedir localstatedir includedir \
1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173 libdir localedir mandir
1175 eval ac_val=\$$ac_var
1176 # Remove trailing slashes.
1179 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1180 eval $ac_var=\$ac_val;;
1182 # Be sure to have absolute directory names.
1184 [\\/$]* | ?:[\\/]* ) continue;;
1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1195 target=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199 if test "x$build_alias" = x; then
1200 cross_compiling=maybe
1201 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211 test "$silent" = yes && exec 6>/dev/null
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error "working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error "pwd does not report name of working directory"
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1229 X"$as_myself" : 'X\(//\)$' \| \
1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1254 ac_srcdir_defaulted=no
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 for ac_var in $ac_precious_vars; do
1275 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_${ac_var}_value=\$${ac_var}
1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 # Report the --help message.
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1288 \`configure' configures this package to adapt to many kinds of systems.
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1295 Defaults for the options are specified in brackets.
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1319 For better control, use the options below.
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1346 --program-prefix=PREFIX prepend PREFIX to installed program names
1347 --program-suffix=SUFFIX append SUFFIX to installed program names
1348 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351 --build=BUILD configure for building on BUILD [guessed]
1352 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1356 if test -n "$ac_init_help"; then
1361 --disable-option-checking ignore unrecognized --enable/--with options
1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1364 --enable-maintainer-mode enable make rules and dependencies not useful
1365 (and sometimes confusing) to the casual installer
1366 --disable-dependency-tracking speeds up one-time build
1367 --enable-dependency-tracking do not reject slow dependency extractors
1369 --enable-install-libgui Install libgui.a and library header files
1370 --enable-ide Enable IDE support
1373 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1374 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1375 --with-tcl directory containing tcl configuration (tclConfig.sh)
1376 --with-tk directory containing tk configuration (tkConfig.sh)
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1388 Use these variables to override the choices made by `configure' or to help
1389 it to find libraries and programs with nonstandard names/locations.
1391 Report bugs to the package provider.
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" ||
1400 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1421 .) # We are building in place.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1455 generated by GNU Autoconf 2.64
1457 Copyright (C) 2009 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1464 ## ------------------------ ##
1465 ## Autoconf initialization. ##
1466 ## ------------------------ ##
1468 # ac_fn_c_try_compile LINENO
1469 # --------------------------
1470 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1471 ac_fn_c_try_compile ()
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 rm -f conftest.$ac_objext
1475 if { { ac_try="$ac_compile"
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481 $as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_compile") 2>conftest.err
1484 if test -s conftest.err; then
1485 grep -v '^ *+' conftest.err >conftest.er1
1486 cat conftest.er1 >&5
1487 mv -f conftest.er1 conftest.err
1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490 test $ac_status = 0; } && {
1491 test -z "$ac_c_werror_flag" ||
1492 test ! -s conftest.err
1493 } && test -s conftest.$ac_objext; then :
1496 $as_echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1504 } # ac_fn_c_try_compile
1506 # ac_fn_c_try_link LINENO
1507 # -----------------------
1508 # Try to link conftest.$ac_ext, and return whether this succeeded.
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 rm -f conftest.$ac_objext conftest$ac_exeext
1513 if { { ac_try="$ac_link"
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_link") 2>conftest.err
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; } && {
1529 test -z "$ac_c_werror_flag" ||
1530 test ! -s conftest.err
1531 } && test -s conftest$ac_exeext && {
1532 test "$cross_compiling" = yes ||
1533 $as_test_x conftest$ac_exeext
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1542 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1543 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1544 # interfere with the next link command; also delete a directory that is
1545 # left behind by Apple's compiler. We do this before executing the actions.
1546 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1550 } # ac_fn_c_try_link
1552 # ac_fn_c_try_cpp LINENO
1553 # ----------------------
1554 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 if { { ac_try="$ac_cpp conftest.$ac_ext"
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } >/dev/null && {
1574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589 # ac_fn_c_check_func LINENO FUNC VAR
1590 # ----------------------------------
1591 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1592 ac_fn_c_check_func ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596 $as_echo_n "checking for $2... " >&6; }
1597 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1598 $as_echo_n "(cached) " >&6
1600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601 /* end confdefs.h. */
1602 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1604 #define $2 innocuous_$2
1606 /* System header to define __stub macros and hopefully few prototypes,
1607 which can conflict with char $2 (); below.
1608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1609 <limits.h> exists even on freestanding compilers. */
1612 # include <limits.h>
1614 # include <assert.h>
1619 /* Override any GCC internal prototype to avoid an error.
1620 Use char because int might match the return type of a GCC
1621 builtin and then its argument prototype would still apply. */
1626 /* The GNU C library defines this for functions which it implements
1627 to always fail with ENOSYS. Some functions are actually named
1628 something starting with __ and the normal name is an alias. */
1629 #if defined __stub_$2 || defined __stub___$2
1641 if ac_fn_c_try_link "$LINENO"; then :
1646 rm -f core conftest.err conftest.$ac_objext \
1647 conftest$ac_exeext conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 } # ac_fn_c_check_func
1656 # ac_fn_c_try_run LINENO
1657 # ----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1659 # that executables *can* be run.
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_link"
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>&5
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1674 { { case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_try") 2>&5
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; }; }; then :
1686 $as_echo "$as_me: program exited with status $ac_status" >&5
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1690 ac_retval=$ac_status
1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699 # -------------------------------------------------------
1700 # Tests whether HEADER exists and can be compiled using the include files in
1701 # INCLUDES, setting the cache variable VAR accordingly.
1702 ac_fn_c_check_header_compile ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1708 $as_echo_n "(cached) " >&6
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1715 if ac_fn_c_try_compile "$LINENO"; then :
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 } # ac_fn_c_check_header_compile
1729 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1732 # the include files in INCLUDES and setting the cache variable VAR
1734 ac_fn_c_check_header_mongrel ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 $as_echo_n "(cached) " >&6
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1747 # Is the header compilable?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1749 $as_echo_n "checking $2 usability... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1755 if ac_fn_c_try_compile "$LINENO"; then :
1756 ac_header_compiler=yes
1758 ac_header_compiler=no
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1762 $as_echo "$ac_header_compiler" >&6; }
1764 # Is the header present?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1766 $as_echo_n "checking $2 presence... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1771 if ac_fn_c_try_cpp "$LINENO"; then :
1772 ac_header_preproc=yes
1774 ac_header_preproc=no
1776 rm -f conftest.err conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1778 $as_echo "$ac_header_preproc" >&6; }
1780 # So? What about this header?
1781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1792 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1796 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 $as_echo_n "(cached) " >&6
1806 eval "$3=\$ac_header_compiler"
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814 } # ac_fn_c_check_header_mongrel
1815 cat >config.log <<_ACEOF
1816 This file contains any messages produced by compilers while
1817 running configure, to aid debugging if configure makes a mistake.
1819 It was created by $as_me, which was
1820 generated by GNU Autoconf 2.64. Invocation command line was
1832 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1833 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1834 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1835 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1836 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1838 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1839 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1841 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1842 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1843 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1844 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1845 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1846 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1847 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir=.
1856 $as_echo "PATH: $as_dir"
1872 # Keep a trace of the command line.
1873 # Strip out --no-create and --no-recursion so they do not pile up.
1874 # Strip out --silent because we don't want to record it for future runs.
1875 # Also quote any args containing shell meta-characters.
1876 # Make two passes to allow for proper duplicate-argument suppression.
1880 ac_must_keep_next=false
1886 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1888 | -silent | --silent | --silen | --sile | --sil)
1891 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1896 as_fn_append ac_configure_args1 " '$ac_arg'"
1897 if test $ac_must_keep_next = true; then
1898 ac_must_keep_next=false # Got value, back to normal.
1901 *=* | --config-cache | -C | -disable-* | --disable-* \
1902 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1903 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1904 | -with-* | --with-* | -without-* | --without-* | --x)
1905 case "$ac_configure_args0 " in
1906 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1909 -* ) ac_must_keep_next=true ;;
1912 as_fn_append ac_configure_args " '$ac_arg'"
1917 { ac_configure_args0=; unset ac_configure_args0;}
1918 { ac_configure_args1=; unset ac_configure_args1;}
1920 # When interrupted or exit'd, cleanup temporary files, and complete
1921 # config.log. We remove comments because anyway the quotes in there
1922 # would cause problems or look ugly.
1923 # WARNING: Use '\'' to represent an apostrophe within the trap.
1924 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1925 trap 'exit_status=$?
1926 # Save into config.log some information that might help in debugging.
1931 ## ---------------- ##
1932 ## Cache variables. ##
1933 ## ---------------- ##
1936 # The following way of writing the cache mishandles newlines in values,
1938 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1939 eval ac_val=\$$ac_var
1943 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1944 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1947 _ | IFS | as_nl) ;; #(
1948 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1949 *) { eval $ac_var=; unset $ac_var;} ;;
1954 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1955 *${as_nl}ac_space=\ *)
1957 "s/'\''/'\''\\\\'\'''\''/g;
1958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1961 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1969 ## ----------------- ##
1970 ## Output variables. ##
1971 ## ----------------- ##
1974 for ac_var in $ac_subst_vars
1976 eval ac_val=\$$ac_var
1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 $as_echo "$ac_var='\''$ac_val'\''"
1984 if test -n "$ac_subst_files"; then
1986 ## ------------------- ##
1987 ## File substitutions. ##
1988 ## ------------------- ##
1991 for ac_var in $ac_subst_files
1993 eval ac_val=\$$ac_var
1995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 $as_echo "$ac_var='\''$ac_val'\''"
2002 if test -s confdefs.h; then
2012 test "$ac_signal" != 0 &&
2013 $as_echo "$as_me: caught signal $ac_signal"
2014 $as_echo "$as_me: exit $exit_status"
2016 rm -f core *.core core.conftest.* &&
2017 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020 for ac_signal in 1 2 13 15; do
2021 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2026 rm -f -r conftest* confdefs.h
2028 $as_echo "/* confdefs.h */" > confdefs.h
2030 # Predefined preprocessor variables.
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_NAME "$PACKAGE_NAME"
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_STRING "$PACKAGE_STRING"
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_URL "$PACKAGE_URL"
2057 # Let the site file select an alternate cache file if it wants to.
2058 # Prefer an explicitly selected file to automatically selected ones.
2061 if test -n "$CONFIG_SITE"; then
2062 ac_site_file1=$CONFIG_SITE
2063 elif test "x$prefix" != xNONE; then
2064 ac_site_file1=$prefix/share/config.site
2065 ac_site_file2=$prefix/etc/config.site
2067 ac_site_file1=$ac_default_prefix/share/config.site
2068 ac_site_file2=$ac_default_prefix/etc/config.site
2070 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2072 test "x$ac_site_file" = xNONE && continue
2073 if test -r "$ac_site_file"; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076 sed 's/^/| /' "$ac_site_file" >&5
2081 if test -r "$cache_file"; then
2082 # Some versions of bash will fail to source /dev/null (special
2083 # files actually), so we avoid doing that.
2084 if test -f "$cache_file"; then
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2086 $as_echo "$as_me: loading cache $cache_file" >&6;}
2088 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2089 *) . "./$cache_file";;
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2094 $as_echo "$as_me: creating cache $cache_file" >&6;}
2098 # Check that the precious variables saved in the cache have kept the same
2100 ac_cache_corrupted=false
2101 for ac_var in $ac_precious_vars; do
2102 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2103 eval ac_new_set=\$ac_env_${ac_var}_set
2104 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2105 eval ac_new_val=\$ac_env_${ac_var}_value
2106 case $ac_old_set,$ac_new_set in
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2109 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2110 ac_cache_corrupted=: ;;
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2113 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2114 ac_cache_corrupted=: ;;
2117 if test "x$ac_old_val" != "x$ac_new_val"; then
2118 # differences in whitespace do not lead to failure.
2119 ac_old_val_w=`echo x $ac_old_val`
2120 ac_new_val_w=`echo x $ac_new_val`
2121 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2123 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2124 ac_cache_corrupted=:
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2127 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2128 eval $ac_var=\$ac_old_val
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2131 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2133 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2136 # Pass precious variables to config.status.
2137 if test "$ac_new_set" = set; then
2139 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2140 *) ac_arg=$ac_var=$ac_new_val ;;
2142 case " $ac_configure_args " in
2143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2144 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2148 if $ac_cache_corrupted; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2152 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2153 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2155 ## -------------------- ##
2156 ## Main body of script. ##
2157 ## -------------------- ##
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2166 am__api_version='1.11'
2169 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2170 for ac_t in install-sh install.sh shtool; do
2171 if test -f "$ac_dir/$ac_t"; then
2173 ac_install_sh="$ac_aux_dir/$ac_t -c"
2178 if test -z "$ac_aux_dir"; then
2179 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2182 # These three variables are undocumented and unsupported,
2183 # and are intended to be withdrawn in a future Autoconf release.
2184 # They can cause serious problems if a builder's source tree is in a directory
2185 # whose full name contains unusual characters.
2186 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2187 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2188 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2191 # Find a good install program. We prefer a C program (faster),
2192 # so one script is as good as another. But avoid the broken or
2193 # incompatible versions:
2194 # SysV /etc/install, /usr/sbin/install
2195 # SunOS /usr/etc/install
2196 # IRIX /sbin/install
2198 # AmigaOS /C/install, which installs bootblocks on floppy discs
2199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2202 # OS/2's system install, which has a completely different semantic
2203 # ./install, which can be erroneously created by make from ./install.sh.
2204 # Reject install programs that cannot install multiple files.
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2206 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2207 if test -z "$INSTALL"; then
2208 if test "${ac_cv_path_install+set}" = set; then :
2209 $as_echo_n "(cached) " >&6
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 test -z "$as_dir" && as_dir=.
2216 # Account for people who put trailing slashes in PATH elements.
2217 case $as_dir/ in #((
2218 ./ | .// | /[cC]/* | \
2219 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2220 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2223 # OSF1 and SCO ODT 3.0 have their own names for install.
2224 # Don't use installbsd from OSF since it installs stuff as root
2226 for ac_prog in ginstall scoinst install; do
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2229 if test $ac_prog = install &&
2230 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2231 # AIX install. It has an incompatible calling convention.
2233 elif test $ac_prog = install &&
2234 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2235 # program-specific install script used by HP pwplus--don't use.
2238 rm -rf conftest.one conftest.two conftest.dir
2239 echo one > conftest.one
2240 echo two > conftest.two
2242 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2243 test -s conftest.one && test -s conftest.two &&
2244 test -s conftest.dir/conftest.one &&
2245 test -s conftest.dir/conftest.two
2247 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2260 rm -rf conftest.one conftest.two conftest.dir
2263 if test "${ac_cv_path_install+set}" = set; then
2264 INSTALL=$ac_cv_path_install
2266 # As a last resort, use the slow shell script. Don't cache a
2267 # value for INSTALL within a source directory, because that will
2268 # break other packages using the cache if that directory is
2269 # removed, or if the value is a relative name.
2270 INSTALL=$ac_install_sh
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2274 $as_echo "$INSTALL" >&6; }
2276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2277 # It thinks the first close brace ends the variable substitution.
2278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2285 $as_echo_n "checking whether build environment is sane... " >&6; }
2288 echo timestamp > conftest.file
2289 # Reject unsafe characters in $srcdir or the absolute working directory
2290 # name. Accept space and tab only in the latter.
2294 *[\\\"\#\$\&\'\`$am_lf]*)
2295 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2298 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2299 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2302 # Do `set' in a subshell so we don't clobber the current shell's
2303 # arguments. Must try -L first in case configure is actually a
2304 # symlink; some systems play weird games with the mod time of symlinks
2305 # (eg FreeBSD returns the mod time of the symlink's containing
2308 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2309 if test "$*" = "X"; then
2311 set X `ls -t "$srcdir/configure" conftest.file`
2314 if test "$*" != "X $srcdir/configure conftest.file" \
2315 && test "$*" != "X conftest.file $srcdir/configure"; then
2317 # If neither matched, then we have a broken ls. This can happen
2318 # if, for instance, CONFIG_SHELL is bash and it inherits a
2319 # broken ls alias from the environment. This has actually
2320 # happened. Such a system could not be considered "sane".
2321 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2322 alias in your environment" "$LINENO" 5
2325 test "$2" = conftest.file
2331 as_fn_error "newly created file is older than distributed files!
2332 Check your system clock" "$LINENO" 5
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2335 $as_echo "yes" >&6; }
2336 test "$program_prefix" != NONE &&
2337 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2338 # Use a double $ so make ignores it.
2339 test "$program_suffix" != NONE &&
2340 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2341 # Double any \ or $.
2342 # By default was `s,x,x', remove it if useless.
2343 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2344 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2346 # expand $ac_aux_dir to an absolute path
2347 am_aux_dir=`cd $ac_aux_dir && pwd`
2349 if test x"${MISSING+set}" != xset; then
2352 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2354 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2357 # Use eval to expand $SHELL
2358 if eval "$MISSING --run true"; then
2359 am_missing_run="$MISSING --run "
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2363 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2366 if test x"${install_sh}" != xset; then
2369 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2371 install_sh="\${SHELL} $am_aux_dir/install-sh"
2375 # Installed binaries are usually stripped using `strip' when the user
2376 # run `make install-strip'. However `strip' might not be the right
2377 # tool to use in cross-compilation environments, therefore Automake
2378 # will honor the `STRIP' environment variable to overrule this program.
2379 if test "$cross_compiling" != no; then
2380 if test -n "$ac_tool_prefix"; then
2381 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2382 set dummy ${ac_tool_prefix}strip; ac_word=$2
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if test "${ac_cv_prog_STRIP+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
2388 if test -n "$STRIP"; then
2389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 STRIP=$ac_cv_prog_STRIP
2409 if test -n "$STRIP"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2411 $as_echo "$STRIP" >&6; }
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414 $as_echo "no" >&6; }
2419 if test -z "$ac_cv_prog_STRIP"; then
2421 # Extract the first word of "strip", so it can be a program name with args.
2422 set dummy strip; ac_word=$2
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2424 $as_echo_n "checking for $ac_word... " >&6; }
2425 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2426 $as_echo_n "(cached) " >&6
2428 if test -n "$ac_ct_STRIP"; then
2429 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_ac_ct_STRIP="strip"
2439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2449 if test -n "$ac_ct_STRIP"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2451 $as_echo "$ac_ct_STRIP" >&6; }
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454 $as_echo "no" >&6; }
2457 if test "x$ac_ct_STRIP" = x; then
2460 case $cross_compiling:$ac_tool_warned in
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2464 ac_tool_warned=yes ;;
2469 STRIP="$ac_cv_prog_STRIP"
2473 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2476 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2477 if test -z "$MKDIR_P"; then
2478 if test "${ac_cv_path_mkdir+set}" = set; then :
2479 $as_echo_n "(cached) " >&6
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2485 test -z "$as_dir" && as_dir=.
2486 for ac_prog in mkdir gmkdir; do
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2489 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2490 'mkdir (GNU coreutils) '* | \
2491 'mkdir (coreutils) '* | \
2492 'mkdir (fileutils) '4.1*)
2493 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2503 if test "${ac_cv_path_mkdir+set}" = set; then
2504 MKDIR_P="$ac_cv_path_mkdir -p"
2506 # As a last resort, use the slow shell script. Don't cache a
2507 # value for MKDIR_P within a source directory, because that will
2508 # break other packages using the cache if that directory is
2509 # removed, or if the value is a relative name.
2510 test -d ./--version && rmdir ./--version
2511 MKDIR_P="$ac_install_sh -d"
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2515 $as_echo "$MKDIR_P" >&6; }
2519 [\\/$]* | ?:[\\/]*) ;;
2520 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2523 for ac_prog in gawk mawk nawk awk
2525 # Extract the first word of "$ac_prog", so it can be a program name with args.
2526 set dummy $ac_prog; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if test "${ac_cv_prog_AWK+set}" = set; then :
2530 $as_echo_n "(cached) " >&6
2532 if test -n "$AWK"; then
2533 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_AWK="$ac_prog"
2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 if test -n "$AWK"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2555 $as_echo "$AWK" >&6; }
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2562 test -n "$AWK" && break
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2566 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2568 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2569 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2570 $as_echo_n "(cached) " >&6
2572 cat >conftest.make <<\_ACEOF
2575 @echo '@@@%%%=$(MAKE)=@@@%%%'
2577 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2578 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2580 eval ac_cv_prog_make_${ac_make}_set=yes;;
2582 eval ac_cv_prog_make_${ac_make}_set=no;;
2586 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588 $as_echo "yes" >&6; }
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 $as_echo "no" >&6; }
2593 SET_MAKE="MAKE=${MAKE-make}"
2596 rm -rf .tst 2>/dev/null
2597 mkdir .tst 2>/dev/null
2598 if test -d .tst; then
2603 rmdir .tst 2>/dev/null
2605 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2606 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2607 # is not polluted with repeated "-I."
2608 am__isrc=' -I$(srcdir)'
2609 # test to see if srcdir already configured
2610 if test -f $srcdir/config.status; then
2611 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2615 # test whether we have cygpath
2616 if test -z "$CYGPATH_W"; then
2617 if (cygpath --version) >/dev/null 2>/dev/null; then
2618 CYGPATH_W='cygpath -w'
2625 # Define the identity of the package.
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE "$PACKAGE"
2635 cat >>confdefs.h <<_ACEOF
2636 #define VERSION "$VERSION"
2639 # Some tools Automake needs.
2641 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2644 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2647 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2650 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2653 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2655 # We need awk for the "check" target. The system "awk" is bad on
2657 # Always define AMTAR for backward compatibility.
2659 AMTAR=${AMTAR-"${am_missing_run}tar"}
2661 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2667 ac_config_headers="$ac_config_headers config.h"
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2671 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2672 # Check whether --enable-maintainer-mode was given.
2673 if test "${enable_maintainer_mode+set}" = set; then :
2674 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2676 USE_MAINTAINER_MODE=no
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2680 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2681 if test $USE_MAINTAINER_MODE = yes; then
2682 MAINTAINER_MODE_TRUE=
2683 MAINTAINER_MODE_FALSE='#'
2685 MAINTAINER_MODE_TRUE='#'
2686 MAINTAINER_MODE_FALSE=
2689 MAINT=$MAINTAINER_MODE_TRUE
2692 # Make sure we can run config.sub.
2693 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2694 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2697 $as_echo_n "checking build system type... " >&6; }
2698 if test "${ac_cv_build+set}" = set; then :
2699 $as_echo_n "(cached) " >&6
2701 ac_build_alias=$build_alias
2702 test "x$ac_build_alias" = x &&
2703 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2704 test "x$ac_build_alias" = x &&
2705 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2706 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2707 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2711 $as_echo "$ac_cv_build" >&6; }
2712 case $ac_cv_build in
2714 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2717 ac_save_IFS=$IFS; IFS='-'
2723 # Remember, the first character of IFS is used to create $*,
2724 # except with old shells:
2727 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2731 $as_echo_n "checking host system type... " >&6; }
2732 if test "${ac_cv_host+set}" = set; then :
2733 $as_echo_n "(cached) " >&6
2735 if test "x$host_alias" = x; then
2736 ac_cv_host=$ac_cv_build
2738 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2739 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2744 $as_echo "$ac_cv_host" >&6; }
2747 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2750 ac_save_IFS=$IFS; IFS='-'
2756 # Remember, the first character of IFS is used to create $*,
2757 # except with old shells:
2760 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if test "${ac_cv_prog_CC+set}" = set; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2807 if test -z "$ac_cv_prog_CC"; then
2809 # Extract the first word of "gcc", so it can be a program name with args.
2810 set dummy gcc; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2814 $as_echo_n "(cached) " >&6
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_ac_ct_CC="gcc"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837 if test -n "$ac_ct_CC"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2839 $as_echo "$ac_ct_CC" >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2845 if test "x$ac_ct_CC" = x; then
2848 case $cross_compiling:$ac_tool_warned in
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned=yes ;;
2860 if test -z "$CC"; then
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}cc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_CC+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_CC="${ac_tool_prefix}cc"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 if test -n "$CC"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892 $as_echo "$CC" >&6; }
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2901 if test -z "$CC"; then
2902 # Extract the first word of "cc", so it can be a program name with args.
2903 set dummy cc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_CC+set}" = set; then :
2907 $as_echo_n "(cached) " >&6
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2921 ac_prog_rejected=yes
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 if test $ac_prog_rejected = yes; then
2933 # We found a bogon in the path, so make sure we never use it.
2934 set dummy $ac_cv_prog_CC
2936 if test $# != 0; then
2937 # We chose a different compiler from the bogus one.
2938 # However, it has the same basename, so the bogon will be chosen
2939 # first if we set CC to just the basename; use the full file name.
2941 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2947 if test -n "$CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949 $as_echo "$CC" >&6; }
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2957 if test -z "$CC"; then
2958 if test -n "$ac_tool_prefix"; then
2959 for ac_prog in cl.exe
2961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_CC+set}" = set; then :
2966 $as_echo_n "(cached) " >&6
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 if test -n "$CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2998 test -n "$CC" && break
3001 if test -z "$CC"; then
3003 for ac_prog in cl.exe
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3012 if test -n "$ac_ct_CC"; then
3013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_ac_ct_CC="$ac_prog"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035 $as_echo "$ac_ct_CC" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3042 test -n "$ac_ct_CC" && break
3045 if test "x$ac_ct_CC" = x; then
3048 case $cross_compiling:$ac_tool_warned in
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3052 ac_tool_warned=yes ;;
3061 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063 as_fn_error "no acceptable C compiler found in \$PATH
3064 See \`config.log' for more details." "$LINENO" 5; }
3066 # Provide some information about the compiler.
3067 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3070 for ac_option in --version -v -V -qversion; do
3071 { { ac_try="$ac_compiler $ac_option >&5"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3080 if test -s conftest.err; then
3082 ... rest of stderr output deleted ...
3083 10q' conftest.err >conftest.er1
3084 cat conftest.er1 >&5
3085 rm -f conftest.er1 conftest.err
3087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088 test $ac_status = 0; }
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3097 FILE *f = fopen ("conftest.out", "w");
3098 return ferror (f) || fclose (f) != 0;
3104 ac_clean_files_save=$ac_clean_files
3105 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3106 # Try to create an executable without -o first, disregard a.out.
3107 # It will help us diagnose broken compilers, and finding out an intuition
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3110 $as_echo_n "checking for C compiler default output file name... " >&6; }
3111 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3113 # The possible output files:
3114 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3117 for ac_file in $ac_files
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3121 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3126 if { { ac_try="$ac_link_default"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_link_default") 2>&5
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }; then :
3137 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3138 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3139 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3140 # so that the user can short-circuit this test for compilers unknown to
3142 for ac_file in $ac_files ''
3144 test -f "$ac_file" || continue
3146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3149 # We found the default executable, but exeext='' is most
3153 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3155 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3157 # We set ac_cv_exeext here because the later test for it is not
3158 # safe: cross compilers may not add the suffix if given an `-o'
3159 # argument, so we may need to know it at that point already.
3160 # Even if this section looks crufty: it has the advantage of
3167 test "$ac_cv_exeext" = no && ac_cv_exeext=
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3173 $as_echo "$ac_file" >&6; }
3174 if test -z "$ac_file"; then :
3175 $as_echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180 { as_fn_set_status 77
3181 as_fn_error "C compiler cannot create executables
3182 See \`config.log' for more details." "$LINENO" 5; }; }
3184 ac_exeext=$ac_cv_exeext
3186 # Check that the compiler produces executables we can run. If not, either
3187 # the compiler is broken, or we cross compile.
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3189 $as_echo_n "checking whether the C compiler works... " >&6; }
3190 # If not cross compiling, check that we can run a simple program.
3191 if test "$cross_compiling" != yes; then
3192 if { ac_try='./$ac_file'
3193 { { case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_try") 2>&5
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; }; then
3205 if test "$cross_compiling" = maybe; then
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error "cannot run C compiled programs.
3211 If you meant to cross compile, use \`--host'.
3212 See \`config.log' for more details." "$LINENO" 5; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217 $as_echo "yes" >&6; }
3219 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3220 ac_clean_files=$ac_clean_files_save
3221 # Check that the compiler produces executables we can run. If not, either
3222 # the compiler is broken, or we cross compile.
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3224 $as_echo_n "checking whether we are cross compiling... " >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3226 $as_echo "$cross_compiling" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3229 $as_echo_n "checking for suffix of executables... " >&6; }
3230 if { { ac_try="$ac_link"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_link") 2>&5
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; then :
3241 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3242 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3243 # work properly (i.e., refer to `conftest.exe'), while it won't with
3245 for ac_file in conftest.exe conftest conftest.*; do
3246 test -f "$ac_file" || continue
3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3249 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error "cannot compute suffix of executables: cannot compile and link
3258 See \`config.log' for more details." "$LINENO" 5; }
3260 rm -f conftest$ac_cv_exeext
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3262 $as_echo "$ac_cv_exeext" >&6; }
3264 rm -f conftest.$ac_ext
3265 EXEEXT=$ac_cv_exeext
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3268 $as_echo_n "checking for suffix of object files... " >&6; }
3269 if test "${ac_cv_objext+set}" = set; then :
3270 $as_echo_n "(cached) " >&6
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3283 rm -f conftest.o conftest.obj
3284 if { { ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compile") 2>&5
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; then :
3295 for ac_file in conftest.o conftest.obj conftest.*; do
3296 test -f "$ac_file" || continue;
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3299 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3304 $as_echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error "cannot compute suffix of object files: cannot compile
3310 See \`config.log' for more details." "$LINENO" 5; }
3312 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3315 $as_echo "$ac_cv_objext" >&6; }
3316 OBJEXT=$ac_cv_objext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3319 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3320 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3321 $as_echo_n "(cached) " >&6
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3337 if ac_fn_c_try_compile "$LINENO"; then :
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3347 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3348 if test $ac_compiler_gnu = yes; then
3353 ac_test_CFLAGS=${CFLAGS+set}
3354 ac_save_CFLAGS=$CFLAGS
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3356 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3357 if test "${ac_cv_prog_cc_g+set}" = set; then :
3358 $as_echo_n "(cached) " >&6
3360 ac_save_c_werror_flag=$ac_c_werror_flag
3361 ac_c_werror_flag=yes
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3375 if ac_fn_c_try_compile "$LINENO"; then :
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3390 if ac_fn_c_try_compile "$LINENO"; then :
3393 ac_c_werror_flag=$ac_save_c_werror_flag
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3406 if ac_fn_c_try_compile "$LINENO"; then :
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_c_werror_flag=$ac_save_c_werror_flag
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3417 $as_echo "$ac_cv_prog_cc_g" >&6; }
3418 if test "$ac_test_CFLAGS" = set; then
3419 CFLAGS=$ac_save_CFLAGS
3420 elif test $ac_cv_prog_cc_g = yes; then
3421 if test "$GCC" = yes; then
3427 if test "$GCC" = yes; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3434 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3435 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3436 $as_echo_n "(cached) " >&6
3438 ac_cv_prog_cc_c89=no
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3444 #include <sys/types.h>
3445 #include <sys/stat.h>
3446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3447 struct buf { int x; };
3448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3449 static char *e (p, i)
3455 static char *f (char * (*g) (char **, int), char **p, ...)
3460 s = g (p, va_arg (v,int));
3465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3466 function prototypes and stuff, but not '\xHH' hex character constants.
3467 These don't provoke an error unfortunately, instead are silently treated
3468 as 'x'. The following induces an error, until -std is added to get
3469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3470 array size at least. It's necessary to write '\x00'==0 to get something
3471 that's true only with -std. */
3472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3474 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3475 inside strings and character constants. */
3477 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3479 int test (int i, double x);
3480 struct s1 {int (*f) (int a);};
3481 struct s2 {int (*f) (double a);};
3482 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3488 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3493 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3494 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3496 CC="$ac_save_CC $ac_arg"
3497 if ac_fn_c_try_compile "$LINENO"; then :
3498 ac_cv_prog_cc_c89=$ac_arg
3500 rm -f core conftest.err conftest.$ac_objext
3501 test "x$ac_cv_prog_cc_c89" != "xno" && break
3503 rm -f conftest.$ac_ext
3508 case "x$ac_cv_prog_cc_c89" in
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3511 $as_echo "none needed" >&6; } ;;
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3514 $as_echo "unsupported" >&6; } ;;
3516 CC="$CC $ac_cv_prog_cc_c89"
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3518 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3520 if test "x$ac_cv_prog_cc_c89" != xno; then :
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 DEPDIR="${am__leading_dot}deps"
3531 ac_config_commands="$ac_config_commands depfiles"
3534 am_make=${MAKE-make}
3535 cat > confinc << 'END'
3537 @echo this is the am__doit target
3540 # If we don't find an include directive, just comment out the code.
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3542 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3546 # First try GNU make style include.
3547 echo "include confinc" > confmf
3548 # Ignore all kinds of additional output from `make'.
3549 case `$am_make -s -f confmf 2> /dev/null` in #(
3550 *the\ am__doit\ target*)
3556 # Now try BSD make style include.
3557 if test "$am__include" = "#"; then
3558 echo '.include "confinc"' > confmf
3559 case `$am_make -s -f confmf 2> /dev/null` in #(
3560 *the\ am__doit\ target*)
3561 am__include=.include
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3570 $as_echo "$_am_result" >&6; }
3571 rm -f confinc confmf
3573 # Check whether --enable-dependency-tracking was given.
3574 if test "${enable_dependency_tracking+set}" = set; then :
3575 enableval=$enable_dependency_tracking;
3578 if test "x$enable_dependency_tracking" != xno; then
3579 am_depcomp="$ac_aux_dir/depcomp"
3582 if test "x$enable_dependency_tracking" != xno; then
3592 depcc="$CC" am_compiler_list=
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3595 $as_echo_n "checking dependency style of $depcc... " >&6; }
3596 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3599 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3600 # We make a subdir and do the tests there. Otherwise we can end up
3601 # making bogus files that we don't know about and never remove. For
3602 # instance it was reported that on HP-UX the gcc test will end up
3603 # making a dummy file named `D' -- because `-MD' means `put the output
3606 # Copy depcomp to subdir because otherwise we won't find it if we're
3607 # using a relative directory.
3608 cp "$am_depcomp" conftest.dir
3610 # We will build objects and dependencies in a subdirectory because
3611 # it helps to detect inapplicable dependency modes. For instance
3612 # both Tru64's cc and ICC support -MD to output dependencies as a
3613 # side effect of compilation, but ICC will put the dependencies in
3614 # the current directory while Tru64 will put them in the object
3618 am_cv_CC_dependencies_compiler_type=none
3619 if test "$am_compiler_list" = ""; then
3620 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3623 case " $depcc " in #(
3624 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3627 for depmode in $am_compiler_list; do
3628 # Setup a source with many dependencies, because some compilers
3629 # like to wrap large dependency lists on column 80 (with \), and
3630 # we should not choose a depcomp mode which is confused by this.
3632 # We need to recreate these files for each test, as the compiler may
3633 # overwrite some of them when testing with obscure command lines.
3634 # This happens at least with the AIX C compiler.
3636 for i in 1 2 3 4 5 6; do
3637 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3638 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3639 # Solaris 8's {/usr,}/bin/sh.
3640 touch sub/conftst$i.h
3642 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3644 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3645 # mode. It turns out that the SunPro C++ compiler does not properly
3646 # handle `-M -o', and we need to detect this. Also, some Intel
3647 # versions had trouble with output in subdirs
3648 am__obj=sub/conftest.${OBJEXT-o}
3649 am__minus_obj="-o $am__obj"
3652 # This depmode causes a compiler race in universal mode.
3653 test "$am__universal" = false || continue
3656 # after this tag, mechanisms are not by side-effect, so they'll
3657 # only be used when explicitly requested
3658 if test "x$enable_dependency_tracking" = xyes; then
3664 msvisualcpp | msvcmsys)
3665 # This compiler won't grok `-c -o', but also, the minuso test has
3666 # not run yet. These depmodes are late enough in the game, and
3667 # so weak that their functioning should not be impacted.
3668 am__obj=conftest.${OBJEXT-o}
3673 if depmode=$depmode \
3674 source=sub/conftest.c object=$am__obj \
3675 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3676 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3677 >/dev/null 2>conftest.err &&
3678 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3679 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3680 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3681 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3682 # icc doesn't choke on unknown options, it will just issue warnings
3683 # or remarks (even with -Werror). So we grep stderr for any message
3684 # that says an option was ignored or not supported.
3685 # When given -MP, icc 7.0 and 7.1 complain thusly:
3686 # icc: Command line warning: ignoring option '-M'; no argument required
3687 # The diagnosis changed in icc 8.0:
3688 # icc: Command line remark: option '-MP' not supported
3689 if (grep 'ignoring option' conftest.err ||
3690 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3691 am_cv_CC_dependencies_compiler_type=$depmode
3700 am_cv_CC_dependencies_compiler_type=none
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3705 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3706 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3709 test "x$enable_dependency_tracking" != xno \
3710 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3712 am__fastdepCC_FALSE='#'
3714 am__fastdepCC_TRUE='#'
3715 am__fastdepCC_FALSE=
3721 # Check whether --enable-install-libgui was given.
3722 if test "${enable_install_libgui+set}" = set; then :
3723 enableval=$enable_install_libgui;
3726 if test x$cross_compiling = xyes; then
3727 CROSS_COMPILING_TRUE=
3728 CROSS_COMPILING_FALSE='#'
3730 CROSS_COMPILING_TRUE='#'
3731 CROSS_COMPILING_FALSE=
3734 if test x$enable_install_libgui = xyes; then
3735 INSTALL_LIBGUI_TRUE=
3736 INSTALL_LIBGUI_FALSE='#'
3738 INSTALL_LIBGUI_TRUE='#'
3739 INSTALL_LIBGUI_FALSE=
3742 if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3744 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3750 if test -n "$RANLIB"; then
3751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 RANLIB=$ac_cv_prog_RANLIB
3771 if test -n "$RANLIB"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3773 $as_echo "$RANLIB" >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3781 if test -z "$ac_cv_prog_RANLIB"; then
3782 ac_ct_RANLIB=$RANLIB
3783 # Extract the first word of "ranlib", so it can be a program name with args.
3784 set dummy ranlib; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$ac_ct_RANLIB"; then
3791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_ac_ct_RANLIB="ranlib"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3811 if test -n "$ac_ct_RANLIB"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3813 $as_echo "$ac_ct_RANLIB" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3819 if test "x$ac_ct_RANLIB" = x; then
3822 case $cross_compiling:$ac_tool_warned in
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3828 RANLIB=$ac_ct_RANLIB
3831 RANLIB="$ac_cv_prog_RANLIB"
3834 if test -n "$ac_tool_prefix"; then
3835 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3836 set dummy ${ac_tool_prefix}ar; ac_word=$2
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838 $as_echo_n "checking for $ac_word... " >&6; }
3839 if test "${ac_cv_prog_AR+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
3842 if test -n "$AR"; then
3843 ac_cv_prog_AR="$AR" # Let the user override the test.
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3852 ac_cv_prog_AR="${ac_tool_prefix}ar"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 if test -n "$AR"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3865 $as_echo "$AR" >&6; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3873 if test -z "$ac_cv_prog_AR"; then
3875 # Extract the first word of "ar", so it can be a program name with args.
3876 set dummy ar; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3882 if test -n "$ac_ct_AR"; then
3883 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_ac_ct_AR="ar"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3903 if test -n "$ac_ct_AR"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3905 $as_echo "$ac_ct_AR" >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3911 if test "x$ac_ct_AR" = x; then
3914 case $cross_compiling:$ac_tool_warned in
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3918 ac_tool_warned=yes ;;
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3934 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3935 # On Suns, sometimes $CPP names a directory.
3936 if test -n "$CPP" && test -d "$CPP"; then
3939 if test -z "$CPP"; then
3940 if test "${ac_cv_prog_CPP+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3943 # Double quotes because CPP needs to be expanded
3944 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3947 for ac_c_preproc_warn_flag in '' yes
3949 # Use a header file that comes with gcc, so configuring glibc
3950 # with a fresh cross-compiler works.
3951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3952 # <limits.h> exists even on freestanding compilers.
3953 # On the NeXT, cc -E runs the code through the compiler's parser,
3954 # not just through cpp. "Syntax error" is here to catch this case.
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3958 # include <limits.h>
3960 # include <assert.h>
3964 if ac_fn_c_try_cpp "$LINENO"; then :
3967 # Broken: fails on valid input.
3970 rm -f conftest.err conftest.$ac_ext
3972 # OK, works on sane cases. Now check whether nonexistent headers
3973 # can be detected and how.
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976 #include <ac_nonexistent.h>
3978 if ac_fn_c_try_cpp "$LINENO"; then :
3979 # Broken: success on invalid input.
3982 # Passes both tests.
3986 rm -f conftest.err conftest.$ac_ext
3989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3990 rm -f conftest.err conftest.$ac_ext
3991 if $ac_preproc_ok; then :
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4004 $as_echo "$CPP" >&6; }
4006 for ac_c_preproc_warn_flag in '' yes
4008 # Use a header file that comes with gcc, so configuring glibc
4009 # with a fresh cross-compiler works.
4010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4011 # <limits.h> exists even on freestanding compilers.
4012 # On the NeXT, cc -E runs the code through the compiler's parser,
4013 # not just through cpp. "Syntax error" is here to catch this case.
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4017 # include <limits.h>
4019 # include <assert.h>
4023 if ac_fn_c_try_cpp "$LINENO"; then :
4026 # Broken: fails on valid input.
4029 rm -f conftest.err conftest.$ac_ext
4031 # OK, works on sane cases. Now check whether nonexistent headers
4032 # can be detected and how.
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035 #include <ac_nonexistent.h>
4037 if ac_fn_c_try_cpp "$LINENO"; then :
4038 # Broken: success on invalid input.
4041 # Passes both tests.
4045 rm -f conftest.err conftest.$ac_ext
4048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4049 rm -f conftest.err conftest.$ac_ext
4050 if $ac_preproc_ok; then :
4053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4056 See \`config.log' for more details." "$LINENO" 5; }
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4067 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4068 if test "${ac_cv_path_GREP+set}" = set; then :
4069 $as_echo_n "(cached) " >&6
4071 if test -z "$GREP"; then
4072 ac_path_GREP_found=false
4073 # Loop through the user's path and test for each of PROGNAME-LIST
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078 test -z "$as_dir" && as_dir=.
4079 for ac_prog in grep ggrep; do
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4082 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4083 # Check for GNU ac_path_GREP and select it if it is found.
4084 # Check for GNU $ac_path_GREP
4085 case `"$ac_path_GREP" --version 2>&1` in
4087 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4090 $as_echo_n 0123456789 >"conftest.in"
4093 cat "conftest.in" "conftest.in" >"conftest.tmp"
4094 mv "conftest.tmp" "conftest.in"
4095 cp "conftest.in" "conftest.nl"
4096 $as_echo 'GREP' >> "conftest.nl"
4097 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099 as_fn_arith $ac_count + 1 && ac_count=$as_val
4100 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4101 # Best one so far, save it but keep looking for a better one
4102 ac_cv_path_GREP="$ac_path_GREP"
4103 ac_path_GREP_max=$ac_count
4105 # 10*(2^10) chars as input seems more than enough
4106 test $ac_count -gt 10 && break
4108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4111 $ac_path_GREP_found && break 3
4116 if test -z "$ac_cv_path_GREP"; then
4117 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4120 ac_cv_path_GREP=$GREP
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4125 $as_echo "$ac_cv_path_GREP" >&6; }
4126 GREP="$ac_cv_path_GREP"
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4130 $as_echo_n "checking for egrep... " >&6; }
4131 if test "${ac_cv_path_EGREP+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4134 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4135 then ac_cv_path_EGREP="$GREP -E"
4137 if test -z "$EGREP"; then
4138 ac_path_EGREP_found=false
4139 # Loop through the user's path and test for each of PROGNAME-LIST
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4144 test -z "$as_dir" && as_dir=.
4145 for ac_prog in egrep; do
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4148 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4149 # Check for GNU ac_path_EGREP and select it if it is found.
4150 # Check for GNU $ac_path_EGREP
4151 case `"$ac_path_EGREP" --version 2>&1` in
4153 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4156 $as_echo_n 0123456789 >"conftest.in"
4159 cat "conftest.in" "conftest.in" >"conftest.tmp"
4160 mv "conftest.tmp" "conftest.in"
4161 cp "conftest.in" "conftest.nl"
4162 $as_echo 'EGREP' >> "conftest.nl"
4163 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4165 as_fn_arith $ac_count + 1 && ac_count=$as_val
4166 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4167 # Best one so far, save it but keep looking for a better one
4168 ac_cv_path_EGREP="$ac_path_EGREP"
4169 ac_path_EGREP_max=$ac_count
4171 # 10*(2^10) chars as input seems more than enough
4172 test $ac_count -gt 10 && break
4174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4177 $ac_path_EGREP_found && break 3
4182 if test -z "$ac_cv_path_EGREP"; then
4183 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4186 ac_cv_path_EGREP=$EGREP
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4192 $as_echo "$ac_cv_path_EGREP" >&6; }
4193 EGREP="$ac_cv_path_EGREP"
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4197 $as_echo_n "checking for ANSI C header files... " >&6; }
4198 if test "${ac_cv_header_stdc+set}" = set; then :
4199 $as_echo_n "(cached) " >&6
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217 ac_cv_header_stdc=yes
4219 ac_cv_header_stdc=no
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 if test $ac_cv_header_stdc = yes; then
4224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231 $EGREP "memchr" >/dev/null 2>&1; then :
4234 ac_cv_header_stdc=no
4240 if test $ac_cv_header_stdc = yes; then
4241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4248 $EGREP "free" >/dev/null 2>&1; then :
4251 ac_cv_header_stdc=no
4257 if test $ac_cv_header_stdc = yes; then
4258 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4259 if test "$cross_compiling" = yes; then :
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4266 #if ((' ' & 0x0FF) == 0x020)
4267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4270 # define ISLOWER(c) \
4271 (('a' <= (c) && (c) <= 'i') \
4272 || ('j' <= (c) && (c) <= 'r') \
4273 || ('s' <= (c) && (c) <= 'z'))
4274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4282 for (i = 0; i < 256; i++)
4283 if (XOR (islower (i), ISLOWER (i))
4284 || toupper (i) != TOUPPER (i))
4289 if ac_fn_c_try_run "$LINENO"; then :
4292 ac_cv_header_stdc=no
4294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4295 conftest.$ac_objext conftest.beam conftest.$ac_ext
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4301 $as_echo "$ac_cv_header_stdc" >&6; }
4302 if test $ac_cv_header_stdc = yes; then
4304 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4308 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4309 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4310 inttypes.h stdint.h unistd.h
4312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4313 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4315 eval as_val=\$$as_ac_Header
4316 if test "x$as_val" = x""yes; then :
4317 cat >>confdefs.h <<_ACEOF
4318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4326 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4327 # for constant arguments. Useless!
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4329 $as_echo_n "checking for working alloca.h... " >&6; }
4330 if test "${ac_cv_working_alloca_h+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4339 char *p = (char *) alloca (2 * sizeof (int));
4345 if ac_fn_c_try_link "$LINENO"; then :
4346 ac_cv_working_alloca_h=yes
4348 ac_cv_working_alloca_h=no
4350 rm -f core conftest.err conftest.$ac_objext \
4351 conftest$ac_exeext conftest.$ac_ext
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4354 $as_echo "$ac_cv_working_alloca_h" >&6; }
4355 if test $ac_cv_working_alloca_h = yes; then
4357 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4362 $as_echo_n "checking for alloca... " >&6; }
4363 if test "${ac_cv_func_alloca_works+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4369 # define alloca __builtin_alloca
4372 # include <malloc.h>
4373 # define alloca _alloca
4375 # ifdef HAVE_ALLOCA_H
4376 # include <alloca.h>
4381 # ifndef alloca /* predefined by HP cc +Olibcalls */
4392 char *p = (char *) alloca (1);
4398 if ac_fn_c_try_link "$LINENO"; then :
4399 ac_cv_func_alloca_works=yes
4401 ac_cv_func_alloca_works=no
4403 rm -f core conftest.err conftest.$ac_objext \
4404 conftest$ac_exeext conftest.$ac_ext
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4407 $as_echo "$ac_cv_func_alloca_works" >&6; }
4409 if test $ac_cv_func_alloca_works = yes; then
4411 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4414 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4415 # that cause trouble. Some versions do not even contain alloca or
4416 # contain a buggy version. If you still want to use their alloca,
4417 # use ar to extract alloca.o from them instead of compiling alloca.c.
4419 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4421 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4425 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4426 if test "${ac_cv_os_cray+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #if defined CRAY && ! defined CRAY2
4438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439 $EGREP "webecray" >/dev/null 2>&1; then :
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4448 $as_echo "$ac_cv_os_cray" >&6; }
4449 if test $ac_cv_os_cray = yes; then
4450 for ac_func in _getb67 GETB67 getb67; do
4451 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4452 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4453 eval as_val=\$$as_ac_var
4454 if test "x$as_val" = x""yes; then :
4456 cat >>confdefs.h <<_ACEOF
4457 #define CRAY_STACKSEG_END $ac_func
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4467 $as_echo_n "checking stack direction for C alloca... " >&6; }
4468 if test "${ac_cv_c_stack_direction+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
4471 if test "$cross_compiling" = yes; then :
4472 ac_cv_c_stack_direction=0
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 $ac_includes_default
4478 find_stack_direction ()
4480 static char *addr = 0;
4485 return find_stack_direction ();
4488 return (&dummy > addr) ? 1 : -1;
4494 return find_stack_direction () < 0;
4497 if ac_fn_c_try_run "$LINENO"; then :
4498 ac_cv_c_stack_direction=1
4500 ac_cv_c_stack_direction=-1
4502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4503 conftest.$ac_objext conftest.beam conftest.$ac_ext
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4508 $as_echo "$ac_cv_c_stack_direction" >&6; }
4509 cat >>confdefs.h <<_ACEOF
4510 #define STACK_DIRECTION $ac_cv_c_stack_direction
4516 for ac_header in stddef.h stdlib.h getopt.h unistd.h fcntl.h sys/file.h sys/wait.h string.h strings.h
4518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4519 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4520 eval as_val=\$$as_ac_Header
4521 if test "x$as_val" = x""yes; then :
4522 cat >>confdefs.h <<_ACEOF
4523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4530 for ac_func in raise
4532 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
4533 if test "x$ac_cv_func_raise" = x""yes; then :
4534 cat >>confdefs.h <<_ACEOF
4535 #define HAVE_RAISE 1
4542 # Check whether --enable-ide was given.
4543 if test "${enable_ide+set}" = set; then :
4544 enableval=$enable_ide; case "${enableval}" in
4547 *) as_fn_error "bad value ${enableval} for enable-ide option" "$LINENO" 5 ;;
4553 if test x$ide = xyes; then
4555 IDE_ENABLED_FALSE='#'
4557 IDE_ENABLED_TRUE='#'
4561 if test x$ide = xyes; then
4562 $as_echo "#define IDE_ENABLED 1" >>confdefs.h
4566 # If we have random, assume we have srandom. If we have drand48,
4567 # assume we have srand48. If we have rand, assume we have srand.
4568 for ac_func in random drand48 rand
4570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4571 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4572 eval as_val=\$$as_ac_var
4573 if test "x$as_val" = x""yes; then :
4574 cat >>confdefs.h <<_ACEOF
4575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4587 $EGREP "strncasecmp" >/dev/null 2>&1; then :
4588 $as_echo "#define HAVE_STRNCASECMP_DECL 1" >>confdefs.h
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin32" >&5
4596 $as_echo_n "checking for cygwin32... " >&6; }
4597 if test "${ide_cv_os_cygwin32+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608 $EGREP "lose" >/dev/null 2>&1; then :
4609 ide_cv_os_cygwin32=yes
4611 ide_cv_os_cygwin32=no
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ide_cv_os_cygwin32" >&5
4617 $as_echo "$ide_cv_os_cygwin32" >&6; }
4619 if test x$ide_cv_os_cygwin32 = xyes; then
4626 if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
4627 case "$LIBGUI_CFLAGS" in
4629 *) LIBGUI_CFLAGS="-mwin32 $LIBGUI_CFLAGS" ;;
4637 LIBGUI_CFLAGS="-DWIN32 $LIBGUI_CFLAGS" ;;
4641 tmp="`cd $srcdir/library; pwd`"
4642 if test x"$ac_cv_prog_CC" = xcl ; then
4643 tmp2="`cygpath --windows $tmp`"
4644 LIBGUI_LIBRARY_DIR="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
4646 LIBGUI_LIBRARY_DIR=$tmp
4650 # Check for Tcl and Tk.
4653 # Ok, lets find the tcl configuration
4654 # First, look for one uninstalled.
4655 # the alternative search directory is invoked by --with-tcl
4658 if test x"${no_tcl}" = x ; then
4659 # we reset no_tcl in case something fails here
4662 # Check whether --with-tcl was given.
4663 if test "${with_tcl+set}" = set; then :
4664 withval=$with_tcl; with_tclconfig=${withval}
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
4668 $as_echo_n "checking for Tcl configuration... " >&6; }
4669 if test "${ac_cv_c_tclconfig+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4674 # First check to see if --with-tcl was specified.
4676 *-*-cygwin*) platDir="win" ;;
4677 *) platDir="unix" ;;
4679 if test x"${with_tclconfig}" != x ; then
4680 if test -f "${with_tclconfig}/tclConfig.sh" ; then
4681 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
4683 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
4687 # then check for a private Tcl installation
4688 if test x"${ac_cv_c_tclconfig}" = x ; then
4691 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4692 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
4693 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
4695 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4696 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
4697 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
4699 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4700 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
4701 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
4702 if test -f "$i/$platDir/tclConfig.sh" ; then
4703 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
4709 # on Darwin, check in Framework installation locations
4710 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
4711 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
4712 `ls -d /Library/Frameworks 2>/dev/null` \
4713 `ls -d /Network/Library/Frameworks 2>/dev/null` \
4714 `ls -d /System/Library/Frameworks 2>/dev/null` \
4716 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
4717 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
4723 # check in a few common install locations
4724 if test x"${ac_cv_c_tclconfig}" = x ; then
4725 for i in `ls -d ${libdir} 2>/dev/null` \
4726 `ls -d ${exec_prefix}/lib 2>/dev/null` \
4727 `ls -d ${prefix}/lib 2>/dev/null` \
4728 `ls -d /usr/local/lib 2>/dev/null` \
4729 `ls -d /usr/contrib/lib 2>/dev/null` \
4730 `ls -d /usr/lib 2>/dev/null` \
4732 if test -f "$i/tclConfig.sh" ; then
4733 ac_cv_c_tclconfig=`(cd $i; pwd)`
4739 # check in a few other private locations
4740 if test x"${ac_cv_c_tclconfig}" = x ; then
4743 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4744 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
4745 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
4746 if test -f "$i/$platDir/tclConfig.sh" ; then
4747 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
4756 if test x"${ac_cv_c_tclconfig}" = x ; then
4757 TCL_BIN_DIR="# no Tcl configs found"
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
4759 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
4762 TCL_BIN_DIR=${ac_cv_c_tclconfig}
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
4764 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
4770 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
4772 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
4774 $as_echo "loading" >&6; }
4775 . ${TCL_BIN_DIR}/tclConfig.sh
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
4778 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
4781 # eval is required to do the TCL_DBGX substitution
4782 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
4783 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
4785 # If the TCL_BIN_DIR is the build directory (not the install directory),
4786 # then set the common variable name to the value of the build variables.
4787 # For example, the variable TCL_LIB_SPEC will be set to the value
4788 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
4789 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
4790 # installed and uninstalled version of Tcl.
4791 if test -f "${TCL_BIN_DIR}/Makefile" ; then
4792 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
4793 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
4794 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
4795 elif test "`uname -s`" = "Darwin"; then
4796 # If Tcl was built as a framework, attempt to use the libraries
4797 # from the framework at the given location so that linking works
4798 # against Tcl.framework installed in an arbitary location.
4801 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
4802 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
4803 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
4804 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
4805 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
4810 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
4811 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
4812 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
4818 # eval is required to do the TCL_DBGX substitution
4819 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
4820 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
4821 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
4822 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
4839 # Ok, lets find the tk configuration
4840 # First, look for one uninstalled.
4841 # the alternative search directory is invoked by --with-tk
4844 if test x"${no_tk}" = x ; then
4845 # we reset no_tk in case something fails here
4848 # Check whether --with-tk was given.
4849 if test "${with_tk+set}" = set; then :
4850 withval=$with_tk; with_tkconfig=${withval}
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
4854 $as_echo_n "checking for Tk configuration... " >&6; }
4855 if test "${ac_cv_c_tkconfig+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4860 # First check to see if --with-tkconfig was specified.
4861 if test x"${with_tkconfig}" != x ; then
4862 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4863 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
4865 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
4869 # then check for a private Tk library
4871 *-*-cygwin*) platDir="win" ;;
4872 *) platDir="unix" ;;
4874 if test x"${ac_cv_c_tkconfig}" = x ; then
4877 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4878 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
4879 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
4881 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4882 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
4883 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
4885 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4886 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
4887 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
4888 if test -f "$i/$platDir/tkConfig.sh" ; then
4889 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
4895 # on Darwin, check in Framework installation locations
4896 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
4897 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
4898 `ls -d /Library/Frameworks 2>/dev/null` \
4899 `ls -d /Network/Library/Frameworks 2>/dev/null` \
4900 `ls -d /System/Library/Frameworks 2>/dev/null` \
4902 if test -f "$i/Tk.framework/tkConfig.sh" ; then
4903 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
4909 # check in a few common install locations
4910 if test x"${ac_cv_c_tkconfig}" = x ; then
4911 for i in `ls -d ${libdir} 2>/dev/null` \
4912 `ls -d ${exec_prefix}/lib 2>/dev/null` \
4913 `ls -d ${prefix}/lib 2>/dev/null` \
4914 `ls -d /usr/local/lib 2>/dev/null` \
4915 `ls -d /usr/contrib/lib 2>/dev/null` \
4916 `ls -d /usr/lib 2>/dev/null` \
4918 if test -f "$i/tkConfig.sh" ; then
4919 ac_cv_c_tkconfig=`(cd $i; pwd)`
4924 # check in a few other private locations
4925 if test x"${ac_cv_c_tkconfig}" = x ; then
4928 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4929 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
4930 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
4931 if test -f "$i/$platDir/tkConfig.sh" ; then
4932 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
4941 if test x"${ac_cv_c_tkconfig}" = x ; then
4942 TK_BIN_DIR="# no Tk configs found"
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
4944 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
4947 TK_BIN_DIR=${ac_cv_c_tkconfig}
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
4949 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
4955 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
4957 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
4959 $as_echo "loading" >&6; }
4960 . ${TK_BIN_DIR}/tkConfig.sh
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
4963 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
4966 # eval is required to do the TK_DBGX substitution
4967 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
4968 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
4970 # If the TK_BIN_DIR is the build directory (not the install directory),
4971 # then set the common variable name to the value of the build variables.
4972 # For example, the variable TK_LIB_SPEC will be set to the value
4973 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
4974 # instead of TK_BUILD_LIB_SPEC since it will work with both an
4975 # installed and uninstalled version of Tcl.
4976 if test -f "${TK_BIN_DIR}/Makefile" ; then
4977 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
4978 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
4979 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
4980 elif test "`uname -s`" = "Darwin"; then
4981 # If Tk was built as a framework, attempt to use the libraries
4982 # from the framework at the given location so that linking works
4983 # against Tk.framework installed in an arbitary location.
4986 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
4987 for i in "`cd ${TK_BIN_DIR}; pwd`" \
4988 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
4989 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
4990 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
4995 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
4996 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
4997 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
5003 # eval is required to do the TK_DBGX substitution
5004 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
5005 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
5006 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
5007 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
5027 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
5028 # Using in-tree Tcl/Tk
5030 *-*-cygwin*) platDir="win" ;;
5031 *) platDir="unix" ;;
5034 TCL_INCLUDES="-I${TCL_SRC_DIR}/generic -I${TCL_SRC_DIR}/${platDir}"
5035 TCL_LIBRARY=${TCL_BUILD_LIB_SPEC}
5036 TK_INCLUDES="-I${TK_SRC_DIR}/generic -I${TK_SRC_DIR}/${platDir}"
5037 TK_LIBRARY=${TK_BUILD_LIB_SPEC}
5039 # Using installed Tcl/Tk
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
5042 $as_echo_n "checking for Tcl private headers... " >&6; }
5044 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
5045 if test -f ${dir}/tclInt.h ; then
5049 if test x"${private_dir}" = x; then
5050 as_fn_error "could not find private Tcl headers" "$LINENO" 5
5052 TCL_PRIVATE_INCLUDE="-I${private_dir}"
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
5054 $as_echo "${private_dir}" >&6; }
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
5059 $as_echo_n "checking for Tk private headers... " >&6; }
5061 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
5062 if test -f ${dir}/tkInt.h; then
5066 if test x"${private_dir}" = x; then
5067 as_fn_error "could not find Tk private headers" "$LINENO" 5
5069 TK_PRIVATE_INCLUDE="-I${private_dir}"
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
5071 $as_echo "${private_dir}" >&6; }
5074 TCL_INCLUDES="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
5075 TCL_LIBRARY=${TCL_LIB_SPEC}
5076 TK_INCLUDES="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
5077 TK_LIBRARY=${TK_LIB_SPEC}
5090 if test x$TCL_SHARED_BUILD = x1; then
5092 TCL_SHARED_FALSE='#'
5101 ac_config_files="$ac_config_files Makefile library/Makefile src/Makefile"
5103 cat >confcache <<\_ACEOF
5104 # This file is a shell script that caches the results of configure
5105 # tests run on this system so they can be shared between configure
5106 # scripts and configure runs, see configure's option --config-cache.
5107 # It is not useful on other systems. If it contains results you don't
5108 # want to keep, you may remove or edit it.
5110 # config.status only pays attention to the cache file if you give it
5111 # the --recheck option to rerun configure.
5113 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5114 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5119 # The following way of writing the cache mishandles newlines in values,
5120 # but we know of no workaround that is simple, portable, and efficient.
5121 # So, we kill variables containing newlines.
5122 # Ultrix sh set writes to stderr and can't be redirected directly,
5123 # and sets the high bit in the cache file unless we assign to the vars.
5125 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5126 eval ac_val=\$$ac_var
5130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5131 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5134 _ | IFS | as_nl) ;; #(
5135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5136 *) { eval $ac_var=; unset $ac_var;} ;;
5142 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5143 *${as_nl}ac_space=\ *)
5144 # `set' does not quote correctly, so add quotes: double-quote
5145 # substitution turns \\\\ into \\, and sed turns \\ into \.
5148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5151 # `set' quotes correctly as required by POSIX, so do not add quotes.
5152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5163 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5165 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5166 if test -w "$cache_file"; then
5167 test "x$cache_file" != "x/dev/null" &&
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5169 $as_echo "$as_me: updating cache $cache_file" >&6;}
5170 cat confcache >$cache_file
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5173 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5178 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5179 # Let make expand exec_prefix.
5180 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5182 DEFS=-DHAVE_CONFIG_H
5186 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5187 # 1. Remove the extension, and $U if already installed.
5188 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5189 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5190 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5191 # will be set to the directory where LIBOBJS objects are built.
5192 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5193 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5197 LTLIBOBJS=$ac_ltlibobjs
5200 if test -n "$EXEEXT"; then
5202 am__EXEEXT_FALSE='#'
5208 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5209 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
5210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5212 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213 as_fn_error "conditional \"AMDEP\" was never defined.
5214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5216 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5217 as_fn_error "conditional \"am__fastdepCC\" was never defined.
5218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5220 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
5221 as_fn_error "conditional \"CROSS_COMPILING\" was never defined.
5222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5224 if test -z "${INSTALL_LIBGUI_TRUE}" && test -z "${INSTALL_LIBGUI_FALSE}"; then
5225 as_fn_error "conditional \"INSTALL_LIBGUI\" was never defined.
5226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5228 if test -z "${IDE_ENABLED_TRUE}" && test -z "${IDE_ENABLED_FALSE}"; then
5229 as_fn_error "conditional \"IDE_ENABLED\" was never defined.
5230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5232 if test -z "${TCL_SHARED_TRUE}" && test -z "${TCL_SHARED_FALSE}"; then
5233 as_fn_error "conditional \"TCL_SHARED\" was never defined.
5234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5237 : ${CONFIG_STATUS=./config.status}
5239 ac_clean_files_save=$ac_clean_files
5240 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5242 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5244 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5246 # Generated by $as_me.
5247 # Run this file to recreate the current configuration.
5248 # Compiler output produced by configure, useful for debugging
5249 # configure, is in config.log if it exists.
5255 SHELL=\${CONFIG_SHELL-$SHELL}
5258 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5259 ## -------------------- ##
5260 ## M4sh Initialization. ##
5261 ## -------------------- ##
5263 # Be more Bourne compatible
5264 DUALCASE=1; export DUALCASE # for MKS sh
5265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5269 # is contrary to our usage. Disable this feature.
5270 alias -g '${1+"$@"}'='"$@"'
5271 setopt NO_GLOB_SUBST
5273 case `(set -o) 2>/dev/null` in #(
5285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5289 # Prefer a ksh shell builtin over an external printf program on Solaris,
5290 # but without wasting forks for bash or zsh.
5291 if test -z "$BASH_VERSION$ZSH_VERSION" \
5292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5293 as_echo='print -r --'
5294 as_echo_n='print -rn --'
5295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5296 as_echo='printf %s\n'
5297 as_echo_n='printf %s'
5299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5300 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5301 as_echo_n='/usr/ucb/echo -n'
5303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5304 as_echo_n_body='eval
5308 expr "X$arg" : "X\\(.*\\)$as_nl";
5309 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5311 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5313 export as_echo_n_body
5314 as_echo_n='sh -c $as_echo_n_body as_echo'
5317 as_echo='sh -c $as_echo_body as_echo'
5320 # The user is always right.
5321 if test "${PATH_SEPARATOR+set}" != set; then
5323 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5324 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5331 # We need space, tab and new line, in precisely that order. Quoting is
5332 # there to prevent editors from complaining about space-tab.
5333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5334 # splitting by setting IFS to empty value.)
5337 # Find who we are. Look in the path if we contain no directory separator.
5339 *[\\/]* ) as_myself=$0 ;;
5340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 test -z "$as_dir" && as_dir=.
5345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5351 # We did not find ourselves, most probably we were run as `sh COMMAND'
5352 # in which case we are not to be found in the path.
5353 if test "x$as_myself" = x; then
5356 if test ! -f "$as_myself"; then
5357 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5361 # Unset variables that we do not need and which cause bugs (e.g. in
5362 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5363 # suppresses any "Segmentation fault" message there. '((' could
5364 # trigger a bug in pdksh 5.2.14.
5365 for as_var in BASH_ENV ENV MAIL MAILPATH
5366 do eval test x\${$as_var+set} = xset \
5367 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5380 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5383 # as_fn_error ERROR [LINENO LOG_FD]
5384 # ---------------------------------
5385 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5386 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5387 # script with status $?, using 1 if that was 0.
5390 as_status=$?; test $as_status -eq 0 && as_status=1
5392 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5393 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5395 $as_echo "$as_me: error: $1" >&2
5396 as_fn_exit $as_status
5400 # as_fn_set_status STATUS
5401 # -----------------------
5402 # Set $? to STATUS, without forking.
5406 } # as_fn_set_status
5410 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5420 # Portably unset VAR.
5423 { eval $1=; unset $1;}
5425 as_unset=as_fn_unset
5426 # as_fn_append VAR VALUE
5427 # ----------------------
5428 # Append the text in VALUE to the end of the definition contained in VAR. Take
5429 # advantage of any shell optimizations that allow amortized linear growth over
5430 # repeated appends, instead of the typical quadratic growth present in naive
5432 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5433 eval 'as_fn_append ()
5444 # as_fn_arith ARG...
5445 # ------------------
5446 # Perform arithmetic evaluation on the ARGs, and store the result in the
5447 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5448 # must be portable across $(()) and expr.
5449 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5450 eval 'as_fn_arith ()
5457 as_val=`expr "$@" || test $? -eq 1`
5462 if expr a : '\(a\)' >/dev/null 2>&1 &&
5463 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5469 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5470 as_basename=basename
5475 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5481 as_me=`$as_basename -- "$0" ||
5482 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5483 X"$0" : 'X\(//\)$' \| \
5484 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5486 sed '/^.*\/\([^/][^/]*\)\/*$/{
5500 # Avoid depending upon Character Ranges.
5501 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5502 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5503 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5504 as_cr_digits='0123456789'
5505 as_cr_alnum=$as_cr_Letters$as_cr_digits
5507 ECHO_C= ECHO_N= ECHO_T=
5508 case `echo -n x` in #(((((
5510 case `echo 'xy\c'` in
5511 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5513 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5520 rm -f conf$$ conf$$.exe conf$$.file
5521 if test -d conf$$.dir; then
5522 rm -f conf$$.dir/conf$$.file
5525 mkdir conf$$.dir 2>/dev/null
5527 if (echo >conf$$.file) 2>/dev/null; then
5528 if ln -s conf$$.file conf$$ 2>/dev/null; then
5530 # ... but there are two gotchas:
5531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5533 # In both cases, we have to default to `cp -p'.
5534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5536 elif ln conf$$.file conf$$ 2>/dev/null; then
5544 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5545 rmdir conf$$.dir 2>/dev/null
5550 # Create "$as_dir" as a directory, including parents if necessary.
5555 -*) as_dir=./$as_dir;;
5557 test -d "$as_dir" || eval $as_mkdir_p || {
5561 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5562 *) as_qdir=$as_dir;;
5564 as_dirs="'$as_qdir' $as_dirs"
5565 as_dir=`$as_dirname -- "$as_dir" ||
5566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5567 X"$as_dir" : 'X\(//\)[^/]' \| \
5568 X"$as_dir" : 'X\(//\)$' \| \
5569 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5570 $as_echo X"$as_dir" |
5571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5588 test -d "$as_dir" && break
5590 test -z "$as_dirs" || eval "mkdir $as_dirs"
5591 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5595 if mkdir -p . 2>/dev/null; then
5596 as_mkdir_p='mkdir -p "$as_dir"'
5598 test -d ./-p && rmdir ./-p
5602 if test -x / >/dev/null 2>&1; then
5605 if ls -dL / >/dev/null 2>&1; then
5612 if test -d "$1"; then
5618 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5619 ???[sx]*):;;*)false;;esac;fi
5623 as_executable_p=$as_test_x
5625 # Sed expression to map a string onto a valid CPP name.
5626 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5628 # Sed expression to map a string onto a valid variable name.
5629 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5633 ## ----------------------------------- ##
5634 ## Main body of $CONFIG_STATUS script. ##
5635 ## ----------------------------------- ##
5637 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5640 # Save the log message, to keep $0 and so on meaningful, and to
5641 # report actual input values of CONFIG_FILES etc. instead of their
5642 # values after options handling.
5644 This file was extended by $as_me, which was
5645 generated by GNU Autoconf 2.64. Invocation command line was
5647 CONFIG_FILES = $CONFIG_FILES
5648 CONFIG_HEADERS = $CONFIG_HEADERS
5649 CONFIG_LINKS = $CONFIG_LINKS
5650 CONFIG_COMMANDS = $CONFIG_COMMANDS
5653 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5658 case $ac_config_files in *"
5659 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5662 case $ac_config_headers in *"
5663 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5668 # Files that config.status was made for.
5669 config_files="$ac_config_files"
5670 config_headers="$ac_config_headers"
5671 config_commands="$ac_config_commands"
5675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5677 \`$as_me' instantiates files and other configuration actions
5678 from templates according to the current configuration. Unless the files
5679 and actions are specified as TAGs, all are instantiated by default.
5681 Usage: $0 [OPTION]... [TAG]...
5683 -h, --help print this help, then exit
5684 -V, --version print version number and configuration settings, then exit
5685 -q, --quiet, --silent
5686 do not print progress messages
5687 -d, --debug don't remove temporary files
5688 --recheck update $as_me by reconfiguring in the same conditions
5689 --file=FILE[:TEMPLATE]
5690 instantiate the configuration file FILE
5691 --header=FILE[:TEMPLATE]
5692 instantiate the configuration header FILE
5694 Configuration files:
5697 Configuration headers:
5700 Configuration commands:
5703 Report bugs to the package provider."
5706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5709 configured by $0, generated by GNU Autoconf 2.64,
5710 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5712 Copyright (C) 2009 Free Software Foundation, Inc.
5713 This config.status script is free software; the Free Software Foundation
5714 gives unlimited permission to copy, distribute and modify it."
5721 test -n "\$AWK" || AWK=awk
5724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5725 # The default lists apply if the user does not specify any file.
5731 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5732 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5743 # Handling of the options.
5744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5746 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5747 $as_echo "$ac_cs_version"; exit ;;
5748 --debug | --debu | --deb | --de | --d | -d )
5750 --file | --fil | --fi | --f )
5753 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5755 as_fn_append CONFIG_FILES " '$ac_optarg'"
5756 ac_need_defaults=false;;
5757 --header | --heade | --head | --hea )
5760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5762 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5763 ac_need_defaults=false;;
5765 # Conflict between --help and --header
5766 as_fn_error "ambiguous option: \`$1'
5767 Try \`$0 --help' for more information.";;
5768 --help | --hel | -h )
5769 $as_echo "$ac_cs_usage"; exit ;;
5770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5771 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5775 -*) as_fn_error "unrecognized option: \`$1'
5776 Try \`$0 --help' for more information." ;;
5778 *) as_fn_append ac_config_targets " $1"
5779 ac_need_defaults=false ;;
5785 ac_configure_extra_args=
5787 if $ac_cs_silent; then
5789 ac_configure_extra_args="$ac_configure_extra_args --silent"
5793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5794 if \$ac_cs_recheck; then
5795 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5797 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5798 CONFIG_SHELL='$SHELL'
5804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5809 ## Running $as_me. ##
5815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5819 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5825 # Handling of arguments.
5826 for ac_config_target in $ac_config_targets
5828 case $ac_config_target in
5829 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5830 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5831 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5832 "library/Makefile") CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
5833 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5835 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5840 # If the user did not use the arguments to specify the items to instantiate,
5841 # then the envvar interface is used. Set only those that are not.
5842 # We use the long form for the default assignment because of an extremely
5843 # bizarre bug on SunOS 4.1.3.
5844 if $ac_need_defaults; then
5845 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5846 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5847 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5850 # Have a temporary directory for convenience. Make it in the build tree
5851 # simply because there is no reason against having it here, and in addition,
5852 # creating and moving files from /tmp can sometimes cause problems.
5853 # Hook for its removal unless debugging.
5854 # Note that there is a small window in which the directory will not be cleaned:
5855 # after its creation but before its name has been assigned to `$tmp'.
5859 trap 'exit_status=$?
5860 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5862 trap 'as_fn_exit 1' 1 2 13 15
5864 # Create a (secure) tmp directory for tmp files.
5867 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5868 test -n "$tmp" && test -d "$tmp"
5871 tmp=./conf$$-$RANDOM
5872 (umask 077 && mkdir "$tmp")
5873 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5875 # Set up the scripts for CONFIG_FILES section.
5876 # No need to generate them if there are no CONFIG_FILES.
5877 # This happens for instance with `./config.status config.h'.
5878 if test -n "$CONFIG_FILES"; then
5881 ac_cr=`echo X | tr X '\015'`
5882 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5883 # But we know of no other shell where ac_cr would be empty at this
5884 # point, so we can use a bashism as a fallback.
5885 if test "x$ac_cr" = x; then
5886 eval ac_cr=\$\'\\r\'
5888 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5889 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5895 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5900 echo "cat >conf$$subs.awk <<_ACEOF" &&
5901 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5904 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5905 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5907 for ac_last_try in false false false false false :; do
5908 . ./conf$$subs.sh ||
5909 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5911 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5912 if test $ac_delim_n = $ac_delim_num; then
5914 elif $ac_last_try; then
5915 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5923 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5927 s/^/S["/; s/!.*/"]=/
5937 s/\(.\{148\}\).*/\1/
5939 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5944 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5951 s/\(.\{148\}\).*/\1/
5953 s/["\\]/\\&/g; s/^/"/; s/$/"/
5957 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5962 ' <conf$$subs.awk | sed '
5967 ' >>$CONFIG_STATUS || ac_write_fail=1
5968 rm -f conf$$subs.awk
5969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5971 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5972 for (key in S) S_is_set[key] = 1
5978 nfields = split(line, field, "@")
5980 len = length(field[1])
5981 for (i = 2; i < nfields; i++) {
5983 keylen = length(key)
5984 if (S_is_set[key]) {
5986 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5987 len += length(value) + length(field[++i])
5998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5999 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6000 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6003 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6004 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6007 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6008 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6009 # trailing colons and then remove the whole line if VPATH becomes empty
6010 # (actually we leave an empty line to preserve line numbers).
6011 if test "x$srcdir" = x.; then
6012 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6016 s/^\([^=]*=[ ]*\):*/\1/
6022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6023 fi # test -n "$CONFIG_FILES"
6025 # Set up the scripts for CONFIG_HEADERS section.
6026 # No need to generate them if there are no CONFIG_HEADERS.
6027 # This happens for instance with `./config.status Makefile'.
6028 if test -n "$CONFIG_HEADERS"; then
6029 cat >"$tmp/defines.awk" <<\_ACAWK ||
6033 # Transform confdefs.h into an awk script `defines.awk', embedded as
6034 # here-document in config.status, that substitutes the proper values into
6035 # config.h.in to produce config.h.
6037 # Create a delimiter string that does not exist in confdefs.h, to ease
6038 # handling of long lines.
6040 for ac_last_try in false false :; do
6041 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6042 if test -z "$ac_t"; then
6044 elif $ac_last_try; then
6045 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6047 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6051 # For the awk script, D is an array of macro values keyed by name,
6052 # likewise P contains macro parameters if any. Preserve backslash
6053 # newline sequences.
6055 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6057 s/.\{148\}/&'"$ac_delim"'/g
6060 s/^[ ]*#[ ]*define[ ][ ]*/ /
6067 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6069 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6073 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6074 D["\1"]=" \3\\\\\\n"\\/p
6076 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6081 s/.\{148\}/&'"$ac_delim"'/g
6086 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6089 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6091 ' <confdefs.h | sed '
6092 s/'"$ac_delim"'/"\\\
6093 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6096 for (key in D) D_is_set[key] = 1
6099 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6101 split(line, arg, " ")
6102 if (arg[1] == "#") {
6106 defundef = substr(arg[1], 2)
6109 split(mac1, mac2, "(") #)
6111 prefix = substr(line, 1, index(line, defundef) - 1)
6112 if (D_is_set[macro]) {
6113 # Preserve the white space surrounding the "#".
6114 print prefix "define", macro P[macro] D[macro]
6117 # Replace #undef with comments. This is necessary, for example,
6118 # in the case of _POSIX_SOURCE, which is predefined and required
6119 # on some systems where configure will not decide to define it.
6120 if (defundef == "undef") {
6121 print "/*", prefix defundef, macro, "*/"
6129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6130 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6131 fi # test -n "$CONFIG_HEADERS"
6134 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6139 :[FHLC]) ac_mode=$ac_tag; continue;;
6141 case $ac_mode$ac_tag in
6143 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6144 :[FH]-) ac_tag=-:-;;
6145 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6162 -) ac_f="$tmp/stdin";;
6163 *) # Look for the file first in the build tree, then in the source tree
6164 # (if the path is not absolute). The absolute path cannot be DOS-style,
6165 # because $ac_f cannot contain `:'.
6169 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6171 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6173 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6174 as_fn_append ac_file_inputs " '$ac_f'"
6177 # Let's still pretend it is `configure' which instantiates (i.e., don't
6178 # use $as_me), people would be surprised to read:
6179 # /* config.h. Generated by config.status. */
6180 configure_input='Generated from '`
6181 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6183 if test x"$ac_file" != x-; then
6184 configure_input="$ac_file. $configure_input"
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6186 $as_echo "$as_me: creating $ac_file" >&6;}
6188 # Neutralize special characters interpreted by sed in replacement strings.
6189 case $configure_input in #(
6190 *\&* | *\|* | *\\* )
6191 ac_sed_conf_input=`$as_echo "$configure_input" |
6192 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6193 *) ac_sed_conf_input=$configure_input;;
6197 *:-:* | *:-) cat >"$tmp/stdin" \
6198 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6203 ac_dir=`$as_dirname -- "$ac_file" ||
6204 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6205 X"$ac_file" : 'X\(//\)[^/]' \| \
6206 X"$ac_file" : 'X\(//\)$' \| \
6207 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6208 $as_echo X"$ac_file" |
6209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6226 as_dir="$ac_dir"; as_fn_mkdir_p
6230 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6232 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6233 # A ".." for each directory in $ac_dir_suffix.
6234 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6235 case $ac_top_builddir_sub in
6236 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6237 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6240 ac_abs_top_builddir=$ac_pwd
6241 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6242 # for backward compatibility:
6243 ac_top_builddir=$ac_top_build_prefix
6246 .) # We are building in place.
6248 ac_top_srcdir=$ac_top_builddir_sub
6249 ac_abs_top_srcdir=$ac_pwd ;;
6250 [\\/]* | ?:[\\/]* ) # Absolute name.
6251 ac_srcdir=$srcdir$ac_dir_suffix;
6252 ac_top_srcdir=$srcdir
6253 ac_abs_top_srcdir=$srcdir ;;
6255 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6256 ac_top_srcdir=$ac_top_build_prefix$srcdir
6257 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6259 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6269 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6270 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6274 [\\/$]* | ?:[\\/]* ) ;;
6275 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6280 # If the template does not know about datarootdir, expand it.
6281 # FIXME: This hack should be removed a few years after 2.60.
6282 ac_datarootdir_hack=; ac_datarootdir_seen=
6293 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6294 *datarootdir*) ac_datarootdir_seen=yes;;
6295 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6297 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6300 ac_datarootdir_hack='
6301 s&@datadir@&$datadir&g
6302 s&@docdir@&$docdir&g
6303 s&@infodir@&$infodir&g
6304 s&@localedir@&$localedir&g
6305 s&@mandir@&$mandir&g
6306 s&\\\${datarootdir}&$datarootdir&g' ;;
6310 # Neutralize VPATH when `$srcdir' = `.'.
6311 # Shell code in configure.ac might set extrasub.
6312 # FIXME: do we really want to maintain this feature?
6313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6314 ac_sed_extra="$ac_vpsub
6317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6319 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6320 s|@configure_input@|$ac_sed_conf_input|;t t
6321 s&@top_builddir@&$ac_top_builddir_sub&;t t
6322 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6323 s&@srcdir@&$ac_srcdir&;t t
6324 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6325 s&@top_srcdir@&$ac_top_srcdir&;t t
6326 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6327 s&@builddir@&$ac_builddir&;t t
6328 s&@abs_builddir@&$ac_abs_builddir&;t t
6329 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6330 s&@INSTALL@&$ac_INSTALL&;t t
6331 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6332 $ac_datarootdir_hack
6334 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6335 || as_fn_error "could not create $ac_file" "$LINENO" 5
6337 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6338 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6339 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6341 which seems to be undefined. Please make sure it is defined." >&5
6342 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6343 which seems to be undefined. Please make sure it is defined." >&2;}
6347 -) cat "$tmp/out" && rm -f "$tmp/out";;
6348 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6350 || as_fn_error "could not create $ac_file" "$LINENO" 5
6356 if test x"$ac_file" != x-; then
6358 $as_echo "/* $configure_input */" \
6359 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6360 } >"$tmp/config.h" \
6361 || as_fn_error "could not create $ac_file" "$LINENO" 5
6362 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6364 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6367 mv "$tmp/config.h" "$ac_file" \
6368 || as_fn_error "could not create $ac_file" "$LINENO" 5
6371 $as_echo "/* $configure_input */" \
6372 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6373 || as_fn_error "could not create -" "$LINENO" 5
6375 # Compute "$ac_file"'s index in $config_headers.
6378 for _am_header in $config_headers :; do
6380 $_am_arg | $_am_arg:* )
6383 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6386 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6387 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6388 X"$_am_arg" : 'X\(//\)[^/]' \| \
6389 X"$_am_arg" : 'X\(//\)$' \| \
6390 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6391 $as_echo X"$_am_arg" |
6392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6408 s/.*/./; q'`/stamp-h$_am_stamp_count
6411 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6412 $as_echo "$as_me: executing $ac_file commands" >&6;}
6417 case $ac_file$ac_mode in
6418 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6419 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6420 # are listed without --file. Let's play safe and only enable the eval
6421 # if we detect the quoting.
6422 case $CONFIG_FILES in
6423 *\'*) eval set x "$CONFIG_FILES" ;;
6424 *) set x $CONFIG_FILES ;;
6429 # Strip MF so we end up with the name of the file.
6430 mf=`echo "$mf" | sed -e 's/:.*$//'`
6431 # Check whether this is an Automake generated Makefile or not.
6432 # We used to match only the files named `Makefile.in', but
6433 # some people rename them; so instead we look at the file content.
6434 # Grep'ing the first line is not enough: some people post-process
6435 # each Makefile.in and add a new line on top of each file to say so.
6436 # Grep'ing the whole file is not good either: AIX grep has a line
6437 # limit of 2048, but all sed's we know have understand at least 4000.
6438 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6439 dirpart=`$as_dirname -- "$mf" ||
6440 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6441 X"$mf" : 'X\(//\)[^/]' \| \
6442 X"$mf" : 'X\(//\)$' \| \
6443 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6465 # Extract the definition of DEPDIR, am__include, and am__quote
6466 # from the Makefile without running `make'.
6467 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6468 test -z "$DEPDIR" && continue
6469 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6470 test -z "am__include" && continue
6471 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6472 # When using ansi2knr, U may be empty or an underscore; expand it
6473 U=`sed -n 's/^U = //p' < "$mf"`
6474 # Find all dependency output files, they are included files with
6475 # $(DEPDIR) in their names. We invoke sed twice because it is the
6476 # simplest approach to changing $(DEPDIR) to its actual value in the
6478 for file in `sed -n "
6479 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6480 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6481 # Make sure the directory exists.
6482 test -f "$dirpart/$file" && continue
6483 fdir=`$as_dirname -- "$file" ||
6484 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6485 X"$file" : 'X\(//\)[^/]' \| \
6486 X"$file" : 'X\(//\)$' \| \
6487 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6506 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6507 # echo "creating $dirpart/$file"
6508 echo '# dummy' > "$dirpart/$file"
6520 ac_clean_files=$ac_clean_files_save
6522 test $ac_write_fail = 0 ||
6523 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6526 # configure is writing to config.log, and then calls config.status.
6527 # config.status does its own redirection, appending to config.log.
6528 # Unfortunately, on DOS this fails, as config.log is still kept open
6529 # by configure, so config.status won't be able to write to it; its
6530 # output is simply discarded. So we exec the FD to /dev/null,
6531 # effectively closing config.log, so it can be properly (re)opened and
6532 # appended to by config.status. When coming back to configure, we
6533 # need to make the FD available again.
6534 if test "$no_create" != yes; then
6536 ac_config_status_args=
6537 test "$silent" = yes &&
6538 ac_config_status_args="$ac_config_status_args --quiet"
6540 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6542 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6543 # would make configure fail if this is the last instruction.
6544 $ac_cs_success || as_fn_exit $?
6546 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6548 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}