2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for polyglot 2.0.3.
5 # Report bugs to <bug-xboard@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-xboard@gnu.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
553 PACKAGE_NAME='polyglot'
554 PACKAGE_TARNAME='polyglot'
555 PACKAGE_VERSION='2.0.3'
556 PACKAGE_STRING='polyglot 2.0.3'
557 PACKAGE_BUGREPORT='bug-xboard@gnu.org'
560 ac_unique_file="mainloop.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
597 ac_subst_vars='LTLIBOBJS
626 INSTALL_STRIP_PROGRAM
668 program_transform_name
681 enable_option_checking
682 enable_dependency_tracking
684 ac_precious_vars='build_alias
695 # Initialize some variables set by options.
697 ac_init_version=false
698 ac_unrecognized_opts=
700 # The variables have the same names as the options, with
701 # dashes changed to underlines.
709 program_transform_name=s,x,x,
717 # Installation directory options.
718 # These are left unexpanded so users can "make install exec_prefix=/foo"
719 # and all the variables that are supposed to be based on exec_prefix
720 # by default will actually change.
721 # Use braces instead of parens because sh, perl, etc. also accept them.
722 # (The list follows the same order as the GNU Coding Standards.)
723 bindir='${exec_prefix}/bin'
724 sbindir='${exec_prefix}/sbin'
725 libexecdir='${exec_prefix}/libexec'
726 datarootdir='${prefix}/share'
727 datadir='${datarootdir}'
728 sysconfdir='${prefix}/etc'
729 sharedstatedir='${prefix}/com'
730 localstatedir='${prefix}/var'
731 includedir='${prefix}/include'
732 oldincludedir='/usr/include'
733 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
734 infodir='${datarootdir}/info'
739 libdir='${exec_prefix}/lib'
740 localedir='${datarootdir}/locale'
741 mandir='${datarootdir}/man'
747 # If the previous option needs an argument, assign it.
748 if test -n "$ac_prev"; then
749 eval $ac_prev=\$ac_option
755 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759 # Accept the important Cygnus configure options, so we can diagnose typos.
761 case $ac_dashdash$ac_option in
765 -bindir | --bindir | --bindi | --bind | --bin | --bi)
767 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
770 -build | --build | --buil | --bui | --bu)
771 ac_prev=build_alias ;;
772 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
773 build_alias=$ac_optarg ;;
775 -cache-file | --cache-file | --cache-fil | --cache-fi \
776 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
777 ac_prev=cache_file ;;
778 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
779 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
780 cache_file=$ac_optarg ;;
783 cache_file=config.cache ;;
785 -datadir | --datadir | --datadi | --datad)
787 -datadir=* | --datadir=* | --datadi=* | --datad=*)
788 datadir=$ac_optarg ;;
790 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
791 | --dataroo | --dataro | --datar)
792 ac_prev=datarootdir ;;
793 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
794 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
795 datarootdir=$ac_optarg ;;
797 -disable-* | --disable-*)
798 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
799 # Reject names that are not valid shell variable names.
800 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
801 as_fn_error "invalid feature name: $ac_useropt"
802 ac_useropt_orig=$ac_useropt
803 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
804 case $ac_user_opts in
808 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
809 ac_unrecognized_sep=', ';;
811 eval enable_$ac_useropt=no ;;
813 -docdir | --docdir | --docdi | --doc | --do)
815 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
818 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
820 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
823 -enable-* | --enable-*)
824 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
825 # Reject names that are not valid shell variable names.
826 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
827 as_fn_error "invalid feature name: $ac_useropt"
828 ac_useropt_orig=$ac_useropt
829 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
830 case $ac_user_opts in
834 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
835 ac_unrecognized_sep=', ';;
837 eval enable_$ac_useropt=\$ac_optarg ;;
839 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
840 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
841 | --exec | --exe | --ex)
842 ac_prev=exec_prefix ;;
843 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
844 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
845 | --exec=* | --exe=* | --ex=*)
846 exec_prefix=$ac_optarg ;;
848 -gas | --gas | --ga | --g)
849 # Obsolete; use --with-gas.
852 -help | --help | --hel | --he | -h)
854 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
855 ac_init_help=recursive ;;
856 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
857 ac_init_help=short ;;
859 -host | --host | --hos | --ho)
860 ac_prev=host_alias ;;
861 -host=* | --host=* | --hos=* | --ho=*)
862 host_alias=$ac_optarg ;;
864 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
866 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
868 htmldir=$ac_optarg ;;
870 -includedir | --includedir | --includedi | --included | --include \
871 | --includ | --inclu | --incl | --inc)
872 ac_prev=includedir ;;
873 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
874 | --includ=* | --inclu=* | --incl=* | --inc=*)
875 includedir=$ac_optarg ;;
877 -infodir | --infodir | --infodi | --infod | --info | --inf)
879 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
880 infodir=$ac_optarg ;;
882 -libdir | --libdir | --libdi | --libd)
884 -libdir=* | --libdir=* | --libdi=* | --libd=*)
887 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
888 | --libexe | --libex | --libe)
889 ac_prev=libexecdir ;;
890 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
891 | --libexe=* | --libex=* | --libe=*)
892 libexecdir=$ac_optarg ;;
894 -localedir | --localedir | --localedi | --localed | --locale)
896 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
897 localedir=$ac_optarg ;;
899 -localstatedir | --localstatedir | --localstatedi | --localstated \
900 | --localstate | --localstat | --localsta | --localst | --locals)
901 ac_prev=localstatedir ;;
902 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
903 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
904 localstatedir=$ac_optarg ;;
906 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
908 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
912 # Obsolete; use --without-fp.
915 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
916 | --no-cr | --no-c | -n)
919 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
920 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
923 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
924 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
925 | --oldin | --oldi | --old | --ol | --o)
926 ac_prev=oldincludedir ;;
927 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
928 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
929 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
930 oldincludedir=$ac_optarg ;;
932 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
934 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
937 -program-prefix | --program-prefix | --program-prefi | --program-pref \
938 | --program-pre | --program-pr | --program-p)
939 ac_prev=program_prefix ;;
940 -program-prefix=* | --program-prefix=* | --program-prefi=* \
941 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
942 program_prefix=$ac_optarg ;;
944 -program-suffix | --program-suffix | --program-suffi | --program-suff \
945 | --program-suf | --program-su | --program-s)
946 ac_prev=program_suffix ;;
947 -program-suffix=* | --program-suffix=* | --program-suffi=* \
948 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
949 program_suffix=$ac_optarg ;;
951 -program-transform-name | --program-transform-name \
952 | --program-transform-nam | --program-transform-na \
953 | --program-transform-n | --program-transform- \
954 | --program-transform | --program-transfor \
955 | --program-transfo | --program-transf \
956 | --program-trans | --program-tran \
957 | --progr-tra | --program-tr | --program-t)
958 ac_prev=program_transform_name ;;
959 -program-transform-name=* | --program-transform-name=* \
960 | --program-transform-nam=* | --program-transform-na=* \
961 | --program-transform-n=* | --program-transform-=* \
962 | --program-transform=* | --program-transfor=* \
963 | --program-transfo=* | --program-transf=* \
964 | --program-trans=* | --program-tran=* \
965 | --progr-tra=* | --program-tr=* | --program-t=*)
966 program_transform_name=$ac_optarg ;;
968 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
970 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
973 -psdir | --psdir | --psdi | --psd | --ps)
975 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
979 | -silent | --silent | --silen | --sile | --sil)
982 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
984 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
986 sbindir=$ac_optarg ;;
988 -sharedstatedir | --sharedstatedir | --sharedstatedi \
989 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
990 | --sharedst | --shareds | --shared | --share | --shar \
992 ac_prev=sharedstatedir ;;
993 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
994 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
995 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
997 sharedstatedir=$ac_optarg ;;
999 -site | --site | --sit)
1001 -site=* | --site=* | --sit=*)
1004 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1006 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1007 srcdir=$ac_optarg ;;
1009 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1010 | --syscon | --sysco | --sysc | --sys | --sy)
1011 ac_prev=sysconfdir ;;
1012 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1013 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1014 sysconfdir=$ac_optarg ;;
1016 -target | --target | --targe | --targ | --tar | --ta | --t)
1017 ac_prev=target_alias ;;
1018 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1019 target_alias=$ac_optarg ;;
1021 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1024 -version | --version | --versio | --versi | --vers | -V)
1025 ac_init_version=: ;;
1028 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error "invalid package name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1041 eval with_$ac_useropt=\$ac_optarg ;;
1043 -without-* | --without-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error "invalid package name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1057 eval with_$ac_useropt=no ;;
1060 # Obsolete; use --with-x.
1063 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1064 | --x-incl | --x-inc | --x-in | --x-i)
1065 ac_prev=x_includes ;;
1066 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1067 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1068 x_includes=$ac_optarg ;;
1070 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1071 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1072 ac_prev=x_libraries ;;
1073 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1074 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1075 x_libraries=$ac_optarg ;;
1077 -*) as_fn_error "unrecognized option: \`$ac_option'
1078 Try \`$0 --help' for more information."
1082 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1083 # Reject names that are not valid shell variable names.
1084 case $ac_envvar in #(
1085 '' | [0-9]* | *[!_$as_cr_alnum]* )
1086 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1088 eval $ac_envvar=\$ac_optarg
1089 export $ac_envvar ;;
1092 # FIXME: should be removed in autoconf 3.0.
1093 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1094 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1096 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1102 if test -n "$ac_prev"; then
1103 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1104 as_fn_error "missing argument to $ac_option"
1107 if test -n "$ac_unrecognized_opts"; then
1108 case $enable_option_checking in
1110 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1111 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1115 # Check all directory arguments for consistency.
1116 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1117 datadir sysconfdir sharedstatedir localstatedir includedir \
1118 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1119 libdir localedir mandir
1121 eval ac_val=\$$ac_var
1122 # Remove trailing slashes.
1125 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1126 eval $ac_var=\$ac_val;;
1128 # Be sure to have absolute directory names.
1130 [\\/$]* | ?:[\\/]* ) continue;;
1131 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1133 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1141 target=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x; then
1145 if test "x$build_alias" = x; then
1146 cross_compiling=maybe
1147 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157 test "$silent" = yes && exec 6>/dev/null
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 as_fn_error "working directory cannot be determined"
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165 as_fn_error "pwd does not report name of working directory"
1168 # Find the source files, if location was not specified.
1169 if test -z "$srcdir"; then
1170 ac_srcdir_defaulted=yes
1171 # Try the directory containing this script, then the parent directory.
1172 ac_confdir=`$as_dirname -- "$as_myself" ||
1173 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174 X"$as_myself" : 'X\(//\)[^/]' \| \
1175 X"$as_myself" : 'X\(//\)$' \| \
1176 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1177 $as_echo X"$as_myself" |
1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1200 ac_srcdir_defaulted=no
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1204 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1206 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1210 # When building in place, set srcdir=.
1211 if test "$ac_abs_confdir" = "$ac_pwd"; then
1214 # Remove unnecessary trailing slashes from srcdir.
1215 # Double slashes in file names in object file debugging info
1216 # mess up M-x gdb in Emacs.
1218 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220 for ac_var in $ac_precious_vars; do
1221 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1222 eval ac_env_${ac_var}_value=\$${ac_var}
1223 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228 # Report the --help message.
1230 if test "$ac_init_help" = "long"; then
1231 # Omit some internal or obsolete options to make the list less imposing.
1232 # This message is too long to be a string in the A/UX 3.1 sh.
1234 \`configure' configures polyglot 2.0.3 to adapt to many kinds of systems.
1236 Usage: $0 [OPTION]... [VAR=VALUE]...
1238 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1239 VAR=VALUE. See below for descriptions of some of the useful variables.
1241 Defaults for the options are specified in brackets.
1244 -h, --help display this help and exit
1245 --help=short display options specific to this package
1246 --help=recursive display the short help of all the included packages
1247 -V, --version display version information and exit
1248 -q, --quiet, --silent do not print \`checking...' messages
1249 --cache-file=FILE cache test results in FILE [disabled]
1250 -C, --config-cache alias for \`--cache-file=config.cache'
1251 -n, --no-create do not create output files
1252 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1254 Installation directories:
1255 --prefix=PREFIX install architecture-independent files in PREFIX
1256 [$ac_default_prefix]
1257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1260 By default, \`make install' will install all the files in
1261 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1262 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1263 for instance \`--prefix=\$HOME'.
1265 For better control, use the options below.
1267 Fine tuning of the installation directories:
1268 --bindir=DIR user executables [EPREFIX/bin]
1269 --sbindir=DIR system admin executables [EPREFIX/sbin]
1270 --libexecdir=DIR program executables [EPREFIX/libexec]
1271 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1272 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1273 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1274 --libdir=DIR object code libraries [EPREFIX/lib]
1275 --includedir=DIR C header files [PREFIX/include]
1276 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1277 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1278 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1279 --infodir=DIR info documentation [DATAROOTDIR/info]
1280 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1281 --mandir=DIR man documentation [DATAROOTDIR/man]
1282 --docdir=DIR documentation root [DATAROOTDIR/doc/polyglot]
1283 --htmldir=DIR html documentation [DOCDIR]
1284 --dvidir=DIR dvi documentation [DOCDIR]
1285 --pdfdir=DIR pdf documentation [DOCDIR]
1286 --psdir=DIR ps documentation [DOCDIR]
1292 --program-prefix=PREFIX prepend PREFIX to installed program names
1293 --program-suffix=SUFFIX append SUFFIX to installed program names
1294 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1298 if test -n "$ac_init_help"; then
1299 case $ac_init_help in
1300 short | recursive ) echo "Configuration of polyglot 2.0.3:";;
1305 --disable-option-checking ignore unrecognized --enable/--with options
1306 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1307 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1308 --disable-dependency-tracking speeds up one-time build
1309 --enable-dependency-tracking do not reject slow dependency extractors
1311 Some influential environment variables:
1312 CC C compiler command
1313 CFLAGS C compiler flags
1314 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1315 nonstandard directory <lib dir>
1316 LIBS libraries to pass to the linker, e.g. -l<library>
1317 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1318 you have headers in a nonstandard directory <include dir>
1321 Use these variables to override the choices made by `configure' or to help
1322 it to find libraries and programs with nonstandard names/locations.
1324 Report bugs to <bug-xboard@gnu.org>.
1329 if test "$ac_init_help" = "recursive"; then
1330 # If there are subdirs, report their specific --help.
1331 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1332 test -d "$ac_dir" ||
1333 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1341 # A ".." for each directory in $ac_dir_suffix.
1342 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1343 case $ac_top_builddir_sub in
1344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1348 ac_abs_top_builddir=$ac_pwd
1349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1350 # for backward compatibility:
1351 ac_top_builddir=$ac_top_build_prefix
1354 .) # We are building in place.
1356 ac_top_srcdir=$ac_top_builddir_sub
1357 ac_abs_top_srcdir=$ac_pwd ;;
1358 [\\/]* | ?:[\\/]* ) # Absolute name.
1359 ac_srcdir=$srcdir$ac_dir_suffix;
1360 ac_top_srcdir=$srcdir
1361 ac_abs_top_srcdir=$srcdir ;;
1363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364 ac_top_srcdir=$ac_top_build_prefix$srcdir
1365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1369 cd "$ac_dir" || { ac_status=$?; continue; }
1370 # Check for guested configure.
1371 if test -f "$ac_srcdir/configure.gnu"; then
1373 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374 elif test -f "$ac_srcdir/configure"; then
1376 $SHELL "$ac_srcdir/configure" --help=recursive
1378 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1380 cd "$ac_pwd" || { ac_status=$?; break; }
1384 test -n "$ac_init_help" && exit $ac_status
1385 if $ac_init_version; then
1387 polyglot configure 2.0.3
1388 generated by GNU Autoconf 2.65
1390 Copyright (C) 2009 Free Software Foundation, Inc.
1391 This configure script is free software; the Free Software Foundation
1392 gives unlimited permission to copy, distribute and modify it.
1397 ## ------------------------ ##
1398 ## Autoconf initialization. ##
1399 ## ------------------------ ##
1401 # ac_fn_c_try_compile LINENO
1402 # --------------------------
1403 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1404 ac_fn_c_try_compile ()
1406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1407 rm -f conftest.$ac_objext
1408 if { { ac_try="$ac_compile"
1410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1411 *) ac_try_echo=$ac_try;;
1413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1414 $as_echo "$ac_try_echo"; } >&5
1415 (eval "$ac_compile") 2>conftest.err
1417 if test -s conftest.err; then
1418 grep -v '^ *+' conftest.err >conftest.er1
1419 cat conftest.er1 >&5
1420 mv -f conftest.er1 conftest.err
1422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1423 test $ac_status = 0; } && {
1424 test -z "$ac_c_werror_flag" ||
1425 test ! -s conftest.err
1426 } && test -s conftest.$ac_objext; then :
1429 $as_echo "$as_me: failed program was:" >&5
1430 sed 's/^/| /' conftest.$ac_ext >&5
1434 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1435 as_fn_set_status $ac_retval
1437 } # ac_fn_c_try_compile
1439 # ac_fn_c_try_link LINENO
1440 # -----------------------
1441 # Try to link conftest.$ac_ext, and return whether this succeeded.
1444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445 rm -f conftest.$ac_objext conftest$ac_exeext
1446 if { { ac_try="$ac_link"
1448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1449 *) ac_try_echo=$ac_try;;
1451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1452 $as_echo "$ac_try_echo"; } >&5
1453 (eval "$ac_link") 2>conftest.err
1455 if test -s conftest.err; then
1456 grep -v '^ *+' conftest.err >conftest.er1
1457 cat conftest.er1 >&5
1458 mv -f conftest.er1 conftest.err
1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461 test $ac_status = 0; } && {
1462 test -z "$ac_c_werror_flag" ||
1463 test ! -s conftest.err
1464 } && test -s conftest$ac_exeext && {
1465 test "$cross_compiling" = yes ||
1466 $as_test_x conftest$ac_exeext
1470 $as_echo "$as_me: failed program was:" >&5
1471 sed 's/^/| /' conftest.$ac_ext >&5
1475 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1476 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1477 # interfere with the next link command; also delete a directory that is
1478 # left behind by Apple's compiler. We do this before executing the actions.
1479 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1480 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1481 as_fn_set_status $ac_retval
1483 } # ac_fn_c_try_link
1485 # ac_fn_c_try_cpp LINENO
1486 # ----------------------
1487 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 if { { ac_try="$ac_cpp conftest.$ac_ext"
1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } >/dev/null && {
1507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1512 $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.$ac_ext >&5
1517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1518 as_fn_set_status $ac_retval
1522 # ac_fn_c_try_run LINENO
1523 # ----------------------
1524 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1525 # that executables *can* be run.
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 if { { ac_try="$ac_link"
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_link") 2>&5
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1540 { { case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_try") 2>&5
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; }; }; then :
1552 $as_echo "$as_me: program exited with status $ac_status" >&5
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1556 ac_retval=$ac_status
1558 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 as_fn_set_status $ac_retval
1564 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1565 # -------------------------------------------------------
1566 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1567 # the include files in INCLUDES and setting the cache variable VAR
1569 ac_fn_c_check_header_mongrel ()
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574 $as_echo_n "checking for $2... " >&6; }
1575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1576 $as_echo_n "(cached) " >&6
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1580 $as_echo "$ac_res" >&6; }
1582 # Is the header compilable?
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1584 $as_echo_n "checking $2 usability... " >&6; }
1585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586 /* end confdefs.h. */
1590 if ac_fn_c_try_compile "$LINENO"; then :
1591 ac_header_compiler=yes
1593 ac_header_compiler=no
1595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1597 $as_echo "$ac_header_compiler" >&6; }
1599 # Is the header present?
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1601 $as_echo_n "checking $2 presence... " >&6; }
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1606 if ac_fn_c_try_cpp "$LINENO"; then :
1607 ac_header_preproc=yes
1609 ac_header_preproc=no
1611 rm -f conftest.err conftest.$ac_ext
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1613 $as_echo "$ac_header_preproc" >&6; }
1615 # So? What about this header?
1616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1619 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1621 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1625 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1627 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1629 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1631 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 ## --------------------------------- ##
1636 ## Report this to bug-xboard@gnu.org ##
1637 ## --------------------------------- ##
1639 ) | sed "s/^/$as_me: WARNING: /" >&2
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1645 $as_echo_n "(cached) " >&6
1647 eval "$3=\$ac_header_compiler"
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655 } # ac_fn_c_check_header_mongrel
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1667 $as_echo_n "(cached) " >&6
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1674 if ac_fn_c_try_compile "$LINENO"; then :
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 } # ac_fn_c_check_header_compile
1688 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1689 # -------------------------------------------
1690 # Tests whether TYPE exists after having included INCLUDES, setting cache
1691 # variable VAR accordingly.
1692 ac_fn_c_check_type ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1698 $as_echo_n "(cached) " >&6
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1713 if ac_fn_c_try_compile "$LINENO"; then :
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1726 if ac_fn_c_try_compile "$LINENO"; then :
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 } # ac_fn_c_check_type
1742 # ac_fn_c_check_func LINENO FUNC VAR
1743 # ----------------------------------
1744 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1745 ac_fn_c_check_func ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751 $as_echo_n "(cached) " >&6
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1757 #define $2 innocuous_$2
1759 /* System header to define __stub macros and hopefully few prototypes,
1760 which can conflict with char $2 (); below.
1761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1762 <limits.h> exists even on freestanding compilers. */
1765 # include <limits.h>
1767 # include <assert.h>
1772 /* Override any GCC internal prototype to avoid an error.
1773 Use char because int might match the return type of a GCC
1774 builtin and then its argument prototype would still apply. */
1779 /* The GNU C library defines this for functions which it implements
1780 to always fail with ENOSYS. Some functions are actually named
1781 something starting with __ and the normal name is an alias. */
1782 #if defined __stub_$2 || defined __stub___$2
1794 if ac_fn_c_try_link "$LINENO"; then :
1799 rm -f core conftest.err conftest.$ac_objext \
1800 conftest$ac_exeext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807 } # ac_fn_c_check_func
1808 cat >config.log <<_ACEOF
1809 This file contains any messages produced by compilers while
1810 running configure, to aid debugging if configure makes a mistake.
1812 It was created by polyglot $as_me 2.0.3, which was
1813 generated by GNU Autoconf 2.65. Invocation command line was
1825 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1826 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1827 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1828 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1829 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1831 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1832 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1834 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1835 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1836 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1837 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1838 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1839 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1840 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 test -z "$as_dir" && as_dir=.
1849 $as_echo "PATH: $as_dir"
1865 # Keep a trace of the command line.
1866 # Strip out --no-create and --no-recursion so they do not pile up.
1867 # Strip out --silent because we don't want to record it for future runs.
1868 # Also quote any args containing shell meta-characters.
1869 # Make two passes to allow for proper duplicate-argument suppression.
1873 ac_must_keep_next=false
1879 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881 | -silent | --silent | --silen | --sile | --sil)
1884 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1887 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1889 as_fn_append ac_configure_args1 " '$ac_arg'"
1890 if test $ac_must_keep_next = true; then
1891 ac_must_keep_next=false # Got value, back to normal.
1894 *=* | --config-cache | -C | -disable-* | --disable-* \
1895 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897 | -with-* | --with-* | -without-* | --without-* | --x)
1898 case "$ac_configure_args0 " in
1899 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1902 -* ) ac_must_keep_next=true ;;
1905 as_fn_append ac_configure_args " '$ac_arg'"
1910 { ac_configure_args0=; unset ac_configure_args0;}
1911 { ac_configure_args1=; unset ac_configure_args1;}
1913 # When interrupted or exit'd, cleanup temporary files, and complete
1914 # config.log. We remove comments because anyway the quotes in there
1915 # would cause problems or look ugly.
1916 # WARNING: Use '\'' to represent an apostrophe within the trap.
1917 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1918 trap 'exit_status=$?
1919 # Save into config.log some information that might help in debugging.
1924 ## ---------------- ##
1925 ## Cache variables. ##
1926 ## ---------------- ##
1929 # The following way of writing the cache mishandles newlines in values,
1931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932 eval ac_val=\$$ac_var
1936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1940 _ | IFS | as_nl) ;; #(
1941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942 *) { eval $ac_var=; unset $ac_var;} ;;
1947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948 *${as_nl}ac_space=\ *)
1950 "s/'\''/'\''\\\\'\'''\''/g;
1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1962 ## ----------------- ##
1963 ## Output variables. ##
1964 ## ----------------- ##
1967 for ac_var in $ac_subst_vars
1969 eval ac_val=\$$ac_var
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973 $as_echo "$ac_var='\''$ac_val'\''"
1977 if test -n "$ac_subst_files"; then
1979 ## ------------------- ##
1980 ## File substitutions. ##
1981 ## ------------------- ##
1984 for ac_var in $ac_subst_files
1986 eval ac_val=\$$ac_var
1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990 $as_echo "$ac_var='\''$ac_val'\''"
1995 if test -s confdefs.h; then
2005 test "$ac_signal" != 0 &&
2006 $as_echo "$as_me: caught signal $ac_signal"
2007 $as_echo "$as_me: exit $exit_status"
2009 rm -f core *.core core.conftest.* &&
2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2013 for ac_signal in 1 2 13 15; do
2014 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2019 rm -f -r conftest* confdefs.h
2021 $as_echo "/* confdefs.h */" > confdefs.h
2023 # Predefined preprocessor variables.
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_NAME "$PACKAGE_NAME"
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_STRING "$PACKAGE_STRING"
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_URL "$PACKAGE_URL"
2050 # Let the site file select an alternate cache file if it wants to.
2051 # Prefer an explicitly selected file to automatically selected ones.
2054 if test -n "$CONFIG_SITE"; then
2055 ac_site_file1=$CONFIG_SITE
2056 elif test "x$prefix" != xNONE; then
2057 ac_site_file1=$prefix/share/config.site
2058 ac_site_file2=$prefix/etc/config.site
2060 ac_site_file1=$ac_default_prefix/share/config.site
2061 ac_site_file2=$ac_default_prefix/etc/config.site
2063 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2065 test "x$ac_site_file" = xNONE && continue
2066 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2069 sed 's/^/| /' "$ac_site_file" >&5
2074 if test -r "$cache_file"; then
2075 # Some versions of bash will fail to source /dev/null (special files
2076 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2077 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079 $as_echo "$as_me: loading cache $cache_file" >&6;}
2081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082 *) . "./$cache_file";;
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087 $as_echo "$as_me: creating cache $cache_file" >&6;}
2091 # Check that the precious variables saved in the cache have kept the same
2093 ac_cache_corrupted=false
2094 for ac_var in $ac_precious_vars; do
2095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2096 eval ac_new_set=\$ac_env_${ac_var}_set
2097 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2098 eval ac_new_val=\$ac_env_${ac_var}_value
2099 case $ac_old_set,$ac_new_set in
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2102 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2103 ac_cache_corrupted=: ;;
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2106 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2107 ac_cache_corrupted=: ;;
2110 if test "x$ac_old_val" != "x$ac_new_val"; then
2111 # differences in whitespace do not lead to failure.
2112 ac_old_val_w=`echo x $ac_old_val`
2113 ac_new_val_w=`echo x $ac_new_val`
2114 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2116 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2117 ac_cache_corrupted=:
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2120 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2121 eval $ac_var=\$ac_old_val
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2124 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2126 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2129 # Pass precious variables to config.status.
2130 if test "$ac_new_set" = set; then
2132 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2133 *) ac_arg=$ac_var=$ac_new_val ;;
2135 case " $ac_configure_args " in
2136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2137 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2141 if $ac_cache_corrupted; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2145 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2146 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2148 ## -------------------- ##
2149 ## Main body of script. ##
2150 ## -------------------- ##
2153 ac_cpp='$CPP $CPPFLAGS'
2154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2159 am__api_version='1.10'
2162 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2163 for ac_t in install-sh install.sh shtool; do
2164 if test -f "$ac_dir/$ac_t"; then
2166 ac_install_sh="$ac_aux_dir/$ac_t -c"
2171 if test -z "$ac_aux_dir"; then
2172 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2175 # These three variables are undocumented and unsupported,
2176 # and are intended to be withdrawn in a future Autoconf release.
2177 # They can cause serious problems if a builder's source tree is in a directory
2178 # whose full name contains unusual characters.
2179 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2180 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2181 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2184 # Find a good install program. We prefer a C program (faster),
2185 # so one script is as good as another. But avoid the broken or
2186 # incompatible versions:
2187 # SysV /etc/install, /usr/sbin/install
2188 # SunOS /usr/etc/install
2189 # IRIX /sbin/install
2191 # AmigaOS /C/install, which installs bootblocks on floppy discs
2192 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2193 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2194 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2195 # OS/2's system install, which has a completely different semantic
2196 # ./install, which can be erroneously created by make from ./install.sh.
2197 # Reject install programs that cannot install multiple files.
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2199 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2200 if test -z "$INSTALL"; then
2201 if test "${ac_cv_path_install+set}" = set; then :
2202 $as_echo_n "(cached) " >&6
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 # Account for people who put trailing slashes in PATH elements.
2210 case $as_dir/ in #((
2211 ./ | .// | /[cC]/* | \
2212 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2213 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2216 # OSF1 and SCO ODT 3.0 have their own names for install.
2217 # Don't use installbsd from OSF since it installs stuff as root
2219 for ac_prog in ginstall scoinst install; do
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2222 if test $ac_prog = install &&
2223 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2224 # AIX install. It has an incompatible calling convention.
2226 elif test $ac_prog = install &&
2227 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2228 # program-specific install script used by HP pwplus--don't use.
2231 rm -rf conftest.one conftest.two conftest.dir
2232 echo one > conftest.one
2233 echo two > conftest.two
2235 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2236 test -s conftest.one && test -s conftest.two &&
2237 test -s conftest.dir/conftest.one &&
2238 test -s conftest.dir/conftest.two
2240 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2253 rm -rf conftest.one conftest.two conftest.dir
2256 if test "${ac_cv_path_install+set}" = set; then
2257 INSTALL=$ac_cv_path_install
2259 # As a last resort, use the slow shell script. Don't cache a
2260 # value for INSTALL within a source directory, because that will
2261 # break other packages using the cache if that directory is
2262 # removed, or if the value is a relative name.
2263 INSTALL=$ac_install_sh
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2267 $as_echo "$INSTALL" >&6; }
2269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2270 # It thinks the first close brace ends the variable substitution.
2271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2278 $as_echo_n "checking whether build environment is sane... " >&6; }
2281 echo timestamp > conftest.file
2282 # Do `set' in a subshell so we don't clobber the current shell's
2283 # arguments. Must try -L first in case configure is actually a
2284 # symlink; some systems play weird games with the mod time of symlinks
2285 # (eg FreeBSD returns the mod time of the symlink's containing
2288 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2289 if test "$*" = "X"; then
2291 set X `ls -t $srcdir/configure conftest.file`
2294 if test "$*" != "X $srcdir/configure conftest.file" \
2295 && test "$*" != "X conftest.file $srcdir/configure"; then
2297 # If neither matched, then we have a broken ls. This can happen
2298 # if, for instance, CONFIG_SHELL is bash and it inherits a
2299 # broken ls alias from the environment. This has actually
2300 # happened. Such a system could not be considered "sane".
2301 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2302 alias in your environment" "$LINENO" 5
2305 test "$2" = conftest.file
2311 as_fn_error "newly created file is older than distributed files!
2312 Check your system clock" "$LINENO" 5
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2315 $as_echo "yes" >&6; }
2316 test "$program_prefix" != NONE &&
2317 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2318 # Use a double $ so make ignores it.
2319 test "$program_suffix" != NONE &&
2320 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2321 # Double any \ or $.
2322 # By default was `s,x,x', remove it if useless.
2323 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2324 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2326 # expand $ac_aux_dir to an absolute path
2327 am_aux_dir=`cd $ac_aux_dir && pwd`
2329 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2330 # Use eval to expand $SHELL
2331 if eval "$MISSING --run true"; then
2332 am_missing_run="$MISSING --run "
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2336 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2340 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2341 if test -z "$MKDIR_P"; then
2342 if test "${ac_cv_path_mkdir+set}" = set; then :
2343 $as_echo_n "(cached) " >&6
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2349 test -z "$as_dir" && as_dir=.
2350 for ac_prog in mkdir gmkdir; do
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2353 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2354 'mkdir (GNU coreutils) '* | \
2355 'mkdir (coreutils) '* | \
2356 'mkdir (fileutils) '4.1*)
2357 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2367 test -d ./--version && rmdir ./--version
2368 if test "${ac_cv_path_mkdir+set}" = set; then
2369 MKDIR_P="$ac_cv_path_mkdir -p"
2371 # As a last resort, use the slow shell script. Don't cache a
2372 # value for MKDIR_P within a source directory, because that will
2373 # break other packages using the cache if that directory is
2374 # removed, or if the value is a relative name.
2375 MKDIR_P="$ac_install_sh -d"
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2379 $as_echo "$MKDIR_P" >&6; }
2383 [\\/$]* | ?:[\\/]*) ;;
2384 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2387 for ac_prog in gawk mawk nawk awk
2389 # Extract the first word of "$ac_prog", so it can be a program name with args.
2390 set dummy $ac_prog; ac_word=$2
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392 $as_echo_n "checking for $ac_word... " >&6; }
2393 if test "${ac_cv_prog_AWK+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
2396 if test -n "$AWK"; then
2397 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406 ac_cv_prog_AWK="$ac_prog"
2407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 if test -n "$AWK"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2419 $as_echo "$AWK" >&6; }
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2422 $as_echo "no" >&6; }
2426 test -n "$AWK" && break
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2430 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2432 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2433 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2436 cat >conftest.make <<\_ACEOF
2439 @echo '@@@%%%=$(MAKE)=@@@%%%'
2441 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2442 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2444 eval ac_cv_prog_make_${ac_make}_set=yes;;
2446 eval ac_cv_prog_make_${ac_make}_set=no;;
2450 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2452 $as_echo "yes" >&6; }
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2456 $as_echo "no" >&6; }
2457 SET_MAKE="MAKE=${MAKE-make}"
2460 rm -rf .tst 2>/dev/null
2461 mkdir .tst 2>/dev/null
2462 if test -d .tst; then
2467 rmdir .tst 2>/dev/null
2469 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2470 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2471 # is not polluted with repeated "-I."
2472 am__isrc=' -I$(srcdir)'
2473 # test to see if srcdir already configured
2474 if test -f $srcdir/config.status; then
2475 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2479 # test whether we have cygpath
2480 if test -z "$CYGPATH_W"; then
2481 if (cygpath --version) >/dev/null 2>/dev/null; then
2482 CYGPATH_W='cygpath -w'
2489 # Define the identity of the package.
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE "$PACKAGE"
2499 cat >>confdefs.h <<_ACEOF
2500 #define VERSION "$VERSION"
2503 # Some tools Automake needs.
2505 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2508 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2511 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2514 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2517 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2519 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2521 # Installed binaries are usually stripped using `strip' when the user
2522 # run `make install-strip'. However `strip' might not be the right
2523 # tool to use in cross-compilation environments, therefore Automake
2524 # will honor the `STRIP' environment variable to overrule this program.
2525 if test "$cross_compiling" != no; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}strip; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if test "${ac_cv_prog_STRIP+set}" = set; then :
2532 $as_echo_n "(cached) " >&6
2534 if test -n "$STRIP"; then
2535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 STRIP=$ac_cv_prog_STRIP
2555 if test -n "$STRIP"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2557 $as_echo "$STRIP" >&6; }
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2565 if test -z "$ac_cv_prog_STRIP"; then
2567 # Extract the first word of "strip", so it can be a program name with args.
2568 set dummy strip; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2572 $as_echo_n "(cached) " >&6
2574 if test -n "$ac_ct_STRIP"; then
2575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_ac_ct_STRIP="strip"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2595 if test -n "$ac_ct_STRIP"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2597 $as_echo "$ac_ct_STRIP" >&6; }
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2603 if test "x$ac_ct_STRIP" = x; then
2606 case $cross_compiling:$ac_tool_warned in
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2610 ac_tool_warned=yes ;;
2615 STRIP="$ac_cv_prog_STRIP"
2619 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2621 # We need awk for the "check" target. The system "awk" is bad on
2623 # Always define AMTAR for backward compatibility.
2625 AMTAR=${AMTAR-"${am_missing_run}tar"}
2627 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2634 ac_config_headers="$ac_config_headers config.h"
2637 # Checks for programs.
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643 if test -n "$ac_tool_prefix"; then
2644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_CC+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 if test -n "$CC"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2674 $as_echo "$CC" >&6; }
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2682 if test -z "$ac_cv_prog_CC"; then
2684 # Extract the first word of "gcc", so it can be a program name with args.
2685 set dummy gcc; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2689 $as_echo_n "(cached) " >&6
2691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_ac_ct_CC="gcc"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712 if test -n "$ac_ct_CC"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2714 $as_echo "$ac_ct_CC" >&6; }
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2720 if test "x$ac_ct_CC" = x; then
2723 case $cross_compiling:$ac_tool_warned in
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727 ac_tool_warned=yes ;;
2735 if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
2737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}cc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_CC+set}" = set; then :
2742 $as_echo_n "(cached) " >&6
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_CC="${ac_tool_prefix}cc"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 if test -n "$CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2776 if test -z "$CC"; then
2777 # Extract the first word of "cc", so it can be a program name with args.
2778 set dummy cc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if test "${ac_cv_prog_CC+set}" = set; then :
2782 $as_echo_n "(cached) " >&6
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2796 ac_prog_rejected=yes
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 if test $ac_prog_rejected = yes; then
2808 # We found a bogon in the path, so make sure we never use it.
2809 set dummy $ac_cv_prog_CC
2811 if test $# != 0; then
2812 # We chose a different compiler from the bogus one.
2813 # However, it has the same basename, so the bogon will be chosen
2814 # first if we set CC to just the basename; use the full file name.
2816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2822 if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2832 if test -z "$CC"; then
2833 if test -n "$ac_tool_prefix"; then
2834 for ac_prog in cl.exe
2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then :
2841 $as_echo_n "(cached) " >&6
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2873 test -n "$CC" && break
2876 if test -z "$CC"; then
2878 for ac_prog in cl.exe
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881 set dummy $ac_prog; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_ac_ct_CC="$ac_prog"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908 if test -n "$ac_ct_CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2910 $as_echo "$ac_ct_CC" >&6; }
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2917 test -n "$ac_ct_CC" && break
2920 if test "x$ac_ct_CC" = x; then
2923 case $cross_compiling:$ac_tool_warned in
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927 ac_tool_warned=yes ;;
2936 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2938 as_fn_error "no acceptable C compiler found in \$PATH
2939 See \`config.log' for more details." "$LINENO" 5; }
2941 # Provide some information about the compiler.
2942 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2945 for ac_option in --version -v -V -qversion; do
2946 { { ac_try="$ac_compiler $ac_option >&5"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952 $as_echo "$ac_try_echo"; } >&5
2953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2955 if test -s conftest.err; then
2957 ... rest of stderr output deleted ...
2958 10q' conftest.err >conftest.er1
2959 cat conftest.er1 >&5
2961 rm -f conftest.er1 conftest.err
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2977 ac_clean_files_save=$ac_clean_files
2978 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2979 # Try to create an executable without -o first, disregard a.out.
2980 # It will help us diagnose broken compilers, and finding out an intuition
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2983 $as_echo_n "checking whether the C compiler works... " >&6; }
2984 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986 # The possible output files:
2987 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2990 for ac_file in $ac_files
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2999 if { { ac_try="$ac_link_default"
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_link_default") 2>&5
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }; then :
3010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3011 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3012 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3013 # so that the user can short-circuit this test for compilers unknown to
3015 for ac_file in $ac_files ''
3017 test -f "$ac_file" || continue
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3022 # We found the default executable, but exeext='' is most
3026 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 # We set ac_cv_exeext here because the later test for it is not
3031 # safe: cross compilers may not add the suffix if given an `-o'
3032 # argument, so we may need to know it at that point already.
3033 # Even if this section looks crufty: it has the advantage of
3040 test "$ac_cv_exeext" = no && ac_cv_exeext=
3045 if test -z "$ac_file"; then :
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 $as_echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 { as_fn_set_status 77
3054 as_fn_error "C compiler cannot create executables
3055 See \`config.log' for more details." "$LINENO" 5; }; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058 $as_echo "yes" >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3061 $as_echo_n "checking for C compiler default output file name... " >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3063 $as_echo "$ac_file" >&6; }
3064 ac_exeext=$ac_cv_exeext
3066 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3067 ac_clean_files=$ac_clean_files_save
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3069 $as_echo_n "checking for suffix of executables... " >&6; }
3070 if { { ac_try="$ac_link"
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_link") 2>&5
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3085 for ac_file in conftest.exe conftest conftest.*; do
3086 test -f "$ac_file" || continue
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error "cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details." "$LINENO" 5; }
3100 rm -f conftest conftest$ac_cv_exeext
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3102 $as_echo "$ac_cv_exeext" >&6; }
3104 rm -f conftest.$ac_ext
3105 EXEEXT=$ac_cv_exeext
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3113 FILE *f = fopen ("conftest.out", "w");
3114 return ferror (f) || fclose (f) != 0;
3120 ac_clean_files="$ac_clean_files conftest.out"
3121 # Check that the compiler produces executables we can run. If not, either
3122 # the compiler is broken, or we cross compile.
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3124 $as_echo_n "checking whether we are cross compiling... " >&6; }
3125 if test "$cross_compiling" != yes; then
3126 { { ac_try="$ac_link"
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") 2>&5
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }
3137 if { ac_try='./conftest$ac_cv_exeext'
3138 { { case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_try") 2>&5
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; }; then
3150 if test "$cross_compiling" = maybe; then
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error "cannot run C compiled programs.
3156 If you meant to cross compile, use \`--host'.
3157 See \`config.log' for more details." "$LINENO" 5; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3162 $as_echo "$cross_compiling" >&6; }
3164 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3165 ac_clean_files=$ac_clean_files_save
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3167 $as_echo_n "checking for suffix of object files... " >&6; }
3168 if test "${ac_cv_objext+set}" = set; then :
3169 $as_echo_n "(cached) " >&6
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3182 rm -f conftest.o conftest.obj
3183 if { { ac_try="$ac_compile"
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compile") 2>&5
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 for ac_file in conftest.o conftest.obj conftest.*; do
3195 test -f "$ac_file" || continue;
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error "cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." "$LINENO" 5; }
3211 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3214 $as_echo "$ac_cv_objext" >&6; }
3215 OBJEXT=$ac_cv_objext
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3218 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3219 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3236 if ac_fn_c_try_compile "$LINENO"; then :
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3246 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3247 if test $ac_compiler_gnu = yes; then
3252 ac_test_CFLAGS=${CFLAGS+set}
3253 ac_save_CFLAGS=$CFLAGS
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3255 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3256 if test "${ac_cv_prog_cc_g+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3259 ac_save_c_werror_flag=$ac_c_werror_flag
3260 ac_c_werror_flag=yes
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3274 if ac_fn_c_try_compile "$LINENO"; then :
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3289 if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3305 if ac_fn_c_try_compile "$LINENO"; then :
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 ac_c_werror_flag=$ac_save_c_werror_flag
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3316 $as_echo "$ac_cv_prog_cc_g" >&6; }
3317 if test "$ac_test_CFLAGS" = set; then
3318 CFLAGS=$ac_save_CFLAGS
3319 elif test $ac_cv_prog_cc_g = yes; then
3320 if test "$GCC" = yes; then
3326 if test "$GCC" = yes; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3333 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3334 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3335 $as_echo_n "(cached) " >&6
3337 ac_cv_prog_cc_c89=no
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3343 #include <sys/types.h>
3344 #include <sys/stat.h>
3345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3346 struct buf { int x; };
3347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3348 static char *e (p, i)
3354 static char *f (char * (*g) (char **, int), char **p, ...)
3359 s = g (p, va_arg (v,int));
3364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3365 function prototypes and stuff, but not '\xHH' hex character constants.
3366 These don't provoke an error unfortunately, instead are silently treated
3367 as 'x'. The following induces an error, until -std is added to get
3368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3369 array size at least. It's necessary to write '\x00'==0 to get something
3370 that's true only with -std. */
3371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3373 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3374 inside strings and character constants. */
3376 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3378 int test (int i, double x);
3379 struct s1 {int (*f) (int a);};
3380 struct s2 {int (*f) (double a);};
3381 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3387 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3392 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3393 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3395 CC="$ac_save_CC $ac_arg"
3396 if ac_fn_c_try_compile "$LINENO"; then :
3397 ac_cv_prog_cc_c89=$ac_arg
3399 rm -f core conftest.err conftest.$ac_objext
3400 test "x$ac_cv_prog_cc_c89" != "xno" && break
3402 rm -f conftest.$ac_ext
3407 case "x$ac_cv_prog_cc_c89" in
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3410 $as_echo "none needed" >&6; } ;;
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3413 $as_echo "unsupported" >&6; } ;;
3415 CC="$CC $ac_cv_prog_cc_c89"
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3417 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3419 if test "x$ac_cv_prog_cc_c89" != xno; then :
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 DEPDIR="${am__leading_dot}deps"
3430 ac_config_commands="$ac_config_commands depfiles"
3433 am_make=${MAKE-make}
3434 cat > confinc << 'END'
3439 # If we don't find an include directive, just comment out the code.
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3441 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3445 # First try GNU make style include.
3446 echo "include confinc" > confmf
3447 # We grep out `Entering directory' and `Leaving directory'
3448 # messages which can occur if `w' ends up in MAKEFLAGS.
3449 # In particular we don't look at `^make:' because GNU make might
3450 # be invoked under some other name (usually "gmake"), in which
3451 # case it prints its new name instead of `make'.
3452 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3457 # Now try BSD make style include.
3458 if test "$am__include" = "#"; then
3459 echo '.include "confinc"' > confmf
3460 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3461 am__include=.include
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3469 $as_echo "$_am_result" >&6; }
3470 rm -f confinc confmf
3472 # Check whether --enable-dependency-tracking was given.
3473 if test "${enable_dependency_tracking+set}" = set; then :
3474 enableval=$enable_dependency_tracking;
3477 if test "x$enable_dependency_tracking" != xno; then
3478 am_depcomp="$ac_aux_dir/depcomp"
3481 if test "x$enable_dependency_tracking" != xno; then
3491 depcc="$CC" am_compiler_list=
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3494 $as_echo_n "checking dependency style of $depcc... " >&6; }
3495 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3498 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3499 # We make a subdir and do the tests there. Otherwise we can end up
3500 # making bogus files that we don't know about and never remove. For
3501 # instance it was reported that on HP-UX the gcc test will end up
3502 # making a dummy file named `D' -- because `-MD' means `put the output
3505 # Copy depcomp to subdir because otherwise we won't find it if we're
3506 # using a relative directory.
3507 cp "$am_depcomp" conftest.dir
3509 # We will build objects and dependencies in a subdirectory because
3510 # it helps to detect inapplicable dependency modes. For instance
3511 # both Tru64's cc and ICC support -MD to output dependencies as a
3512 # side effect of compilation, but ICC will put the dependencies in
3513 # the current directory while Tru64 will put them in the object
3517 am_cv_CC_dependencies_compiler_type=none
3518 if test "$am_compiler_list" = ""; then
3519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3521 for depmode in $am_compiler_list; do
3522 # Setup a source with many dependencies, because some compilers
3523 # like to wrap large dependency lists on column 80 (with \), and
3524 # we should not choose a depcomp mode which is confused by this.
3526 # We need to recreate these files for each test, as the compiler may
3527 # overwrite some of them when testing with obscure command lines.
3528 # This happens at least with the AIX C compiler.
3530 for i in 1 2 3 4 5 6; do
3531 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3532 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3533 # Solaris 8's {/usr,}/bin/sh.
3534 touch sub/conftst$i.h
3536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3540 # after this tag, mechanisms are not by side-effect, so they'll
3541 # only be used when explicitly requested
3542 if test "x$enable_dependency_tracking" = xyes; then
3550 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3551 # mode. It turns out that the SunPro C++ compiler does not properly
3552 # handle `-M -o', and we need to detect this.
3553 if depmode=$depmode \
3554 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3556 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3557 >/dev/null 2>conftest.err &&
3558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3560 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3562 # icc doesn't choke on unknown options, it will just issue warnings
3563 # or remarks (even with -Werror). So we grep stderr for any message
3564 # that says an option was ignored or not supported.
3565 # When given -MP, icc 7.0 and 7.1 complain thusly:
3566 # icc: Command line warning: ignoring option '-M'; no argument required
3567 # The diagnosis changed in icc 8.0:
3568 # icc: Command line remark: option '-MP' not supported
3569 if (grep 'ignoring option' conftest.err ||
3570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3571 am_cv_CC_dependencies_compiler_type=$depmode
3580 am_cv_CC_dependencies_compiler_type=none
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3585 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3586 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3589 test "x$enable_dependency_tracking" != xno \
3590 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3592 am__fastdepCC_FALSE='#'
3594 am__fastdepCC_TRUE='#'
3595 am__fastdepCC_FALSE=
3600 # Checks for libraries.
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
3604 $as_echo_n "checking for main in -lm... " >&6; }
3605 if test "${ac_cv_lib_m_main+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3608 ac_check_lib_save_LIBS=$LIBS
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3622 if ac_fn_c_try_link "$LINENO"; then :
3623 ac_cv_lib_m_main=yes
3627 rm -f core conftest.err conftest.$ac_objext \
3628 conftest$ac_exeext conftest.$ac_ext
3629 LIBS=$ac_check_lib_save_LIBS
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
3632 $as_echo "$ac_cv_lib_m_main" >&6; }
3633 if test "x$ac_cv_lib_m_main" = x""yes; then :
3634 cat >>confdefs.h <<_ACEOF
3643 # Checks for header files.
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3650 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3651 # On Suns, sometimes $CPP names a directory.
3652 if test -n "$CPP" && test -d "$CPP"; then
3655 if test -z "$CPP"; then
3656 if test "${ac_cv_prog_CPP+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
3659 # Double quotes because CPP needs to be expanded
3660 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3663 for ac_c_preproc_warn_flag in '' yes
3665 # Use a header file that comes with gcc, so configuring glibc
3666 # with a fresh cross-compiler works.
3667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668 # <limits.h> exists even on freestanding compilers.
3669 # On the NeXT, cc -E runs the code through the compiler's parser,
3670 # not just through cpp. "Syntax error" is here to catch this case.
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3674 # include <limits.h>
3676 # include <assert.h>
3680 if ac_fn_c_try_cpp "$LINENO"; then :
3683 # Broken: fails on valid input.
3686 rm -f conftest.err conftest.$ac_ext
3688 # OK, works on sane cases. Now check whether nonexistent headers
3689 # can be detected and how.
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3692 #include <ac_nonexistent.h>
3694 if ac_fn_c_try_cpp "$LINENO"; then :
3695 # Broken: success on invalid input.
3698 # Passes both tests.
3702 rm -f conftest.err conftest.$ac_ext
3705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3706 rm -f conftest.err conftest.$ac_ext
3707 if $ac_preproc_ok; then :
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3720 $as_echo "$CPP" >&6; }
3722 for ac_c_preproc_warn_flag in '' yes
3724 # Use a header file that comes with gcc, so configuring glibc
3725 # with a fresh cross-compiler works.
3726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3727 # <limits.h> exists even on freestanding compilers.
3728 # On the NeXT, cc -E runs the code through the compiler's parser,
3729 # not just through cpp. "Syntax error" is here to catch this case.
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3733 # include <limits.h>
3735 # include <assert.h>
3739 if ac_fn_c_try_cpp "$LINENO"; then :
3742 # Broken: fails on valid input.
3745 rm -f conftest.err conftest.$ac_ext
3747 # OK, works on sane cases. Now check whether nonexistent headers
3748 # can be detected and how.
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 #include <ac_nonexistent.h>
3753 if ac_fn_c_try_cpp "$LINENO"; then :
3754 # Broken: success on invalid input.
3757 # Passes both tests.
3761 rm -f conftest.err conftest.$ac_ext
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.$ac_ext
3766 if $ac_preproc_ok; then :
3769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3771 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3772 See \`config.log' for more details." "$LINENO" 5; }
3776 ac_cpp='$CPP $CPPFLAGS'
3777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3783 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3784 if test "${ac_cv_path_GREP+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3787 if test -z "$GREP"; then
3788 ac_path_GREP_found=false
3789 # Loop through the user's path and test for each of PROGNAME-LIST
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3794 test -z "$as_dir" && as_dir=.
3795 for ac_prog in grep ggrep; do
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3798 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3799 # Check for GNU ac_path_GREP and select it if it is found.
3800 # Check for GNU $ac_path_GREP
3801 case `"$ac_path_GREP" --version 2>&1` in
3803 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3806 $as_echo_n 0123456789 >"conftest.in"
3809 cat "conftest.in" "conftest.in" >"conftest.tmp"
3810 mv "conftest.tmp" "conftest.in"
3811 cp "conftest.in" "conftest.nl"
3812 $as_echo 'GREP' >> "conftest.nl"
3813 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3815 as_fn_arith $ac_count + 1 && ac_count=$as_val
3816 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3817 # Best one so far, save it but keep looking for a better one
3818 ac_cv_path_GREP="$ac_path_GREP"
3819 ac_path_GREP_max=$ac_count
3821 # 10*(2^10) chars as input seems more than enough
3822 test $ac_count -gt 10 && break
3824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3827 $ac_path_GREP_found && break 3
3832 if test -z "$ac_cv_path_GREP"; then
3833 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3836 ac_cv_path_GREP=$GREP
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3841 $as_echo "$ac_cv_path_GREP" >&6; }
3842 GREP="$ac_cv_path_GREP"
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3846 $as_echo_n "checking for egrep... " >&6; }
3847 if test "${ac_cv_path_EGREP+set}" = set; then :
3848 $as_echo_n "(cached) " >&6
3850 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3851 then ac_cv_path_EGREP="$GREP -E"
3853 if test -z "$EGREP"; then
3854 ac_path_EGREP_found=false
3855 # Loop through the user's path and test for each of PROGNAME-LIST
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3860 test -z "$as_dir" && as_dir=.
3861 for ac_prog in egrep; do
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3864 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3865 # Check for GNU ac_path_EGREP and select it if it is found.
3866 # Check for GNU $ac_path_EGREP
3867 case `"$ac_path_EGREP" --version 2>&1` in
3869 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3872 $as_echo_n 0123456789 >"conftest.in"
3875 cat "conftest.in" "conftest.in" >"conftest.tmp"
3876 mv "conftest.tmp" "conftest.in"
3877 cp "conftest.in" "conftest.nl"
3878 $as_echo 'EGREP' >> "conftest.nl"
3879 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3881 as_fn_arith $ac_count + 1 && ac_count=$as_val
3882 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3883 # Best one so far, save it but keep looking for a better one
3884 ac_cv_path_EGREP="$ac_path_EGREP"
3885 ac_path_EGREP_max=$ac_count
3887 # 10*(2^10) chars as input seems more than enough
3888 test $ac_count -gt 10 && break
3890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3893 $ac_path_EGREP_found && break 3
3898 if test -z "$ac_cv_path_EGREP"; then
3899 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3902 ac_cv_path_EGREP=$EGREP
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3908 $as_echo "$ac_cv_path_EGREP" >&6; }
3909 EGREP="$ac_cv_path_EGREP"
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3913 $as_echo_n "checking for ANSI C header files... " >&6; }
3914 if test "${ac_cv_header_stdc+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3932 if ac_fn_c_try_compile "$LINENO"; then :
3933 ac_cv_header_stdc=yes
3935 ac_cv_header_stdc=no
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 if test $ac_cv_header_stdc = yes; then
3940 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "memchr" >/dev/null 2>&1; then :
3950 ac_cv_header_stdc=no
3956 if test $ac_cv_header_stdc = yes; then
3957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 $EGREP "free" >/dev/null 2>&1; then :
3967 ac_cv_header_stdc=no
3973 if test $ac_cv_header_stdc = yes; then
3974 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3975 if test "$cross_compiling" = yes; then :
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3982 #if ((' ' & 0x0FF) == 0x020)
3983 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3984 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3986 # define ISLOWER(c) \
3987 (('a' <= (c) && (c) <= 'i') \
3988 || ('j' <= (c) && (c) <= 'r') \
3989 || ('s' <= (c) && (c) <= 'z'))
3990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3998 for (i = 0; i < 256; i++)
3999 if (XOR (islower (i), ISLOWER (i))
4000 || toupper (i) != TOUPPER (i))
4005 if ac_fn_c_try_run "$LINENO"; then :
4008 ac_cv_header_stdc=no
4010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4011 conftest.$ac_objext conftest.beam conftest.$ac_ext
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4017 $as_echo "$ac_cv_header_stdc" >&6; }
4018 if test $ac_cv_header_stdc = yes; then
4020 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4024 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4025 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4026 inttypes.h stdint.h unistd.h
4028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4029 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4031 eval as_val=\$$as_ac_Header
4032 if test "x$as_val" = x""yes; then :
4033 cat >>confdefs.h <<_ACEOF
4034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4042 for ac_header in stdlib.h string.h sys/time.h unistd.h
4044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4045 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4046 eval as_val=\$$as_ac_Header
4047 if test "x$as_val" = x""yes; then :
4048 cat >>confdefs.h <<_ACEOF
4049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4057 # Checks for typedefs, structures, and compiler characteristics.
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4059 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4060 if test "${ac_cv_header_stdbool_h+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4066 #include <stdbool.h>
4068 "error: bool is not defined"
4071 "error: false is not defined"
4074 "error: false is not 0"
4077 "error: true is not defined"
4080 "error: true is not 1"
4082 #ifndef __bool_true_false_are_defined
4083 "error: __bool_true_false_are_defined is not defined"
4086 struct s { _Bool s: 1; _Bool t; } s;
4088 char a[true == 1 ? 1 : -1];
4089 char b[false == 0 ? 1 : -1];
4090 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4091 char d[(bool) 0.5 == true ? 1 : -1];
4093 char f[(_Bool) 0.0 == false ? 1 : -1];
4095 char h[sizeof (_Bool)];
4097 enum { j = false, k = true, l = false * true, m = true * 256 };
4098 /* The following fails for
4099 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4101 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4102 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4103 # if defined __xlc__ || defined __GNUC__
4104 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4105 reported by James Lemley on 2005-10-05; see
4106 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4107 This test is not quite right, since xlc is allowed to
4108 reject this program, as the initializer for xlcbug is
4109 not one of the forms that C requires support for.
4110 However, doing the test right would require a runtime
4111 test, and that would make cross-compilation harder.
4112 Let us hope that IBM fixes the xlc bug, and also adds
4113 support for this kind of constant expression. In the
4114 meantime, this test will reject xlc, which is OK, since
4115 our stdbool.h substitute should suffice. We also test
4116 this with GCC, where it should work, to detect more
4117 quickly whether someone messes up the test in the
4119 char digs[] = "0123456789";
4120 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4122 /* Catch a bug in an HP-UX C compiler. See
4123 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4124 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4135 /* Refer to every declared value, to avoid compiler optimizations. */
4136 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4137 + !m + !n + !o + !p + !q + !pq);
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_cv_header_stdbool_h=yes
4146 ac_cv_header_stdbool_h=no
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4151 $as_echo "$ac_cv_header_stdbool_h" >&6; }
4152 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4153 if test "x$ac_cv_type__Bool" = x""yes; then :
4155 cat >>confdefs.h <<_ACEOF
4156 #define HAVE__BOOL 1
4162 if test $ac_cv_header_stdbool_h = yes; then
4164 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4169 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4170 if test "${ac_cv_c_const+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4179 /* FIXME: Include the comments suggested by Paul. */
4181 /* Ultrix mips cc rejects this. */
4182 typedef int charset[2];
4184 /* SunOS 4.1.1 cc rejects this. */
4185 char const *const *pcpcc;
4187 /* NEC SVR4.0.2 mips cc rejects this. */
4188 struct point {int x, y;};
4189 static struct point const zero = {0,0};
4190 /* AIX XL C 1.02.0.0 rejects this.
4191 It does not let you subtract one const X* pointer from another in
4192 an arm of an if-expression whose if-part is not a constant
4194 const char *g = "string";
4195 pcpcc = &g + (g ? g-g : 0);
4196 /* HPUX 7.0 cc rejects these. */
4198 ppc = (char**) pcpcc;
4199 pcpcc = (char const *const *) ppc;
4200 { /* SCO 3.2v4 cc rejects this. */
4202 char const *s = 0 ? (char *) 0 : (char const *) 0;
4207 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4209 const int *foo = &x[0];
4212 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4213 typedef const int *iptr;
4217 { /* AIX XL C 1.02.0.0 rejects this saying
4218 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4219 struct s { int j; const int *ap[3]; };
4220 struct s *b; b->j = 5;
4222 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4226 return !cs[0] && !zero.x;
4233 if ac_fn_c_try_compile "$LINENO"; then :
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4241 $as_echo "$ac_cv_c_const" >&6; }
4242 if test $ac_cv_c_const = no; then
4244 $as_echo "#define const /**/" >>confdefs.h
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4249 $as_echo_n "checking for inline... " >&6; }
4250 if test "${ac_cv_c_inline+set}" = set; then :
4251 $as_echo_n "(cached) " >&6
4254 for ac_kw in inline __inline__ __inline; do
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4259 static $ac_kw foo_t static_foo () {return 0; }
4260 $ac_kw foo_t foo () {return 0; }
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265 ac_cv_c_inline=$ac_kw
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 test "$ac_cv_c_inline" != no && break
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4273 $as_echo "$ac_cv_c_inline" >&6; }
4275 case $ac_cv_c_inline in
4278 case $ac_cv_c_inline in
4280 *) ac_val=$ac_cv_c_inline;;
4282 cat >>confdefs.h <<_ACEOF
4284 #define inline $ac_val
4290 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4291 if test "x$ac_cv_type_pid_t" = x""yes; then :
4295 cat >>confdefs.h <<_ACEOF
4301 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4302 if test "x$ac_cv_type_size_t" = x""yes; then :
4306 cat >>confdefs.h <<_ACEOF
4307 #define size_t unsigned int
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4313 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4314 if test "${ac_cv_header_time+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319 #include <sys/types.h>
4320 #include <sys/time.h>
4326 if ((struct tm *) 0)
4332 if ac_fn_c_try_compile "$LINENO"; then :
4333 ac_cv_header_time=yes
4335 ac_cv_header_time=no
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4340 $as_echo "$ac_cv_header_time" >&6; }
4341 if test $ac_cv_header_time = yes; then
4343 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4348 # Checks for library functions.
4349 for ac_header in vfork.h
4351 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4352 if test "x$ac_cv_header_vfork_h" = x""yes; then :
4353 cat >>confdefs.h <<_ACEOF
4354 #define HAVE_VFORK_H 1
4361 for ac_func in fork vfork
4363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4364 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4365 eval as_val=\$$as_ac_var
4366 if test "x$as_val" = x""yes; then :
4367 cat >>confdefs.h <<_ACEOF
4368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4374 if test "x$ac_cv_func_fork" = xyes; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4376 $as_echo_n "checking for working fork... " >&6; }
4377 if test "${ac_cv_func_fork_works+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4380 if test "$cross_compiling" = yes; then :
4381 ac_cv_func_fork_works=cross
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 $ac_includes_default
4390 /* By Ruediger Kuhlmann. */
4397 if ac_fn_c_try_run "$LINENO"; then :
4398 ac_cv_func_fork_works=yes
4400 ac_cv_func_fork_works=no
4402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4403 conftest.$ac_objext conftest.beam conftest.$ac_ext
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4408 $as_echo "$ac_cv_func_fork_works" >&6; }
4411 ac_cv_func_fork_works=$ac_cv_func_fork
4413 if test "x$ac_cv_func_fork_works" = xcross; then
4415 *-*-amigaos* | *-*-msdosdjgpp*)
4416 # Override, as these systems have only a dummy fork() stub
4417 ac_cv_func_fork_works=no
4420 ac_cv_func_fork_works=yes
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4424 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4426 ac_cv_func_vfork_works=$ac_cv_func_vfork
4427 if test "x$ac_cv_func_vfork" = xyes; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4429 $as_echo_n "checking for working vfork... " >&6; }
4430 if test "${ac_cv_func_vfork_works+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4433 if test "$cross_compiling" = yes; then :
4434 ac_cv_func_vfork_works=cross
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 /* Thanks to Paul Eggert for this test. */
4439 $ac_includes_default
4440 #include <sys/wait.h>
4444 /* On some sparc systems, changes by the child to local and incoming
4445 argument registers are propagated back to the parent. The compiler
4446 is told about this with #include <vfork.h>, but some compilers
4447 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4448 static variable whose address is put into a register that is
4449 clobbered by the vfork. */
4452 sparc_address_test (int arg)
4454 sparc_address_test (arg) int arg;
4475 pid_t parent = getpid ();
4478 sparc_address_test (0);
4483 /* Here is another test for sparc vfork register problems. This
4484 test uses lots of local variables, at least as many local
4485 variables as main has allocated so far including compiler
4486 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4487 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4488 reuse the register of parent for one of the local variables,
4489 since it will think that parent can't possibly be used any more
4490 in this routine. Assigning to the local variable will thus
4491 munge parent in the parent process. */
4493 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4494 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4495 /* Convince the compiler that p..p7 are live; otherwise, it might
4496 use the same hardware register for all 8 local variables. */
4497 if (p != p1 || p != p2 || p != p3 || p != p4
4498 || p != p5 || p != p6 || p != p7)
4501 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4502 from child file descriptors. If the child closes a descriptor
4503 before it execs or exits, this munges the parent's descriptor
4504 as well. Test for this by closing stdout in the child. */
4505 _exit(close(fileno(stdout)) != 0);
4510 while (wait(&status) != child)
4513 /* Was there some problem with vforking? */
4516 /* Did the child fail? (This shouldn't happen.) */
4519 /* Did the vfork/compiler bug occur? */
4520 || parent != getpid()
4522 /* Did the file descriptor bug occur? */
4523 || fstat(fileno(stdout), &st) != 0
4528 if ac_fn_c_try_run "$LINENO"; then :
4529 ac_cv_func_vfork_works=yes
4531 ac_cv_func_vfork_works=no
4533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4534 conftest.$ac_objext conftest.beam conftest.$ac_ext
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
4539 $as_echo "$ac_cv_func_vfork_works" >&6; }
4542 if test "x$ac_cv_func_fork_works" = xcross; then
4543 ac_cv_func_vfork_works=$ac_cv_func_vfork
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4545 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4548 if test "x$ac_cv_func_vfork_works" = xyes; then
4550 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
4554 $as_echo "#define vfork fork" >>confdefs.h
4557 if test "x$ac_cv_func_fork_works" = xyes; then
4559 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
4563 for ac_header in stdlib.h
4565 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4566 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4567 cat >>confdefs.h <<_ACEOF
4568 #define HAVE_STDLIB_H 1
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4576 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4577 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4580 if test "$cross_compiling" = yes; then :
4581 ac_cv_func_malloc_0_nonnull=no
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4586 # include <stdlib.h>
4594 return ! malloc (0);
4599 if ac_fn_c_try_run "$LINENO"; then :
4600 ac_cv_func_malloc_0_nonnull=yes
4602 ac_cv_func_malloc_0_nonnull=no
4604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4605 conftest.$ac_objext conftest.beam conftest.$ac_ext
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4610 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4611 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4613 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4616 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4618 case " $LIBOBJS " in
4619 *" malloc.$ac_objext "* ) ;;
4620 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4625 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4630 for ac_header in stdlib.h
4632 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4633 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4634 cat >>confdefs.h <<_ACEOF
4635 #define HAVE_STDLIB_H 1
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4643 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4644 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4647 if test "$cross_compiling" = yes; then :
4648 ac_cv_func_realloc_0_nonnull=no
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4653 # include <stdlib.h>
4661 return ! realloc (0, 0);
4666 if ac_fn_c_try_run "$LINENO"; then :
4667 ac_cv_func_realloc_0_nonnull=yes
4669 ac_cv_func_realloc_0_nonnull=no
4671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4672 conftest.$ac_objext conftest.beam conftest.$ac_ext
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4677 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4678 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4680 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4683 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4685 case " $LIBOBJS " in
4686 *" realloc.$ac_objext "* ) ;;
4687 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4692 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4697 for ac_header in sys/select.h sys/socket.h
4699 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4700 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4701 eval as_val=\$$as_ac_Header
4702 if test "x$as_val" = x""yes; then :
4703 cat >>confdefs.h <<_ACEOF
4704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
4712 $as_echo_n "checking types of arguments for select... " >&6; }
4713 if test "${ac_cv_func_select_args+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
4716 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
4717 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
4718 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 $ac_includes_default
4722 #ifdef HAVE_SYS_SELECT_H
4723 # include <sys/select.h>
4725 #ifdef HAVE_SYS_SOCKET_H
4726 # include <sys/socket.h>
4732 extern int select ($ac_arg1,
4733 $ac_arg234, $ac_arg234, $ac_arg234,
4739 if ac_fn_c_try_compile "$LINENO"; then :
4740 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 # Provide a safe default value.
4747 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
4751 $as_echo "$ac_cv_func_select_args" >&6; }
4752 ac_save_IFS=$IFS; IFS=','
4753 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
4757 cat >>confdefs.h <<_ACEOF
4758 #define SELECT_TYPE_ARG1 $1
4762 cat >>confdefs.h <<_ACEOF
4763 #define SELECT_TYPE_ARG234 ($2)
4767 cat >>confdefs.h <<_ACEOF
4768 #define SELECT_TYPE_ARG5 ($3)
4773 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4776 ac_cv_func_setvbuf_reversed=no
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4781 $as_echo_n "checking return type of signal handlers... " >&6; }
4782 if test "${ac_cv_type_signal+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787 #include <sys/types.h>
4793 return *(signal (0, 0)) (0) == 1;
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_type_signal=int
4801 ac_cv_type_signal=void
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4806 $as_echo "$ac_cv_type_signal" >&6; }
4808 cat >>confdefs.h <<_ACEOF
4809 #define RETSIGTYPE $ac_cv_type_signal
4813 for ac_func in vprintf
4815 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
4816 if test "x$ac_cv_func_vprintf" = x""yes; then :
4817 cat >>confdefs.h <<_ACEOF
4818 #define HAVE_VPRINTF 1
4821 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
4822 if test "x$ac_cv_func__doprnt" = x""yes; then :
4824 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
4832 for ac_func in dup2 floor gettimeofday memchr memmove select strchr strdup strerror strstr
4834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4836 eval as_val=\$$as_ac_var
4837 if test "x$as_val" = x""yes; then :
4838 cat >>confdefs.h <<_ACEOF
4839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4847 ac_config_files="$ac_config_files Makefile"
4849 cat >confcache <<\_ACEOF
4850 # This file is a shell script that caches the results of configure
4851 # tests run on this system so they can be shared between configure
4852 # scripts and configure runs, see configure's option --config-cache.
4853 # It is not useful on other systems. If it contains results you don't
4854 # want to keep, you may remove or edit it.
4856 # config.status only pays attention to the cache file if you give it
4857 # the --recheck option to rerun configure.
4859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4865 # The following way of writing the cache mishandles newlines in values,
4866 # but we know of no workaround that is simple, portable, and efficient.
4867 # So, we kill variables containing newlines.
4868 # Ultrix sh set writes to stderr and can't be redirected directly,
4869 # and sets the high bit in the cache file unless we assign to the vars.
4871 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4872 eval ac_val=\$$ac_var
4876 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4877 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4880 _ | IFS | as_nl) ;; #(
4881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4882 *) { eval $ac_var=; unset $ac_var;} ;;
4888 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4889 *${as_nl}ac_space=\ *)
4890 # `set' does not quote correctly, so add quotes: double-quote
4891 # substitution turns \\\\ into \\, and sed turns \\ into \.
4894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4897 # `set' quotes correctly as required by POSIX, so do not add quotes.
4898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4907 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4909 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4911 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4912 if test -w "$cache_file"; then
4913 test "x$cache_file" != "x/dev/null" &&
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4915 $as_echo "$as_me: updating cache $cache_file" >&6;}
4916 cat confcache >$cache_file
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4919 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4925 # Let make expand exec_prefix.
4926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4928 DEFS=-DHAVE_CONFIG_H
4932 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4933 # 1. Remove the extension, and $U if already installed.
4934 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4935 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4936 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4937 # will be set to the directory where LIBOBJS objects are built.
4938 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4939 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4943 LTLIBOBJS=$ac_ltlibobjs
4946 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4947 as_fn_error "conditional \"AMDEP\" was never defined.
4948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4950 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4951 as_fn_error "conditional \"am__fastdepCC\" was never defined.
4952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4955 : ${CONFIG_STATUS=./config.status}
4957 ac_clean_files_save=$ac_clean_files
4958 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4960 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4962 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4964 # Generated by $as_me.
4965 # Run this file to recreate the current configuration.
4966 # Compiler output produced by configure, useful for debugging
4967 # configure, is in config.log if it exists.
4973 SHELL=\${CONFIG_SHELL-$SHELL}
4976 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4977 ## -------------------- ##
4978 ## M4sh Initialization. ##
4979 ## -------------------- ##
4981 # Be more Bourne compatible
4982 DUALCASE=1; export DUALCASE # for MKS sh
4983 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4986 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4987 # is contrary to our usage. Disable this feature.
4988 alias -g '${1+"$@"}'='"$@"'
4989 setopt NO_GLOB_SUBST
4991 case `(set -o) 2>/dev/null` in #(
5003 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5004 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5005 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5006 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5007 # Prefer a ksh shell builtin over an external printf program on Solaris,
5008 # but without wasting forks for bash or zsh.
5009 if test -z "$BASH_VERSION$ZSH_VERSION" \
5010 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5011 as_echo='print -r --'
5012 as_echo_n='print -rn --'
5013 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5014 as_echo='printf %s\n'
5015 as_echo_n='printf %s'
5017 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5018 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5019 as_echo_n='/usr/ucb/echo -n'
5021 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5022 as_echo_n_body='eval
5026 expr "X$arg" : "X\\(.*\\)$as_nl";
5027 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5029 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5031 export as_echo_n_body
5032 as_echo_n='sh -c $as_echo_n_body as_echo'
5035 as_echo='sh -c $as_echo_body as_echo'
5038 # The user is always right.
5039 if test "${PATH_SEPARATOR+set}" != set; then
5041 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5042 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5049 # We need space, tab and new line, in precisely that order. Quoting is
5050 # there to prevent editors from complaining about space-tab.
5051 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5052 # splitting by setting IFS to empty value.)
5055 # Find who we are. Look in the path if we contain no directory separator.
5057 *[\\/]* ) as_myself=$0 ;;
5058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir=.
5063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5069 # We did not find ourselves, most probably we were run as `sh COMMAND'
5070 # in which case we are not to be found in the path.
5071 if test "x$as_myself" = x; then
5074 if test ! -f "$as_myself"; then
5075 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5079 # Unset variables that we do not need and which cause bugs (e.g. in
5080 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5081 # suppresses any "Segmentation fault" message there. '((' could
5082 # trigger a bug in pdksh 5.2.14.
5083 for as_var in BASH_ENV ENV MAIL MAILPATH
5084 do eval test x\${$as_var+set} = xset \
5085 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5098 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5101 # as_fn_error ERROR [LINENO LOG_FD]
5102 # ---------------------------------
5103 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5104 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5105 # script with status $?, using 1 if that was 0.
5108 as_status=$?; test $as_status -eq 0 && as_status=1
5110 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5111 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5113 $as_echo "$as_me: error: $1" >&2
5114 as_fn_exit $as_status
5118 # as_fn_set_status STATUS
5119 # -----------------------
5120 # Set $? to STATUS, without forking.
5124 } # as_fn_set_status
5128 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5138 # Portably unset VAR.
5141 { eval $1=; unset $1;}
5143 as_unset=as_fn_unset
5144 # as_fn_append VAR VALUE
5145 # ----------------------
5146 # Append the text in VALUE to the end of the definition contained in VAR. Take
5147 # advantage of any shell optimizations that allow amortized linear growth over
5148 # repeated appends, instead of the typical quadratic growth present in naive
5150 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5151 eval 'as_fn_append ()
5162 # as_fn_arith ARG...
5163 # ------------------
5164 # Perform arithmetic evaluation on the ARGs, and store the result in the
5165 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5166 # must be portable across $(()) and expr.
5167 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5168 eval 'as_fn_arith ()
5175 as_val=`expr "$@" || test $? -eq 1`
5180 if expr a : '\(a\)' >/dev/null 2>&1 &&
5181 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5187 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5188 as_basename=basename
5193 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5199 as_me=`$as_basename -- "$0" ||
5200 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5201 X"$0" : 'X\(//\)$' \| \
5202 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5204 sed '/^.*\/\([^/][^/]*\)\/*$/{
5218 # Avoid depending upon Character Ranges.
5219 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5220 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5221 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5222 as_cr_digits='0123456789'
5223 as_cr_alnum=$as_cr_Letters$as_cr_digits
5225 ECHO_C= ECHO_N= ECHO_T=
5226 case `echo -n x` in #(((((
5228 case `echo 'xy\c'` in
5229 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5231 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5238 rm -f conf$$ conf$$.exe conf$$.file
5239 if test -d conf$$.dir; then
5240 rm -f conf$$.dir/conf$$.file
5243 mkdir conf$$.dir 2>/dev/null
5245 if (echo >conf$$.file) 2>/dev/null; then
5246 if ln -s conf$$.file conf$$ 2>/dev/null; then
5248 # ... but there are two gotchas:
5249 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5250 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5251 # In both cases, we have to default to `cp -p'.
5252 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5254 elif ln conf$$.file conf$$ 2>/dev/null; then
5262 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5263 rmdir conf$$.dir 2>/dev/null
5268 # Create "$as_dir" as a directory, including parents if necessary.
5273 -*) as_dir=./$as_dir;;
5275 test -d "$as_dir" || eval $as_mkdir_p || {
5279 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5280 *) as_qdir=$as_dir;;
5282 as_dirs="'$as_qdir' $as_dirs"
5283 as_dir=`$as_dirname -- "$as_dir" ||
5284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5285 X"$as_dir" : 'X\(//\)[^/]' \| \
5286 X"$as_dir" : 'X\(//\)$' \| \
5287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5288 $as_echo X"$as_dir" |
5289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5306 test -d "$as_dir" && break
5308 test -z "$as_dirs" || eval "mkdir $as_dirs"
5309 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5313 if mkdir -p . 2>/dev/null; then
5314 as_mkdir_p='mkdir -p "$as_dir"'
5316 test -d ./-p && rmdir ./-p
5320 if test -x / >/dev/null 2>&1; then
5323 if ls -dL / >/dev/null 2>&1; then
5330 if test -d "$1"; then
5336 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5337 ???[sx]*):;;*)false;;esac;fi
5341 as_executable_p=$as_test_x
5343 # Sed expression to map a string onto a valid CPP name.
5344 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5346 # Sed expression to map a string onto a valid variable name.
5347 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5351 ## ----------------------------------- ##
5352 ## Main body of $CONFIG_STATUS script. ##
5353 ## ----------------------------------- ##
5355 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5358 # Save the log message, to keep $0 and so on meaningful, and to
5359 # report actual input values of CONFIG_FILES etc. instead of their
5360 # values after options handling.
5362 This file was extended by polyglot $as_me 2.0.3, which was
5363 generated by GNU Autoconf 2.65. Invocation command line was
5365 CONFIG_FILES = $CONFIG_FILES
5366 CONFIG_HEADERS = $CONFIG_HEADERS
5367 CONFIG_LINKS = $CONFIG_LINKS
5368 CONFIG_COMMANDS = $CONFIG_COMMANDS
5371 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5376 case $ac_config_files in *"
5377 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5380 case $ac_config_headers in *"
5381 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5386 # Files that config.status was made for.
5387 config_files="$ac_config_files"
5388 config_headers="$ac_config_headers"
5389 config_commands="$ac_config_commands"
5393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5395 \`$as_me' instantiates files and other configuration actions
5396 from templates according to the current configuration. Unless the files
5397 and actions are specified as TAGs, all are instantiated by default.
5399 Usage: $0 [OPTION]... [TAG]...
5401 -h, --help print this help, then exit
5402 -V, --version print version number and configuration settings, then exit
5403 --config print configuration, then exit
5404 -q, --quiet, --silent
5405 do not print progress messages
5406 -d, --debug don't remove temporary files
5407 --recheck update $as_me by reconfiguring in the same conditions
5408 --file=FILE[:TEMPLATE]
5409 instantiate the configuration file FILE
5410 --header=FILE[:TEMPLATE]
5411 instantiate the configuration header FILE
5413 Configuration files:
5416 Configuration headers:
5419 Configuration commands:
5422 Report bugs to <bug-xboard@gnu.org>."
5425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5426 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5428 polyglot config.status 2.0.3
5429 configured by $0, generated by GNU Autoconf 2.65,
5430 with options \\"\$ac_cs_config\\"
5432 Copyright (C) 2009 Free Software Foundation, Inc.
5433 This config.status script is free software; the Free Software Foundation
5434 gives unlimited permission to copy, distribute and modify it."
5441 test -n "\$AWK" || AWK=awk
5444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5445 # The default lists apply if the user does not specify any file.
5451 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5452 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5463 # Handling of the options.
5464 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5466 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5467 $as_echo "$ac_cs_version"; exit ;;
5468 --config | --confi | --conf | --con | --co | --c )
5469 $as_echo "$ac_cs_config"; exit ;;
5470 --debug | --debu | --deb | --de | --d | -d )
5472 --file | --fil | --fi | --f )
5475 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5477 as_fn_append CONFIG_FILES " '$ac_optarg'"
5478 ac_need_defaults=false;;
5479 --header | --heade | --head | --hea )
5482 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5484 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5485 ac_need_defaults=false;;
5487 # Conflict between --help and --header
5488 as_fn_error "ambiguous option: \`$1'
5489 Try \`$0 --help' for more information.";;
5490 --help | --hel | -h )
5491 $as_echo "$ac_cs_usage"; exit ;;
5492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5493 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5497 -*) as_fn_error "unrecognized option: \`$1'
5498 Try \`$0 --help' for more information." ;;
5500 *) as_fn_append ac_config_targets " $1"
5501 ac_need_defaults=false ;;
5507 ac_configure_extra_args=
5509 if $ac_cs_silent; then
5511 ac_configure_extra_args="$ac_configure_extra_args --silent"
5515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5516 if \$ac_cs_recheck; then
5517 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5519 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5520 CONFIG_SHELL='$SHELL'
5526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5530 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5531 ## Running $as_me. ##
5537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5541 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5547 # Handling of arguments.
5548 for ac_config_target in $ac_config_targets
5550 case $ac_config_target in
5551 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5552 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5553 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5555 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5560 # If the user did not use the arguments to specify the items to instantiate,
5561 # then the envvar interface is used. Set only those that are not.
5562 # We use the long form for the default assignment because of an extremely
5563 # bizarre bug on SunOS 4.1.3.
5564 if $ac_need_defaults; then
5565 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5566 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5567 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5570 # Have a temporary directory for convenience. Make it in the build tree
5571 # simply because there is no reason against having it here, and in addition,
5572 # creating and moving files from /tmp can sometimes cause problems.
5573 # Hook for its removal unless debugging.
5574 # Note that there is a small window in which the directory will not be cleaned:
5575 # after its creation but before its name has been assigned to `$tmp'.
5579 trap 'exit_status=$?
5580 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5582 trap 'as_fn_exit 1' 1 2 13 15
5584 # Create a (secure) tmp directory for tmp files.
5587 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5588 test -n "$tmp" && test -d "$tmp"
5591 tmp=./conf$$-$RANDOM
5592 (umask 077 && mkdir "$tmp")
5593 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5595 # Set up the scripts for CONFIG_FILES section.
5596 # No need to generate them if there are no CONFIG_FILES.
5597 # This happens for instance with `./config.status config.h'.
5598 if test -n "$CONFIG_FILES"; then
5601 ac_cr=`echo X | tr X '\015'`
5602 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5603 # But we know of no other shell where ac_cr would be empty at this
5604 # point, so we can use a bashism as a fallback.
5605 if test "x$ac_cr" = x; then
5606 eval ac_cr=\$\'\\r\'
5608 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5609 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5615 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5620 echo "cat >conf$$subs.awk <<_ACEOF" &&
5621 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5624 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5625 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5627 for ac_last_try in false false false false false :; do
5628 . ./conf$$subs.sh ||
5629 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5631 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5632 if test $ac_delim_n = $ac_delim_num; then
5634 elif $ac_last_try; then
5635 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5637 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5643 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5647 s/^/S["/; s/!.*/"]=/
5657 s/\(.\{148\}\)..*/\1/
5659 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5664 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5671 s/\(.\{148\}\)..*/\1/
5673 s/["\\]/\\&/g; s/^/"/; s/$/"/
5677 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5682 ' <conf$$subs.awk | sed '
5687 ' >>$CONFIG_STATUS || ac_write_fail=1
5688 rm -f conf$$subs.awk
5689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5691 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5692 for (key in S) S_is_set[key] = 1
5698 nfields = split(line, field, "@")
5700 len = length(field[1])
5701 for (i = 2; i < nfields; i++) {
5703 keylen = length(key)
5704 if (S_is_set[key]) {
5706 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5707 len += length(value) + length(field[++i])
5718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5719 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5720 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5723 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5724 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5727 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5728 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5729 # trailing colons and then remove the whole line if VPATH becomes empty
5730 # (actually we leave an empty line to preserve line numbers).
5731 if test "x$srcdir" = x.; then
5732 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5736 s/^\([^=]*=[ ]*\):*/\1/
5742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5743 fi # test -n "$CONFIG_FILES"
5745 # Set up the scripts for CONFIG_HEADERS section.
5746 # No need to generate them if there are no CONFIG_HEADERS.
5747 # This happens for instance with `./config.status Makefile'.
5748 if test -n "$CONFIG_HEADERS"; then
5749 cat >"$tmp/defines.awk" <<\_ACAWK ||
5753 # Transform confdefs.h into an awk script `defines.awk', embedded as
5754 # here-document in config.status, that substitutes the proper values into
5755 # config.h.in to produce config.h.
5757 # Create a delimiter string that does not exist in confdefs.h, to ease
5758 # handling of long lines.
5760 for ac_last_try in false false :; do
5761 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5762 if test -z "$ac_t"; then
5764 elif $ac_last_try; then
5765 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5771 # For the awk script, D is an array of macro values keyed by name,
5772 # likewise P contains macro parameters if any. Preserve backslash
5773 # newline sequences.
5775 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5777 s/.\{148\}/&'"$ac_delim"'/g
5780 s/^[ ]*#[ ]*define[ ][ ]*/ /
5787 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5789 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5793 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5794 D["\1"]=" \3\\\\\\n"\\/p
5796 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5801 s/.\{148\}/&'"$ac_delim"'/g
5806 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5809 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5811 ' <confdefs.h | sed '
5812 s/'"$ac_delim"'/"\\\
5813 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5816 for (key in D) D_is_set[key] = 1
5819 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5821 split(line, arg, " ")
5822 if (arg[1] == "#") {
5826 defundef = substr(arg[1], 2)
5829 split(mac1, mac2, "(") #)
5831 prefix = substr(line, 1, index(line, defundef) - 1)
5832 if (D_is_set[macro]) {
5833 # Preserve the white space surrounding the "#".
5834 print prefix "define", macro P[macro] D[macro]
5837 # Replace #undef with comments. This is necessary, for example,
5838 # in the case of _POSIX_SOURCE, which is predefined and required
5839 # on some systems where configure will not decide to define it.
5840 if (defundef == "undef") {
5841 print "/*", prefix defundef, macro, "*/"
5849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5850 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5851 fi # test -n "$CONFIG_HEADERS"
5854 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5859 :[FHLC]) ac_mode=$ac_tag; continue;;
5861 case $ac_mode$ac_tag in
5863 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5864 :[FH]-) ac_tag=-:-;;
5865 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5882 -) ac_f="$tmp/stdin";;
5883 *) # Look for the file first in the build tree, then in the source tree
5884 # (if the path is not absolute). The absolute path cannot be DOS-style,
5885 # because $ac_f cannot contain `:'.
5889 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5891 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5893 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5894 as_fn_append ac_file_inputs " '$ac_f'"
5897 # Let's still pretend it is `configure' which instantiates (i.e., don't
5898 # use $as_me), people would be surprised to read:
5899 # /* config.h. Generated by config.status. */
5900 configure_input='Generated from '`
5901 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5903 if test x"$ac_file" != x-; then
5904 configure_input="$ac_file. $configure_input"
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5906 $as_echo "$as_me: creating $ac_file" >&6;}
5908 # Neutralize special characters interpreted by sed in replacement strings.
5909 case $configure_input in #(
5910 *\&* | *\|* | *\\* )
5911 ac_sed_conf_input=`$as_echo "$configure_input" |
5912 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5913 *) ac_sed_conf_input=$configure_input;;
5917 *:-:* | *:-) cat >"$tmp/stdin" \
5918 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5923 ac_dir=`$as_dirname -- "$ac_file" ||
5924 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5925 X"$ac_file" : 'X\(//\)[^/]' \| \
5926 X"$ac_file" : 'X\(//\)$' \| \
5927 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5928 $as_echo X"$ac_file" |
5929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5946 as_dir="$ac_dir"; as_fn_mkdir_p
5950 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5952 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5953 # A ".." for each directory in $ac_dir_suffix.
5954 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5955 case $ac_top_builddir_sub in
5956 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5957 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5960 ac_abs_top_builddir=$ac_pwd
5961 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5962 # for backward compatibility:
5963 ac_top_builddir=$ac_top_build_prefix
5966 .) # We are building in place.
5968 ac_top_srcdir=$ac_top_builddir_sub
5969 ac_abs_top_srcdir=$ac_pwd ;;
5970 [\\/]* | ?:[\\/]* ) # Absolute name.
5971 ac_srcdir=$srcdir$ac_dir_suffix;
5972 ac_top_srcdir=$srcdir
5973 ac_abs_top_srcdir=$srcdir ;;
5975 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5976 ac_top_srcdir=$ac_top_build_prefix$srcdir
5977 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5979 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5989 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5990 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5994 [\\/$]* | ?:[\\/]* ) ;;
5995 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6000 # If the template does not know about datarootdir, expand it.
6001 # FIXME: This hack should be removed a few years after 2.60.
6002 ac_datarootdir_hack=; ac_datarootdir_seen=
6013 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6014 *datarootdir*) ac_datarootdir_seen=yes;;
6015 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6017 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6020 ac_datarootdir_hack='
6021 s&@datadir@&$datadir&g
6022 s&@docdir@&$docdir&g
6023 s&@infodir@&$infodir&g
6024 s&@localedir@&$localedir&g
6025 s&@mandir@&$mandir&g
6026 s&\\\${datarootdir}&$datarootdir&g' ;;
6030 # Neutralize VPATH when `$srcdir' = `.'.
6031 # Shell code in configure.ac might set extrasub.
6032 # FIXME: do we really want to maintain this feature?
6033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6034 ac_sed_extra="$ac_vpsub
6037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6039 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6040 s|@configure_input@|$ac_sed_conf_input|;t t
6041 s&@top_builddir@&$ac_top_builddir_sub&;t t
6042 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6043 s&@srcdir@&$ac_srcdir&;t t
6044 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6045 s&@top_srcdir@&$ac_top_srcdir&;t t
6046 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6047 s&@builddir@&$ac_builddir&;t t
6048 s&@abs_builddir@&$ac_abs_builddir&;t t
6049 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6050 s&@INSTALL@&$ac_INSTALL&;t t
6051 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6052 $ac_datarootdir_hack
6054 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6055 || as_fn_error "could not create $ac_file" "$LINENO" 5
6057 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6058 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6059 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6061 which seems to be undefined. Please make sure it is defined." >&5
6062 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6063 which seems to be undefined. Please make sure it is defined." >&2;}
6067 -) cat "$tmp/out" && rm -f "$tmp/out";;
6068 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6070 || as_fn_error "could not create $ac_file" "$LINENO" 5
6076 if test x"$ac_file" != x-; then
6078 $as_echo "/* $configure_input */" \
6079 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6080 } >"$tmp/config.h" \
6081 || as_fn_error "could not create $ac_file" "$LINENO" 5
6082 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6084 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6087 mv "$tmp/config.h" "$ac_file" \
6088 || as_fn_error "could not create $ac_file" "$LINENO" 5
6091 $as_echo "/* $configure_input */" \
6092 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6093 || as_fn_error "could not create -" "$LINENO" 5
6095 # Compute "$ac_file"'s index in $config_headers.
6098 for _am_header in $config_headers :; do
6100 $_am_arg | $_am_arg:* )
6103 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6106 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6107 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6108 X"$_am_arg" : 'X\(//\)[^/]' \| \
6109 X"$_am_arg" : 'X\(//\)$' \| \
6110 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6111 $as_echo X"$_am_arg" |
6112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6128 s/.*/./; q'`/stamp-h$_am_stamp_count
6131 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6132 $as_echo "$as_me: executing $ac_file commands" >&6;}
6137 case $ac_file$ac_mode in
6138 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6139 # Strip MF so we end up with the name of the file.
6140 mf=`echo "$mf" | sed -e 's/:.*$//'`
6141 # Check whether this is an Automake generated Makefile or not.
6142 # We used to match only the files named `Makefile.in', but
6143 # some people rename them; so instead we look at the file content.
6144 # Grep'ing the first line is not enough: some people post-process
6145 # each Makefile.in and add a new line on top of each file to say so.
6146 # Grep'ing the whole file is not good either: AIX grep has a line
6147 # limit of 2048, but all sed's we know have understand at least 4000.
6148 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6149 dirpart=`$as_dirname -- "$mf" ||
6150 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6151 X"$mf" : 'X\(//\)[^/]' \| \
6152 X"$mf" : 'X\(//\)$' \| \
6153 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6175 # Extract the definition of DEPDIR, am__include, and am__quote
6176 # from the Makefile without running `make'.
6177 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6178 test -z "$DEPDIR" && continue
6179 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6180 test -z "am__include" && continue
6181 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6182 # When using ansi2knr, U may be empty or an underscore; expand it
6183 U=`sed -n 's/^U = //p' < "$mf"`
6184 # Find all dependency output files, they are included files with
6185 # $(DEPDIR) in their names. We invoke sed twice because it is the
6186 # simplest approach to changing $(DEPDIR) to its actual value in the
6188 for file in `sed -n "
6189 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6190 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6191 # Make sure the directory exists.
6192 test -f "$dirpart/$file" && continue
6193 fdir=`$as_dirname -- "$file" ||
6194 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6195 X"$file" : 'X\(//\)[^/]' \| \
6196 X"$file" : 'X\(//\)$' \| \
6197 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6216 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6217 # echo "creating $dirpart/$file"
6218 echo '# dummy' > "$dirpart/$file"
6229 ac_clean_files=$ac_clean_files_save
6231 test $ac_write_fail = 0 ||
6232 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6235 # configure is writing to config.log, and then calls config.status.
6236 # config.status does its own redirection, appending to config.log.
6237 # Unfortunately, on DOS this fails, as config.log is still kept open
6238 # by configure, so config.status won't be able to write to it; its
6239 # output is simply discarded. So we exec the FD to /dev/null,
6240 # effectively closing config.log, so it can be properly (re)opened and
6241 # appended to by config.status. When coming back to configure, we
6242 # need to make the FD available again.
6243 if test "$no_create" != yes; then
6245 ac_config_status_args=
6246 test "$silent" = yes &&
6247 ac_config_status_args="$ac_config_status_args --quiet"
6249 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6251 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6252 # would make configure fail if this is the last instruction.
6253 $ac_cs_success || as_fn_exit $?
6255 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6257 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}