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
728 am__fastdepOBJC_FALSE
756 GLIB_FOR_BUILD_CFLAGS
833 ac_precious_vars='build_alias
858 GLIB_FOR_BUILD_CFLAGS
874 # Initialize some variables set by options.
876 ac_init_version=false
877 # The variables have the same names as the options, with
878 # dashes changed to underlines.
886 program_transform_name=s,x,x,
894 # Installation directory options.
895 # These are left unexpanded so users can "make install exec_prefix=/foo"
896 # and all the variables that are supposed to be based on exec_prefix
897 # by default will actually change.
898 # Use braces instead of parens because sh, perl, etc. also accept them.
899 # (The list follows the same order as the GNU Coding Standards.)
900 bindir='${exec_prefix}/bin'
901 sbindir='${exec_prefix}/sbin'
902 libexecdir='${exec_prefix}/libexec'
903 datarootdir='${prefix}/share'
904 datadir='${datarootdir}'
905 sysconfdir='${prefix}/etc'
906 sharedstatedir='${prefix}/com'
907 localstatedir='${prefix}/var'
908 includedir='${prefix}/include'
909 oldincludedir='/usr/include'
910 docdir='${datarootdir}/doc/${PACKAGE}'
911 infodir='${datarootdir}/info'
916 libdir='${exec_prefix}/lib'
917 localedir='${datarootdir}/locale'
918 mandir='${datarootdir}/man'
924 # If the previous option needs an argument, assign it.
925 if test -n "$ac_prev"; then
926 eval $ac_prev=\$ac_option
932 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936 # Accept the important Cygnus configure options, so we can diagnose typos.
938 case $ac_dashdash$ac_option in
942 -bindir | --bindir | --bindi | --bind | --bin | --bi)
944 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947 -build | --build | --buil | --bui | --bu)
948 ac_prev=build_alias ;;
949 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
950 build_alias=$ac_optarg ;;
952 -cache-file | --cache-file | --cache-fil | --cache-fi \
953 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
954 ac_prev=cache_file ;;
955 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
956 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
957 cache_file=$ac_optarg ;;
960 cache_file=config.cache ;;
962 -datadir | --datadir | --datadi | --datad)
964 -datadir=* | --datadir=* | --datadi=* | --datad=*)
965 datadir=$ac_optarg ;;
967 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
968 | --dataroo | --dataro | --datar)
969 ac_prev=datarootdir ;;
970 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
971 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
972 datarootdir=$ac_optarg ;;
974 -disable-* | --disable-*)
975 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
978 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
979 { (exit 1); exit 1; }; }
980 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
981 eval enable_$ac_feature=no ;;
983 -docdir | --docdir | --docdi | --doc | --do)
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 -enable-* | --enable-*)
994 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
997 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
998 { (exit 1); exit 1; }; }
999 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1000 eval enable_$ac_feature=\$ac_optarg ;;
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 htmldir=$ac_optarg ;;
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1045 -libdir | --libdir | --libdi | --libd)
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1136 -psdir | --psdir | --psdi | --psd | --ps)
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 sbindir=$ac_optarg ;;
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 sharedstatedir=$ac_optarg ;;
1162 -site | --site | --sit)
1164 -site=* | --site=* | --sit=*)
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1191 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid package name: $ac_package" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1197 eval with_$ac_package=\$ac_optarg ;;
1199 -without-* | --without-*)
1200 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 { echo "$as_me: error: invalid package name: $ac_package" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1206 eval with_$ac_package=no ;;
1209 # Obsolete; use --with-x.
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) { echo "$as_me: error: unrecognized option: $ac_option
1227 Try \`$0 --help' for more information." >&2
1228 { (exit 1); exit 1; }; }
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1235 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1236 { (exit 1); exit 1; }; }
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 { echo "$as_me: error: missing argument to $ac_option" >&2
1254 { (exit 1); exit 1; }; }
1257 # Be sure to have absolute directory names.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1269 { (exit 1); exit 1; }; }
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1277 target=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293 test "$silent" = yes && exec 6>/dev/null
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 { echo "$as_me: error: Working directory cannot be determined" >&2
1300 { (exit 1); exit 1; }; }
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 { echo "$as_me: error: pwd does not report name of working directory" >&2
1303 { (exit 1); exit 1; }; }
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$0" ||
1311 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$0" : 'X\(//\)[^/]' \| \
1313 X"$0" : 'X\(//\)$' \| \
1314 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1338 ac_srcdir_defaulted=no
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1343 { (exit 1); exit 1; }; }
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1348 { (exit 1); exit 1; }; }
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1374 \`configure' configures this package to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 if test -n "$ac_init_help"; then
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-maintainer-mode enable make rules and dependencies not useful
1450 (and sometimes confusing) to the casual installer
1451 --disable-dependency-tracking speeds up one-time build
1452 --enable-dependency-tracking do not reject slow dependency extractors
1453 --enable-strict-warn Enable strict compilation warnings
1454 --disable-translator Disable the SH4 translator (Enabled by default)
1455 --disable-optimized Disable compile-time optimizations (Enabled by
1457 --enable-shared Build drivers as shared libraries (Enabled if
1459 --enable-profiled Enable profiling build
1460 --enable-trace Enable generation of IO traces (warning: hurts
1462 --enable-watch Enable watchpoints in the debugger (warning: hurts
1464 --enable-sh4stats Enable statistics on executed sh4 instructions
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --with-osmesa Build with the osmesa GL library (software
1471 --with-gtk Build with the GTK UI. Default on X11 systems
1472 --with-esd Build with support for the ESounD audio system
1473 --with-pulse Build with support for the PulseAudio audio system
1474 --with-sdl Build with support for SDL audio
1475 --with-sysroot=SYSROOT Build using an alternate sysroot
1476 --with-android=SDK Specify the location of the Android SDK
1477 --with-android-ndk=NDK Specify the location of the Android NDK
1478 --with-android-version Specify target Android SDK version
1479 --with-android-version Specify target Android NDK version
1480 --with-android-abi Specify target Android ABI
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1491 OBJC Objective C compiler command
1492 OBJCFLAGS Objective C compiler flags
1493 CCAS assembler compiler command (defaults to CC)
1494 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1495 PKG_CONFIG path to pkg-config utility
1497 C compiler flags for LIBPNG, overriding pkg-config
1498 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1499 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1500 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1501 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1502 GTK_LIBS linker flags for GTK, overriding pkg-config
1503 GLIB_FOR_BUILD_CFLAGS
1504 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1506 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1508 C compiler flags for LIBISOFS, overriding pkg-config
1510 linker flags for LIBISOFS, overriding pkg-config
1512 C compiler flags for LIBGL, overriding pkg-config
1513 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1514 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1515 SDL_LIBS linker flags for SDL, overriding pkg-config
1517 C compiler flags for PULSE, overriding pkg-config
1518 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1520 C compiler flags for ESOUND, overriding pkg-config
1521 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1522 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1523 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1525 Use these variables to override the choices made by `configure' or to help
1526 it to find libraries and programs with nonstandard names/locations.
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" || continue
1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1542 # A ".." for each directory in $ac_dir_suffix.
1543 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1544 case $ac_top_builddir_sub in
1545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 ac_abs_top_builddir=$ac_pwd
1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551 # for backward compatibility:
1552 ac_top_builddir=$ac_top_build_prefix
1555 .) # We are building in place.
1557 ac_top_srcdir=$ac_top_builddir_sub
1558 ac_abs_top_srcdir=$ac_pwd ;;
1559 [\\/]* | ?:[\\/]* ) # Absolute name.
1560 ac_srcdir=$srcdir$ac_dir_suffix;
1561 ac_top_srcdir=$srcdir
1562 ac_abs_top_srcdir=$srcdir ;;
1564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565 ac_top_srcdir=$ac_top_build_prefix$srcdir
1566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570 cd "$ac_dir" || { ac_status=$?; continue; }
1571 # Check for guested configure.
1572 if test -f "$ac_srcdir/configure.gnu"; then
1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575 elif test -f "$ac_srcdir/configure"; then
1577 $SHELL "$ac_srcdir/configure" --help=recursive
1579 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581 cd "$ac_pwd" || { ac_status=$?; break; }
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1589 generated by GNU Autoconf 2.61
1591 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1592 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1593 This configure script is free software; the Free Software Foundation
1594 gives unlimited permission to copy, distribute and modify it.
1598 cat >config.log <<_ACEOF
1599 This file contains any messages produced by compilers while
1600 running configure, to aid debugging if configure makes a mistake.
1602 It was created by $as_me, which was
1603 generated by GNU Autoconf 2.61. Invocation command line was
1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1624 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1625 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1628 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1629 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1630 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 test -z "$as_dir" && as_dir=.
1639 echo "PATH: $as_dir"
1655 # Keep a trace of the command line.
1656 # Strip out --no-create and --no-recursion so they do not pile up.
1657 # Strip out --silent because we don't want to record it for future runs.
1658 # Also quote any args containing shell meta-characters.
1659 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_must_keep_next=false
1669 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671 | -silent | --silent | --silen | --sile | --sil)
1674 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1679 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680 if test $ac_must_keep_next = true; then
1681 ac_must_keep_next=false # Got value, back to normal.
1684 *=* | --config-cache | -C | -disable-* | --disable-* \
1685 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687 | -with-* | --with-* | -without-* | --without-* | --x)
1688 case "$ac_configure_args0 " in
1689 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692 -* ) ac_must_keep_next=true ;;
1695 ac_configure_args="$ac_configure_args '$ac_arg'"
1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1703 # When interrupted or exit'd, cleanup temporary files, and complete
1704 # config.log. We remove comments because anyway the quotes in there
1705 # would cause problems or look ugly.
1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708 trap 'exit_status=$?
1709 # Save into config.log some information that might help in debugging.
1714 ## ---------------- ##
1715 ## Cache variables. ##
1716 ## ---------------- ##
1719 # The following way of writing the cache mishandles newlines in values,
1721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722 eval ac_val=\$$ac_var
1726 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1730 _ | IFS | as_nl) ;; #(
1731 *) $as_unset $ac_var ;;
1736 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737 *${as_nl}ac_space=\ *)
1739 "s/'\''/'\''\\\\'\'''\''/g;
1740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1756 for ac_var in $ac_subst_vars
1758 eval ac_val=\$$ac_var
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 echo "$ac_var='\''$ac_val'\''"
1766 if test -n "$ac_subst_files"; then
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1773 for ac_var in $ac_subst_files
1775 eval ac_val=\$$ac_var
1777 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 echo "$ac_var='\''$ac_val'\''"
1784 if test -s confdefs.h; then
1794 test "$ac_signal" != 0 &&
1795 echo "$as_me: caught signal $ac_signal"
1796 echo "$as_me: exit $exit_status"
1798 rm -f core *.core core.conftest.* &&
1799 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802 for ac_signal in 1 2 13 15; do
1803 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1810 # Predefined preprocessor variables.
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer explicitly selected file to automatically selected ones.
1839 if test -n "$CONFIG_SITE"; then
1840 set x "$CONFIG_SITE"
1841 elif test "x$prefix" != xNONE; then
1842 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1844 set x "$ac_default_prefix/share/config.site" \
1845 "$ac_default_prefix/etc/config.site"
1850 if test -r "$ac_site_file"; then
1851 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 echo "$as_me: loading site script $ac_site_file" >&6;}
1853 sed 's/^/| /' "$ac_site_file" >&5
1858 if test -r "$cache_file"; then
1859 # Some versions of bash will fail to source /dev/null (special
1860 # files actually), so we avoid doing that.
1861 if test -f "$cache_file"; then
1862 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 echo "$as_me: loading cache $cache_file" >&6;}
1865 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866 *) . "./$cache_file";;
1870 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 echo "$as_me: creating cache $cache_file" >&6;}
1875 # Check that the precious variables saved in the cache have kept the same
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880 eval ac_new_set=\$ac_env_${ac_var}_set
1881 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882 eval ac_new_val=\$ac_env_${ac_var}_value
1883 case $ac_old_set,$ac_new_set in
1885 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887 ac_cache_corrupted=: ;;
1889 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891 ac_cache_corrupted=: ;;
1894 if test "x$ac_old_val" != "x$ac_new_val"; then
1895 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1898 echo "$as_me: former value: $ac_old_val" >&2;}
1899 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1900 echo "$as_me: current value: $ac_new_val" >&2;}
1901 ac_cache_corrupted=:
1904 # Pass precious variables to config.status.
1905 if test "$ac_new_set" = set; then
1907 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908 *) ac_arg=$ac_var=$ac_new_val ;;
1910 case " $ac_configure_args " in
1911 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1912 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 if $ac_cache_corrupted; then
1917 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921 { (exit 1); exit 1; }; }
1941 ac_cpp='$CPP $CPPFLAGS'
1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947 am__api_version="1.9"
1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1950 if test -f "$ac_dir/install-sh"; then
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1954 elif test -f "$ac_dir/install.sh"; then
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1958 elif test -f "$ac_dir/shtool"; then
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1964 if test -z "$ac_aux_dir"; then
1965 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979 # Find a good install program. We prefer a C program (faster),
1980 # so one script is as good as another. But avoid the broken or
1981 # incompatible versions:
1982 # SysV /etc/install, /usr/sbin/install
1983 # SunOS /usr/etc/install
1984 # IRIX /sbin/install
1986 # AmigaOS /C/install, which installs bootblocks on floppy discs
1987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1990 # OS/2's system install, which has a completely different semantic
1991 # ./install, which can be erroneously created by make from ./install.sh.
1992 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1993 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1994 if test -z "$INSTALL"; then
1995 if test "${ac_cv_path_install+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 test -z "$as_dir" && as_dir=.
2003 # Account for people who put trailing slashes in PATH elements.
2005 ./ | .// | /cC/* | \
2006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2007 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2010 # OSF1 and SCO ODT 3.0 have their own names for install.
2011 # Don't use installbsd from OSF since it installs stuff as root
2013 for ac_prog in ginstall scoinst install; do
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2016 if test $ac_prog = install &&
2017 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2018 # AIX install. It has an incompatible calling convention.
2020 elif test $ac_prog = install &&
2021 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2022 # program-specific install script used by HP pwplus--don't use.
2025 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2038 if test "${ac_cv_path_install+set}" = set; then
2039 INSTALL=$ac_cv_path_install
2041 # As a last resort, use the slow shell script. Don't cache a
2042 # value for INSTALL within a source directory, because that will
2043 # break other packages using the cache if that directory is
2044 # removed, or if the value is a relative name.
2045 INSTALL=$ac_install_sh
2048 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2049 echo "${ECHO_T}$INSTALL" >&6; }
2051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2052 # It thinks the first close brace ends the variable substitution.
2053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2055 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2057 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2059 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2060 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2063 echo timestamp > conftest.file
2064 # Do `set' in a subshell so we don't clobber the current shell's
2065 # arguments. Must try -L first in case configure is actually a
2066 # symlink; some systems play weird games with the mod time of symlinks
2067 # (eg FreeBSD returns the mod time of the symlink's containing
2070 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2071 if test "$*" = "X"; then
2073 set X `ls -t $srcdir/configure conftest.file`
2076 if test "$*" != "X $srcdir/configure conftest.file" \
2077 && test "$*" != "X conftest.file $srcdir/configure"; then
2079 # If neither matched, then we have a broken ls. This can happen
2080 # if, for instance, CONFIG_SHELL is bash and it inherits a
2081 # broken ls alias from the environment. This has actually
2082 # happened. Such a system could not be considered "sane".
2083 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2084 alias in your environment" >&5
2085 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2086 alias in your environment" >&2;}
2087 { (exit 1); exit 1; }; }
2090 test "$2" = conftest.file
2096 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2097 Check your system clock" >&5
2098 echo "$as_me: error: newly created file is older than distributed files!
2099 Check your system clock" >&2;}
2100 { (exit 1); exit 1; }; }
2102 { echo "$as_me:$LINENO: result: yes" >&5
2103 echo "${ECHO_T}yes" >&6; }
2104 test "$program_prefix" != NONE &&
2105 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2106 # Use a double $ so make ignores it.
2107 test "$program_suffix" != NONE &&
2108 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2109 # Double any \ or $. echo might interpret backslashes.
2110 # By default was `s,x,x', remove it if useless.
2111 cat <<\_ACEOF >conftest.sed
2112 s/[\\$]/&&/g;s/;s,x,x,$//
2114 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2117 # expand $ac_aux_dir to an absolute path
2118 am_aux_dir=`cd $ac_aux_dir && pwd`
2120 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2121 # Use eval to expand $SHELL
2122 if eval "$MISSING --run true"; then
2123 am_missing_run="$MISSING --run "
2126 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2127 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2130 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2131 # We used to keeping the `.' as first argument, in order to
2132 # allow $(mkdir_p) to be used without argument. As in
2133 # $(mkdir_p) $(somedir)
2134 # where $(somedir) is conditionally defined. However this is wrong
2136 # 1. if the package is installed by a user who cannot write `.'
2137 # make install will fail,
2138 # 2. the above comment should most certainly read
2139 # $(mkdir_p) $(DESTDIR)$(somedir)
2140 # so it does not work when $(somedir) is undefined and
2141 # $(DESTDIR) is not.
2142 # To support the latter case, we have to write
2143 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2144 # so the `.' trick is pointless.
2145 mkdir_p='mkdir -p --'
2147 # On NextStep and OpenStep, the `mkdir' command does not
2148 # recognize any option. It will interpret all options as
2149 # directories to create, and then abort because `.' already
2151 for d in ./-p ./--version;
2153 test -d $d && rmdir $d
2155 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2156 if test -f "$ac_aux_dir/mkinstalldirs"; then
2157 mkdir_p='$(mkinstalldirs)'
2159 mkdir_p='$(install_sh) -d'
2163 for ac_prog in gawk mawk nawk awk
2165 # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy $ac_prog; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_AWK+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 if test -n "$AWK"; then
2173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_AWK="$ac_prog"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 if test -n "$AWK"; then
2194 { echo "$as_me:$LINENO: result: $AWK" >&5
2195 echo "${ECHO_T}$AWK" >&6; }
2197 { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2202 test -n "$AWK" && break
2205 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2206 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2207 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 cat >conftest.make <<\_ACEOF
2214 @echo '@@@%%%=$(MAKE)=@@@%%%'
2216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2219 eval ac_cv_prog_make_${ac_make}_set=yes;;
2221 eval ac_cv_prog_make_${ac_make}_set=no;;
2225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2226 { echo "$as_me:$LINENO: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6; }
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2232 SET_MAKE="MAKE=${MAKE-make}"
2235 rm -rf .tst 2>/dev/null
2236 mkdir .tst 2>/dev/null
2237 if test -d .tst; then
2242 rmdir .tst 2>/dev/null
2244 # test to see if srcdir already configured
2245 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2246 test -f $srcdir/config.status; then
2247 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2248 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2249 { (exit 1); exit 1; }; }
2252 # test whether we have cygpath
2253 if test -z "$CYGPATH_W"; then
2254 if (cygpath --version) >/dev/null 2>/dev/null; then
2255 CYGPATH_W='cygpath -w'
2262 # Define the identity of the package.
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE "$PACKAGE"
2272 cat >>confdefs.h <<_ACEOF
2273 #define VERSION "$VERSION"
2276 # Some tools Automake needs.
2278 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2281 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2284 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2287 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2290 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2292 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2294 # Installed binaries are usually stripped using `strip' when the user
2295 # run `make install-strip'. However `strip' might not be the right
2296 # tool to use in cross-compilation environments, therefore Automake
2297 # will honor the `STRIP' environment variable to overrule this program.
2298 if test "$cross_compiling" != no; then
2299 if test -n "$ac_tool_prefix"; then
2300 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2301 set dummy ${ac_tool_prefix}strip; ac_word=$2
2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304 if test "${ac_cv_prog_STRIP+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 if test -n "$STRIP"; then
2308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 test -z "$as_dir" && as_dir=.
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 STRIP=$ac_cv_prog_STRIP
2328 if test -n "$STRIP"; then
2329 { echo "$as_me:$LINENO: result: $STRIP" >&5
2330 echo "${ECHO_T}$STRIP" >&6; }
2332 { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2338 if test -z "$ac_cv_prog_STRIP"; then
2340 # Extract the first word of "strip", so it can be a program name with args.
2341 set dummy strip; ac_word=$2
2342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2344 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 if test -n "$ac_ct_STRIP"; then
2348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 test -z "$as_dir" && as_dir=.
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357 ac_cv_prog_ac_ct_STRIP="strip"
2358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2368 if test -n "$ac_ct_STRIP"; then
2369 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2370 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2372 { echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6; }
2376 if test "x$ac_ct_STRIP" = x; then
2379 case $cross_compiling:$ac_tool_warned in
2381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2382 whose name does not start with the host triplet. If you think this
2383 configuration is useful to you, please write to autoconf@gnu.org." >&5
2384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2385 whose name does not start with the host triplet. If you think this
2386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2387 ac_tool_warned=yes ;;
2392 STRIP="$ac_cv_prog_STRIP"
2396 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2398 # We need awk for the "check" target. The system "awk" is bad on
2400 # Always define AMTAR for backward compatibility.
2402 AMTAR=${AMTAR-"${am_missing_run}tar"}
2404 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2410 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2411 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2412 # Check whether --enable-maintainer-mode was given.
2413 if test "${enable_maintainer_mode+set}" = set; then
2414 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2416 USE_MAINTAINER_MODE=no
2419 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2420 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2423 if test $USE_MAINTAINER_MODE = yes; then
2424 MAINTAINER_MODE_TRUE=
2425 MAINTAINER_MODE_FALSE='#'
2427 MAINTAINER_MODE_TRUE='#'
2428 MAINTAINER_MODE_FALSE=
2431 MAINT=$MAINTAINER_MODE_TRUE
2434 ac_config_headers="$ac_config_headers config.h"
2437 # Make sure we can run config.sub.
2438 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2439 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2440 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2441 { (exit 1); exit 1; }; }
2443 { echo "$as_me:$LINENO: checking build system type" >&5
2444 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2445 if test "${ac_cv_build+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 ac_build_alias=$build_alias
2449 test "x$ac_build_alias" = x &&
2450 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2451 test "x$ac_build_alias" = x &&
2452 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2453 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2454 { (exit 1); exit 1; }; }
2455 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2456 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2457 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2458 { (exit 1); exit 1; }; }
2461 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2462 echo "${ECHO_T}$ac_cv_build" >&6; }
2463 case $ac_cv_build in
2465 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2466 echo "$as_me: error: invalid value of canonical build" >&2;}
2467 { (exit 1); exit 1; }; };;
2470 ac_save_IFS=$IFS; IFS='-'
2476 # Remember, the first character of IFS is used to create $*,
2477 # except with old shells:
2480 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2483 { echo "$as_me:$LINENO: checking host system type" >&5
2484 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2485 if test "${ac_cv_host+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 if test "x$host_alias" = x; then
2489 ac_cv_host=$ac_cv_build
2491 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2492 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2493 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2494 { (exit 1); exit 1; }; }
2498 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2499 echo "${ECHO_T}$ac_cv_host" >&6; }
2502 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2503 echo "$as_me: error: invalid value of canonical host" >&2;}
2504 { (exit 1); exit 1; }; };;
2507 ac_save_IFS=$IFS; IFS='-'
2513 # Remember, the first character of IFS is used to create $*,
2514 # except with old shells:
2517 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2529 # Defines --with-android, --with-android-ndk, and --with-android-version
2530 # If specified, checks for a working install, and sets build parameters
2531 # appropriately for an Android host.
2535 DEPDIR="${am__leading_dot}deps"
2537 ac_config_commands="$ac_config_commands depfiles"
2540 am_make=${MAKE-make}
2541 cat > confinc << 'END'
2546 # If we don't find an include directive, just comment out the code.
2547 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2548 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2552 # First try GNU make style include.
2553 echo "include confinc" > confmf
2554 # We grep out `Entering directory' and `Leaving directory'
2555 # messages which can occur if `w' ends up in MAKEFLAGS.
2556 # In particular we don't look at `^make:' because GNU make might
2557 # be invoked under some other name (usually "gmake"), in which
2558 # case it prints its new name instead of `make'.
2559 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2564 # Now try BSD make style include.
2565 if test "$am__include" = "#"; then
2566 echo '.include "confinc"' > confmf
2567 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2568 am__include=.include
2575 { echo "$as_me:$LINENO: result: $_am_result" >&5
2576 echo "${ECHO_T}$_am_result" >&6; }
2577 rm -f confinc confmf
2579 # Check whether --enable-dependency-tracking was given.
2580 if test "${enable_dependency_tracking+set}" = set; then
2581 enableval=$enable_dependency_tracking;
2584 if test "x$enable_dependency_tracking" != xno; then
2585 am_depcomp="$ac_aux_dir/depcomp"
2590 if test "x$enable_dependency_tracking" != xno; then
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 if test -n "$ac_tool_prefix"; then
2606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2610 if test "${ac_cv_prog_CC+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 if test -n "$CC"; then
2635 { echo "$as_me:$LINENO: result: $CC" >&5
2636 echo "${ECHO_T}$CC" >&6; }
2638 { echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6; }
2644 if test -z "$ac_cv_prog_CC"; then
2646 # Extract the first word of "gcc", so it can be a program name with args.
2647 set dummy gcc; ac_word=$2
2648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 if test -n "$ac_ct_CC"; then
2654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_ac_ct_CC="gcc"
2664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2676 echo "${ECHO_T}$ac_ct_CC" >&6; }
2678 { echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6; }
2682 if test "x$ac_ct_CC" = x; then
2685 case $cross_compiling:$ac_tool_warned in
2687 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2688 whose name does not start with the host triplet. If you think this
2689 configuration is useful to you, please write to autoconf@gnu.org." >&5
2690 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2691 whose name does not start with the host triplet. If you think this
2692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2693 ac_tool_warned=yes ;;
2701 if test -z "$CC"; then
2702 if test -n "$ac_tool_prefix"; then
2703 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2704 set dummy ${ac_tool_prefix}cc; ac_word=$2
2705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_CC+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 if test -n "$CC"; then
2711 ac_cv_prog_CC="$CC" # Let the user override the test.
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_CC="${ac_tool_prefix}cc"
2721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 if test -n "$CC"; then
2732 { echo "$as_me:$LINENO: result: $CC" >&5
2733 echo "${ECHO_T}$CC" >&6; }
2735 { echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6; }
2742 if test -z "$CC"; then
2743 # Extract the first word of "cc", so it can be a program name with args.
2744 set dummy cc; ac_word=$2
2745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2762 ac_prog_rejected=yes
2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 if test $ac_prog_rejected = yes; then
2774 # We found a bogon in the path, so make sure we never use it.
2775 set dummy $ac_cv_prog_CC
2777 if test $# != 0; then
2778 # We chose a different compiler from the bogus one.
2779 # However, it has the same basename, so the bogon will be chosen
2780 # first if we set CC to just the basename; use the full file name.
2782 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2788 if test -n "$CC"; then
2789 { echo "$as_me:$LINENO: result: $CC" >&5
2790 echo "${ECHO_T}$CC" >&6; }
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2798 if test -z "$CC"; then
2799 if test -n "$ac_tool_prefix"; then
2800 for ac_prog in cl.exe
2802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_CC+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC="$CC" # Let the user override the test.
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 if test -n "$CC"; then
2831 { echo "$as_me:$LINENO: result: $CC" >&5
2832 echo "${ECHO_T}$CC" >&6; }
2834 { echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6; }
2839 test -n "$CC" && break
2842 if test -z "$CC"; then
2844 for ac_prog in cl.exe
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$ac_ct_CC"; then
2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_ac_ct_CC="$ac_prog"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2874 if test -n "$ac_ct_CC"; then
2875 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2876 echo "${ECHO_T}$ac_ct_CC" >&6; }
2878 { echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6; }
2883 test -n "$ac_ct_CC" && break
2886 if test "x$ac_ct_CC" = x; then
2889 case $cross_compiling:$ac_tool_warned in
2891 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2892 whose name does not start with the host triplet. If you think this
2893 configuration is useful to you, please write to autoconf@gnu.org." >&5
2894 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2895 whose name does not start with the host triplet. If you think this
2896 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2897 ac_tool_warned=yes ;;
2906 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: no acceptable C compiler found in \$PATH
2909 See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&5"
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler --version >&5") 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler -v >&5") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler -V >&5") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2946 cat >conftest.$ac_ext <<_ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2961 ac_clean_files_save=$ac_clean_files
2962 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2963 # Try to create an executable without -o first, disregard a.out.
2964 # It will help us diagnose broken compilers, and finding out an intuition
2966 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2967 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2968 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2970 # List of possible output files, starting from the most likely.
2971 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2972 # only as a last resort. b.out is created by i960 compilers.
2973 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2975 # The IRIX 6 linker writes into existing files which may not be
2976 # executable, retaining their permissions. Remove them first so a
2977 # subsequent execution test works.
2979 for ac_file in $ac_files
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2983 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2988 if { (ac_try="$ac_link_default"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_link_default") 2>&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; then
2998 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2999 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3000 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3001 # so that the user can short-circuit this test for compilers unknown to
3003 for ac_file in $ac_files ''
3005 test -f "$ac_file" || continue
3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3010 # We found the default executable, but exeext='' is most
3014 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3016 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018 # We set ac_cv_exeext here because the later test for it is not
3019 # safe: cross compilers may not add the suffix if given an `-o'
3020 # argument, so we may need to know it at that point already.
3021 # Even if this section looks crufty: it has the advantage of
3028 test "$ac_cv_exeext" = no && ac_cv_exeext=
3034 { echo "$as_me:$LINENO: result: $ac_file" >&5
3035 echo "${ECHO_T}$ac_file" >&6; }
3036 if test -z "$ac_file"; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: C compiler cannot create executables
3043 See \`config.log' for more details." >&2;}
3044 { (exit 77); exit 77; }; }
3047 ac_exeext=$ac_cv_exeext
3049 # Check that the compiler produces executables we can run. If not, either
3050 # the compiler is broken, or we cross compile.
3051 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3052 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3053 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3054 # If not cross compiling, check that we can run a simple program.
3055 if test "$cross_compiling" != yes; then
3056 if { ac_try='./$ac_file'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3068 if test "$cross_compiling" = maybe; then
3071 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3072 If you meant to cross compile, use \`--host'.
3073 See \`config.log' for more details." >&5
3074 echo "$as_me: error: cannot run C compiled programs.
3075 If you meant to cross compile, use \`--host'.
3076 See \`config.log' for more details." >&2;}
3077 { (exit 1); exit 1; }; }
3081 { echo "$as_me:$LINENO: result: yes" >&5
3082 echo "${ECHO_T}yes" >&6; }
3084 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3085 ac_clean_files=$ac_clean_files_save
3086 # Check that the compiler produces executables we can run. If not, either
3087 # the compiler is broken, or we cross compile.
3088 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3089 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3090 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3091 echo "${ECHO_T}$cross_compiling" >&6; }
3093 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3094 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3095 if { (ac_try="$ac_link"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_link") 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3106 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3107 # work properly (i.e., refer to `conftest.exe'), while it won't with
3109 for ac_file in conftest.exe conftest conftest.*; do
3110 test -f "$ac_file" || continue
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3113 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3122 See \`config.log' for more details." >&2;}
3123 { (exit 1); exit 1; }; }
3126 rm -f conftest$ac_cv_exeext
3127 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3128 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3130 rm -f conftest.$ac_ext
3131 EXEEXT=$ac_cv_exeext
3133 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3134 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3135 if test "${ac_cv_objext+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3153 rm -f conftest.o conftest.obj
3154 if { (ac_try="$ac_compile"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_compile") 2>&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; then
3164 for ac_file in conftest.o conftest.obj conftest.*; do
3165 test -f "$ac_file" || continue;
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3168 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3177 See \`config.log' for more details." >&5
3178 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3179 See \`config.log' for more details." >&2;}
3180 { (exit 1); exit 1; }; }
3183 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3185 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3186 echo "${ECHO_T}$ac_cv_objext" >&6; }
3187 OBJEXT=$ac_cv_objext
3189 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3190 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3191 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 cat >conftest.$ac_ext <<_ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3212 rm -f conftest.$ac_objext
3213 if { (ac_try="$ac_compile"
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_compile") 2>conftest.er1
3221 grep -v '^ *+' conftest.er1 >conftest.err
3223 cat conftest.err >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } && {
3226 test -z "$ac_c_werror_flag" ||
3227 test ! -s conftest.err
3228 } && test -s conftest.$ac_objext; then
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3241 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3242 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3243 GCC=`test $ac_compiler_gnu = yes && echo yes`
3244 ac_test_CFLAGS=${CFLAGS+set}
3245 ac_save_CFLAGS=$CFLAGS
3246 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3247 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_cc_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 ac_save_c_werror_flag=$ac_c_werror_flag
3252 ac_c_werror_flag=yes
3255 cat >conftest.$ac_ext <<_ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3270 rm -f conftest.$ac_objext
3271 if { (ac_try="$ac_compile"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } && {
3284 test -z "$ac_c_werror_flag" ||
3285 test ! -s conftest.err
3286 } && test -s conftest.$ac_objext; then
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3293 cat >conftest.$ac_ext <<_ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3308 rm -f conftest.$ac_objext
3309 if { (ac_try="$ac_compile"
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_compile") 2>conftest.er1
3317 grep -v '^ *+' conftest.er1 >conftest.err
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } && {
3322 test -z "$ac_c_werror_flag" ||
3323 test ! -s conftest.err
3324 } && test -s conftest.$ac_objext; then
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 ac_c_werror_flag=$ac_save_c_werror_flag
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3347 rm -f conftest.$ac_objext
3348 if { (ac_try="$ac_compile"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_compile") 2>conftest.er1
3356 grep -v '^ *+' conftest.er1 >conftest.err
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } && {
3361 test -z "$ac_c_werror_flag" ||
3362 test ! -s conftest.err
3363 } && test -s conftest.$ac_objext; then
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 ac_c_werror_flag=$ac_save_c_werror_flag
3381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3383 if test "$ac_test_CFLAGS" = set; then
3384 CFLAGS=$ac_save_CFLAGS
3385 elif test $ac_cv_prog_cc_g = yes; then
3386 if test "$GCC" = yes; then
3392 if test "$GCC" = yes; then
3398 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3399 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3400 if test "${ac_cv_prog_cc_c89+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 ac_cv_prog_cc_c89=no
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3413 #include <sys/types.h>
3414 #include <sys/stat.h>
3415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3416 struct buf { int x; };
3417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3418 static char *e (p, i)
3424 static char *f (char * (*g) (char **, int), char **p, ...)
3429 s = g (p, va_arg (v,int));
3434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3435 function prototypes and stuff, but not '\xHH' hex character constants.
3436 These don't provoke an error unfortunately, instead are silently treated
3437 as 'x'. The following induces an error, until -std is added to get
3438 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3439 array size at least. It's necessary to write '\x00'==0 to get something
3440 that's true only with -std. */
3441 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3444 inside strings and character constants. */
3446 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3448 int test (int i, double x);
3449 struct s1 {int (*f) (int a);};
3450 struct s2 {int (*f) (double a);};
3451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3457 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3463 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3465 CC="$ac_save_CC $ac_arg"
3466 rm -f conftest.$ac_objext
3467 if { (ac_try="$ac_compile"
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_compile") 2>conftest.er1
3475 grep -v '^ *+' conftest.er1 >conftest.err
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } && {
3480 test -z "$ac_c_werror_flag" ||
3481 test ! -s conftest.err
3482 } && test -s conftest.$ac_objext; then
3483 ac_cv_prog_cc_c89=$ac_arg
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3491 rm -f core conftest.err conftest.$ac_objext
3492 test "x$ac_cv_prog_cc_c89" != "xno" && break
3494 rm -f conftest.$ac_ext
3499 case "x$ac_cv_prog_cc_c89" in
3501 { echo "$as_me:$LINENO: result: none needed" >&5
3502 echo "${ECHO_T}none needed" >&6; } ;;
3504 { echo "$as_me:$LINENO: result: unsupported" >&5
3505 echo "${ECHO_T}unsupported" >&6; } ;;
3507 CC="$CC $ac_cv_prog_cc_c89"
3508 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3509 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3514 ac_cpp='$CPP $CPPFLAGS'
3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 depcc="$CC" am_compiler_list=
3521 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3522 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3523 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3527 # We make a subdir and do the tests there. Otherwise we can end up
3528 # making bogus files that we don't know about and never remove. For
3529 # instance it was reported that on HP-UX the gcc test will end up
3530 # making a dummy file named `D' -- because `-MD' means `put the output
3533 # Copy depcomp to subdir because otherwise we won't find it if we're
3534 # using a relative directory.
3535 cp "$am_depcomp" conftest.dir
3537 # We will build objects and dependencies in a subdirectory because
3538 # it helps to detect inapplicable dependency modes. For instance
3539 # both Tru64's cc and ICC support -MD to output dependencies as a
3540 # side effect of compilation, but ICC will put the dependencies in
3541 # the current directory while Tru64 will put them in the object
3545 am_cv_CC_dependencies_compiler_type=none
3546 if test "$am_compiler_list" = ""; then
3547 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3549 for depmode in $am_compiler_list; do
3550 # Setup a source with many dependencies, because some compilers
3551 # like to wrap large dependency lists on column 80 (with \), and
3552 # we should not choose a depcomp mode which is confused by this.
3554 # We need to recreate these files for each test, as the compiler may
3555 # overwrite some of them when testing with obscure command lines.
3556 # This happens at least with the AIX C compiler.
3558 for i in 1 2 3 4 5 6; do
3559 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3560 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3561 # Solaris 8's {/usr,}/bin/sh.
3562 touch sub/conftst$i.h
3564 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3568 # after this tag, mechanisms are not by side-effect, so they'll
3569 # only be used when explicitly requested
3570 if test "x$enable_dependency_tracking" = xyes; then
3578 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3579 # mode. It turns out that the SunPro C++ compiler does not properly
3580 # handle `-M -o', and we need to detect this.
3581 if depmode=$depmode \
3582 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3583 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3584 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3585 >/dev/null 2>conftest.err &&
3586 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3587 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3588 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3589 # icc doesn't choke on unknown options, it will just issue warnings
3590 # or remarks (even with -Werror). So we grep stderr for any message
3591 # that says an option was ignored or not supported.
3592 # When given -MP, icc 7.0 and 7.1 complain thusly:
3593 # icc: Command line warning: ignoring option '-M'; no argument required
3594 # The diagnosis changed in icc 8.0:
3595 # icc: Command line remark: option '-MP' not supported
3596 if (grep 'ignoring option' conftest.err ||
3597 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3598 am_cv_CC_dependencies_compiler_type=$depmode
3607 am_cv_CC_dependencies_compiler_type=none
3611 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3612 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3613 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3618 test "x$enable_dependency_tracking" != xno \
3619 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3621 am__fastdepCC_FALSE='#'
3623 am__fastdepCC_TRUE='#'
3624 am__fastdepCC_FALSE=
3630 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3631 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3632 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 ac_check_lib_save_LIBS=$LIBS
3636 LIBS="-lcposix $LIBS"
3637 cat >conftest.$ac_ext <<_ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3644 /* Override any GCC internal prototype to avoid an error.
3645 Use char because int might match the return type of a GCC
3646 builtin and then its argument prototype would still apply. */
3659 rm -f conftest.$ac_objext conftest$ac_exeext
3660 if { (ac_try="$ac_link"
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_link") 2>conftest.er1
3668 grep -v '^ *+' conftest.er1 >conftest.err
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } && {
3673 test -z "$ac_c_werror_flag" ||
3674 test ! -s conftest.err
3675 } && test -s conftest$ac_exeext &&
3676 $as_test_x conftest$ac_exeext; then
3677 ac_cv_lib_cposix_strerror=yes
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3682 ac_cv_lib_cposix_strerror=no
3685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3686 conftest$ac_exeext conftest.$ac_ext
3687 LIBS=$ac_check_lib_save_LIBS
3689 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3690 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3691 if test $ac_cv_lib_cposix_strerror = yes; then
3692 LIBS="$LIBS -lcposix"
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 if test -n "$ac_tool_prefix"; then
3703 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3704 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3707 if test "${ac_cv_prog_CC+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 if test -n "$CC"; then
3711 ac_cv_prog_CC="$CC" # Let the user override the test.
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 if test -n "$CC"; then
3732 { echo "$as_me:$LINENO: result: $CC" >&5
3733 echo "${ECHO_T}$CC" >&6; }
3735 { echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6; }
3741 if test -z "$ac_cv_prog_CC"; then
3743 # Extract the first word of "gcc", so it can be a program name with args.
3744 set dummy gcc; ac_word=$2
3745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 if test -n "$ac_ct_CC"; then
3751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_ac_ct_CC="gcc"
3761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3771 if test -n "$ac_ct_CC"; then
3772 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3773 echo "${ECHO_T}$ac_ct_CC" >&6; }
3775 { echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6; }
3779 if test "x$ac_ct_CC" = x; then
3782 case $cross_compiling:$ac_tool_warned in
3784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3785 whose name does not start with the host triplet. If you think this
3786 configuration is useful to you, please write to autoconf@gnu.org." >&5
3787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3788 whose name does not start with the host triplet. If you think this
3789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3790 ac_tool_warned=yes ;;
3798 if test -z "$CC"; then
3799 if test -n "$ac_tool_prefix"; then
3800 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3801 set dummy ${ac_tool_prefix}cc; ac_word=$2
3802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3804 if test "${ac_cv_prog_CC+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 if test -n "$CC"; then
3808 ac_cv_prog_CC="$CC" # Let the user override the test.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817 ac_cv_prog_CC="${ac_tool_prefix}cc"
3818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 if test -n "$CC"; then
3829 { echo "$as_me:$LINENO: result: $CC" >&5
3830 echo "${ECHO_T}$CC" >&6; }
3832 { echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6; }
3839 if test -z "$CC"; then
3840 # Extract the first word of "cc", so it can be a program name with args.
3841 set dummy cc; ac_word=$2
3842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3844 if test "${ac_cv_prog_CC+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3859 ac_prog_rejected=yes
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 if test $ac_prog_rejected = yes; then
3871 # We found a bogon in the path, so make sure we never use it.
3872 set dummy $ac_cv_prog_CC
3874 if test $# != 0; then
3875 # We chose a different compiler from the bogus one.
3876 # However, it has the same basename, so the bogon will be chosen
3877 # first if we set CC to just the basename; use the full file name.
3879 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3885 if test -n "$CC"; then
3886 { echo "$as_me:$LINENO: result: $CC" >&5
3887 echo "${ECHO_T}$CC" >&6; }
3889 { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3895 if test -z "$CC"; then
3896 if test -n "$ac_tool_prefix"; then
3897 for ac_prog in cl.exe
3899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3903 if test "${ac_cv_prog_CC+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 if test -n "$CC"; then
3907 ac_cv_prog_CC="$CC" # Let the user override the test.
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 if test -n "$CC"; then
3928 { echo "$as_me:$LINENO: result: $CC" >&5
3929 echo "${ECHO_T}$CC" >&6; }
3931 { echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6; }
3936 test -n "$CC" && break
3939 if test -z "$CC"; then
3941 for ac_prog in cl.exe
3943 # Extract the first word of "$ac_prog", so it can be a program name with args.
3944 set dummy $ac_prog; ac_word=$2
3945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 if test -n "$ac_ct_CC"; then
3951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3960 ac_cv_prog_ac_ct_CC="$ac_prog"
3961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3971 if test -n "$ac_ct_CC"; then
3972 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3973 echo "${ECHO_T}$ac_ct_CC" >&6; }
3975 { echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6; }
3980 test -n "$ac_ct_CC" && break
3983 if test "x$ac_ct_CC" = x; then
3986 case $cross_compiling:$ac_tool_warned in
3988 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3989 whose name does not start with the host triplet. If you think this
3990 configuration is useful to you, please write to autoconf@gnu.org." >&5
3991 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3992 whose name does not start with the host triplet. If you think this
3993 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3994 ac_tool_warned=yes ;;
4003 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4004 See \`config.log' for more details." >&5
4005 echo "$as_me: error: no acceptable C compiler found in \$PATH
4006 See \`config.log' for more details." >&2;}
4007 { (exit 1); exit 1; }; }
4009 # Provide some information about the compiler.
4010 echo "$as_me:$LINENO: checking for C compiler version" >&5
4011 ac_compiler=`set X $ac_compile; echo $2`
4012 { (ac_try="$ac_compiler --version >&5"
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_compiler --version >&5") 2>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }
4022 { (ac_try="$ac_compiler -v >&5"
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_compiler -v >&5") 2>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }
4032 { (ac_try="$ac_compiler -V >&5"
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compiler -V >&5") 2>&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }
4043 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4044 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4045 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_compile") 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && {
4080 test -z "$ac_c_werror_flag" ||
4081 test ! -s conftest.err
4082 } && test -s conftest.$ac_objext; then
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4095 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4096 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4097 GCC=`test $ac_compiler_gnu = yes && echo yes`
4098 ac_test_CFLAGS=${CFLAGS+set}
4099 ac_save_CFLAGS=$CFLAGS
4100 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4101 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4102 if test "${ac_cv_prog_cc_g+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 ac_save_c_werror_flag=$ac_c_werror_flag
4106 ac_c_werror_flag=yes
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4124 rm -f conftest.$ac_objext
4125 if { (ac_try="$ac_compile"
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_compile") 2>conftest.er1
4133 grep -v '^ *+' conftest.er1 >conftest.err
4135 cat conftest.err >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } && {
4138 test -z "$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4140 } && test -s conftest.$ac_objext; then
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4162 rm -f conftest.$ac_objext
4163 if { (ac_try="$ac_compile"
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_compile") 2>conftest.er1
4171 grep -v '^ *+' conftest.er1 >conftest.err
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } && {
4176 test -z "$ac_c_werror_flag" ||
4177 test ! -s conftest.err
4178 } && test -s conftest.$ac_objext; then
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 ac_c_werror_flag=$ac_save_c_werror_flag
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4201 rm -f conftest.$ac_objext
4202 if { (ac_try="$ac_compile"
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_compile") 2>conftest.er1
4210 grep -v '^ *+' conftest.er1 >conftest.err
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } && {
4215 test -z "$ac_c_werror_flag" ||
4216 test ! -s conftest.err
4217 } && test -s conftest.$ac_objext; then
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 ac_c_werror_flag=$ac_save_c_werror_flag
4235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4236 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4237 if test "$ac_test_CFLAGS" = set; then
4238 CFLAGS=$ac_save_CFLAGS
4239 elif test $ac_cv_prog_cc_g = yes; then
4240 if test "$GCC" = yes; then
4246 if test "$GCC" = yes; then
4252 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4253 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4254 if test "${ac_cv_prog_cc_c89+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 ac_cv_prog_cc_c89=no
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4267 #include <sys/types.h>
4268 #include <sys/stat.h>
4269 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4270 struct buf { int x; };
4271 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4272 static char *e (p, i)
4278 static char *f (char * (*g) (char **, int), char **p, ...)
4283 s = g (p, va_arg (v,int));
4288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4289 function prototypes and stuff, but not '\xHH' hex character constants.
4290 These don't provoke an error unfortunately, instead are silently treated
4291 as 'x'. The following induces an error, until -std is added to get
4292 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4293 array size at least. It's necessary to write '\x00'==0 to get something
4294 that's true only with -std. */
4295 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4297 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4298 inside strings and character constants. */
4300 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4302 int test (int i, double x);
4303 struct s1 {int (*f) (int a);};
4304 struct s2 {int (*f) (double a);};
4305 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4311 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4316 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4317 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4319 CC="$ac_save_CC $ac_arg"
4320 rm -f conftest.$ac_objext
4321 if { (ac_try="$ac_compile"
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_compile") 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && {
4334 test -z "$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4336 } && test -s conftest.$ac_objext; then
4337 ac_cv_prog_cc_c89=$ac_arg
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4345 rm -f core conftest.err conftest.$ac_objext
4346 test "x$ac_cv_prog_cc_c89" != "xno" && break
4348 rm -f conftest.$ac_ext
4353 case "x$ac_cv_prog_cc_c89" in
4355 { echo "$as_me:$LINENO: result: none needed" >&5
4356 echo "${ECHO_T}none needed" >&6; } ;;
4358 { echo "$as_me:$LINENO: result: unsupported" >&5
4359 echo "${ECHO_T}unsupported" >&6; } ;;
4361 CC="$CC $ac_cv_prog_cc_c89"
4362 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4363 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4368 ac_cpp='$CPP $CPPFLAGS'
4369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373 depcc="$CC" am_compiler_list=
4375 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4376 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4377 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4381 # We make a subdir and do the tests there. Otherwise we can end up
4382 # making bogus files that we don't know about and never remove. For
4383 # instance it was reported that on HP-UX the gcc test will end up
4384 # making a dummy file named `D' -- because `-MD' means `put the output
4387 # Copy depcomp to subdir because otherwise we won't find it if we're
4388 # using a relative directory.
4389 cp "$am_depcomp" conftest.dir
4391 # We will build objects and dependencies in a subdirectory because
4392 # it helps to detect inapplicable dependency modes. For instance
4393 # both Tru64's cc and ICC support -MD to output dependencies as a
4394 # side effect of compilation, but ICC will put the dependencies in
4395 # the current directory while Tru64 will put them in the object
4399 am_cv_CC_dependencies_compiler_type=none
4400 if test "$am_compiler_list" = ""; then
4401 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4403 for depmode in $am_compiler_list; do
4404 # Setup a source with many dependencies, because some compilers
4405 # like to wrap large dependency lists on column 80 (with \), and
4406 # we should not choose a depcomp mode which is confused by this.
4408 # We need to recreate these files for each test, as the compiler may
4409 # overwrite some of them when testing with obscure command lines.
4410 # This happens at least with the AIX C compiler.
4412 for i in 1 2 3 4 5 6; do
4413 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4414 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4415 # Solaris 8's {/usr,}/bin/sh.
4416 touch sub/conftst$i.h
4418 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4422 # after this tag, mechanisms are not by side-effect, so they'll
4423 # only be used when explicitly requested
4424 if test "x$enable_dependency_tracking" = xyes; then
4432 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4433 # mode. It turns out that the SunPro C++ compiler does not properly
4434 # handle `-M -o', and we need to detect this.
4435 if depmode=$depmode \
4436 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4437 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4438 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4439 >/dev/null 2>conftest.err &&
4440 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4441 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4442 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4443 # icc doesn't choke on unknown options, it will just issue warnings
4444 # or remarks (even with -Werror). So we grep stderr for any message
4445 # that says an option was ignored or not supported.
4446 # When given -MP, icc 7.0 and 7.1 complain thusly:
4447 # icc: Command line warning: ignoring option '-M'; no argument required
4448 # The diagnosis changed in icc 8.0:
4449 # icc: Command line remark: option '-MP' not supported
4450 if (grep 'ignoring option' conftest.err ||
4451 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4452 am_cv_CC_dependencies_compiler_type=$depmode
4461 am_cv_CC_dependencies_compiler_type=none
4465 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4466 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4467 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4472 test "x$enable_dependency_tracking" != xno \
4473 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4475 am__fastdepCC_FALSE='#'
4477 am__fastdepCC_TRUE='#'
4478 am__fastdepCC_FALSE=
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487 if test -n "$ac_tool_prefix"; then
4488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_prog_CC+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 if test -n "$CC"; then
4496 ac_cv_prog_CC="$CC" # Let the user override the test.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 if test -n "$CC"; then
4517 { echo "$as_me:$LINENO: result: $CC" >&5
4518 echo "${ECHO_T}$CC" >&6; }
4520 { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4526 if test -z "$ac_cv_prog_CC"; then
4528 # Extract the first word of "gcc", so it can be a program name with args.
4529 set dummy gcc; ac_word=$2
4530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 if test -n "$ac_ct_CC"; then
4536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_prog_ac_ct_CC="gcc"
4546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4556 if test -n "$ac_ct_CC"; then
4557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4558 echo "${ECHO_T}$ac_ct_CC" >&6; }
4560 { echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6; }
4564 if test "x$ac_ct_CC" = x; then
4567 case $cross_compiling:$ac_tool_warned in
4569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4570 whose name does not start with the host triplet. If you think this
4571 configuration is useful to you, please write to autoconf@gnu.org." >&5
4572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4573 whose name does not start with the host triplet. If you think this
4574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4575 ac_tool_warned=yes ;;
4583 if test -z "$CC"; then
4584 if test -n "$ac_tool_prefix"; then
4585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4586 set dummy ${ac_tool_prefix}cc; ac_word=$2
4587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4589 if test "${ac_cv_prog_CC+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 if test -n "$CC"; then
4593 ac_cv_prog_CC="$CC" # Let the user override the test.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_CC="${ac_tool_prefix}cc"
4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 if test -n "$CC"; then
4614 { echo "$as_me:$LINENO: result: $CC" >&5
4615 echo "${ECHO_T}$CC" >&6; }
4617 { echo "$as_me:$LINENO: result: no" >&5
4618 echo "${ECHO_T}no" >&6; }
4624 if test -z "$CC"; then
4625 # Extract the first word of "cc", so it can be a program name with args.
4626 set dummy cc; ac_word=$2
4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629 if test "${ac_cv_prog_CC+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC="$CC" # Let the user override the test.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4644 ac_prog_rejected=yes
4648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 if test $ac_prog_rejected = yes; then
4656 # We found a bogon in the path, so make sure we never use it.
4657 set dummy $ac_cv_prog_CC
4659 if test $# != 0; then
4660 # We chose a different compiler from the bogus one.
4661 # However, it has the same basename, so the bogon will be chosen
4662 # first if we set CC to just the basename; use the full file name.
4664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4670 if test -n "$CC"; then
4671 { echo "$as_me:$LINENO: result: $CC" >&5
4672 echo "${ECHO_T}$CC" >&6; }
4674 { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4680 if test -z "$CC"; then
4681 if test -n "$ac_tool_prefix"; then
4682 for ac_prog in cl.exe
4684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_prog_CC+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 if test -n "$CC"; then
4692 ac_cv_prog_CC="$CC" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 if test -n "$CC"; then
4713 { echo "$as_me:$LINENO: result: $CC" >&5
4714 echo "${ECHO_T}$CC" >&6; }
4716 { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4721 test -n "$CC" && break
4724 if test -z "$CC"; then
4726 for ac_prog in cl.exe
4728 # Extract the first word of "$ac_prog", so it can be a program name with args.
4729 set dummy $ac_prog; ac_word=$2
4730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 if test -n "$ac_ct_CC"; then
4736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745 ac_cv_prog_ac_ct_CC="$ac_prog"
4746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4756 if test -n "$ac_ct_CC"; then
4757 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4758 echo "${ECHO_T}$ac_ct_CC" >&6; }
4760 { echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6; }
4765 test -n "$ac_ct_CC" && break
4768 if test "x$ac_ct_CC" = x; then
4771 case $cross_compiling:$ac_tool_warned in
4773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4774 whose name does not start with the host triplet. If you think this
4775 configuration is useful to you, please write to autoconf@gnu.org." >&5
4776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4777 whose name does not start with the host triplet. If you think this
4778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4779 ac_tool_warned=yes ;;
4788 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4789 See \`config.log' for more details." >&5
4790 echo "$as_me: error: no acceptable C compiler found in \$PATH
4791 See \`config.log' for more details." >&2;}
4792 { (exit 1); exit 1; }; }
4794 # Provide some information about the compiler.
4795 echo "$as_me:$LINENO: checking for C compiler version" >&5
4796 ac_compiler=`set X $ac_compile; echo $2`
4797 { (ac_try="$ac_compiler --version >&5"
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803 (eval "$ac_compiler --version >&5") 2>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }
4807 { (ac_try="$ac_compiler -v >&5"
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_compiler -v >&5") 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }
4817 { (ac_try="$ac_compiler -V >&5"
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_compiler -V >&5") 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }
4828 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4829 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4830 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 cat >conftest.$ac_ext <<_ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4851 rm -f conftest.$ac_objext
4852 if { (ac_try="$ac_compile"
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_compile") 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } && {
4865 test -z "$ac_c_werror_flag" ||
4866 test ! -s conftest.err
4867 } && test -s conftest.$ac_objext; then
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4880 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4881 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4882 GCC=`test $ac_compiler_gnu = yes && echo yes`
4883 ac_test_CFLAGS=${CFLAGS+set}
4884 ac_save_CFLAGS=$CFLAGS
4885 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4886 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4887 if test "${ac_cv_prog_cc_g+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 ac_save_c_werror_flag=$ac_c_werror_flag
4891 ac_c_werror_flag=yes
4894 cat >conftest.$ac_ext <<_ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4909 rm -f conftest.$ac_objext
4910 if { (ac_try="$ac_compile"
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_compile") 2>conftest.er1
4918 grep -v '^ *+' conftest.er1 >conftest.err
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && {
4923 test -z "$ac_c_werror_flag" ||
4924 test ! -s conftest.err
4925 } && test -s conftest.$ac_objext; then
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4932 cat >conftest.$ac_ext <<_ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4947 rm -f conftest.$ac_objext
4948 if { (ac_try="$ac_compile"
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_compile") 2>conftest.er1
4956 grep -v '^ *+' conftest.er1 >conftest.err
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } && {
4961 test -z "$ac_c_werror_flag" ||
4962 test ! -s conftest.err
4963 } && test -s conftest.$ac_objext; then
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4969 ac_c_werror_flag=$ac_save_c_werror_flag
4971 cat >conftest.$ac_ext <<_ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4986 rm -f conftest.$ac_objext
4987 if { (ac_try="$ac_compile"
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4993 (eval "$ac_compile") 2>conftest.er1
4995 grep -v '^ *+' conftest.er1 >conftest.err
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } && {
5000 test -z "$ac_c_werror_flag" ||
5001 test ! -s conftest.err
5002 } && test -s conftest.$ac_objext; then
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_c_werror_flag=$ac_save_c_werror_flag
5020 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5021 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5022 if test "$ac_test_CFLAGS" = set; then
5023 CFLAGS=$ac_save_CFLAGS
5024 elif test $ac_cv_prog_cc_g = yes; then
5025 if test "$GCC" = yes; then
5031 if test "$GCC" = yes; then
5037 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5038 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5039 if test "${ac_cv_prog_cc_c89+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 ac_cv_prog_cc_c89=no
5044 cat >conftest.$ac_ext <<_ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5052 #include <sys/types.h>
5053 #include <sys/stat.h>
5054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5055 struct buf { int x; };
5056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5057 static char *e (p, i)
5063 static char *f (char * (*g) (char **, int), char **p, ...)
5068 s = g (p, va_arg (v,int));
5073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5074 function prototypes and stuff, but not '\xHH' hex character constants.
5075 These don't provoke an error unfortunately, instead are silently treated
5076 as 'x'. The following induces an error, until -std is added to get
5077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5078 array size at least. It's necessary to write '\x00'==0 to get something
5079 that's true only with -std. */
5080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5083 inside strings and character constants. */
5085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5087 int test (int i, double x);
5088 struct s1 {int (*f) (int a);};
5089 struct s2 {int (*f) (double a);};
5090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5104 CC="$ac_save_CC $ac_arg"
5105 rm -f conftest.$ac_objext
5106 if { (ac_try="$ac_compile"
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_compile") 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } && {
5119 test -z "$ac_c_werror_flag" ||
5120 test ! -s conftest.err
5121 } && test -s conftest.$ac_objext; then
5122 ac_cv_prog_cc_c89=$ac_arg
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5130 rm -f core conftest.err conftest.$ac_objext
5131 test "x$ac_cv_prog_cc_c89" != "xno" && break
5133 rm -f conftest.$ac_ext
5138 case "x$ac_cv_prog_cc_c89" in
5140 { echo "$as_me:$LINENO: result: none needed" >&5
5141 echo "${ECHO_T}none needed" >&6; } ;;
5143 { echo "$as_me:$LINENO: result: unsupported" >&5
5144 echo "${ECHO_T}unsupported" >&6; } ;;
5146 CC="$CC $ac_cv_prog_cc_c89"
5147 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5148 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5153 ac_cpp='$CPP $CPPFLAGS'
5154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5158 depcc="$CC" am_compiler_list=
5160 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5161 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5162 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5166 # We make a subdir and do the tests there. Otherwise we can end up
5167 # making bogus files that we don't know about and never remove. For
5168 # instance it was reported that on HP-UX the gcc test will end up
5169 # making a dummy file named `D' -- because `-MD' means `put the output
5172 # Copy depcomp to subdir because otherwise we won't find it if we're
5173 # using a relative directory.
5174 cp "$am_depcomp" conftest.dir
5176 # We will build objects and dependencies in a subdirectory because
5177 # it helps to detect inapplicable dependency modes. For instance
5178 # both Tru64's cc and ICC support -MD to output dependencies as a
5179 # side effect of compilation, but ICC will put the dependencies in
5180 # the current directory while Tru64 will put them in the object
5184 am_cv_CC_dependencies_compiler_type=none
5185 if test "$am_compiler_list" = ""; then
5186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5188 for depmode in $am_compiler_list; do
5189 # Setup a source with many dependencies, because some compilers
5190 # like to wrap large dependency lists on column 80 (with \), and
5191 # we should not choose a depcomp mode which is confused by this.
5193 # We need to recreate these files for each test, as the compiler may
5194 # overwrite some of them when testing with obscure command lines.
5195 # This happens at least with the AIX C compiler.
5197 for i in 1 2 3 4 5 6; do
5198 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5199 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5200 # Solaris 8's {/usr,}/bin/sh.
5201 touch sub/conftst$i.h
5203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5207 # after this tag, mechanisms are not by side-effect, so they'll
5208 # only be used when explicitly requested
5209 if test "x$enable_dependency_tracking" = xyes; then
5217 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5218 # mode. It turns out that the SunPro C++ compiler does not properly
5219 # handle `-M -o', and we need to detect this.
5220 if depmode=$depmode \
5221 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5223 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5224 >/dev/null 2>conftest.err &&
5225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5226 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5228 # icc doesn't choke on unknown options, it will just issue warnings
5229 # or remarks (even with -Werror). So we grep stderr for any message
5230 # that says an option was ignored or not supported.
5231 # When given -MP, icc 7.0 and 7.1 complain thusly:
5232 # icc: Command line warning: ignoring option '-M'; no argument required
5233 # The diagnosis changed in icc 8.0:
5234 # icc: Command line remark: option '-MP' not supported
5235 if (grep 'ignoring option' conftest.err ||
5236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5237 am_cv_CC_dependencies_compiler_type=$depmode
5246 am_cv_CC_dependencies_compiler_type=none
5250 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5251 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5257 test "x$enable_dependency_tracking" != xno \
5258 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5260 am__fastdepCC_FALSE='#'
5262 am__fastdepCC_TRUE='#'
5263 am__fastdepCC_FALSE=
5268 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5271 ac_cpp='$CPP $CPPFLAGS'
5272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5275 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5276 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5277 # On Suns, sometimes $CPP names a directory.
5278 if test -n "$CPP" && test -d "$CPP"; then
5281 if test -z "$CPP"; then
5282 if test "${ac_cv_prog_CPP+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 # Double quotes because CPP needs to be expanded
5286 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5289 for ac_c_preproc_warn_flag in '' yes
5291 # Use a header file that comes with gcc, so configuring glibc
5292 # with a fresh cross-compiler works.
5293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5294 # <limits.h> exists even on freestanding compilers.
5295 # On the NeXT, cc -E runs the code through the compiler's parser,
5296 # not just through cpp. "Syntax error" is here to catch this case.
5297 cat >conftest.$ac_ext <<_ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5304 # include <limits.h>
5306 # include <assert.h>
5310 if { (ac_try="$ac_cpp conftest.$ac_ext"
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5318 grep -v '^ *+' conftest.er1 >conftest.err
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } >/dev/null && {
5323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5331 # Broken: fails on valid input.
5335 rm -f conftest.err conftest.$ac_ext
5337 # OK, works on sane cases. Now check whether nonexistent headers
5338 # can be detected and how.
5339 cat >conftest.$ac_ext <<_ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 #include <ac_nonexistent.h>
5347 if { (ac_try="$ac_cpp conftest.$ac_ext"
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5355 grep -v '^ *+' conftest.er1 >conftest.err
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } >/dev/null && {
5360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5363 # Broken: success on invalid input.
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5369 # Passes both tests.
5374 rm -f conftest.err conftest.$ac_ext
5377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5378 rm -f conftest.err conftest.$ac_ext
5379 if $ac_preproc_ok; then
5391 { echo "$as_me:$LINENO: result: $CPP" >&5
5392 echo "${ECHO_T}$CPP" >&6; }
5394 for ac_c_preproc_warn_flag in '' yes
5396 # Use a header file that comes with gcc, so configuring glibc
5397 # with a fresh cross-compiler works.
5398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5399 # <limits.h> exists even on freestanding compilers.
5400 # On the NeXT, cc -E runs the code through the compiler's parser,
5401 # not just through cpp. "Syntax error" is here to catch this case.
5402 cat >conftest.$ac_ext <<_ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5409 # include <limits.h>
5411 # include <assert.h>
5415 if { (ac_try="$ac_cpp conftest.$ac_ext"
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5423 grep -v '^ *+' conftest.er1 >conftest.err
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } >/dev/null && {
5428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5429 test ! -s conftest.err
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5436 # Broken: fails on valid input.
5440 rm -f conftest.err conftest.$ac_ext
5442 # OK, works on sane cases. Now check whether nonexistent headers
5443 # can be detected and how.
5444 cat >conftest.$ac_ext <<_ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 #include <ac_nonexistent.h>
5452 if { (ac_try="$ac_cpp conftest.$ac_ext"
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5460 grep -v '^ *+' conftest.er1 >conftest.err
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } >/dev/null && {
5465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5466 test ! -s conftest.err
5468 # Broken: success on invalid input.
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5474 # Passes both tests.
5479 rm -f conftest.err conftest.$ac_ext
5482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5483 rm -f conftest.err conftest.$ac_ext
5484 if $ac_preproc_ok; then
5487 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5488 See \`config.log' for more details." >&5
5489 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5490 See \`config.log' for more details." >&2;}
5491 { (exit 1); exit 1; }; }
5495 ac_cpp='$CPP $CPPFLAGS'
5496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5502 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5504 if test -z "$CC_FOR_BUILD"; then
5505 if test "$#" = yes; then
5506 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5507 See \`config.log' for more details." >&5
5508 echo "$as_me: error: cannot run test program while cross compiling
5509 See \`config.log' for more details." >&2;}
5510 { (exit 1); exit 1; }; }
5512 cat >conftest.$ac_ext <<_ACEOF
5513 int main(){return 0;}
5515 rm -f conftest$ac_exeext
5516 if { (ac_try="$ac_link"
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_link") 2>&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5526 { (case "(($ac_try" in
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_try") 2>&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; }; then
5537 echo "$as_me: program exited with status $ac_status" >&5
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5550 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5551 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5552 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5554 if test -n "$ac_build_tool_prefix"; then
5555 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5556 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5559 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 if test -n "$CC_FOR_BUILD"; then
5563 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5583 if test -n "$CC_FOR_BUILD"; then
5584 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5585 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5587 { echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6; }
5593 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5594 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5595 # Extract the first word of "gcc", so it can be a program name with args.
5596 set dummy gcc; ac_word=$2
5597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5599 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 if test -n "$ac_ct_CC_FOR_BUILD"; then
5603 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5612 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5623 if test -n "$ac_ct_CC_FOR_BUILD"; then
5624 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5625 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5627 { echo "$as_me:$LINENO: result: no" >&5
5628 echo "${ECHO_T}no" >&6; }
5631 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5634 case $#:$ac_tool_warned in
5636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5637 whose name does not start with the build triplet. If you think this
5638 configuration is useful to you, please write to autoconf@gnu.org." >&5
5639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5640 whose name does not start with the build triplet. If you think this
5641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5642 ac_tool_warned=yes ;;
5644 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5647 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5650 if test -z "$CC_FOR_BUILD"; then
5651 if test -n "$ac_build_tool_prefix"; then
5652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5653 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5656 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 if test -n "$CC_FOR_BUILD"; then
5660 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5680 if test -n "$CC_FOR_BUILD"; then
5681 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5682 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5684 { echo "$as_me:$LINENO: result: no" >&5
5685 echo "${ECHO_T}no" >&6; }
5691 if test -z "$CC_FOR_BUILD"; then
5692 # Extract the first word of "cc", so it can be a program name with args.
5693 set dummy cc; ac_word=$2
5694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5696 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 if test -n "$CC_FOR_BUILD"; then
5700 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5711 ac_prog_rejected=yes
5714 ac_cv_prog_CC_FOR_BUILD="cc"
5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 if test $ac_prog_rejected = yes; then
5723 # We found a bogon in the path, so make sure we never use it.
5724 set dummy $ac_cv_prog_CC_FOR_BUILD
5726 if test $# != 0; then
5727 # We chose a different compiler from the bogus one.
5728 # However, it has the same basename, so the bogon will be chosen
5729 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5731 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5736 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5737 if test -n "$CC_FOR_BUILD"; then
5738 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5739 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5741 { echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6; }
5747 if test -z "$CC_FOR_BUILD"; then
5748 if test -n "$ac_build_tool_prefix"; then
5749 for ac_prog in cl.exe
5751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5752 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 if test -n "$CC_FOR_BUILD"; then
5759 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5779 if test -n "$CC_FOR_BUILD"; then
5780 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5781 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5783 { echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6; }
5788 test -n "$CC_FOR_BUILD" && break
5791 if test -z "$CC_FOR_BUILD"; then
5792 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5793 for ac_prog in cl.exe
5795 # Extract the first word of "$ac_prog", so it can be a program name with args.
5796 set dummy $ac_prog; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 if test -n "$ac_ct_CC_FOR_BUILD"; then
5803 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5823 if test -n "$ac_ct_CC_FOR_BUILD"; then
5824 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5825 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5827 { echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6; }
5832 test -n "$ac_ct_CC_FOR_BUILD" && break
5835 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5838 case $#:$ac_tool_warned in
5840 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5841 whose name does not start with the build triplet. If you think this
5842 configuration is useful to you, please write to autoconf@gnu.org." >&5
5843 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5844 whose name does not start with the build triplet. If you think this
5845 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5846 ac_tool_warned=yes ;;
5848 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5855 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5856 See \`config.log' for more details." >&5
5857 echo "$as_me: error: no acceptable C compiler found in \$PATH
5858 See \`config.log' for more details." >&2;}
5859 { (exit 1); exit 1; }; }
5861 # Provide some information about the compiler.
5862 echo "$as_me:$LINENO: checking for C compiler version" >&5
5863 ac_compiler=`set X $ac_build_compile; echo $2`
5864 { (ac_try="$ac_compiler --version >&5"
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compiler --version >&5") 2>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }
5874 { (ac_try="$ac_compiler -v >&5"
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$ac_compiler -v >&5") 2>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }
5884 { (ac_try="$ac_compiler -V >&5"
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_compiler -V >&5") 2>&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }
5895 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5896 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5897 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 cat >conftest.$ac_ext <<_ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5918 rm -f conftest.$ac_build_objext
5919 if { (ac_try="$ac_build_compile"
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_build_compile") 2>conftest.er1
5927 grep -v '^ *+' conftest.er1 >conftest.err
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } && {
5932 test -z "$ac_c_werror_flag" ||
5933 test ! -s conftest.err
5934 } && test -s conftest.$ac_build_objext; then
5935 ac_build_compiler_gnu=yes
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5940 ac_build_compiler_gnu=no
5943 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5944 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
5947 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5948 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5949 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
5950 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5951 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5952 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
5953 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
5954 if test "${ac_cv_build_prog_cc_g+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 ac_save_c_werror_flag=$ac_c_werror_flag
5958 ac_c_werror_flag=yes
5959 ac_cv_build_prog_cc_g=no
5960 CFLAGS_FOR_BUILD="-g"
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5976 rm -f conftest.$ac_build_objext
5977 if { (ac_try="$ac_build_compile"
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_build_compile") 2>conftest.er1
5985 grep -v '^ *+' conftest.er1 >conftest.err
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } && {
5990 test -z "$ac_c_werror_flag" ||
5991 test ! -s conftest.err
5992 } && test -s conftest.$ac_build_objext; then
5993 ac_cv_build_prog_cc_g=yes
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5999 cat >conftest.$ac_ext <<_ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6014 rm -f conftest.$ac_build_objext
6015 if { (ac_try="$ac_build_compile"
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_build_compile") 2>conftest.er1
6023 grep -v '^ *+' conftest.er1 >conftest.err
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && {
6028 test -z "$ac_c_werror_flag" ||
6029 test ! -s conftest.err
6030 } && test -s conftest.$ac_build_objext; then
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_c_werror_flag=$ac_save_c_werror_flag
6037 CFLAGS_FOR_BUILD="-g"
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6053 rm -f conftest.$ac_build_objext
6054 if { (ac_try="$ac_build_compile"
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_build_compile") 2>conftest.er1
6062 grep -v '^ *+' conftest.er1 >conftest.err
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } && {
6067 test -z "$ac_c_werror_flag" ||
6068 test ! -s conftest.err
6069 } && test -s conftest.$ac_build_objext; then
6070 ac_cv_build_prog_cc_g=yes
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6078 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6081 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6084 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6085 ac_c_werror_flag=$ac_save_c_werror_flag
6087 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6088 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6089 if test "$ac_test_CFLAGS" = set; then
6090 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6091 elif test $ac_cv_build_prog_cc_g = yes; then
6092 if test "$GCC" = yes; then
6093 CFLAGS_FOR_BUILD="-g -O2"
6095 CFLAGS_FOR_BUILD="-g"
6098 if test "$GCC" = yes; then
6099 CFLAGS_FOR_BUILD="-O2"
6104 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6105 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6106 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 ac_cv_build_prog_cc_stdc=no
6110 ac_save_CC=$CC_FOR_BUILD
6111 cat >conftest.$ac_ext <<_ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6119 #include <sys/types.h>
6120 #include <sys/stat.h>
6121 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6122 struct buf { int x; };
6123 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6124 static char *e (p, i)
6130 static char *f (char * (*g) (char **, int), char **p, ...)
6135 s = g (p, va_arg (v,int));
6140 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6141 function prototypes and stuff, but not '\xHH' hex character constants.
6142 These don't provoke an error unfortunately, instead are silently treated
6143 as 'x'. The following induces an error, until -std is added to get
6144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6145 array size at least. It's necessary to write '\x00'==0 to get something
6146 that's true only with -std. */
6147 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6149 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6150 inside strings and character constants. */
6152 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6154 int test (int i, double x);
6155 struct s1 {int (*f) (int a);};
6156 struct s2 {int (*f) (double a);};
6157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6163 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6168 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6171 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6172 rm -f conftest.$ac_build_objext
6173 if { (ac_try="$ac_build_compile"
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_build_compile") 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && {
6186 test -z "$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 } && test -s conftest.$ac_build_objext; then
6189 ac_cv_build_prog_cc_stdc=$ac_arg
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6197 rm -f core conftest.err conftest.$ac_build_objext
6198 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6200 rm -f conftest.$ac_ext
6201 CC_FOR_BUILD=$ac_save_CC
6205 case "x$ac_cv_build_prog_cc_stdc" in
6207 { echo "$as_me:$LINENO: result: none needed" >&5
6208 echo "${ECHO_T}none needed" >&6; } ;;
6210 { echo "$as_me:$LINENO: result: unsupported" >&5
6211 echo "${ECHO_T}unsupported" >&6; } ;;
6213 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6214 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6215 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6220 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6221 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6222 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6223 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6225 depcc="$CC_FOR_BUILD" am_compiler_list=
6227 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6228 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6229 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6233 # We make a subdir and do the tests there. Otherwise we can end up
6234 # making bogus files that we don't know about and never remove. For
6235 # instance it was reported that on HP-UX the gcc test will end up
6236 # making a dummy file named `D' -- because `-MD' means `put the output
6239 # Copy depcomp to subdir because otherwise we won't find it if we're
6240 # using a relative directory.
6241 cp "$am_depcomp" conftest.dir
6243 # We will build objects and dependencies in a subdirectory because
6244 # it helps to detect inapplicable dependency modes. For instance
6245 # both Tru64's cc and ICC support -MD to output dependencies as a
6246 # side effect of compilation, but ICC will put the dependencies in
6247 # the current directory while Tru64 will put them in the object
6251 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6252 if test "$am_compiler_list" = ""; then
6253 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6255 for depmode in $am_compiler_list; do
6256 # Setup a source with many dependencies, because some compilers
6257 # like to wrap large dependency lists on column 80 (with \), and
6258 # we should not choose a depcomp mode which is confused by this.
6260 # We need to recreate these files for each test, as the compiler may
6261 # overwrite some of them when testing with obscure command lines.
6262 # This happens at least with the AIX C compiler.
6264 for i in 1 2 3 4 5 6; do
6265 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6266 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6267 # Solaris 8's {/usr,}/bin/sh.
6268 touch sub/conftst$i.h
6270 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6274 # after this tag, mechanisms are not by side-effect, so they'll
6275 # only be used when explicitly requested
6276 if test "x$enable_dependency_tracking" = xyes; then
6284 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6285 # mode. It turns out that the SunPro C++ compiler does not properly
6286 # handle `-M -o', and we need to detect this.
6287 if depmode=$depmode \
6288 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6289 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6290 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6291 >/dev/null 2>conftest.err &&
6292 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6293 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6295 # icc doesn't choke on unknown options, it will just issue warnings
6296 # or remarks (even with -Werror). So we grep stderr for any message
6297 # that says an option was ignored or not supported.
6298 # When given -MP, icc 7.0 and 7.1 complain thusly:
6299 # icc: Command line warning: ignoring option '-M'; no argument required
6300 # The diagnosis changed in icc 8.0:
6301 # icc: Command line remark: option '-MP' not supported
6302 if (grep 'ignoring option' conftest.err ||
6303 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6304 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6313 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6317 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6318 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6319 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6324 test "x$enable_dependency_tracking" != xno \
6325 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6326 am__fastdepCC_FOR_BUILD_TRUE=
6327 am__fastdepCC_FOR_BUILD_FALSE='#'
6329 am__fastdepCC_FOR_BUILD_TRUE='#'
6330 am__fastdepCC_FOR_BUILD_FALSE=
6334 case $ac_cv_build_prog_cc_stdc in
6335 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6336 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6337 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6338 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 ac_cv_build_prog_cc_stdc=no
6342 ac_save_CC=$CC_FOR_BUILD
6343 cat >conftest.$ac_ext <<_ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6350 #include <stdbool.h>
6355 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6356 #define debug(...) fprintf (stderr, __VA_ARGS__)
6357 #define showlist(...) puts (#__VA_ARGS__)
6358 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6360 test_varargs_macros (void)
6365 debug ("X = %d\n", x);
6366 showlist (The first, second, and third items.);
6367 report (x>y, "x is %d but y is %d", x, y);
6370 // Check long long types.
6371 #define BIG64 18446744073709551615ull
6372 #define BIG32 4294967295ul
6373 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6375 your preprocessor is broken;
6379 your preprocessor is broken;
6381 static long long int bignum = -9223372036854775807LL;
6382 static unsigned long long int ubignum = BIG64;
6384 struct incomplete_array
6392 const wchar_t *name;
6396 typedef const char *ccp;
6399 test_restrict (ccp restrict text)
6401 // See if C++-style comments work.
6402 // Iterate through items via the restricted pointer.
6403 // Also check for declarations in for loops.
6404 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6409 // Check varargs and va_copy.
6411 test_varargs (const char *format, ...)
6414 va_start (args, format);
6416 va_copy (args_copy, args);
6427 str = va_arg (args_copy, const char *);
6430 number = va_arg (args_copy, int);
6433 fnumber = va_arg (args_copy, double);
6448 _Bool success = false;
6451 if (test_restrict ("String literal") == 0)
6453 char *restrict newvar = "Another string";
6456 test_varargs ("s, d' f .", "string", 65, 34.234);
6457 test_varargs_macros ();
6459 // Check flexible array members.
6460 struct incomplete_array *ia =
6461 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6463 for (int i = 0; i < ia->datasize; ++i)
6464 ia->data[i] = i * 1.234;
6466 // Check named initializers.
6467 struct named_init ni = {
6469 .name = L"Test wide string",
6470 .average = 543.34343,
6475 int dynamic_array[ni.number];
6476 dynamic_array[ni.number - 1] = 543;
6478 // work around unused variable warnings
6479 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6480 || dynamic_array[ni.number - 1] != 543);
6486 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6488 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6489 rm -f conftest.$ac_build_objext
6490 if { (ac_try="$ac_build_compile"
6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493 *) ac_try_echo=$ac_try;;
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_build_compile") 2>conftest.er1
6498 grep -v '^ *+' conftest.er1 >conftest.err
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } && {
6503 test -z "$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6505 } && test -s conftest.$ac_build_objext; then
6506 ac_cv_build_prog_cc_stdc=$ac_arg
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6514 rm -f core conftest.err conftest.$ac_build_objext
6515 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6517 rm -f conftest.$ac_ext
6518 CC_FOR_BUILD=$ac_save_CC
6522 case "x$ac_cv_build_prog_cc_stdc" in
6524 { echo "$as_me:$LINENO: result: none needed" >&5
6525 echo "${ECHO_T}none needed" >&6; } ;;
6527 { echo "$as_me:$LINENO: result: unsupported" >&5
6528 echo "${ECHO_T}unsupported" >&6; } ;;
6530 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6531 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6532 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6534 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6535 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6537 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6538 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6539 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 ac_cv_build_prog_cc_stdc=no
6543 ac_save_CC=$CC_FOR_BUILD
6544 cat >conftest.$ac_ext <<_ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6552 #include <sys/types.h>
6553 #include <sys/stat.h>
6554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6555 struct buf { int x; };
6556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6557 static char *e (p, i)
6563 static char *f (char * (*g) (char **, int), char **p, ...)
6568 s = g (p, va_arg (v,int));
6573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6574 function prototypes and stuff, but not '\xHH' hex character constants.
6575 These don't provoke an error unfortunately, instead are silently treated
6576 as 'x'. The following induces an error, until -std is added to get
6577 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6578 array size at least. It's necessary to write '\x00'==0 to get something
6579 that's true only with -std. */
6580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6582 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6583 inside strings and character constants. */
6585 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6587 int test (int i, double x);
6588 struct s1 {int (*f) (int a);};
6589 struct s2 {int (*f) (double a);};
6590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6596 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6601 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6602 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6604 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6605 rm -f conftest.$ac_build_objext
6606 if { (ac_try="$ac_build_compile"
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_build_compile") 2>conftest.er1
6614 grep -v '^ *+' conftest.er1 >conftest.err
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } && {
6619 test -z "$ac_c_werror_flag" ||
6620 test ! -s conftest.err
6621 } && test -s conftest.$ac_build_objext; then
6622 ac_cv_build_prog_cc_stdc=$ac_arg
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6630 rm -f core conftest.err conftest.$ac_build_objext
6631 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6633 rm -f conftest.$ac_ext
6634 CC_FOR_BUILD=$ac_save_CC
6638 case "x$ac_cv_build_prog_cc_stdc" in
6640 { echo "$as_me:$LINENO: result: none needed" >&5
6641 echo "${ECHO_T}none needed" >&6; } ;;
6643 { echo "$as_me:$LINENO: result: unsupported" >&5
6644 echo "${ECHO_T}unsupported" >&6; } ;;
6646 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6647 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6648 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6650 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6651 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6653 ac_cv_build_prog_cc_stdc=no
6661 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6662 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6663 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 case $ac_cv_build_prog_cc_stdc in
6668 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6669 echo "${ECHO_T}unsupported" >&6; } ;;
6670 '') { echo "$as_me:$LINENO: result: none needed" >&5
6671 echo "${ECHO_T}none needed" >&6; } ;;
6672 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6673 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6678 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6679 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6680 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6682 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6683 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6684 # On Suns, sometimes $CPP names a directory.
6685 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6688 if test -z "$CPP_FOR_BUILD"; then
6689 if test "${ac_cv_build_prog_CPP+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 # Double quotes because CPP needs to be expanded
6693 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6696 for ac_c_preproc_warn_flag in '' yes
6698 # Use a header file that comes with gcc, so configuring glibc
6699 # with a fresh cross-compiler works.
6700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6701 # <limits.h> exists even on freestanding compilers.
6702 # On the NeXT, cc -E runs the code through the compiler's parser,
6703 # not just through cpp. "Syntax error" is here to catch this case.
6704 cat >conftest.$ac_ext <<_ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6711 # include <limits.h>
6713 # include <assert.h>
6717 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6725 grep -v '^ *+' conftest.er1 >conftest.err
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } >/dev/null && {
6730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6738 # Broken: fails on valid input.
6742 rm -f conftest.err conftest.$ac_ext
6744 # OK, works on sane cases. Now check whether nonexistent headers
6745 # can be detected and how.
6746 cat >conftest.$ac_ext <<_ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 #include <ac_nonexistent.h>
6754 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6760 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6762 grep -v '^ *+' conftest.er1 >conftest.err
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } >/dev/null && {
6767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||