2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
666 INSTALL_STRIP_PROGRAM
675 MAINTAINER_MODE_FALSE
708 am__fastdepCC_FOR_BUILD_TRUE
709 am__fastdepCC_FOR_BUILD_FALSE
729 am__fastdepOBJC_FALSE
757 GLIB_FOR_BUILD_CFLAGS
834 ac_precious_vars='build_alias
859 GLIB_FOR_BUILD_CFLAGS
875 # Initialize some variables set by options.
877 ac_init_version=false
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
887 program_transform_name=s,x,x,
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE}'
912 infodir='${datarootdir}/info'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
927 eval $ac_prev=\$ac_option
933 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937 # Accept the important Cygnus configure options, so we can diagnose typos.
939 case $ac_dashdash$ac_option in
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948 -build | --build | --buil | --bui | --bu)
949 ac_prev=build_alias ;;
950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951 build_alias=$ac_optarg ;;
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958 cache_file=$ac_optarg ;;
961 cache_file=config.cache ;;
963 -datadir | --datadir | --datadi | --datad)
965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
966 datadir=$ac_optarg ;;
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
975 -disable-* | --disable-*)
976 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
979 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
980 { (exit 1); exit 1; }; }
981 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
982 eval enable_$ac_feature=no ;;
984 -docdir | --docdir | --docdi | --doc | --do)
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 -enable-* | --enable-*)
995 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999 { (exit 1); exit 1; }; }
1000 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001 eval enable_$ac_feature=\$ac_optarg ;;
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 htmldir=$ac_optarg ;;
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1046 -libdir | --libdir | --libdi | --libd)
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1137 -psdir | --psdir | --psdi | --psd | --ps)
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 sbindir=$ac_optarg ;;
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 sharedstatedir=$ac_optarg ;;
1163 -site | --site | --sit)
1165 -site=* | --site=* | --sit=*)
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1192 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 { echo "$as_me: error: invalid package name: $ac_package" >&2
1196 { (exit 1); exit 1; }; }
1197 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1198 eval with_$ac_package=\$ac_optarg ;;
1200 -without-* | --without-*)
1201 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 { echo "$as_me: error: invalid package name: $ac_package" >&2
1205 { (exit 1); exit 1; }; }
1206 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1207 eval with_$ac_package=no ;;
1210 # Obsolete; use --with-x.
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) { echo "$as_me: error: unrecognized option: $ac_option
1228 Try \`$0 --help' for more information." >&2
1229 { (exit 1); exit 1; }; }
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1236 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1237 { (exit 1); exit 1; }; }
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 { echo "$as_me: error: missing argument to $ac_option" >&2
1255 { (exit 1); exit 1; }; }
1258 # Be sure to have absolute directory names.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1264 eval ac_val=\$$ac_var
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1270 { (exit 1); exit 1; }; }
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1278 target=$target_alias
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294 test "$silent" = yes && exec 6>/dev/null
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 { echo "$as_me: error: Working directory cannot be determined" >&2
1301 { (exit 1); exit 1; }; }
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 { echo "$as_me: error: pwd does not report name of working directory" >&2
1304 { (exit 1); exit 1; }; }
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$0" ||
1312 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$0" : 'X\(//\)[^/]' \| \
1314 X"$0" : 'X\(//\)$' \| \
1315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1339 ac_srcdir_defaulted=no
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1344 { (exit 1); exit 1; }; }
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1349 { (exit 1); exit 1; }; }
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1375 \`configure' configures this package to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 if test -n "$ac_init_help"; then
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-maintainer-mode enable make rules and dependencies not useful
1451 (and sometimes confusing) to the casual installer
1452 --disable-dependency-tracking speeds up one-time build
1453 --enable-dependency-tracking do not reject slow dependency extractors
1454 --enable-strict-warn Enable strict compilation warnings
1455 --disable-translator Disable the SH4 translator (Enabled by default)
1456 --disable-optimized Disable compile-time optimizations (Enabled by
1458 --enable-shared Build drivers as shared libraries (Enabled if
1460 --enable-profiled Enable profiling build
1461 --enable-trace Enable generation of IO traces (warning: hurts
1463 --enable-watch Enable watchpoints in the debugger (warning: hurts
1465 --enable-sh4stats Enable statistics on executed sh4 instructions
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-osmesa Build with the osmesa GL library (software
1472 --with-gtk Build with the GTK UI. Default on X11 systems
1473 --with-esd Build with support for the ESounD audio system
1474 --with-pulse Build with support for the PulseAudio audio system
1475 --with-sdl Build with support for SDL audio
1476 --with-sysroot=SYSROOT Build using an alternate sysroot
1477 --with-android=SDK Specify the location of the Android SDK
1478 --with-android-ndk=NDK Specify the location of the Android NDK
1479 --with-android-version Specify target Android SDK version
1480 --with-android-version Specify target Android NDK version
1481 --with-android-abi Specify target Android ABI
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1492 OBJC Objective C compiler command
1493 OBJCFLAGS Objective C compiler flags
1494 CCAS assembler compiler command (defaults to CC)
1495 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1496 PKG_CONFIG path to pkg-config utility
1498 C compiler flags for LIBPNG, overriding pkg-config
1499 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1500 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1501 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1502 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1503 GTK_LIBS linker flags for GTK, overriding pkg-config
1504 GLIB_FOR_BUILD_CFLAGS
1505 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1507 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1509 C compiler flags for LIBISOFS, overriding pkg-config
1511 linker flags for LIBISOFS, overriding pkg-config
1513 C compiler flags for LIBGL, overriding pkg-config
1514 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1515 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1516 SDL_LIBS linker flags for SDL, overriding pkg-config
1518 C compiler flags for PULSE, overriding pkg-config
1519 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1521 C compiler flags for ESOUND, overriding pkg-config
1522 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1523 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1524 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" || continue
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1556 .) # We are building in place.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for guested configure.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1580 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1590 generated by GNU Autoconf 2.61
1592 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1593 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1599 cat >config.log <<_ACEOF
1600 This file contains any messages produced by compilers while
1601 running configure, to aid debugging if configure makes a mistake.
1603 It was created by $as_me, which was
1604 generated by GNU Autoconf 2.61. Invocation command line was
1616 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1617 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1618 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1619 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1620 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1622 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1623 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1625 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1626 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1627 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1628 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1629 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1630 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1631 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 echo "PATH: $as_dir"
1656 # Keep a trace of the command line.
1657 # Strip out --no-create and --no-recursion so they do not pile up.
1658 # Strip out --silent because we don't want to record it for future runs.
1659 # Also quote any args containing shell meta-characters.
1660 # Make two passes to allow for proper duplicate-argument suppression.
1664 ac_must_keep_next=false
1670 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1672 | -silent | --silent | --silen | --sile | --sil)
1675 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1680 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1681 if test $ac_must_keep_next = true; then
1682 ac_must_keep_next=false # Got value, back to normal.
1685 *=* | --config-cache | -C | -disable-* | --disable-* \
1686 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1687 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1688 | -with-* | --with-* | -without-* | --without-* | --x)
1689 case "$ac_configure_args0 " in
1690 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 -* ) ac_must_keep_next=true ;;
1696 ac_configure_args="$ac_configure_args '$ac_arg'"
1701 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1702 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1704 # When interrupted or exit'd, cleanup temporary files, and complete
1705 # config.log. We remove comments because anyway the quotes in there
1706 # would cause problems or look ugly.
1707 # WARNING: Use '\'' to represent an apostrophe within the trap.
1708 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1709 trap 'exit_status=$?
1710 # Save into config.log some information that might help in debugging.
1715 ## ---------------- ##
1716 ## Cache variables. ##
1717 ## ---------------- ##
1720 # The following way of writing the cache mishandles newlines in values,
1722 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1723 eval ac_val=\$$ac_var
1727 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1728 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731 _ | IFS | as_nl) ;; #(
1732 *) $as_unset $ac_var ;;
1737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1738 *${as_nl}ac_space=\ *)
1740 "s/'\''/'\''\\\\'\'''\''/g;
1741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1752 ## ----------------- ##
1753 ## Output variables. ##
1754 ## ----------------- ##
1757 for ac_var in $ac_subst_vars
1759 eval ac_val=\$$ac_var
1761 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 echo "$ac_var='\''$ac_val'\''"
1767 if test -n "$ac_subst_files"; then
1769 ## ------------------- ##
1770 ## File substitutions. ##
1771 ## ------------------- ##
1774 for ac_var in $ac_subst_files
1776 eval ac_val=\$$ac_var
1778 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780 echo "$ac_var='\''$ac_val'\''"
1785 if test -s confdefs.h; then
1795 test "$ac_signal" != 0 &&
1796 echo "$as_me: caught signal $ac_signal"
1797 echo "$as_me: exit $exit_status"
1799 rm -f core *.core core.conftest.* &&
1800 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1803 for ac_signal in 1 2 13 15; do
1804 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1809 rm -f -r conftest* confdefs.h
1811 # Predefined preprocessor variables.
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_NAME "$PACKAGE_NAME"
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 # Let the site file select an alternate cache file if it wants to.
1839 # Prefer explicitly selected file to automatically selected ones.
1840 if test -n "$CONFIG_SITE"; then
1841 set x "$CONFIG_SITE"
1842 elif test "x$prefix" != xNONE; then
1843 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1845 set x "$ac_default_prefix/share/config.site" \
1846 "$ac_default_prefix/etc/config.site"
1851 if test -r "$ac_site_file"; then
1852 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1853 echo "$as_me: loading site script $ac_site_file" >&6;}
1854 sed 's/^/| /' "$ac_site_file" >&5
1859 if test -r "$cache_file"; then
1860 # Some versions of bash will fail to source /dev/null (special
1861 # files actually), so we avoid doing that.
1862 if test -f "$cache_file"; then
1863 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1864 echo "$as_me: loading cache $cache_file" >&6;}
1866 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1867 *) . "./$cache_file";;
1871 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1872 echo "$as_me: creating cache $cache_file" >&6;}
1876 # Check that the precious variables saved in the cache have kept the same
1878 ac_cache_corrupted=false
1879 for ac_var in $ac_precious_vars; do
1880 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1881 eval ac_new_set=\$ac_env_${ac_var}_set
1882 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1883 eval ac_new_val=\$ac_env_${ac_var}_value
1884 case $ac_old_set,$ac_new_set in
1886 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1890 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1891 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1895 if test "x$ac_old_val" != "x$ac_new_val"; then
1896 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1897 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1898 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1899 echo "$as_me: former value: $ac_old_val" >&2;}
1900 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1901 echo "$as_me: current value: $ac_new_val" >&2;}
1902 ac_cache_corrupted=:
1905 # Pass precious variables to config.status.
1906 if test "$ac_new_set" = set; then
1908 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1909 *) ac_arg=$ac_var=$ac_new_val ;;
1911 case " $ac_configure_args " in
1912 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1913 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1917 if $ac_cache_corrupted; then
1918 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1919 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1920 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1921 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1922 { (exit 1); exit 1; }; }
1942 ac_cpp='$CPP $CPPFLAGS'
1943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948 am__api_version="1.9"
1950 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1951 if test -f "$ac_dir/install-sh"; then
1953 ac_install_sh="$ac_aux_dir/install-sh -c"
1955 elif test -f "$ac_dir/install.sh"; then
1957 ac_install_sh="$ac_aux_dir/install.sh -c"
1959 elif test -f "$ac_dir/shtool"; then
1961 ac_install_sh="$ac_aux_dir/shtool install -c"
1965 if test -z "$ac_aux_dir"; then
1966 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1967 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1968 { (exit 1); exit 1; }; }
1971 # These three variables are undocumented and unsupported,
1972 # and are intended to be withdrawn in a future Autoconf release.
1973 # They can cause serious problems if a builder's source tree is in a directory
1974 # whose full name contains unusual characters.
1975 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1976 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1977 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1980 # Find a good install program. We prefer a C program (faster),
1981 # so one script is as good as another. But avoid the broken or
1982 # incompatible versions:
1983 # SysV /etc/install, /usr/sbin/install
1984 # SunOS /usr/etc/install
1985 # IRIX /sbin/install
1987 # AmigaOS /C/install, which installs bootblocks on floppy discs
1988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1991 # OS/2's system install, which has a completely different semantic
1992 # ./install, which can be erroneously created by make from ./install.sh.
1993 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1994 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1995 if test -z "$INSTALL"; then
1996 if test "${ac_cv_path_install+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 # Account for people who put trailing slashes in PATH elements.
2006 ./ | .// | /cC/* | \
2007 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2008 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2011 # OSF1 and SCO ODT 3.0 have their own names for install.
2012 # Don't use installbsd from OSF since it installs stuff as root
2014 for ac_prog in ginstall scoinst install; do
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2017 if test $ac_prog = install &&
2018 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # AIX install. It has an incompatible calling convention.
2021 elif test $ac_prog = install &&
2022 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023 # program-specific install script used by HP pwplus--don't use.
2026 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2039 if test "${ac_cv_path_install+set}" = set; then
2040 INSTALL=$ac_cv_path_install
2042 # As a last resort, use the slow shell script. Don't cache a
2043 # value for INSTALL within a source directory, because that will
2044 # break other packages using the cache if that directory is
2045 # removed, or if the value is a relative name.
2046 INSTALL=$ac_install_sh
2049 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2050 echo "${ECHO_T}$INSTALL" >&6; }
2052 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2053 # It thinks the first close brace ends the variable substitution.
2054 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2056 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2058 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2060 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2061 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2064 echo timestamp > conftest.file
2065 # Do `set' in a subshell so we don't clobber the current shell's
2066 # arguments. Must try -L first in case configure is actually a
2067 # symlink; some systems play weird games with the mod time of symlinks
2068 # (eg FreeBSD returns the mod time of the symlink's containing
2071 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2072 if test "$*" = "X"; then
2074 set X `ls -t $srcdir/configure conftest.file`
2077 if test "$*" != "X $srcdir/configure conftest.file" \
2078 && test "$*" != "X conftest.file $srcdir/configure"; then
2080 # If neither matched, then we have a broken ls. This can happen
2081 # if, for instance, CONFIG_SHELL is bash and it inherits a
2082 # broken ls alias from the environment. This has actually
2083 # happened. Such a system could not be considered "sane".
2084 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2085 alias in your environment" >&5
2086 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2087 alias in your environment" >&2;}
2088 { (exit 1); exit 1; }; }
2091 test "$2" = conftest.file
2097 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2098 Check your system clock" >&5
2099 echo "$as_me: error: newly created file is older than distributed files!
2100 Check your system clock" >&2;}
2101 { (exit 1); exit 1; }; }
2103 { echo "$as_me:$LINENO: result: yes" >&5
2104 echo "${ECHO_T}yes" >&6; }
2105 test "$program_prefix" != NONE &&
2106 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2107 # Use a double $ so make ignores it.
2108 test "$program_suffix" != NONE &&
2109 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2110 # Double any \ or $. echo might interpret backslashes.
2111 # By default was `s,x,x', remove it if useless.
2112 cat <<\_ACEOF >conftest.sed
2113 s/[\\$]/&&/g;s/;s,x,x,$//
2115 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2118 # expand $ac_aux_dir to an absolute path
2119 am_aux_dir=`cd $ac_aux_dir && pwd`
2121 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2122 # Use eval to expand $SHELL
2123 if eval "$MISSING --run true"; then
2124 am_missing_run="$MISSING --run "
2127 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2128 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2131 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2132 # We used to keeping the `.' as first argument, in order to
2133 # allow $(mkdir_p) to be used without argument. As in
2134 # $(mkdir_p) $(somedir)
2135 # where $(somedir) is conditionally defined. However this is wrong
2137 # 1. if the package is installed by a user who cannot write `.'
2138 # make install will fail,
2139 # 2. the above comment should most certainly read
2140 # $(mkdir_p) $(DESTDIR)$(somedir)
2141 # so it does not work when $(somedir) is undefined and
2142 # $(DESTDIR) is not.
2143 # To support the latter case, we have to write
2144 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2145 # so the `.' trick is pointless.
2146 mkdir_p='mkdir -p --'
2148 # On NextStep and OpenStep, the `mkdir' command does not
2149 # recognize any option. It will interpret all options as
2150 # directories to create, and then abort because `.' already
2152 for d in ./-p ./--version;
2154 test -d $d && rmdir $d
2156 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2157 if test -f "$ac_aux_dir/mkinstalldirs"; then
2158 mkdir_p='$(mkinstalldirs)'
2160 mkdir_p='$(install_sh) -d'
2164 for ac_prog in gawk mawk nawk awk
2166 # Extract the first word of "$ac_prog", so it can be a program name with args.
2167 set dummy $ac_prog; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_AWK+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test -n "$AWK"; then
2174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2183 ac_cv_prog_AWK="$ac_prog"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 if test -n "$AWK"; then
2195 { echo "$as_me:$LINENO: result: $AWK" >&5
2196 echo "${ECHO_T}$AWK" >&6; }
2198 { echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6; }
2203 test -n "$AWK" && break
2206 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2207 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2208 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2209 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 cat >conftest.make <<\_ACEOF
2215 @echo '@@@%%%=$(MAKE)=@@@%%%'
2217 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2218 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2220 eval ac_cv_prog_make_${ac_make}_set=yes;;
2222 eval ac_cv_prog_make_${ac_make}_set=no;;
2226 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2227 { echo "$as_me:$LINENO: result: yes" >&5
2228 echo "${ECHO_T}yes" >&6; }
2231 { echo "$as_me:$LINENO: result: no" >&5
2232 echo "${ECHO_T}no" >&6; }
2233 SET_MAKE="MAKE=${MAKE-make}"
2236 rm -rf .tst 2>/dev/null
2237 mkdir .tst 2>/dev/null
2238 if test -d .tst; then
2243 rmdir .tst 2>/dev/null
2245 # test to see if srcdir already configured
2246 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2247 test -f $srcdir/config.status; then
2248 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2249 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2250 { (exit 1); exit 1; }; }
2253 # test whether we have cygpath
2254 if test -z "$CYGPATH_W"; then
2255 if (cygpath --version) >/dev/null 2>/dev/null; then
2256 CYGPATH_W='cygpath -w'
2263 # Define the identity of the package.
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE "$PACKAGE"
2273 cat >>confdefs.h <<_ACEOF
2274 #define VERSION "$VERSION"
2277 # Some tools Automake needs.
2279 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2282 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2285 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2288 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2291 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2293 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2295 # Installed binaries are usually stripped using `strip' when the user
2296 # run `make install-strip'. However `strip' might not be the right
2297 # tool to use in cross-compilation environments, therefore Automake
2298 # will honor the `STRIP' environment variable to overrule this program.
2299 if test "$cross_compiling" != no; then
2300 if test -n "$ac_tool_prefix"; then
2301 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2302 set dummy ${ac_tool_prefix}strip; ac_word=$2
2303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_STRIP+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 if test -n "$STRIP"; then
2309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2318 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 STRIP=$ac_cv_prog_STRIP
2329 if test -n "$STRIP"; then
2330 { echo "$as_me:$LINENO: result: $STRIP" >&5
2331 echo "${ECHO_T}$STRIP" >&6; }
2333 { echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6; }
2339 if test -z "$ac_cv_prog_STRIP"; then
2341 # Extract the first word of "strip", so it can be a program name with args.
2342 set dummy strip; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 if test -n "$ac_ct_STRIP"; then
2349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358 ac_cv_prog_ac_ct_STRIP="strip"
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2369 if test -n "$ac_ct_STRIP"; then
2370 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2371 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2373 { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2377 if test "x$ac_ct_STRIP" = x; then
2380 case $cross_compiling:$ac_tool_warned in
2382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2383 whose name does not start with the host triplet. If you think this
2384 configuration is useful to you, please write to autoconf@gnu.org." >&5
2385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2386 whose name does not start with the host triplet. If you think this
2387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2388 ac_tool_warned=yes ;;
2393 STRIP="$ac_cv_prog_STRIP"
2397 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2399 # We need awk for the "check" target. The system "awk" is bad on
2401 # Always define AMTAR for backward compatibility.
2403 AMTAR=${AMTAR-"${am_missing_run}tar"}
2405 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2411 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2412 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2413 # Check whether --enable-maintainer-mode was given.
2414 if test "${enable_maintainer_mode+set}" = set; then
2415 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2417 USE_MAINTAINER_MODE=no
2420 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2421 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2424 if test $USE_MAINTAINER_MODE = yes; then
2425 MAINTAINER_MODE_TRUE=
2426 MAINTAINER_MODE_FALSE='#'
2428 MAINTAINER_MODE_TRUE='#'
2429 MAINTAINER_MODE_FALSE=
2432 MAINT=$MAINTAINER_MODE_TRUE
2435 ac_config_headers="$ac_config_headers config.h"
2438 # Make sure we can run config.sub.
2439 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2440 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2441 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2442 { (exit 1); exit 1; }; }
2444 { echo "$as_me:$LINENO: checking build system type" >&5
2445 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2446 if test "${ac_cv_build+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 ac_build_alias=$build_alias
2450 test "x$ac_build_alias" = x &&
2451 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2452 test "x$ac_build_alias" = x &&
2453 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2454 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2455 { (exit 1); exit 1; }; }
2456 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2457 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2458 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2459 { (exit 1); exit 1; }; }
2462 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2463 echo "${ECHO_T}$ac_cv_build" >&6; }
2464 case $ac_cv_build in
2466 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2467 echo "$as_me: error: invalid value of canonical build" >&2;}
2468 { (exit 1); exit 1; }; };;
2471 ac_save_IFS=$IFS; IFS='-'
2477 # Remember, the first character of IFS is used to create $*,
2478 # except with old shells:
2481 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2484 { echo "$as_me:$LINENO: checking host system type" >&5
2485 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2486 if test "${ac_cv_host+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test "x$host_alias" = x; then
2490 ac_cv_host=$ac_cv_build
2492 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2493 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2494 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2495 { (exit 1); exit 1; }; }
2499 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2500 echo "${ECHO_T}$ac_cv_host" >&6; }
2503 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2504 echo "$as_me: error: invalid value of canonical host" >&2;}
2505 { (exit 1); exit 1; }; };;
2508 ac_save_IFS=$IFS; IFS='-'
2514 # Remember, the first character of IFS is used to create $*,
2515 # except with old shells:
2518 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2530 # Defines --with-android, --with-android-ndk, and --with-android-version
2531 # If specified, checks for a working install, and sets build parameters
2532 # appropriately for an Android host.
2536 DEPDIR="${am__leading_dot}deps"
2538 ac_config_commands="$ac_config_commands depfiles"
2541 am_make=${MAKE-make}
2542 cat > confinc << 'END'
2547 # If we don't find an include directive, just comment out the code.
2548 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2549 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2553 # First try GNU make style include.
2554 echo "include confinc" > confmf
2555 # We grep out `Entering directory' and `Leaving directory'
2556 # messages which can occur if `w' ends up in MAKEFLAGS.
2557 # In particular we don't look at `^make:' because GNU make might
2558 # be invoked under some other name (usually "gmake"), in which
2559 # case it prints its new name instead of `make'.
2560 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2565 # Now try BSD make style include.
2566 if test "$am__include" = "#"; then
2567 echo '.include "confinc"' > confmf
2568 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2569 am__include=.include
2576 { echo "$as_me:$LINENO: result: $_am_result" >&5
2577 echo "${ECHO_T}$_am_result" >&6; }
2578 rm -f confinc confmf
2580 # Check whether --enable-dependency-tracking was given.
2581 if test "${enable_dependency_tracking+set}" = set; then
2582 enableval=$enable_dependency_tracking;
2585 if test "x$enable_dependency_tracking" != xno; then
2586 am_depcomp="$ac_aux_dir/depcomp"
2591 if test "x$enable_dependency_tracking" != xno; then
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 if test -n "$ac_tool_prefix"; then
2607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2611 if test "${ac_cv_prog_CC+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 if test -n "$CC"; then
2636 { echo "$as_me:$LINENO: result: $CC" >&5
2637 echo "${ECHO_T}$CC" >&6; }
2639 { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2645 if test -z "$ac_cv_prog_CC"; then
2647 # Extract the first word of "gcc", so it can be a program name with args.
2648 set dummy gcc; ac_word=$2
2649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_ac_ct_CC="gcc"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675 if test -n "$ac_ct_CC"; then
2676 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2677 echo "${ECHO_T}$ac_ct_CC" >&6; }
2679 { echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6; }
2683 if test "x$ac_ct_CC" = x; then
2686 case $cross_compiling:$ac_tool_warned in
2688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2689 whose name does not start with the host triplet. If you think this
2690 configuration is useful to you, please write to autoconf@gnu.org." >&5
2691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2692 whose name does not start with the host triplet. If you think this
2693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2694 ac_tool_warned=yes ;;
2702 if test -z "$CC"; then
2703 if test -n "$ac_tool_prefix"; then
2704 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2705 set dummy ${ac_tool_prefix}cc; ac_word=$2
2706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_CC+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 if test -n "$CC"; then
2712 ac_cv_prog_CC="$CC" # Let the user override the test.
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_CC="${ac_tool_prefix}cc"
2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 if test -n "$CC"; then
2733 { echo "$as_me:$LINENO: result: $CC" >&5
2734 echo "${ECHO_T}$CC" >&6; }
2736 { echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6; }
2743 if test -z "$CC"; then
2744 # Extract the first word of "cc", so it can be a program name with args.
2745 set dummy cc; ac_word=$2
2746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_CC+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2763 ac_prog_rejected=yes
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 if test $ac_prog_rejected = yes; then
2775 # We found a bogon in the path, so make sure we never use it.
2776 set dummy $ac_cv_prog_CC
2778 if test $# != 0; then
2779 # We chose a different compiler from the bogus one.
2780 # However, it has the same basename, so the bogon will be chosen
2781 # first if we set CC to just the basename; use the full file name.
2783 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2789 if test -n "$CC"; then
2790 { echo "$as_me:$LINENO: result: $CC" >&5
2791 echo "${ECHO_T}$CC" >&6; }
2793 { echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6; }
2799 if test -z "$CC"; then
2800 if test -n "$ac_tool_prefix"; then
2801 for ac_prog in cl.exe
2803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2807 if test "${ac_cv_prog_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 if test -n "$CC"; then
2832 { echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6; }
2835 { echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6; }
2840 test -n "$CC" && break
2843 if test -z "$CC"; then
2845 for ac_prog in cl.exe
2847 # Extract the first word of "$ac_prog", so it can be a program name with args.
2848 set dummy $ac_prog; ac_word=$2
2849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 if test -n "$ac_ct_CC"; then
2855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 ac_cv_prog_ac_ct_CC="$ac_prog"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2875 if test -n "$ac_ct_CC"; then
2876 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2877 echo "${ECHO_T}$ac_ct_CC" >&6; }
2879 { echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6; }
2884 test -n "$ac_ct_CC" && break
2887 if test "x$ac_ct_CC" = x; then
2890 case $cross_compiling:$ac_tool_warned in
2892 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2893 whose name does not start with the host triplet. If you think this
2894 configuration is useful to you, please write to autoconf@gnu.org." >&5
2895 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2896 whose name does not start with the host triplet. If you think this
2897 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2898 ac_tool_warned=yes ;;
2907 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: no acceptable C compiler found in \$PATH
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2913 # Provide some information about the compiler.
2914 echo "$as_me:$LINENO: checking for C compiler version" >&5
2915 ac_compiler=`set X $ac_compile; echo $2`
2916 { (ac_try="$ac_compiler --version >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler --version >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926 { (ac_try="$ac_compiler -v >&5"
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compiler -v >&5") 2>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936 { (ac_try="$ac_compiler -V >&5"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compiler -V >&5") 2>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }
2947 cat >conftest.$ac_ext <<_ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2962 ac_clean_files_save=$ac_clean_files
2963 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2964 # Try to create an executable without -o first, disregard a.out.
2965 # It will help us diagnose broken compilers, and finding out an intuition
2967 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2968 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2969 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2971 # List of possible output files, starting from the most likely.
2972 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2973 # only as a last resort. b.out is created by i960 compilers.
2974 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2976 # The IRIX 6 linker writes into existing files which may not be
2977 # executable, retaining their permissions. Remove them first so a
2978 # subsequent execution test works.
2980 for ac_file in $ac_files
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2984 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2989 if { (ac_try="$ac_link_default"
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_link_default") 2>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; then
2999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3000 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3001 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3002 # so that the user can short-circuit this test for compilers unknown to
3004 for ac_file in $ac_files ''
3006 test -f "$ac_file" || continue
3008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3011 # We found the default executable, but exeext='' is most
3015 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3019 # We set ac_cv_exeext here because the later test for it is not
3020 # safe: cross compilers may not add the suffix if given an `-o'
3021 # argument, so we may need to know it at that point already.
3022 # Even if this section looks crufty: it has the advantage of
3029 test "$ac_cv_exeext" = no && ac_cv_exeext=
3035 { echo "$as_me:$LINENO: result: $ac_file" >&5
3036 echo "${ECHO_T}$ac_file" >&6; }
3037 if test -z "$ac_file"; then
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3042 See \`config.log' for more details." >&5
3043 echo "$as_me: error: C compiler cannot create executables
3044 See \`config.log' for more details." >&2;}
3045 { (exit 77); exit 77; }; }
3048 ac_exeext=$ac_cv_exeext
3050 # Check that the compiler produces executables we can run. If not, either
3051 # the compiler is broken, or we cross compile.
3052 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3053 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3054 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3055 # If not cross compiling, check that we can run a simple program.
3056 if test "$cross_compiling" != yes; then
3057 if { ac_try='./$ac_file'
3058 { (case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_try") 2>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; }; then
3069 if test "$cross_compiling" = maybe; then
3072 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3073 If you meant to cross compile, use \`--host'.
3074 See \`config.log' for more details." >&5
3075 echo "$as_me: error: cannot run C compiled programs.
3076 If you meant to cross compile, use \`--host'.
3077 See \`config.log' for more details." >&2;}
3078 { (exit 1); exit 1; }; }
3082 { echo "$as_me:$LINENO: result: yes" >&5
3083 echo "${ECHO_T}yes" >&6; }
3085 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3086 ac_clean_files=$ac_clean_files_save
3087 # Check that the compiler produces executables we can run. If not, either
3088 # the compiler is broken, or we cross compile.
3089 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3090 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3091 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3092 echo "${ECHO_T}$cross_compiling" >&6; }
3094 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3095 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3096 if { (ac_try="$ac_link"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_link") 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; then
3106 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3107 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3108 # work properly (i.e., refer to `conftest.exe'), while it won't with
3110 for ac_file in conftest.exe conftest conftest.*; do
3111 test -f "$ac_file" || continue
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3120 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3121 See \`config.log' for more details." >&5
3122 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3123 See \`config.log' for more details." >&2;}
3124 { (exit 1); exit 1; }; }
3127 rm -f conftest$ac_cv_exeext
3128 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3129 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3131 rm -f conftest.$ac_ext
3132 EXEEXT=$ac_cv_exeext
3134 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3135 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3136 if test "${ac_cv_objext+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3154 rm -f conftest.o conftest.obj
3155 if { (ac_try="$ac_compile"
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compile") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; then
3165 for ac_file in conftest.o conftest.obj conftest.*; do
3166 test -f "$ac_file" || continue;
3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3169 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3177 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3178 See \`config.log' for more details." >&5
3179 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3180 See \`config.log' for more details." >&2;}
3181 { (exit 1); exit 1; }; }
3184 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3186 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3187 echo "${ECHO_T}$ac_cv_objext" >&6; }
3188 OBJEXT=$ac_cv_objext
3190 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3191 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3192 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3213 rm -f conftest.$ac_objext
3214 if { (ac_try="$ac_compile"
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_compile") 2>conftest.er1
3222 grep -v '^ *+' conftest.er1 >conftest.err
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } && {
3227 test -z "$ac_c_werror_flag" ||
3228 test ! -s conftest.err
3229 } && test -s conftest.$ac_objext; then
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3242 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3243 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3244 GCC=`test $ac_compiler_gnu = yes && echo yes`
3245 ac_test_CFLAGS=${CFLAGS+set}
3246 ac_save_CFLAGS=$CFLAGS
3247 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3248 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3249 if test "${ac_cv_prog_cc_g+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 ac_save_c_werror_flag=$ac_c_werror_flag
3253 ac_c_werror_flag=yes
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3271 rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_compile") 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } && {
3285 test -z "$ac_c_werror_flag" ||
3286 test ! -s conftest.err
3287 } && test -s conftest.$ac_objext; then
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3309 rm -f conftest.$ac_objext
3310 if { (ac_try="$ac_compile"
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_compile") 2>conftest.er1
3318 grep -v '^ *+' conftest.er1 >conftest.err
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } && {
3323 test -z "$ac_c_werror_flag" ||
3324 test ! -s conftest.err
3325 } && test -s conftest.$ac_objext; then
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 ac_c_werror_flag=$ac_save_c_werror_flag
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3348 rm -f conftest.$ac_objext
3349 if { (ac_try="$ac_compile"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_compile") 2>conftest.er1
3357 grep -v '^ *+' conftest.er1 >conftest.err
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } && {
3362 test -z "$ac_c_werror_flag" ||
3363 test ! -s conftest.err
3364 } && test -s conftest.$ac_objext; then
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 ac_c_werror_flag=$ac_save_c_werror_flag
3382 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3383 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3384 if test "$ac_test_CFLAGS" = set; then
3385 CFLAGS=$ac_save_CFLAGS
3386 elif test $ac_cv_prog_cc_g = yes; then
3387 if test "$GCC" = yes; then
3393 if test "$GCC" = yes; then
3399 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3400 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3401 if test "${ac_cv_prog_cc_c89+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 ac_cv_prog_cc_c89=no
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3414 #include <sys/types.h>
3415 #include <sys/stat.h>
3416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3417 struct buf { int x; };
3418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3419 static char *e (p, i)
3425 static char *f (char * (*g) (char **, int), char **p, ...)
3430 s = g (p, va_arg (v,int));
3435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3436 function prototypes and stuff, but not '\xHH' hex character constants.
3437 These don't provoke an error unfortunately, instead are silently treated
3438 as 'x'. The following induces an error, until -std is added to get
3439 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3440 array size at least. It's necessary to write '\x00'==0 to get something
3441 that's true only with -std. */
3442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3444 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3445 inside strings and character constants. */
3447 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3449 int test (int i, double x);
3450 struct s1 {int (*f) (int a);};
3451 struct s2 {int (*f) (double a);};
3452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3458 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3463 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3464 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3466 CC="$ac_save_CC $ac_arg"
3467 rm -f conftest.$ac_objext
3468 if { (ac_try="$ac_compile"
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_compile") 2>conftest.er1
3476 grep -v '^ *+' conftest.er1 >conftest.err
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } && {
3481 test -z "$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3483 } && test -s conftest.$ac_objext; then
3484 ac_cv_prog_cc_c89=$ac_arg
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3492 rm -f core conftest.err conftest.$ac_objext
3493 test "x$ac_cv_prog_cc_c89" != "xno" && break
3495 rm -f conftest.$ac_ext
3500 case "x$ac_cv_prog_cc_c89" in
3502 { echo "$as_me:$LINENO: result: none needed" >&5
3503 echo "${ECHO_T}none needed" >&6; } ;;
3505 { echo "$as_me:$LINENO: result: unsupported" >&5
3506 echo "${ECHO_T}unsupported" >&6; } ;;
3508 CC="$CC $ac_cv_prog_cc_c89"
3509 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3510 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520 depcc="$CC" am_compiler_list=
3522 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3523 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3524 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3528 # We make a subdir and do the tests there. Otherwise we can end up
3529 # making bogus files that we don't know about and never remove. For
3530 # instance it was reported that on HP-UX the gcc test will end up
3531 # making a dummy file named `D' -- because `-MD' means `put the output
3534 # Copy depcomp to subdir because otherwise we won't find it if we're
3535 # using a relative directory.
3536 cp "$am_depcomp" conftest.dir
3538 # We will build objects and dependencies in a subdirectory because
3539 # it helps to detect inapplicable dependency modes. For instance
3540 # both Tru64's cc and ICC support -MD to output dependencies as a
3541 # side effect of compilation, but ICC will put the dependencies in
3542 # the current directory while Tru64 will put them in the object
3546 am_cv_CC_dependencies_compiler_type=none
3547 if test "$am_compiler_list" = ""; then
3548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3550 for depmode in $am_compiler_list; do
3551 # Setup a source with many dependencies, because some compilers
3552 # like to wrap large dependency lists on column 80 (with \), and
3553 # we should not choose a depcomp mode which is confused by this.
3555 # We need to recreate these files for each test, as the compiler may
3556 # overwrite some of them when testing with obscure command lines.
3557 # This happens at least with the AIX C compiler.
3559 for i in 1 2 3 4 5 6; do
3560 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3561 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3562 # Solaris 8's {/usr,}/bin/sh.
3563 touch sub/conftst$i.h
3565 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3569 # after this tag, mechanisms are not by side-effect, so they'll
3570 # only be used when explicitly requested
3571 if test "x$enable_dependency_tracking" = xyes; then
3579 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3580 # mode. It turns out that the SunPro C++ compiler does not properly
3581 # handle `-M -o', and we need to detect this.
3582 if depmode=$depmode \
3583 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3584 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3585 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3586 >/dev/null 2>conftest.err &&
3587 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3588 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3589 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3590 # icc doesn't choke on unknown options, it will just issue warnings
3591 # or remarks (even with -Werror). So we grep stderr for any message
3592 # that says an option was ignored or not supported.
3593 # When given -MP, icc 7.0 and 7.1 complain thusly:
3594 # icc: Command line warning: ignoring option '-M'; no argument required
3595 # The diagnosis changed in icc 8.0:
3596 # icc: Command line remark: option '-MP' not supported
3597 if (grep 'ignoring option' conftest.err ||
3598 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3599 am_cv_CC_dependencies_compiler_type=$depmode
3608 am_cv_CC_dependencies_compiler_type=none
3612 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3613 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3614 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3619 test "x$enable_dependency_tracking" != xno \
3620 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3622 am__fastdepCC_FALSE='#'
3624 am__fastdepCC_TRUE='#'
3625 am__fastdepCC_FALSE=
3631 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3632 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3633 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 ac_check_lib_save_LIBS=$LIBS
3637 LIBS="-lcposix $LIBS"
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3645 /* Override any GCC internal prototype to avoid an error.
3646 Use char because int might match the return type of a GCC
3647 builtin and then its argument prototype would still apply. */
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (ac_try="$ac_link"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_link") 2>conftest.er1
3669 grep -v '^ *+' conftest.er1 >conftest.err
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest$ac_exeext &&
3677 $as_test_x conftest$ac_exeext; then
3678 ac_cv_lib_cposix_strerror=yes
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 ac_cv_lib_cposix_strerror=no
3686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3687 conftest$ac_exeext conftest.$ac_ext
3688 LIBS=$ac_check_lib_save_LIBS
3690 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3691 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3692 if test $ac_cv_lib_cposix_strerror = yes; then
3693 LIBS="$LIBS -lcposix"
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703 if test -n "$ac_tool_prefix"; then
3704 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3705 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3708 if test "${ac_cv_prog_CC+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 if test -n "$CC"; then
3712 ac_cv_prog_CC="$CC" # Let the user override the test.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 if test -n "$CC"; then
3733 { echo "$as_me:$LINENO: result: $CC" >&5
3734 echo "${ECHO_T}$CC" >&6; }
3736 { echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6; }
3742 if test -z "$ac_cv_prog_CC"; then
3744 # Extract the first word of "gcc", so it can be a program name with args.
3745 set dummy gcc; ac_word=$2
3746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 if test -n "$ac_ct_CC"; then
3752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3761 ac_cv_prog_ac_ct_CC="gcc"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3772 if test -n "$ac_ct_CC"; then
3773 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3774 echo "${ECHO_T}$ac_ct_CC" >&6; }
3776 { echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6; }
3780 if test "x$ac_ct_CC" = x; then
3783 case $cross_compiling:$ac_tool_warned in
3785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3786 whose name does not start with the host triplet. If you think this
3787 configuration is useful to you, please write to autoconf@gnu.org." >&5
3788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3789 whose name does not start with the host triplet. If you think this
3790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3791 ac_tool_warned=yes ;;
3799 if test -z "$CC"; then
3800 if test -n "$ac_tool_prefix"; then
3801 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3802 set dummy ${ac_tool_prefix}cc; ac_word=$2
3803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3805 if test "${ac_cv_prog_CC+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 if test -n "$CC"; then
3809 ac_cv_prog_CC="$CC" # Let the user override the test.
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3818 ac_cv_prog_CC="${ac_tool_prefix}cc"
3819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 if test -n "$CC"; then
3830 { echo "$as_me:$LINENO: result: $CC" >&5
3831 echo "${ECHO_T}$CC" >&6; }
3833 { echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6; }
3840 if test -z "$CC"; then
3841 # Extract the first word of "cc", so it can be a program name with args.
3842 set dummy cc; ac_word=$2
3843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3845 if test "${ac_cv_prog_CC+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 if test -n "$CC"; then
3849 ac_cv_prog_CC="$CC" # Let the user override the test.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3860 ac_prog_rejected=yes
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 if test $ac_prog_rejected = yes; then
3872 # We found a bogon in the path, so make sure we never use it.
3873 set dummy $ac_cv_prog_CC
3875 if test $# != 0; then
3876 # We chose a different compiler from the bogus one.
3877 # However, it has the same basename, so the bogon will be chosen
3878 # first if we set CC to just the basename; use the full file name.
3880 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3886 if test -n "$CC"; then
3887 { echo "$as_me:$LINENO: result: $CC" >&5
3888 echo "${ECHO_T}$CC" >&6; }
3890 { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3896 if test -z "$CC"; then
3897 if test -n "$ac_tool_prefix"; then
3898 for ac_prog in cl.exe
3900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3904 if test "${ac_cv_prog_CC+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 if test -n "$CC"; then
3908 ac_cv_prog_CC="$CC" # Let the user override the test.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 if test -n "$CC"; then
3929 { echo "$as_me:$LINENO: result: $CC" >&5
3930 echo "${ECHO_T}$CC" >&6; }
3932 { echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6; }
3937 test -n "$CC" && break
3940 if test -z "$CC"; then
3942 for ac_prog in cl.exe
3944 # Extract the first word of "$ac_prog", so it can be a program name with args.
3945 set dummy $ac_prog; ac_word=$2
3946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 if test -n "$ac_ct_CC"; then
3952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_prog_ac_ct_CC="$ac_prog"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3972 if test -n "$ac_ct_CC"; then
3973 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3974 echo "${ECHO_T}$ac_ct_CC" >&6; }
3976 { echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6; }
3981 test -n "$ac_ct_CC" && break
3984 if test "x$ac_ct_CC" = x; then
3987 case $cross_compiling:$ac_tool_warned in
3989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3990 whose name does not start with the host triplet. If you think this
3991 configuration is useful to you, please write to autoconf@gnu.org." >&5
3992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3993 whose name does not start with the host triplet. If you think this
3994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3995 ac_tool_warned=yes ;;
4004 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4005 See \`config.log' for more details." >&5
4006 echo "$as_me: error: no acceptable C compiler found in \$PATH
4007 See \`config.log' for more details." >&2;}
4008 { (exit 1); exit 1; }; }
4010 # Provide some information about the compiler.
4011 echo "$as_me:$LINENO: checking for C compiler version" >&5
4012 ac_compiler=`set X $ac_compile; echo $2`
4013 { (ac_try="$ac_compiler --version >&5"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compiler --version >&5") 2>&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }
4023 { (ac_try="$ac_compiler -v >&5"
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_compiler -v >&5") 2>&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }
4033 { (ac_try="$ac_compiler -V >&5"
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4039 (eval "$ac_compiler -V >&5") 2>&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }
4044 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4045 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4046 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 cat >conftest.$ac_ext <<_ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4076 grep -v '^ *+' conftest.er1 >conftest.err
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } && {
4081 test -z "$ac_c_werror_flag" ||
4082 test ! -s conftest.err
4083 } && test -s conftest.$ac_objext; then
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4096 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4097 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4098 GCC=`test $ac_compiler_gnu = yes && echo yes`
4099 ac_test_CFLAGS=${CFLAGS+set}
4100 ac_save_CFLAGS=$CFLAGS
4101 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4102 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4103 if test "${ac_cv_prog_cc_g+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4106 ac_save_c_werror_flag=$ac_c_werror_flag
4107 ac_c_werror_flag=yes
4110 cat >conftest.$ac_ext <<_ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4125 rm -f conftest.$ac_objext
4126 if { (ac_try="$ac_compile"
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_compile") 2>conftest.er1
4134 grep -v '^ *+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } && {
4139 test -z "$ac_c_werror_flag" ||
4140 test ! -s conftest.err
4141 } && test -s conftest.$ac_objext; then
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4163 rm -f conftest.$ac_objext
4164 if { (ac_try="$ac_compile"
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_compile") 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } && {
4177 test -z "$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4179 } && test -s conftest.$ac_objext; then
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 ac_c_werror_flag=$ac_save_c_werror_flag
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && {
4216 test -z "$ac_c_werror_flag" ||
4217 test ! -s conftest.err
4218 } && test -s conftest.$ac_objext; then
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 ac_c_werror_flag=$ac_save_c_werror_flag
4236 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4238 if test "$ac_test_CFLAGS" = set; then
4239 CFLAGS=$ac_save_CFLAGS
4240 elif test $ac_cv_prog_cc_g = yes; then
4241 if test "$GCC" = yes; then
4247 if test "$GCC" = yes; then
4253 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4254 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_cc_c89+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 ac_cv_prog_cc_c89=no
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4268 #include <sys/types.h>
4269 #include <sys/stat.h>
4270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4271 struct buf { int x; };
4272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4273 static char *e (p, i)
4279 static char *f (char * (*g) (char **, int), char **p, ...)
4284 s = g (p, va_arg (v,int));
4289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4290 function prototypes and stuff, but not '\xHH' hex character constants.
4291 These don't provoke an error unfortunately, instead are silently treated
4292 as 'x'. The following induces an error, until -std is added to get
4293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4294 array size at least. It's necessary to write '\x00'==0 to get something
4295 that's true only with -std. */
4296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4299 inside strings and character constants. */
4301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4303 int test (int i, double x);
4304 struct s1 {int (*f) (int a);};
4305 struct s2 {int (*f) (double a);};
4306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4312 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4320 CC="$ac_save_CC $ac_arg"
4321 rm -f conftest.$ac_objext
4322 if { (ac_try="$ac_compile"
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_compile") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } && {
4335 test -z "$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 } && test -s conftest.$ac_objext; then
4338 ac_cv_prog_cc_c89=$ac_arg
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4346 rm -f core conftest.err conftest.$ac_objext
4347 test "x$ac_cv_prog_cc_c89" != "xno" && break
4349 rm -f conftest.$ac_ext
4354 case "x$ac_cv_prog_cc_c89" in
4356 { echo "$as_me:$LINENO: result: none needed" >&5
4357 echo "${ECHO_T}none needed" >&6; } ;;
4359 { echo "$as_me:$LINENO: result: unsupported" >&5
4360 echo "${ECHO_T}unsupported" >&6; } ;;
4362 CC="$CC $ac_cv_prog_cc_c89"
4363 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4364 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374 depcc="$CC" am_compiler_list=
4376 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4377 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4378 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4382 # We make a subdir and do the tests there. Otherwise we can end up
4383 # making bogus files that we don't know about and never remove. For
4384 # instance it was reported that on HP-UX the gcc test will end up
4385 # making a dummy file named `D' -- because `-MD' means `put the output
4388 # Copy depcomp to subdir because otherwise we won't find it if we're
4389 # using a relative directory.
4390 cp "$am_depcomp" conftest.dir
4392 # We will build objects and dependencies in a subdirectory because
4393 # it helps to detect inapplicable dependency modes. For instance
4394 # both Tru64's cc and ICC support -MD to output dependencies as a
4395 # side effect of compilation, but ICC will put the dependencies in
4396 # the current directory while Tru64 will put them in the object
4400 am_cv_CC_dependencies_compiler_type=none
4401 if test "$am_compiler_list" = ""; then
4402 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4404 for depmode in $am_compiler_list; do
4405 # Setup a source with many dependencies, because some compilers
4406 # like to wrap large dependency lists on column 80 (with \), and
4407 # we should not choose a depcomp mode which is confused by this.
4409 # We need to recreate these files for each test, as the compiler may
4410 # overwrite some of them when testing with obscure command lines.
4411 # This happens at least with the AIX C compiler.
4413 for i in 1 2 3 4 5 6; do
4414 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4415 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4416 # Solaris 8's {/usr,}/bin/sh.
4417 touch sub/conftst$i.h
4419 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4423 # after this tag, mechanisms are not by side-effect, so they'll
4424 # only be used when explicitly requested
4425 if test "x$enable_dependency_tracking" = xyes; then
4433 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4434 # mode. It turns out that the SunPro C++ compiler does not properly
4435 # handle `-M -o', and we need to detect this.
4436 if depmode=$depmode \
4437 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4439 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4440 >/dev/null 2>conftest.err &&
4441 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4442 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4443 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4444 # icc doesn't choke on unknown options, it will just issue warnings
4445 # or remarks (even with -Werror). So we grep stderr for any message
4446 # that says an option was ignored or not supported.
4447 # When given -MP, icc 7.0 and 7.1 complain thusly:
4448 # icc: Command line warning: ignoring option '-M'; no argument required
4449 # The diagnosis changed in icc 8.0:
4450 # icc: Command line remark: option '-MP' not supported
4451 if (grep 'ignoring option' conftest.err ||
4452 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4453 am_cv_CC_dependencies_compiler_type=$depmode
4462 am_cv_CC_dependencies_compiler_type=none
4466 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4467 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4468 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4473 test "x$enable_dependency_tracking" != xno \
4474 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4476 am__fastdepCC_FALSE='#'
4478 am__fastdepCC_TRUE='#'
4479 am__fastdepCC_FALSE=
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488 if test -n "$ac_tool_prefix"; then
4489 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4490 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4493 if test "${ac_cv_prog_CC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 if test -n "$CC"; then
4497 ac_cv_prog_CC="$CC" # Let the user override the test.
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4506 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 if test -n "$CC"; then
4518 { echo "$as_me:$LINENO: result: $CC" >&5
4519 echo "${ECHO_T}$CC" >&6; }
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4527 if test -z "$ac_cv_prog_CC"; then
4529 # Extract the first word of "gcc", so it can be a program name with args.
4530 set dummy gcc; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 if test -n "$ac_ct_CC"; then
4537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_ac_ct_CC="gcc"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4557 if test -n "$ac_ct_CC"; then
4558 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4559 echo "${ECHO_T}$ac_ct_CC" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4565 if test "x$ac_ct_CC" = x; then
4568 case $cross_compiling:$ac_tool_warned in
4570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4571 whose name does not start with the host triplet. If you think this
4572 configuration is useful to you, please write to autoconf@gnu.org." >&5
4573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4574 whose name does not start with the host triplet. If you think this
4575 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4576 ac_tool_warned=yes ;;
4584 if test -z "$CC"; then
4585 if test -n "$ac_tool_prefix"; then
4586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4587 set dummy ${ac_tool_prefix}cc; ac_word=$2
4588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4590 if test "${ac_cv_prog_CC+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 if test -n "$CC"; then
4594 ac_cv_prog_CC="$CC" # Let the user override the test.
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4603 ac_cv_prog_CC="${ac_tool_prefix}cc"
4604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 if test -n "$CC"; then
4615 { echo "$as_me:$LINENO: result: $CC" >&5
4616 echo "${ECHO_T}$CC" >&6; }
4618 { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4625 if test -z "$CC"; then
4626 # Extract the first word of "cc", so it can be a program name with args.
4627 set dummy cc; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_CC+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4645 ac_prog_rejected=yes
4649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test $ac_prog_rejected = yes; then
4657 # We found a bogon in the path, so make sure we never use it.
4658 set dummy $ac_cv_prog_CC
4660 if test $# != 0; then
4661 # We chose a different compiler from the bogus one.
4662 # However, it has the same basename, so the bogon will be chosen
4663 # first if we set CC to just the basename; use the full file name.
4665 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4671 if test -n "$CC"; then
4672 { echo "$as_me:$LINENO: result: $CC" >&5
4673 echo "${ECHO_T}$CC" >&6; }
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4681 if test -z "$CC"; then
4682 if test -n "$ac_tool_prefix"; then
4683 for ac_prog in cl.exe
4685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689 if test "${ac_cv_prog_CC+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 if test -n "$CC"; then
4693 ac_cv_prog_CC="$CC" # Let the user override the test.
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 if test -n "$CC"; then
4714 { echo "$as_me:$LINENO: result: $CC" >&5
4715 echo "${ECHO_T}$CC" >&6; }
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4722 test -n "$CC" && break
4725 if test -z "$CC"; then
4727 for ac_prog in cl.exe
4729 # Extract the first word of "$ac_prog", so it can be a program name with args.
4730 set dummy $ac_prog; ac_word=$2
4731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 if test -n "$ac_ct_CC"; then
4737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_ac_ct_CC="$ac_prog"
4747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4757 if test -n "$ac_ct_CC"; then
4758 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4759 echo "${ECHO_T}$ac_ct_CC" >&6; }
4761 { echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6; }
4766 test -n "$ac_ct_CC" && break
4769 if test "x$ac_ct_CC" = x; then
4772 case $cross_compiling:$ac_tool_warned in
4774 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4775 whose name does not start with the host triplet. If you think this
4776 configuration is useful to you, please write to autoconf@gnu.org." >&5
4777 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4778 whose name does not start with the host triplet. If you think this
4779 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4780 ac_tool_warned=yes ;;
4789 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4790 See \`config.log' for more details." >&5
4791 echo "$as_me: error: no acceptable C compiler found in \$PATH
4792 See \`config.log' for more details." >&2;}
4793 { (exit 1); exit 1; }; }
4795 # Provide some information about the compiler.
4796 echo "$as_me:$LINENO: checking for C compiler version" >&5
4797 ac_compiler=`set X $ac_compile; echo $2`
4798 { (ac_try="$ac_compiler --version >&5"
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804 (eval "$ac_compiler --version >&5") 2>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }
4808 { (ac_try="$ac_compiler -v >&5"
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814 (eval "$ac_compiler -v >&5") 2>&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }
4818 { (ac_try="$ac_compiler -V >&5"
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_compiler -V >&5") 2>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }
4829 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4830 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4831 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 cat >conftest.$ac_ext <<_ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4852 rm -f conftest.$ac_objext
4853 if { (ac_try="$ac_compile"
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_compile") 2>conftest.er1
4861 grep -v '^ *+' conftest.er1 >conftest.err
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && {
4866 test -z "$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4868 } && test -s conftest.$ac_objext; then
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4881 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4882 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4883 GCC=`test $ac_compiler_gnu = yes && echo yes`
4884 ac_test_CFLAGS=${CFLAGS+set}
4885 ac_save_CFLAGS=$CFLAGS
4886 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4887 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4888 if test "${ac_cv_prog_cc_g+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 ac_save_c_werror_flag=$ac_c_werror_flag
4892 ac_c_werror_flag=yes
4895 cat >conftest.$ac_ext <<_ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4910 rm -f conftest.$ac_objext
4911 if { (ac_try="$ac_compile"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_compile") 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } && {
4924 test -z "$ac_c_werror_flag" ||
4925 test ! -s conftest.err
4926 } && test -s conftest.$ac_objext; then
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4933 cat >conftest.$ac_ext <<_ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4948 rm -f conftest.$ac_objext
4949 if { (ac_try="$ac_compile"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_compile") 2>conftest.er1
4957 grep -v '^ *+' conftest.er1 >conftest.err
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } && {
4962 test -z "$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4964 } && test -s conftest.$ac_objext; then
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 ac_c_werror_flag=$ac_save_c_werror_flag
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4987 rm -f conftest.$ac_objext
4988 if { (ac_try="$ac_compile"
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_compile") 2>conftest.er1
4996 grep -v '^ *+' conftest.er1 >conftest.err
4998 cat conftest.err >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } && {
5001 test -z "$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5003 } && test -s conftest.$ac_objext; then
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 ac_c_werror_flag=$ac_save_c_werror_flag
5021 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5022 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5023 if test "$ac_test_CFLAGS" = set; then
5024 CFLAGS=$ac_save_CFLAGS
5025 elif test $ac_cv_prog_cc_g = yes; then
5026 if test "$GCC" = yes; then
5032 if test "$GCC" = yes; then
5038 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5039 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5040 if test "${ac_cv_prog_cc_c89+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 ac_cv_prog_cc_c89=no
5045 cat >conftest.$ac_ext <<_ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5053 #include <sys/types.h>
5054 #include <sys/stat.h>
5055 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5056 struct buf { int x; };
5057 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5058 static char *e (p, i)
5064 static char *f (char * (*g) (char **, int), char **p, ...)
5069 s = g (p, va_arg (v,int));
5074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5075 function prototypes and stuff, but not '\xHH' hex character constants.
5076 These don't provoke an error unfortunately, instead are silently treated
5077 as 'x'. The following induces an error, until -std is added to get
5078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5079 array size at least. It's necessary to write '\x00'==0 to get something
5080 that's true only with -std. */
5081 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5083 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5084 inside strings and character constants. */
5086 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5088 int test (int i, double x);
5089 struct s1 {int (*f) (int a);};
5090 struct s2 {int (*f) (double a);};
5091 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5097 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5102 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5103 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5105 CC="$ac_save_CC $ac_arg"
5106 rm -f conftest.$ac_objext
5107 if { (ac_try="$ac_compile"
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_compile") 2>conftest.er1
5115 grep -v '^ *+' conftest.er1 >conftest.err
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && {
5120 test -z "$ac_c_werror_flag" ||
5121 test ! -s conftest.err
5122 } && test -s conftest.$ac_objext; then
5123 ac_cv_prog_cc_c89=$ac_arg
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5131 rm -f core conftest.err conftest.$ac_objext
5132 test "x$ac_cv_prog_cc_c89" != "xno" && break
5134 rm -f conftest.$ac_ext
5139 case "x$ac_cv_prog_cc_c89" in
5141 { echo "$as_me:$LINENO: result: none needed" >&5
5142 echo "${ECHO_T}none needed" >&6; } ;;
5144 { echo "$as_me:$LINENO: result: unsupported" >&5
5145 echo "${ECHO_T}unsupported" >&6; } ;;
5147 CC="$CC $ac_cv_prog_cc_c89"
5148 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5149 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5154 ac_cpp='$CPP $CPPFLAGS'
5155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5159 depcc="$CC" am_compiler_list=
5161 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5163 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5167 # We make a subdir and do the tests there. Otherwise we can end up
5168 # making bogus files that we don't know about and never remove. For
5169 # instance it was reported that on HP-UX the gcc test will end up
5170 # making a dummy file named `D' -- because `-MD' means `put the output
5173 # Copy depcomp to subdir because otherwise we won't find it if we're
5174 # using a relative directory.
5175 cp "$am_depcomp" conftest.dir
5177 # We will build objects and dependencies in a subdirectory because
5178 # it helps to detect inapplicable dependency modes. For instance
5179 # both Tru64's cc and ICC support -MD to output dependencies as a
5180 # side effect of compilation, but ICC will put the dependencies in
5181 # the current directory while Tru64 will put them in the object
5185 am_cv_CC_dependencies_compiler_type=none
5186 if test "$am_compiler_list" = ""; then
5187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5189 for depmode in $am_compiler_list; do
5190 # Setup a source with many dependencies, because some compilers
5191 # like to wrap large dependency lists on column 80 (with \), and
5192 # we should not choose a depcomp mode which is confused by this.
5194 # We need to recreate these files for each test, as the compiler may
5195 # overwrite some of them when testing with obscure command lines.
5196 # This happens at least with the AIX C compiler.
5198 for i in 1 2 3 4 5 6; do
5199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5201 # Solaris 8's {/usr,}/bin/sh.
5202 touch sub/conftst$i.h
5204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5208 # after this tag, mechanisms are not by side-effect, so they'll
5209 # only be used when explicitly requested
5210 if test "x$enable_dependency_tracking" = xyes; then
5218 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5219 # mode. It turns out that the SunPro C++ compiler does not properly
5220 # handle `-M -o', and we need to detect this.
5221 if depmode=$depmode \
5222 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5224 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5225 >/dev/null 2>conftest.err &&
5226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5227 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5229 # icc doesn't choke on unknown options, it will just issue warnings
5230 # or remarks (even with -Werror). So we grep stderr for any message
5231 # that says an option was ignored or not supported.
5232 # When given -MP, icc 7.0 and 7.1 complain thusly:
5233 # icc: Command line warning: ignoring option '-M'; no argument required
5234 # The diagnosis changed in icc 8.0:
5235 # icc: Command line remark: option '-MP' not supported
5236 if (grep 'ignoring option' conftest.err ||
5237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5238 am_cv_CC_dependencies_compiler_type=$depmode
5247 am_cv_CC_dependencies_compiler_type=none
5251 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5252 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5258 test "x$enable_dependency_tracking" != xno \
5259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5261 am__fastdepCC_FALSE='#'
5263 am__fastdepCC_TRUE='#'
5264 am__fastdepCC_FALSE=
5269 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5272 ac_cpp='$CPP $CPPFLAGS'
5273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5277 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5278 # On Suns, sometimes $CPP names a directory.
5279 if test -n "$CPP" && test -d "$CPP"; then
5282 if test -z "$CPP"; then
5283 if test "${ac_cv_prog_CPP+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 # Double quotes because CPP needs to be expanded
5287 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5290 for ac_c_preproc_warn_flag in '' yes
5292 # Use a header file that comes with gcc, so configuring glibc
5293 # with a fresh cross-compiler works.
5294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5295 # <limits.h> exists even on freestanding compilers.
5296 # On the NeXT, cc -E runs the code through the compiler's parser,
5297 # not just through cpp. "Syntax error" is here to catch this case.
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5305 # include <limits.h>
5307 # include <assert.h>
5311 if { (ac_try="$ac_cpp conftest.$ac_ext"
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } >/dev/null && {
5324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5332 # Broken: fails on valid input.
5336 rm -f conftest.err conftest.$ac_ext
5338 # OK, works on sane cases. Now check whether nonexistent headers
5339 # can be detected and how.
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 #include <ac_nonexistent.h>
5348 if { (ac_try="$ac_cpp conftest.$ac_ext"
5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5351 *) ac_try_echo=$ac_try;;
5353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5356 grep -v '^ *+' conftest.er1 >conftest.err
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } >/dev/null && {
5361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5362 test ! -s conftest.err
5364 # Broken: success on invalid input.
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5370 # Passes both tests.
5375 rm -f conftest.err conftest.$ac_ext
5378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5379 rm -f conftest.err conftest.$ac_ext
5380 if $ac_preproc_ok; then
5392 { echo "$as_me:$LINENO: result: $CPP" >&5
5393 echo "${ECHO_T}$CPP" >&6; }
5395 for ac_c_preproc_warn_flag in '' yes
5397 # Use a header file that comes with gcc, so configuring glibc
5398 # with a fresh cross-compiler works.
5399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400 # <limits.h> exists even on freestanding compilers.
5401 # On the NeXT, cc -E runs the code through the compiler's parser,
5402 # not just through cpp. "Syntax error" is here to catch this case.
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5410 # include <limits.h>
5412 # include <assert.h>
5416 if { (ac_try="$ac_cpp conftest.$ac_ext"
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5424 grep -v '^ *+' conftest.er1 >conftest.err
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } >/dev/null && {
5429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5430 test ! -s conftest.err
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5437 # Broken: fails on valid input.
5441 rm -f conftest.err conftest.$ac_ext
5443 # OK, works on sane cases. Now check whether nonexistent headers
5444 # can be detected and how.
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 #include <ac_nonexistent.h>
5453 if { (ac_try="$ac_cpp conftest.$ac_ext"
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5461 grep -v '^ *+' conftest.er1 >conftest.err
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } >/dev/null && {
5466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5467 test ! -s conftest.err
5469 # Broken: success on invalid input.
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 # Passes both tests.
5480 rm -f conftest.err conftest.$ac_ext
5483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5484 rm -f conftest.err conftest.$ac_ext
5485 if $ac_preproc_ok; then
5488 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5489 See \`config.log' for more details." >&5
5490 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5491 See \`config.log' for more details." >&2;}
5492 { (exit 1); exit 1; }; }
5496 ac_cpp='$CPP $CPPFLAGS'
5497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5503 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5505 if test -z "$CC_FOR_BUILD"; then
5506 if test "$#" = yes; then
5507 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5508 See \`config.log' for more details." >&5
5509 echo "$as_me: error: cannot run test program while cross compiling
5510 See \`config.log' for more details." >&2;}
5511 { (exit 1); exit 1; }; }
5513 cat >conftest.$ac_ext <<_ACEOF
5514 int main(){return 0;}
5516 rm -f conftest$ac_exeext
5517 if { (ac_try="$ac_link"
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5523 (eval "$ac_link") 2>&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5527 { (case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_try") 2>&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5538 echo "$as_me: program exited with status $ac_status" >&5
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5551 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5552 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5553 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5555 if test -n "$ac_build_tool_prefix"; then
5556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5557 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5560 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 if test -n "$CC_FOR_BUILD"; then
5564 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5584 if test -n "$CC_FOR_BUILD"; then
5585 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5586 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5588 { echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6; }
5594 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5595 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5596 # Extract the first word of "gcc", so it can be a program name with args.
5597 set dummy gcc; ac_word=$2
5598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5600 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 if test -n "$ac_ct_CC_FOR_BUILD"; then
5604 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5624 if test -n "$ac_ct_CC_FOR_BUILD"; then
5625 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5626 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5628 { echo "$as_me:$LINENO: result: no" >&5
5629 echo "${ECHO_T}no" >&6; }
5632 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5635 case $#:$ac_tool_warned in
5637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5638 whose name does not start with the build triplet. If you think this
5639 configuration is useful to you, please write to autoconf@gnu.org." >&5
5640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5641 whose name does not start with the build triplet. If you think this
5642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5643 ac_tool_warned=yes ;;
5645 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5648 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5651 if test -z "$CC_FOR_BUILD"; then
5652 if test -n "$ac_build_tool_prefix"; then
5653 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5654 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5657 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 if test -n "$CC_FOR_BUILD"; then
5661 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5681 if test -n "$CC_FOR_BUILD"; then
5682 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5683 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5685 { echo "$as_me:$LINENO: result: no" >&5
5686 echo "${ECHO_T}no" >&6; }
5692 if test -z "$CC_FOR_BUILD"; then
5693 # Extract the first word of "cc", so it can be a program name with args.
5694 set dummy cc; ac_word=$2
5695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5697 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 if test -n "$CC_FOR_BUILD"; then
5701 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5712 ac_prog_rejected=yes
5715 ac_cv_prog_CC_FOR_BUILD="cc"
5716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 if test $ac_prog_rejected = yes; then
5724 # We found a bogon in the path, so make sure we never use it.
5725 set dummy $ac_cv_prog_CC_FOR_BUILD
5727 if test $# != 0; then
5728 # We chose a different compiler from the bogus one.
5729 # However, it has the same basename, so the bogon will be chosen
5730 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5732 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5737 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5738 if test -n "$CC_FOR_BUILD"; then
5739 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5740 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5742 { echo "$as_me:$LINENO: result: no" >&5
5743 echo "${ECHO_T}no" >&6; }
5748 if test -z "$CC_FOR_BUILD"; then
5749 if test -n "$ac_build_tool_prefix"; then
5750 for ac_prog in cl.exe
5752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5753 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 if test -n "$CC_FOR_BUILD"; then
5760 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5780 if test -n "$CC_FOR_BUILD"; then
5781 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5782 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5784 { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5789 test -n "$CC_FOR_BUILD" && break
5792 if test -z "$CC_FOR_BUILD"; then
5793 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5794 for ac_prog in cl.exe
5796 # Extract the first word of "$ac_prog", so it can be a program name with args.
5797 set dummy $ac_prog; ac_word=$2
5798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5800 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 if test -n "$ac_ct_CC_FOR_BUILD"; then
5804 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5824 if test -n "$ac_ct_CC_FOR_BUILD"; then
5825 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5826 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5828 { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5833 test -n "$ac_ct_CC_FOR_BUILD" && break
5836 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5839 case $#:$ac_tool_warned in
5841 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5842 whose name does not start with the build triplet. If you think this
5843 configuration is useful to you, please write to autoconf@gnu.org." >&5
5844 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5845 whose name does not start with the build triplet. If you think this
5846 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5847 ac_tool_warned=yes ;;
5849 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5856 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5857 See \`config.log' for more details." >&5
5858 echo "$as_me: error: no acceptable C compiler found in \$PATH
5859 See \`config.log' for more details." >&2;}
5860 { (exit 1); exit 1; }; }
5862 # Provide some information about the compiler.
5863 echo "$as_me:$LINENO: checking for C compiler version" >&5
5864 ac_compiler=`set X $ac_build_compile; echo $2`
5865 { (ac_try="$ac_compiler --version >&5"
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compiler --version >&5") 2>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }
5875 { (ac_try="$ac_compiler -v >&5"
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compiler -v >&5") 2>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }
5885 { (ac_try="$ac_compiler -V >&5"
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_compiler -V >&5") 2>&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }
5896 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5897 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5898 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 cat >conftest.$ac_ext <<_ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5919 rm -f conftest.$ac_build_objext
5920 if { (ac_try="$ac_build_compile"
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_build_compile") 2>conftest.er1
5928 grep -v '^ *+' conftest.er1 >conftest.err
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest.$ac_build_objext; then
5936 ac_build_compiler_gnu=yes
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 ac_build_compiler_gnu=no
5944 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5945 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
5948 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5949 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5950 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
5951 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5952 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5953 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
5954 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
5955 if test "${ac_cv_build_prog_cc_g+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 ac_save_c_werror_flag=$ac_c_werror_flag
5959 ac_c_werror_flag=yes
5960 ac_cv_build_prog_cc_g=no
5961 CFLAGS_FOR_BUILD="-g"
5962 cat >conftest.$ac_ext <<_ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5977 rm -f conftest.$ac_build_objext
5978 if { (ac_try="$ac_build_compile"
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_build_compile") 2>conftest.er1
5986 grep -v '^ *+' conftest.er1 >conftest.err
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest.$ac_build_objext; then
5994 ac_cv_build_prog_cc_g=yes
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
6000 cat >conftest.$ac_ext <<_ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6015 rm -f conftest.$ac_build_objext
6016 if { (ac_try="$ac_build_compile"
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_build_compile") 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && {
6029 test -z "$ac_c_werror_flag" ||
6030 test ! -s conftest.err
6031 } && test -s conftest.$ac_build_objext; then
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 ac_c_werror_flag=$ac_save_c_werror_flag
6038 CFLAGS_FOR_BUILD="-g"
6039 cat >conftest.$ac_ext <<_ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6054 rm -f conftest.$ac_build_objext
6055 if { (ac_try="$ac_build_compile"
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_build_compile") 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest.$ac_build_objext; then
6071 ac_cv_build_prog_cc_g=yes
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6079 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6082 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6085 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6086 ac_c_werror_flag=$ac_save_c_werror_flag
6088 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6089 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6090 if test "$ac_test_CFLAGS" = set; then
6091 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6092 elif test $ac_cv_build_prog_cc_g = yes; then
6093 if test "$GCC" = yes; then
6094 CFLAGS_FOR_BUILD="-g -O2"
6096 CFLAGS_FOR_BUILD="-g"
6099 if test "$GCC" = yes; then
6100 CFLAGS_FOR_BUILD="-O2"
6105 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6106 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6107 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 ac_cv_build_prog_cc_stdc=no
6111 ac_save_CC=$CC_FOR_BUILD
6112 cat >conftest.$ac_ext <<_ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6120 #include <sys/types.h>
6121 #include <sys/stat.h>
6122 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6123 struct buf { int x; };
6124 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6125 static char *e (p, i)
6131 static char *f (char * (*g) (char **, int), char **p, ...)
6136 s = g (p, va_arg (v,int));
6141 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6142 function prototypes and stuff, but not '\xHH' hex character constants.
6143 These don't provoke an error unfortunately, instead are silently treated
6144 as 'x'. The following induces an error, until -std is added to get
6145 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6146 array size at least. It's necessary to write '\x00'==0 to get something
6147 that's true only with -std. */
6148 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6150 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6151 inside strings and character constants. */
6153 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6155 int test (int i, double x);
6156 struct s1 {int (*f) (int a);};
6157 struct s2 {int (*f) (double a);};
6158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6164 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6169 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6170 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6172 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6173 rm -f conftest.$ac_build_objext
6174 if { (ac_try="$ac_build_compile"
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_build_compile") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.$ac_build_objext; then
6190 ac_cv_build_prog_cc_stdc=$ac_arg
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6198 rm -f core conftest.err conftest.$ac_build_objext
6199 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6201 rm -f conftest.$ac_ext
6202 CC_FOR_BUILD=$ac_save_CC
6206 case "x$ac_cv_build_prog_cc_stdc" in
6208 { echo "$as_me:$LINENO: result: none needed" >&5
6209 echo "${ECHO_T}none needed" >&6; } ;;
6211 { echo "$as_me:$LINENO: result: unsupported" >&5
6212 echo "${ECHO_T}unsupported" >&6; } ;;
6214 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6215 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6216 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6221 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6222 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6223 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6226 depcc="$CC_FOR_BUILD" am_compiler_list=
6228 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6229 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6230 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6234 # We make a subdir and do the tests there. Otherwise we can end up
6235 # making bogus files that we don't know about and never remove. For
6236 # instance it was reported that on HP-UX the gcc test will end up
6237 # making a dummy file named `D' -- because `-MD' means `put the output
6240 # Copy depcomp to subdir because otherwise we won't find it if we're
6241 # using a relative directory.
6242 cp "$am_depcomp" conftest.dir
6244 # We will build objects and dependencies in a subdirectory because
6245 # it helps to detect inapplicable dependency modes. For instance
6246 # both Tru64's cc and ICC support -MD to output dependencies as a
6247 # side effect of compilation, but ICC will put the dependencies in
6248 # the current directory while Tru64 will put them in the object
6252 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6253 if test "$am_compiler_list" = ""; then
6254 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6256 for depmode in $am_compiler_list; do
6257 # Setup a source with many dependencies, because some compilers
6258 # like to wrap large dependency lists on column 80 (with \), and
6259 # we should not choose a depcomp mode which is confused by this.
6261 # We need to recreate these files for each test, as the compiler may
6262 # overwrite some of them when testing with obscure command lines.
6263 # This happens at least with the AIX C compiler.
6265 for i in 1 2 3 4 5 6; do
6266 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6267 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6268 # Solaris 8's {/usr,}/bin/sh.
6269 touch sub/conftst$i.h
6271 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6275 # after this tag, mechanisms are not by side-effect, so they'll
6276 # only be used when explicitly requested
6277 if test "x$enable_dependency_tracking" = xyes; then
6285 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6286 # mode. It turns out that the SunPro C++ compiler does not properly
6287 # handle `-M -o', and we need to detect this.
6288 if depmode=$depmode \
6289 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6290 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6291 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6292 >/dev/null 2>conftest.err &&
6293 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6294 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6295 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6296 # icc doesn't choke on unknown options, it will just issue warnings
6297 # or remarks (even with -Werror). So we grep stderr for any message
6298 # that says an option was ignored or not supported.
6299 # When given -MP, icc 7.0 and 7.1 complain thusly:
6300 # icc: Command line warning: ignoring option '-M'; no argument required
6301 # The diagnosis changed in icc 8.0:
6302 # icc: Command line remark: option '-MP' not supported
6303 if (grep 'ignoring option' conftest.err ||
6304 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6305 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6314 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6318 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6319 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6320 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6325 test "x$enable_dependency_tracking" != xno \
6326 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6327 am__fastdepCC_FOR_BUILD_TRUE=
6328 am__fastdepCC_FOR_BUILD_FALSE='#'
6330 am__fastdepCC_FOR_BUILD_TRUE='#'
6331 am__fastdepCC_FOR_BUILD_FALSE=
6335 case $ac_cv_build_prog_cc_stdc in
6336 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6337 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6338 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6339 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 ac_cv_build_prog_cc_stdc=no
6343 ac_save_CC=$CC_FOR_BUILD
6344 cat >conftest.$ac_ext <<_ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6351 #include <stdbool.h>
6356 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6357 #define debug(...) fprintf (stderr, __VA_ARGS__)
6358 #define showlist(...) puts (#__VA_ARGS__)
6359 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6361 test_varargs_macros (void)
6366 debug ("X = %d\n", x);
6367 showlist (The first, second, and third items.);
6368 report (x>y, "x is %d but y is %d", x, y);
6371 // Check long long types.
6372 #define BIG64 18446744073709551615ull
6373 #define BIG32 4294967295ul
6374 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6376 your preprocessor is broken;
6380 your preprocessor is broken;
6382 static long long int bignum = -9223372036854775807LL;
6383 static unsigned long long int ubignum = BIG64;
6385 struct incomplete_array
6393 const wchar_t *name;
6397 typedef const char *ccp;
6400 test_restrict (ccp restrict text)
6402 // See if C++-style comments work.
6403 // Iterate through items via the restricted pointer.
6404 // Also check for declarations in for loops.
6405 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6410 // Check varargs and va_copy.
6412 test_varargs (const char *format, ...)
6415 va_start (args, format);
6417 va_copy (args_copy, args);
6428 str = va_arg (args_copy, const char *);
6431 number = va_arg (args_copy, int);
6434 fnumber = va_arg (args_copy, double);
6449 _Bool success = false;
6452 if (test_restrict ("String literal") == 0)
6454 char *restrict newvar = "Another string";
6457 test_varargs ("s, d' f .", "string", 65, 34.234);
6458 test_varargs_macros ();
6460 // Check flexible array members.
6461 struct incomplete_array *ia =
6462 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6464 for (int i = 0; i < ia->datasize; ++i)
6465 ia->data[i] = i * 1.234;
6467 // Check named initializers.
6468 struct named_init ni = {
6470 .name = L"Test wide string",
6471 .average = 543.34343,
6476 int dynamic_array[ni.number];
6477 dynamic_array[ni.number - 1] = 543;
6479 // work around unused variable warnings
6480 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6481 || dynamic_array[ni.number - 1] != 543);
6487 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6489 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6490 rm -f conftest.$ac_build_objext
6491 if { (ac_try="$ac_build_compile"
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_build_compile") 2>conftest.er1
6499 grep -v '^ *+' conftest.er1 >conftest.err
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && {
6504 test -z "$ac_c_werror_flag" ||
6505 test ! -s conftest.err
6506 } && test -s conftest.$ac_build_objext; then
6507 ac_cv_build_prog_cc_stdc=$ac_arg
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6515 rm -f core conftest.err conftest.$ac_build_objext
6516 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6518 rm -f conftest.$ac_ext
6519 CC_FOR_BUILD=$ac_save_CC
6523 case "x$ac_cv_build_prog_cc_stdc" in
6525 { echo "$as_me:$LINENO: result: none needed" >&5
6526 echo "${ECHO_T}none needed" >&6; } ;;
6528 { echo "$as_me:$LINENO: result: unsupported" >&5
6529 echo "${ECHO_T}unsupported" >&6; } ;;
6531 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6532 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6533 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6535 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6536 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6538 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6539 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6540 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 ac_cv_build_prog_cc_stdc=no
6544 ac_save_CC=$CC_FOR_BUILD
6545 cat >conftest.$ac_ext <<_ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6553 #include <sys/types.h>
6554 #include <sys/stat.h>
6555 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6556 struct buf { int x; };
6557 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6558 static char *e (p, i)
6564 static char *f (char * (*g) (char **, int), char **p, ...)
6569 s = g (p, va_arg (v,int));
6574 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6575 function prototypes and stuff, but not '\xHH' hex character constants.
6576 These don't provoke an error unfortunately, instead are silently treated
6577 as 'x'. The following induces an error, until -std is added to get
6578 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6579 array size at least. It's necessary to write '\x00'==0 to get something
6580 that's true only with -std. */
6581 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6583 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6584 inside strings and character constants. */
6586 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6588 int test (int i, double x);
6589 struct s1 {int (*f) (int a);};
6590 struct s2 {int (*f) (double a);};
6591 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6597 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6602 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6603 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6605 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6606 rm -f conftest.$ac_build_objext
6607 if { (ac_try="$ac_build_compile"
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_build_compile") 2>conftest.er1
6615 grep -v '^ *+' conftest.er1 >conftest.err
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } && {
6620 test -z "$ac_c_werror_flag" ||
6621 test ! -s conftest.err
6622 } && test -s conftest.$ac_build_objext; then
6623 ac_cv_build_prog_cc_stdc=$ac_arg
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6631 rm -f core conftest.err conftest.$ac_build_objext
6632 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6634 rm -f conftest.$ac_ext
6635 CC_FOR_BUILD=$ac_save_CC
6639 case "x$ac_cv_build_prog_cc_stdc" in
6641 { echo "$as_me:$LINENO: result: none needed" >&5
6642 echo "${ECHO_T}none needed" >&6; } ;;
6644 { echo "$as_me:$LINENO: result: unsupported" >&5
6645 echo "${ECHO_T}unsupported" >&6; } ;;
6647 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6648 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6649 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6651 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6652 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6654 ac_cv_build_prog_cc_stdc=no
6662 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6663 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6664 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 case $ac_cv_build_prog_cc_stdc in
6669 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6670 echo "${ECHO_T}unsupported" >&6; } ;;
6671 '') { echo "$as_me:$LINENO: result: none needed" >&5
6672 echo "${ECHO_T}none needed" >&6; } ;;
6673 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6674 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6679 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6680 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6681 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6683 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6684 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6685 # On Suns, sometimes $CPP names a directory.
6686 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6689 if test -z "$CPP_FOR_BUILD"; then
6690 if test "${ac_cv_build_prog_CPP+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 # Double quotes because CPP needs to be expanded
6694 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6697 for ac_c_preproc_warn_flag in '' yes
6699 # Use a header file that comes with gcc, so configuring glibc
6700 # with a fresh cross-compiler works.
6701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6702 # <limits.h> exists even on freestanding compilers.
6703 # On the NeXT, cc -E runs the code through the compiler's parser,
6704 # not just through cpp. "Syntax error" is here to catch this case.
6705 cat >conftest.$ac_ext <<_ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6712 # include <limits.h>
6714 # include <assert.h>
6718 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6726 grep -v '^ *+' conftest.er1 >conftest.err
6728 cat conftest.err >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } >/dev/null && {
6731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6732 test ! -s conftest.err
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6739 # Broken: fails on valid input.
6743 rm -f conftest.err conftest.$ac_ext
6745 # OK, works on sane cases. Now check whether nonexistent headers
6746 # can be detected and how.
6747 cat >conftest.$ac_ext <<_ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <ac_nonexistent.h>
6755 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6763 grep -v '^ *+' conftest.er1 >conftest.err
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } >/dev/null && {
6768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||