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
717 am__fastdepCC_FOR_BUILD_TRUE
718 am__fastdepCC_FOR_BUILD_FALSE
737 am__fastdepOBJC_FALSE
756 GLIB_FOR_BUILD_CFLAGS
831 ac_precious_vars='build_alias
856 GLIB_FOR_BUILD_CFLAGS
872 # Initialize some variables set by options.
874 ac_init_version=false
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
884 program_transform_name=s,x,x,
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE}'
909 infodir='${datarootdir}/info'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
930 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 # Accept the important Cygnus configure options, so we can diagnose typos.
936 case $ac_dashdash$ac_option in
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
958 cache_file=config.cache ;;
960 -datadir | --datadir | --datadi | --datad)
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
972 -disable-* | --disable-*)
973 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
976 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
977 { (exit 1); exit 1; }; }
978 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
979 eval enable_$ac_feature=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 -enable-* | --enable-*)
992 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
995 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996 { (exit 1); exit 1; }; }
997 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
998 eval enable_$ac_feature=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1162 -site=* | --site=* | --sit=*)
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1189 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_$ac_package=\$ac_optarg ;;
1197 -without-* | --without-*)
1198 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1204 eval with_$ac_package=no ;;
1207 # Obsolete; use --with-x.
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) { echo "$as_me: error: unrecognized option: $ac_option
1225 Try \`$0 --help' for more information." >&2
1226 { (exit 1); exit 1; }; }
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1234 { (exit 1); exit 1; }; }
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 { echo "$as_me: error: missing argument to $ac_option" >&2
1252 { (exit 1); exit 1; }; }
1255 # Be sure to have absolute directory names.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1261 eval ac_val=\$$ac_var
1263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1267 { (exit 1); exit 1; }; }
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291 test "$silent" = yes && exec 6>/dev/null
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 { echo "$as_me: error: Working directory cannot be determined" >&2
1298 { (exit 1); exit 1; }; }
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 { echo "$as_me: error: pwd does not report name of working directory" >&2
1301 { (exit 1); exit 1; }; }
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$0" ||
1309 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$0" : 'X\(//\)[^/]' \| \
1311 X"$0" : 'X\(//\)$' \| \
1312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1336 ac_srcdir_defaulted=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1341 { (exit 1); exit 1; }; }
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1346 { (exit 1); exit 1; }; }
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 # Report the --help message.
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1372 \`configure' configures this package to adapt to many kinds of systems.
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1379 Defaults for the options are specified in brackets.
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1403 For better control, use the options below.
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 if test -n "$ac_init_help"; then
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-maintainer-mode enable make rules and dependencies not useful
1448 (and sometimes confusing) to the casual installer
1449 --disable-dependency-tracking speeds up one-time build
1450 --enable-dependency-tracking do not reject slow dependency extractors
1451 --enable-strict-warn Enable strict compilation warnings
1452 --disable-translator Disable the SH4 translator (Enabled by default)
1453 --disable-optimized Disable compile-time optimizations (Enabled by
1455 --enable-shared Build drivers as shared libraries (Enabled if
1457 --enable-profiled Enable profiling build
1458 --enable-trace Enable generation of IO traces (warning: hurts
1460 --enable-watch Enable watchpoints in the debugger (warning: hurts
1462 --enable-sh4stats Enable statistics on executed sh4 instructions
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-android=SDK Specify the location of the Android SDK
1468 --with-android-ndk=NDK Specify the location of the Android NDK
1469 --with-android-version Specify target Android SDK version
1470 --with-android-version Specify target Android NDK version
1471 --with-android-abi Specify target Android ABI
1472 --with-osmesa Build with the osmesa GL library (software
1474 --with-gtk Build with the GTK UI. Default on X11 systems
1475 --with-esd Build with support for the ESounD audio system
1476 --with-pulse Build with support for the PulseAudio audio system
1477 --with-sdl Build with support for SDL audio
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1488 OBJC Objective C compiler command
1489 OBJCFLAGS Objective C compiler flags
1490 CCAS assembler compiler command (defaults to CC)
1491 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1492 PKG_CONFIG path to pkg-config utility
1494 C compiler flags for LIBPNG, overriding pkg-config
1495 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1496 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1497 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1498 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1499 GTK_LIBS linker flags for GTK, overriding pkg-config
1500 GLIB_FOR_BUILD_CFLAGS
1501 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1503 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1505 C compiler flags for LIBISOFS, overriding pkg-config
1507 linker flags for LIBISOFS, overriding pkg-config
1509 C compiler flags for LIBGL, overriding pkg-config
1510 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1511 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1512 SDL_LIBS linker flags for SDL, overriding pkg-config
1514 C compiler flags for PULSE, overriding pkg-config
1515 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1517 C compiler flags for ESOUND, overriding pkg-config
1518 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1519 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1520 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" || continue
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1539 # A ".." for each directory in $ac_dir_suffix.
1540 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1541 case $ac_top_builddir_sub in
1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1552 .) # We are building in place.
1554 ac_top_srcdir=$ac_top_builddir_sub
1555 ac_abs_top_srcdir=$ac_pwd ;;
1556 [\\/]* | ?:[\\/]* ) # Absolute name.
1557 ac_srcdir=$srcdir$ac_dir_suffix;
1558 ac_top_srcdir=$srcdir
1559 ac_abs_top_srcdir=$srcdir ;;
1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562 ac_top_srcdir=$ac_top_build_prefix$srcdir
1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567 cd "$ac_dir" || { ac_status=$?; continue; }
1568 # Check for guested configure.
1569 if test -f "$ac_srcdir/configure.gnu"; then
1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572 elif test -f "$ac_srcdir/configure"; then
1574 $SHELL "$ac_srcdir/configure" --help=recursive
1576 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578 cd "$ac_pwd" || { ac_status=$?; break; }
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1586 generated by GNU Autoconf 2.61
1588 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1589 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1595 cat >config.log <<_ACEOF
1596 This file contains any messages produced by compilers while
1597 running configure, to aid debugging if configure makes a mistake.
1599 It was created by $as_me, which was
1600 generated by GNU Autoconf 2.61. Invocation command line was
1612 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1613 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1614 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1615 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1616 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1618 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1619 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1621 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1622 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1623 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1624 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1625 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1626 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1627 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 test -z "$as_dir" && as_dir=.
1636 echo "PATH: $as_dir"
1652 # Keep a trace of the command line.
1653 # Strip out --no-create and --no-recursion so they do not pile up.
1654 # Strip out --silent because we don't want to record it for future runs.
1655 # Also quote any args containing shell meta-characters.
1656 # Make two passes to allow for proper duplicate-argument suppression.
1660 ac_must_keep_next=false
1666 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1668 | -silent | --silent | --silen | --sile | --sil)
1671 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1674 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1676 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1677 if test $ac_must_keep_next = true; then
1678 ac_must_keep_next=false # Got value, back to normal.
1681 *=* | --config-cache | -C | -disable-* | --disable-* \
1682 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1683 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1684 | -with-* | --with-* | -without-* | --without-* | --x)
1685 case "$ac_configure_args0 " in
1686 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1689 -* ) ac_must_keep_next=true ;;
1692 ac_configure_args="$ac_configure_args '$ac_arg'"
1697 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1698 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1700 # When interrupted or exit'd, cleanup temporary files, and complete
1701 # config.log. We remove comments because anyway the quotes in there
1702 # would cause problems or look ugly.
1703 # WARNING: Use '\'' to represent an apostrophe within the trap.
1704 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1705 trap 'exit_status=$?
1706 # Save into config.log some information that might help in debugging.
1711 ## ---------------- ##
1712 ## Cache variables. ##
1713 ## ---------------- ##
1716 # The following way of writing the cache mishandles newlines in values,
1718 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1719 eval ac_val=\$$ac_var
1723 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1724 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1727 _ | IFS | as_nl) ;; #(
1728 *) $as_unset $ac_var ;;
1733 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1734 *${as_nl}ac_space=\ *)
1736 "s/'\''/'\''\\\\'\'''\''/g;
1737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748 ## ----------------- ##
1749 ## Output variables. ##
1750 ## ----------------- ##
1753 for ac_var in $ac_subst_vars
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 echo "$ac_var='\''$ac_val'\''"
1763 if test -n "$ac_subst_files"; then
1765 ## ------------------- ##
1766 ## File substitutions. ##
1767 ## ------------------- ##
1770 for ac_var in $ac_subst_files
1772 eval ac_val=\$$ac_var
1774 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776 echo "$ac_var='\''$ac_val'\''"
1781 if test -s confdefs.h; then
1791 test "$ac_signal" != 0 &&
1792 echo "$as_me: caught signal $ac_signal"
1793 echo "$as_me: exit $exit_status"
1795 rm -f core *.core core.conftest.* &&
1796 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1799 for ac_signal in 1 2 13 15; do
1800 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1805 rm -f -r conftest* confdefs.h
1807 # Predefined preprocessor variables.
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_NAME "$PACKAGE_NAME"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_STRING "$PACKAGE_STRING"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834 # Let the site file select an alternate cache file if it wants to.
1835 # Prefer explicitly selected file to automatically selected ones.
1836 if test -n "$CONFIG_SITE"; then
1837 set x "$CONFIG_SITE"
1838 elif test "x$prefix" != xNONE; then
1839 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1841 set x "$ac_default_prefix/share/config.site" \
1842 "$ac_default_prefix/etc/config.site"
1847 if test -r "$ac_site_file"; then
1848 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1849 echo "$as_me: loading site script $ac_site_file" >&6;}
1850 sed 's/^/| /' "$ac_site_file" >&5
1855 if test -r "$cache_file"; then
1856 # Some versions of bash will fail to source /dev/null (special
1857 # files actually), so we avoid doing that.
1858 if test -f "$cache_file"; then
1859 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1860 echo "$as_me: loading cache $cache_file" >&6;}
1862 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1863 *) . "./$cache_file";;
1867 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1868 echo "$as_me: creating cache $cache_file" >&6;}
1872 # Check that the precious variables saved in the cache have kept the same
1874 ac_cache_corrupted=false
1875 for ac_var in $ac_precious_vars; do
1876 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1877 eval ac_new_set=\$ac_env_${ac_var}_set
1878 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1879 eval ac_new_val=\$ac_env_${ac_var}_value
1880 case $ac_old_set,$ac_new_set in
1882 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1886 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1891 if test "x$ac_old_val" != "x$ac_new_val"; then
1892 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1893 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1894 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1895 echo "$as_me: former value: $ac_old_val" >&2;}
1896 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1897 echo "$as_me: current value: $ac_new_val" >&2;}
1898 ac_cache_corrupted=:
1901 # Pass precious variables to config.status.
1902 if test "$ac_new_set" = set; then
1904 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 *) ac_arg=$ac_var=$ac_new_val ;;
1907 case " $ac_configure_args " in
1908 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1909 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1913 if $ac_cache_corrupted; then
1914 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1915 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1916 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1917 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1918 { (exit 1); exit 1; }; }
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944 am__api_version="1.9"
1946 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1947 if test -f "$ac_dir/install-sh"; then
1949 ac_install_sh="$ac_aux_dir/install-sh -c"
1951 elif test -f "$ac_dir/install.sh"; then
1953 ac_install_sh="$ac_aux_dir/install.sh -c"
1955 elif test -f "$ac_dir/shtool"; then
1957 ac_install_sh="$ac_aux_dir/shtool install -c"
1961 if test -z "$ac_aux_dir"; then
1962 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1963 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1964 { (exit 1); exit 1; }; }
1967 # These three variables are undocumented and unsupported,
1968 # and are intended to be withdrawn in a future Autoconf release.
1969 # They can cause serious problems if a builder's source tree is in a directory
1970 # whose full name contains unusual characters.
1971 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1972 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1973 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1976 # Find a good install program. We prefer a C program (faster),
1977 # so one script is as good as another. But avoid the broken or
1978 # incompatible versions:
1979 # SysV /etc/install, /usr/sbin/install
1980 # SunOS /usr/etc/install
1981 # IRIX /sbin/install
1983 # AmigaOS /C/install, which installs bootblocks on floppy discs
1984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1987 # OS/2's system install, which has a completely different semantic
1988 # ./install, which can be erroneously created by make from ./install.sh.
1989 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1991 if test -z "$INSTALL"; then
1992 if test "${ac_cv_path_install+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir=.
2000 # Account for people who put trailing slashes in PATH elements.
2002 ./ | .// | /cC/* | \
2003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2007 # OSF1 and SCO ODT 3.0 have their own names for install.
2008 # Don't use installbsd from OSF since it installs stuff as root
2010 for ac_prog in ginstall scoinst install; do
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2013 if test $ac_prog = install &&
2014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # AIX install. It has an incompatible calling convention.
2017 elif test $ac_prog = install &&
2018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # program-specific install script used by HP pwplus--don't use.
2022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2035 if test "${ac_cv_path_install+set}" = set; then
2036 INSTALL=$ac_cv_path_install
2038 # As a last resort, use the slow shell script. Don't cache a
2039 # value for INSTALL within a source directory, because that will
2040 # break other packages using the cache if that directory is
2041 # removed, or if the value is a relative name.
2042 INSTALL=$ac_install_sh
2045 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2046 echo "${ECHO_T}$INSTALL" >&6; }
2048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2049 # It thinks the first close brace ends the variable substitution.
2050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2056 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2057 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2060 echo timestamp > conftest.file
2061 # Do `set' in a subshell so we don't clobber the current shell's
2062 # arguments. Must try -L first in case configure is actually a
2063 # symlink; some systems play weird games with the mod time of symlinks
2064 # (eg FreeBSD returns the mod time of the symlink's containing
2067 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2068 if test "$*" = "X"; then
2070 set X `ls -t $srcdir/configure conftest.file`
2073 if test "$*" != "X $srcdir/configure conftest.file" \
2074 && test "$*" != "X conftest.file $srcdir/configure"; then
2076 # If neither matched, then we have a broken ls. This can happen
2077 # if, for instance, CONFIG_SHELL is bash and it inherits a
2078 # broken ls alias from the environment. This has actually
2079 # happened. Such a system could not be considered "sane".
2080 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&5
2082 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2083 alias in your environment" >&2;}
2084 { (exit 1); exit 1; }; }
2087 test "$2" = conftest.file
2093 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2094 Check your system clock" >&5
2095 echo "$as_me: error: newly created file is older than distributed files!
2096 Check your system clock" >&2;}
2097 { (exit 1); exit 1; }; }
2099 { echo "$as_me:$LINENO: result: yes" >&5
2100 echo "${ECHO_T}yes" >&6; }
2101 test "$program_prefix" != NONE &&
2102 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2103 # Use a double $ so make ignores it.
2104 test "$program_suffix" != NONE &&
2105 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2106 # Double any \ or $. echo might interpret backslashes.
2107 # By default was `s,x,x', remove it if useless.
2108 cat <<\_ACEOF >conftest.sed
2109 s/[\\$]/&&/g;s/;s,x,x,$//
2111 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2114 # expand $ac_aux_dir to an absolute path
2115 am_aux_dir=`cd $ac_aux_dir && pwd`
2117 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2118 # Use eval to expand $SHELL
2119 if eval "$MISSING --run true"; then
2120 am_missing_run="$MISSING --run "
2123 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2124 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2127 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2128 # We used to keeping the `.' as first argument, in order to
2129 # allow $(mkdir_p) to be used without argument. As in
2130 # $(mkdir_p) $(somedir)
2131 # where $(somedir) is conditionally defined. However this is wrong
2133 # 1. if the package is installed by a user who cannot write `.'
2134 # make install will fail,
2135 # 2. the above comment should most certainly read
2136 # $(mkdir_p) $(DESTDIR)$(somedir)
2137 # so it does not work when $(somedir) is undefined and
2138 # $(DESTDIR) is not.
2139 # To support the latter case, we have to write
2140 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2141 # so the `.' trick is pointless.
2142 mkdir_p='mkdir -p --'
2144 # On NextStep and OpenStep, the `mkdir' command does not
2145 # recognize any option. It will interpret all options as
2146 # directories to create, and then abort because `.' already
2148 for d in ./-p ./--version;
2150 test -d $d && rmdir $d
2152 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2153 if test -f "$ac_aux_dir/mkinstalldirs"; then
2154 mkdir_p='$(mkinstalldirs)'
2156 mkdir_p='$(install_sh) -d'
2160 for ac_prog in gawk mawk nawk awk
2162 # Extract the first word of "$ac_prog", so it can be a program name with args.
2163 set dummy $ac_prog; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_AWK+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 if test -n "$AWK"; then
2170 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179 ac_cv_prog_AWK="$ac_prog"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 if test -n "$AWK"; then
2191 { echo "$as_me:$LINENO: result: $AWK" >&5
2192 echo "${ECHO_T}$AWK" >&6; }
2194 { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2199 test -n "$AWK" && break
2202 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2203 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2204 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2205 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 cat >conftest.make <<\_ACEOF
2211 @echo '@@@%%%=$(MAKE)=@@@%%%'
2213 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2214 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2216 eval ac_cv_prog_make_${ac_make}_set=yes;;
2218 eval ac_cv_prog_make_${ac_make}_set=no;;
2222 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2223 { echo "$as_me:$LINENO: result: yes" >&5
2224 echo "${ECHO_T}yes" >&6; }
2227 { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2229 SET_MAKE="MAKE=${MAKE-make}"
2232 rm -rf .tst 2>/dev/null
2233 mkdir .tst 2>/dev/null
2234 if test -d .tst; then
2239 rmdir .tst 2>/dev/null
2241 # test to see if srcdir already configured
2242 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2243 test -f $srcdir/config.status; then
2244 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2245 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2246 { (exit 1); exit 1; }; }
2249 # test whether we have cygpath
2250 if test -z "$CYGPATH_W"; then
2251 if (cygpath --version) >/dev/null 2>/dev/null; then
2252 CYGPATH_W='cygpath -w'
2259 # Define the identity of the package.
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE "$PACKAGE"
2269 cat >>confdefs.h <<_ACEOF
2270 #define VERSION "$VERSION"
2273 # Some tools Automake needs.
2275 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2278 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2281 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2284 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2287 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2289 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2291 # Installed binaries are usually stripped using `strip' when the user
2292 # run `make install-strip'. However `strip' might not be the right
2293 # tool to use in cross-compilation environments, therefore Automake
2294 # will honor the `STRIP' environment variable to overrule this program.
2295 if test "$cross_compiling" != no; then
2296 if test -n "$ac_tool_prefix"; then
2297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2298 set dummy ${ac_tool_prefix}strip; ac_word=$2
2299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301 if test "${ac_cv_prog_STRIP+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 if test -n "$STRIP"; then
2305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324 STRIP=$ac_cv_prog_STRIP
2325 if test -n "$STRIP"; then
2326 { echo "$as_me:$LINENO: result: $STRIP" >&5
2327 echo "${ECHO_T}$STRIP" >&6; }
2329 { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2335 if test -z "$ac_cv_prog_STRIP"; then
2337 # Extract the first word of "strip", so it can be a program name with args.
2338 set dummy strip; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$ac_ct_STRIP"; then
2345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_ac_ct_STRIP="strip"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2365 if test -n "$ac_ct_STRIP"; then
2366 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2367 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2373 if test "x$ac_ct_STRIP" = x; then
2376 case $cross_compiling:$ac_tool_warned in
2378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2379 whose name does not start with the host triplet. If you think this
2380 configuration is useful to you, please write to autoconf@gnu.org." >&5
2381 echo "$as_me: 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." >&2;}
2384 ac_tool_warned=yes ;;
2389 STRIP="$ac_cv_prog_STRIP"
2393 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2395 # We need awk for the "check" target. The system "awk" is bad on
2397 # Always define AMTAR for backward compatibility.
2399 AMTAR=${AMTAR-"${am_missing_run}tar"}
2401 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2407 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2408 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2409 # Check whether --enable-maintainer-mode was given.
2410 if test "${enable_maintainer_mode+set}" = set; then
2411 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2413 USE_MAINTAINER_MODE=no
2416 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2417 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2420 if test $USE_MAINTAINER_MODE = yes; then
2421 MAINTAINER_MODE_TRUE=
2422 MAINTAINER_MODE_FALSE='#'
2424 MAINTAINER_MODE_TRUE='#'
2425 MAINTAINER_MODE_FALSE=
2428 MAINT=$MAINTAINER_MODE_TRUE
2431 ac_config_headers="$ac_config_headers config.h"
2434 # Make sure we can run config.sub.
2435 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2436 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2437 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2438 { (exit 1); exit 1; }; }
2440 { echo "$as_me:$LINENO: checking build system type" >&5
2441 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2442 if test "${ac_cv_build+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 ac_build_alias=$build_alias
2446 test "x$ac_build_alias" = x &&
2447 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2448 test "x$ac_build_alias" = x &&
2449 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2450 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2451 { (exit 1); exit 1; }; }
2452 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2453 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2454 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2455 { (exit 1); exit 1; }; }
2458 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2459 echo "${ECHO_T}$ac_cv_build" >&6; }
2460 case $ac_cv_build in
2462 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2463 echo "$as_me: error: invalid value of canonical build" >&2;}
2464 { (exit 1); exit 1; }; };;
2467 ac_save_IFS=$IFS; IFS='-'
2473 # Remember, the first character of IFS is used to create $*,
2474 # except with old shells:
2477 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2480 { echo "$as_me:$LINENO: checking host system type" >&5
2481 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2482 if test "${ac_cv_host+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test "x$host_alias" = x; then
2486 ac_cv_host=$ac_cv_build
2488 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2489 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2490 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2491 { (exit 1); exit 1; }; }
2495 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2496 echo "${ECHO_T}$ac_cv_host" >&6; }
2499 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2500 echo "$as_me: error: invalid value of canonical host" >&2;}
2501 { (exit 1); exit 1; }; };;
2504 ac_save_IFS=$IFS; IFS='-'
2510 # Remember, the first character of IFS is used to create $*,
2511 # except with old shells:
2514 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2526 # Defines --with-android, --with-android-ndk, and --with-android-version
2527 # If specified, checks for a working install, and sets build parameters
2528 # appropriately for an Android host.
2534 # Check whether --with-android was given.
2535 if test "${with_android+set}" = set; then
2536 withval=$with_android;
2540 # Check whether --with-android-ndk was given.
2541 if test "${with_android_ndk+set}" = set; then
2542 withval=$with_android_ndk;
2546 # Check whether --with-android-version was given.
2547 if test "${with_android_version+set}" = set; then
2548 withval=$with_android_version;
2550 with_android_version="android-11"
2554 # Check whether --with-android-ndk-version was given.
2555 if test "${with_android_ndk_version+set}" = set; then
2556 withval=$with_android_ndk_version;
2558 with_ndk_version="android-9"
2562 # Check whether --with-android-abi was given.
2563 if test "${with_android_abi+set}" = set; then
2564 withval=$with_android_abi;
2566 ANDROID_ABI="armeabi-v7a"
2570 if test "x$with_android" != "x"; then
2571 if test "$with_android" = "yes"; then
2572 { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
2573 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
2574 { (exit 1); exit 1; }; }
2576 if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
2577 { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
2578 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
2579 { (exit 1); exit 1; }; }
2582 ANDROID_SDK_HOME="$with_android"
2583 ANDROID_NDK_HOME="$with_android_ndk"
2584 ANDROID_SDK_VERSION="$with_android_version"
2585 ANDROID_NDK_VERSION="$with_ndk_version"
2587 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
2588 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
2589 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
2590 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 test "$cross_compiling" = yes &&
2594 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2595 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2596 { (exit 1); exit 1; }; }
2597 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
2598 eval "$as_ac_File=yes"
2600 eval "$as_ac_File=no"
2603 ac_res=`eval echo '${'$as_ac_File'}'`
2604 { echo "$as_me:$LINENO: result: $ac_res" >&5
2605 echo "${ECHO_T}$ac_res" >&6; }
2606 if test `eval echo '${'$as_ac_File'}'` = yes; then
2609 { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
2610 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
2611 { (exit 1); exit 1; }; }
2614 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
2615 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
2616 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
2617 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 test "$cross_compiling" = yes &&
2621 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2622 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2623 { (exit 1); exit 1; }; }
2624 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
2625 eval "$as_ac_File=yes"
2627 eval "$as_ac_File=no"
2630 ac_res=`eval echo '${'$as_ac_File'}'`
2631 { echo "$as_me:$LINENO: result: $ac_res" >&5
2632 echo "${ECHO_T}$ac_res" >&6; }
2633 if test `eval echo '${'$as_ac_File'}'` = yes; then
2636 { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
2637 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
2638 { (exit 1); exit 1; }; }
2641 as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
2642 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
2643 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
2644 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 test "$cross_compiling" = yes &&
2648 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2649 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2650 { (exit 1); exit 1; }; }
2651 if test -r "$ANDROID_NDK_HOME/toolchains"; then
2652 eval "$as_ac_File=yes"
2654 eval "$as_ac_File=no"
2657 ac_res=`eval echo '${'$as_ac_File'}'`
2658 { echo "$as_me:$LINENO: result: $ac_res" >&5
2659 echo "${ECHO_T}$ac_res" >&6; }
2660 if test `eval echo '${'$as_ac_File'}'` = yes; then
2663 { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
2664 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
2665 { (exit 1); exit 1; }; }
2669 TARGETFLAGS="-ffunction-sections -funwind-tables -fomit-frame-pointer -DANDROID -Wa,--noexecstack"
2671 case $ANDROID_ABI in
2672 armeabi | armeabi-v7a)
2673 host_alias="arm-linux-androideabi"
2675 host_vendor="unknown";
2676 host_os="linux-androideabi"
2677 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
2678 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
2679 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-arm"
2680 TARGETFLAGS="$TARGETFLAGS -fstack-protector -finline-limit=64 -fno-strict-aliasing -Wno-psabi -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__"
2681 if test "x$with_abi" = "armeabi"; then
2682 TARGETFLAGS="$TARGETFLAGS -march=armv5te -mtune=xscale -msoft-float"
2684 TARGETFLAGS="$TARGETFLAGS -march=armv7-a -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=vfp"
2688 host_alias="i686-android-linux"
2690 host_vendor="android"
2692 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
2693 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
2694 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-x86"
2695 TARGETFLAGS="$TARGETFLAGS -finline-limit=300 -fno-rtti -funswitch-loops -fstrict-aliasing"
2698 { { echo "$as_me:$LINENO: error: Unsupported android ABI $ANDROID_ABI" >&5
2699 echo "$as_me: error: Unsupported android ABI $ANDROID_ABI" >&2;}
2700 { (exit 1); exit 1; }; }
2704 # Extract the first word of "ant ", so it can be a program name with args.
2705 set dummy ant ; ac_word=$2
2706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2708 if test "${ac_cv_path_ANT+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
2724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 if test -n "$ANT"; then
2736 { echo "$as_me:$LINENO: result: $ANT" >&5
2737 echo "${ECHO_T}$ANT" >&6; }
2739 { echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6; }
2745 CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
2746 CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
2747 CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
2748 LD="$ANDROID_NDK_BIN/${host_alias}-ld"
2749 AR="$ANDROID_NDK_BIN/${host_alias}-ar"
2750 RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
2751 STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
2752 OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
2753 CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
2754 LDFLAGS="-nostdlib -Wl,--no-undefined -L${ANDROID_SYSROOT}/usr/lib -Wl,-rpath-link,${ANDROID_SYSROOT}/usr/lib -Wl,-allow-shlib-undefined -Wl,-z,noexecstack $LDFLAGS"
2755 LIBS="$LIBS -liconv -landroid -llog -lgcc -lc -lm"
2770 if test "$ANDROID_BUILD" = "yes"; then
2772 GUI_ANDROID_FALSE='#'
2774 GUI_ANDROID_TRUE='#'
2781 DEPDIR="${am__leading_dot}deps"
2783 ac_config_commands="$ac_config_commands depfiles"
2786 am_make=${MAKE-make}
2787 cat > confinc << 'END'
2792 # If we don't find an include directive, just comment out the code.
2793 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2794 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2798 # First try GNU make style include.
2799 echo "include confinc" > confmf
2800 # We grep out `Entering directory' and `Leaving directory'
2801 # messages which can occur if `w' ends up in MAKEFLAGS.
2802 # In particular we don't look at `^make:' because GNU make might
2803 # be invoked under some other name (usually "gmake"), in which
2804 # case it prints its new name instead of `make'.
2805 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2810 # Now try BSD make style include.
2811 if test "$am__include" = "#"; then
2812 echo '.include "confinc"' > confmf
2813 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2814 am__include=.include
2821 { echo "$as_me:$LINENO: result: $_am_result" >&5
2822 echo "${ECHO_T}$_am_result" >&6; }
2823 rm -f confinc confmf
2825 # Check whether --enable-dependency-tracking was given.
2826 if test "${enable_dependency_tracking+set}" = set; then
2827 enableval=$enable_dependency_tracking;
2830 if test "x$enable_dependency_tracking" != xno; then
2831 am_depcomp="$ac_aux_dir/depcomp"
2836 if test "x$enable_dependency_tracking" != xno; then
2847 ac_cpp='$CPP $CPPFLAGS'
2848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2856 if test "${ac_cv_prog_CC+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test -n "$CC"; then
2881 { echo "$as_me:$LINENO: result: $CC" >&5
2882 echo "${ECHO_T}$CC" >&6; }
2884 { echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6; }
2890 if test -z "$ac_cv_prog_CC"; then
2892 # Extract the first word of "gcc", so it can be a program name with args.
2893 set dummy gcc; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_ac_ct_CC="gcc"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920 if test -n "$ac_ct_CC"; then
2921 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2922 echo "${ECHO_T}$ac_ct_CC" >&6; }
2924 { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2928 if test "x$ac_ct_CC" = x; then
2931 case $cross_compiling:$ac_tool_warned in
2933 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2934 whose name does not start with the host triplet. If you think this
2935 configuration is useful to you, please write to autoconf@gnu.org." >&5
2936 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2937 whose name does not start with the host triplet. If you think this
2938 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2939 ac_tool_warned=yes ;;
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}cc; ac_word=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="${ac_tool_prefix}cc"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 if test -n "$CC"; then
2978 { echo "$as_me:$LINENO: result: $CC" >&5
2979 echo "${ECHO_T}$CC" >&6; }
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2988 if test -z "$CC"; then
2989 # Extract the first word of "cc", so it can be a program name with args.
2990 set dummy cc; ac_word=$2
2991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3008 ac_prog_rejected=yes
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 if test $ac_prog_rejected = yes; then
3020 # We found a bogon in the path, so make sure we never use it.
3021 set dummy $ac_cv_prog_CC
3023 if test $# != 0; then
3024 # We chose a different compiler from the bogus one.
3025 # However, it has the same basename, so the bogon will be chosen
3026 # first if we set CC to just the basename; use the full file name.
3028 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3034 if test -n "$CC"; then
3035 { echo "$as_me:$LINENO: result: $CC" >&5
3036 echo "${ECHO_T}$CC" >&6; }
3038 { echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6; }
3044 if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 for ac_prog in cl.exe
3048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3052 if test "${ac_cv_prog_CC+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 if test -n "$CC"; then
3077 { echo "$as_me:$LINENO: result: $CC" >&5
3078 echo "${ECHO_T}$CC" >&6; }
3080 { echo "$as_me:$LINENO: result: no" >&5
3081 echo "${ECHO_T}no" >&6; }
3085 test -n "$CC" && break
3088 if test -z "$CC"; then
3090 for ac_prog in cl.exe
3092 # Extract the first word of "$ac_prog", so it can be a program name with args.
3093 set dummy $ac_prog; ac_word=$2
3094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 if test -n "$ac_ct_CC"; then
3100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 ac_cv_prog_ac_ct_CC="$ac_prog"
3110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3120 if test -n "$ac_ct_CC"; then
3121 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3122 echo "${ECHO_T}$ac_ct_CC" >&6; }
3124 { echo "$as_me:$LINENO: result: no" >&5
3125 echo "${ECHO_T}no" >&6; }
3129 test -n "$ac_ct_CC" && break
3132 if test "x$ac_ct_CC" = x; then
3135 case $cross_compiling:$ac_tool_warned in
3137 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3138 whose name does not start with the host triplet. If you think this
3139 configuration is useful to you, please write to autoconf@gnu.org." >&5
3140 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3141 whose name does not start with the host triplet. If you think this
3142 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3143 ac_tool_warned=yes ;;
3152 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: no acceptable C compiler found in \$PATH
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3158 # Provide some information about the compiler.
3159 echo "$as_me:$LINENO: checking for C compiler version" >&5
3160 ac_compiler=`set X $ac_compile; echo $2`
3161 { (ac_try="$ac_compiler --version >&5"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compiler --version >&5") 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }
3171 { (ac_try="$ac_compiler -v >&5"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compiler -v >&5") 2>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }
3181 { (ac_try="$ac_compiler -V >&5"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compiler -V >&5") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3207 ac_clean_files_save=$ac_clean_files
3208 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3209 # Try to create an executable without -o first, disregard a.out.
3210 # It will help us diagnose broken compilers, and finding out an intuition
3212 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3213 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3214 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3216 # List of possible output files, starting from the most likely.
3217 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3218 # only as a last resort. b.out is created by i960 compilers.
3219 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3221 # The IRIX 6 linker writes into existing files which may not be
3222 # executable, retaining their permissions. Remove them first so a
3223 # subsequent execution test works.
3225 for ac_file in $ac_files
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3229 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3234 if { (ac_try="$ac_link_default"
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_link_default") 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; then
3244 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3245 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3246 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3247 # so that the user can short-circuit this test for compilers unknown to
3249 for ac_file in $ac_files ''
3251 test -f "$ac_file" || continue
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3256 # We found the default executable, but exeext='' is most
3260 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3262 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3264 # We set ac_cv_exeext here because the later test for it is not
3265 # safe: cross compilers may not add the suffix if given an `-o'
3266 # argument, so we may need to know it at that point already.
3267 # Even if this section looks crufty: it has the advantage of
3274 test "$ac_cv_exeext" = no && ac_cv_exeext=
3280 { echo "$as_me:$LINENO: result: $ac_file" >&5
3281 echo "${ECHO_T}$ac_file" >&6; }
3282 if test -z "$ac_file"; then
3283 echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3287 See \`config.log' for more details." >&5
3288 echo "$as_me: error: C compiler cannot create executables
3289 See \`config.log' for more details." >&2;}
3290 { (exit 77); exit 77; }; }
3293 ac_exeext=$ac_cv_exeext
3295 # Check that the compiler produces executables we can run. If not, either
3296 # the compiler is broken, or we cross compile.
3297 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3298 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3299 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3300 # If not cross compiling, check that we can run a simple program.
3301 if test "$cross_compiling" != yes; then
3302 if { ac_try='./$ac_file'
3303 { (case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_try") 2>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3314 if test "$cross_compiling" = maybe; then
3317 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3318 If you meant to cross compile, use \`--host'.
3319 See \`config.log' for more details." >&5
3320 echo "$as_me: error: cannot run C compiled programs.
3321 If you meant to cross compile, use \`--host'.
3322 See \`config.log' for more details." >&2;}
3323 { (exit 1); exit 1; }; }
3327 { echo "$as_me:$LINENO: result: yes" >&5
3328 echo "${ECHO_T}yes" >&6; }
3330 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3331 ac_clean_files=$ac_clean_files_save
3332 # Check that the compiler produces executables we can run. If not, either
3333 # the compiler is broken, or we cross compile.
3334 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3335 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3336 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3337 echo "${ECHO_T}$cross_compiling" >&6; }
3339 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3340 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3341 if { (ac_try="$ac_link"
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_link") 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; then
3351 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3352 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3353 # work properly (i.e., refer to `conftest.exe'), while it won't with
3355 for ac_file in conftest.exe conftest conftest.*; do
3356 test -f "$ac_file" || continue
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3359 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3368 See \`config.log' for more details." >&2;}
3369 { (exit 1); exit 1; }; }
3372 rm -f conftest$ac_cv_exeext
3373 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3374 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3376 rm -f conftest.$ac_ext
3377 EXEEXT=$ac_cv_exeext
3379 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3380 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3381 if test "${ac_cv_objext+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3399 rm -f conftest.o conftest.obj
3400 if { (ac_try="$ac_compile"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_compile") 2>&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; then
3410 for ac_file in conftest.o conftest.obj conftest.*; do
3411 test -f "$ac_file" || continue;
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3423 See \`config.log' for more details." >&5
3424 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3425 See \`config.log' for more details." >&2;}
3426 { (exit 1); exit 1; }; }
3429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3431 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3432 echo "${ECHO_T}$ac_cv_objext" >&6; }
3433 OBJEXT=$ac_cv_objext
3435 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3436 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3437 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 cat >conftest.$ac_ext <<_ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3458 rm -f conftest.$ac_objext
3459 if { (ac_try="$ac_compile"
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_compile") 2>conftest.er1
3467 grep -v '^ *+' conftest.er1 >conftest.err
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } && {
3472 test -z "$ac_c_werror_flag" ||
3473 test ! -s conftest.err
3474 } && test -s conftest.$ac_objext; then
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3487 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3488 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3489 GCC=`test $ac_compiler_gnu = yes && echo yes`
3490 ac_test_CFLAGS=${CFLAGS+set}
3491 ac_save_CFLAGS=$CFLAGS
3492 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3493 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3494 if test "${ac_cv_prog_cc_g+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 ac_save_c_werror_flag=$ac_c_werror_flag
3498 ac_c_werror_flag=yes
3501 cat >conftest.$ac_ext <<_ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3525 grep -v '^ *+' conftest.er1 >conftest.err
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 ac_c_werror_flag=$ac_save_c_werror_flag
3578 cat >conftest.$ac_ext <<_ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3593 rm -f conftest.$ac_objext
3594 if { (ac_try="$ac_compile"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_compile") 2>conftest.er1
3602 grep -v '^ *+' conftest.er1 >conftest.err
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && {
3607 test -z "$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 } && test -s conftest.$ac_objext; then
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 ac_c_werror_flag=$ac_save_c_werror_flag
3627 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3628 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3629 if test "$ac_test_CFLAGS" = set; then
3630 CFLAGS=$ac_save_CFLAGS
3631 elif test $ac_cv_prog_cc_g = yes; then
3632 if test "$GCC" = yes; then
3638 if test "$GCC" = yes; then
3644 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3645 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3646 if test "${ac_cv_prog_cc_c89+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 ac_cv_prog_cc_c89=no
3651 cat >conftest.$ac_ext <<_ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3659 #include <sys/types.h>
3660 #include <sys/stat.h>
3661 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3662 struct buf { int x; };
3663 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3664 static char *e (p, i)
3670 static char *f (char * (*g) (char **, int), char **p, ...)
3675 s = g (p, va_arg (v,int));
3680 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3681 function prototypes and stuff, but not '\xHH' hex character constants.
3682 These don't provoke an error unfortunately, instead are silently treated
3683 as 'x'. The following induces an error, until -std is added to get
3684 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3685 array size at least. It's necessary to write '\x00'==0 to get something
3686 that's true only with -std. */
3687 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3690 inside strings and character constants. */
3692 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694 int test (int i, double x);
3695 struct s1 {int (*f) (int a);};
3696 struct s2 {int (*f) (double a);};
3697 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3703 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3708 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3709 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711 CC="$ac_save_CC $ac_arg"
3712 rm -f conftest.$ac_objext
3713 if { (ac_try="$ac_compile"
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719 (eval "$ac_compile") 2>conftest.er1
3721 grep -v '^ *+' conftest.er1 >conftest.err
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } && {
3726 test -z "$ac_c_werror_flag" ||
3727 test ! -s conftest.err
3728 } && test -s conftest.$ac_objext; then
3729 ac_cv_prog_cc_c89=$ac_arg
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3737 rm -f core conftest.err conftest.$ac_objext
3738 test "x$ac_cv_prog_cc_c89" != "xno" && break
3740 rm -f conftest.$ac_ext
3745 case "x$ac_cv_prog_cc_c89" in
3747 { echo "$as_me:$LINENO: result: none needed" >&5
3748 echo "${ECHO_T}none needed" >&6; } ;;
3750 { echo "$as_me:$LINENO: result: unsupported" >&5
3751 echo "${ECHO_T}unsupported" >&6; } ;;
3753 CC="$CC $ac_cv_prog_cc_c89"
3754 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3755 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765 depcc="$CC" am_compiler_list=
3767 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3768 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3769 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3773 # We make a subdir and do the tests there. Otherwise we can end up
3774 # making bogus files that we don't know about and never remove. For
3775 # instance it was reported that on HP-UX the gcc test will end up
3776 # making a dummy file named `D' -- because `-MD' means `put the output
3779 # Copy depcomp to subdir because otherwise we won't find it if we're
3780 # using a relative directory.
3781 cp "$am_depcomp" conftest.dir
3783 # We will build objects and dependencies in a subdirectory because
3784 # it helps to detect inapplicable dependency modes. For instance
3785 # both Tru64's cc and ICC support -MD to output dependencies as a
3786 # side effect of compilation, but ICC will put the dependencies in
3787 # the current directory while Tru64 will put them in the object
3791 am_cv_CC_dependencies_compiler_type=none
3792 if test "$am_compiler_list" = ""; then
3793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3795 for depmode in $am_compiler_list; do
3796 # Setup a source with many dependencies, because some compilers
3797 # like to wrap large dependency lists on column 80 (with \), and
3798 # we should not choose a depcomp mode which is confused by this.
3800 # We need to recreate these files for each test, as the compiler may
3801 # overwrite some of them when testing with obscure command lines.
3802 # This happens at least with the AIX C compiler.
3804 for i in 1 2 3 4 5 6; do
3805 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3806 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3807 # Solaris 8's {/usr,}/bin/sh.
3808 touch sub/conftst$i.h
3810 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3814 # after this tag, mechanisms are not by side-effect, so they'll
3815 # only be used when explicitly requested
3816 if test "x$enable_dependency_tracking" = xyes; then
3824 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3825 # mode. It turns out that the SunPro C++ compiler does not properly
3826 # handle `-M -o', and we need to detect this.
3827 if depmode=$depmode \
3828 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3829 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3830 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3831 >/dev/null 2>conftest.err &&
3832 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3833 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3834 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3835 # icc doesn't choke on unknown options, it will just issue warnings
3836 # or remarks (even with -Werror). So we grep stderr for any message
3837 # that says an option was ignored or not supported.
3838 # When given -MP, icc 7.0 and 7.1 complain thusly:
3839 # icc: Command line warning: ignoring option '-M'; no argument required
3840 # The diagnosis changed in icc 8.0:
3841 # icc: Command line remark: option '-MP' not supported
3842 if (grep 'ignoring option' conftest.err ||
3843 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3844 am_cv_CC_dependencies_compiler_type=$depmode
3853 am_cv_CC_dependencies_compiler_type=none
3857 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3858 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3859 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3864 test "x$enable_dependency_tracking" != xno \
3865 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3867 am__fastdepCC_FALSE='#'
3869 am__fastdepCC_TRUE='#'
3870 am__fastdepCC_FALSE=
3876 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3877 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3878 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 ac_check_lib_save_LIBS=$LIBS
3882 LIBS="-lcposix $LIBS"
3883 cat >conftest.$ac_ext <<_ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3890 /* Override any GCC internal prototype to avoid an error.
3891 Use char because int might match the return type of a GCC
3892 builtin and then its argument prototype would still apply. */
3905 rm -f conftest.$ac_objext conftest$ac_exeext
3906 if { (ac_try="$ac_link"
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_link") 2>conftest.er1
3914 grep -v '^ *+' conftest.er1 >conftest.err
3916 cat conftest.err >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } && {
3919 test -z "$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 } && test -s conftest$ac_exeext &&
3922 $as_test_x conftest$ac_exeext; then
3923 ac_cv_lib_cposix_strerror=yes
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 ac_cv_lib_cposix_strerror=no
3931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3932 conftest$ac_exeext conftest.$ac_ext
3933 LIBS=$ac_check_lib_save_LIBS
3935 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3936 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3937 if test $ac_cv_lib_cposix_strerror = yes; then
3938 LIBS="$LIBS -lcposix"
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948 if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3953 if test "${ac_cv_prog_CC+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 if test -n "$CC"; then
3957 ac_cv_prog_CC="$CC" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 if test -n "$CC"; then
3978 { echo "$as_me:$LINENO: result: $CC" >&5
3979 echo "${ECHO_T}$CC" >&6; }
3981 { echo "$as_me:$LINENO: result: no" >&5
3982 echo "${ECHO_T}no" >&6; }
3987 if test -z "$ac_cv_prog_CC"; then
3989 # Extract the first word of "gcc", so it can be a program name with args.
3990 set dummy gcc; ac_word=$2
3991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 if test -n "$ac_ct_CC"; then
3997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_ac_ct_CC="gcc"
4007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4017 if test -n "$ac_ct_CC"; then
4018 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4019 echo "${ECHO_T}$ac_ct_CC" >&6; }
4021 { echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6; }
4025 if test "x$ac_ct_CC" = x; then
4028 case $cross_compiling:$ac_tool_warned in
4030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4031 whose name does not start with the host triplet. If you think this
4032 configuration is useful to you, please write to autoconf@gnu.org." >&5
4033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4034 whose name does not start with the host triplet. If you think this
4035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4036 ac_tool_warned=yes ;;
4044 if test -z "$CC"; then
4045 if test -n "$ac_tool_prefix"; then
4046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4047 set dummy ${ac_tool_prefix}cc; ac_word=$2
4048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4050 if test "${ac_cv_prog_CC+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_prog_CC="${ac_tool_prefix}cc"
4064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 if test -n "$CC"; then
4075 { echo "$as_me:$LINENO: result: $CC" >&5
4076 echo "${ECHO_T}$CC" >&6; }
4078 { echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6; }
4085 if test -z "$CC"; then
4086 # Extract the first word of "cc", so it can be a program name with args.
4087 set dummy cc; ac_word=$2
4088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4090 if test "${ac_cv_prog_CC+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 if test -n "$CC"; then
4094 ac_cv_prog_CC="$CC" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4105 ac_prog_rejected=yes
4109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 if test $ac_prog_rejected = yes; then
4117 # We found a bogon in the path, so make sure we never use it.
4118 set dummy $ac_cv_prog_CC
4120 if test $# != 0; then
4121 # We chose a different compiler from the bogus one.
4122 # However, it has the same basename, so the bogon will be chosen
4123 # first if we set CC to just the basename; use the full file name.
4125 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4131 if test -n "$CC"; then
4132 { echo "$as_me:$LINENO: result: $CC" >&5
4133 echo "${ECHO_T}$CC" >&6; }
4135 { echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6; }
4141 if test -z "$CC"; then
4142 if test -n "$ac_tool_prefix"; then
4143 for ac_prog in cl.exe
4145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4149 if test "${ac_cv_prog_CC+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 if test -n "$CC"; then
4174 { echo "$as_me:$LINENO: result: $CC" >&5
4175 echo "${ECHO_T}$CC" >&6; }
4177 { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4182 test -n "$CC" && break
4185 if test -z "$CC"; then
4187 for ac_prog in cl.exe
4189 # Extract the first word of "$ac_prog", so it can be a program name with args.
4190 set dummy $ac_prog; ac_word=$2
4191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 if test -n "$ac_ct_CC"; then
4197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206 ac_cv_prog_ac_ct_CC="$ac_prog"
4207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4217 if test -n "$ac_ct_CC"; then
4218 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4219 echo "${ECHO_T}$ac_ct_CC" >&6; }
4221 { echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6; }
4226 test -n "$ac_ct_CC" && break
4229 if test "x$ac_ct_CC" = x; then
4232 case $cross_compiling:$ac_tool_warned in
4234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4235 whose name does not start with the host triplet. If you think this
4236 configuration is useful to you, please write to autoconf@gnu.org." >&5
4237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4238 whose name does not start with the host triplet. If you think this
4239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4240 ac_tool_warned=yes ;;
4249 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4250 See \`config.log' for more details." >&5
4251 echo "$as_me: error: no acceptable C compiler found in \$PATH
4252 See \`config.log' for more details." >&2;}
4253 { (exit 1); exit 1; }; }
4255 # Provide some information about the compiler.
4256 echo "$as_me:$LINENO: checking for C compiler version" >&5
4257 ac_compiler=`set X $ac_compile; echo $2`
4258 { (ac_try="$ac_compiler --version >&5"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compiler --version >&5") 2>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }
4268 { (ac_try="$ac_compiler -v >&5"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_compiler -v >&5") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }
4278 { (ac_try="$ac_compiler -V >&5"
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_compiler -V >&5") 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }
4289 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4290 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4291 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 cat >conftest.$ac_ext <<_ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4312 rm -f conftest.$ac_objext
4313 if { (ac_try="$ac_compile"
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_compile") 2>conftest.er1
4321 grep -v '^ *+' conftest.er1 >conftest.err
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && {
4326 test -z "$ac_c_werror_flag" ||
4327 test ! -s conftest.err
4328 } && test -s conftest.$ac_objext; then
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4341 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4342 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4343 GCC=`test $ac_compiler_gnu = yes && echo yes`
4344 ac_test_CFLAGS=${CFLAGS+set}
4345 ac_save_CFLAGS=$CFLAGS
4346 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4347 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4348 if test "${ac_cv_prog_cc_g+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 ac_save_c_werror_flag=$ac_c_werror_flag
4352 ac_c_werror_flag=yes
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4370 rm -f conftest.$ac_objext
4371 if { (ac_try="$ac_compile"
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_compile") 2>conftest.er1
4379 grep -v '^ *+' conftest.er1 >conftest.err
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } && {
4384 test -z "$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4386 } && test -s conftest.$ac_objext; then
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4393 cat >conftest.$ac_ext <<_ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4408 rm -f conftest.$ac_objext
4409 if { (ac_try="$ac_compile"
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415 (eval "$ac_compile") 2>conftest.er1
4417 grep -v '^ *+' conftest.er1 >conftest.err
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } && {
4422 test -z "$ac_c_werror_flag" ||
4423 test ! -s conftest.err
4424 } && test -s conftest.$ac_objext; then
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4430 ac_c_werror_flag=$ac_save_c_werror_flag
4432 cat >conftest.$ac_ext <<_ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 ac_c_werror_flag=$ac_save_c_werror_flag
4481 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4482 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4483 if test "$ac_test_CFLAGS" = set; then
4484 CFLAGS=$ac_save_CFLAGS
4485 elif test $ac_cv_prog_cc_g = yes; then
4486 if test "$GCC" = yes; then
4492 if test "$GCC" = yes; then
4498 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4499 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4500 if test "${ac_cv_prog_cc_c89+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 ac_cv_prog_cc_c89=no
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4513 #include <sys/types.h>
4514 #include <sys/stat.h>
4515 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4516 struct buf { int x; };
4517 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4518 static char *e (p, i)
4524 static char *f (char * (*g) (char **, int), char **p, ...)
4529 s = g (p, va_arg (v,int));
4534 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4535 function prototypes and stuff, but not '\xHH' hex character constants.
4536 These don't provoke an error unfortunately, instead are silently treated
4537 as 'x'. The following induces an error, until -std is added to get
4538 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4539 array size at least. It's necessary to write '\x00'==0 to get something
4540 that's true only with -std. */
4541 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4543 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4544 inside strings and character constants. */
4546 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4548 int test (int i, double x);
4549 struct s1 {int (*f) (int a);};
4550 struct s2 {int (*f) (double a);};
4551 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4557 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4562 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4563 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4565 CC="$ac_save_CC $ac_arg"
4566 rm -f conftest.$ac_objext
4567 if { (ac_try="$ac_compile"
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_compile") 2>conftest.er1
4575 grep -v '^ *+' conftest.er1 >conftest.err
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } && {
4580 test -z "$ac_c_werror_flag" ||
4581 test ! -s conftest.err
4582 } && test -s conftest.$ac_objext; then
4583 ac_cv_prog_cc_c89=$ac_arg
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4591 rm -f core conftest.err conftest.$ac_objext
4592 test "x$ac_cv_prog_cc_c89" != "xno" && break
4594 rm -f conftest.$ac_ext
4599 case "x$ac_cv_prog_cc_c89" in
4601 { echo "$as_me:$LINENO: result: none needed" >&5
4602 echo "${ECHO_T}none needed" >&6; } ;;
4604 { echo "$as_me:$LINENO: result: unsupported" >&5
4605 echo "${ECHO_T}unsupported" >&6; } ;;
4607 CC="$CC $ac_cv_prog_cc_c89"
4608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4609 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619 depcc="$CC" am_compiler_list=
4621 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4622 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4623 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4627 # We make a subdir and do the tests there. Otherwise we can end up
4628 # making bogus files that we don't know about and never remove. For
4629 # instance it was reported that on HP-UX the gcc test will end up
4630 # making a dummy file named `D' -- because `-MD' means `put the output
4633 # Copy depcomp to subdir because otherwise we won't find it if we're
4634 # using a relative directory.
4635 cp "$am_depcomp" conftest.dir
4637 # We will build objects and dependencies in a subdirectory because
4638 # it helps to detect inapplicable dependency modes. For instance
4639 # both Tru64's cc and ICC support -MD to output dependencies as a
4640 # side effect of compilation, but ICC will put the dependencies in
4641 # the current directory while Tru64 will put them in the object
4645 am_cv_CC_dependencies_compiler_type=none
4646 if test "$am_compiler_list" = ""; then
4647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4649 for depmode in $am_compiler_list; do
4650 # Setup a source with many dependencies, because some compilers
4651 # like to wrap large dependency lists on column 80 (with \), and
4652 # we should not choose a depcomp mode which is confused by this.
4654 # We need to recreate these files for each test, as the compiler may
4655 # overwrite some of them when testing with obscure command lines.
4656 # This happens at least with the AIX C compiler.
4658 for i in 1 2 3 4 5 6; do
4659 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4660 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4661 # Solaris 8's {/usr,}/bin/sh.
4662 touch sub/conftst$i.h
4664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4668 # after this tag, mechanisms are not by side-effect, so they'll
4669 # only be used when explicitly requested
4670 if test "x$enable_dependency_tracking" = xyes; then
4678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4679 # mode. It turns out that the SunPro C++ compiler does not properly
4680 # handle `-M -o', and we need to detect this.
4681 if depmode=$depmode \
4682 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4684 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4685 >/dev/null 2>conftest.err &&
4686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4687 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4689 # icc doesn't choke on unknown options, it will just issue warnings
4690 # or remarks (even with -Werror). So we grep stderr for any message
4691 # that says an option was ignored or not supported.
4692 # When given -MP, icc 7.0 and 7.1 complain thusly:
4693 # icc: Command line warning: ignoring option '-M'; no argument required
4694 # The diagnosis changed in icc 8.0:
4695 # icc: Command line remark: option '-MP' not supported
4696 if (grep 'ignoring option' conftest.err ||
4697 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4698 am_cv_CC_dependencies_compiler_type=$depmode
4707 am_cv_CC_dependencies_compiler_type=none
4711 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4712 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4713 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4718 test "x$enable_dependency_tracking" != xno \
4719 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4721 am__fastdepCC_FALSE='#'
4723 am__fastdepCC_TRUE='#'
4724 am__fastdepCC_FALSE=
4729 ac_cpp='$CPP $CPPFLAGS'
4730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_prog_CC+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 if test -n "$CC"; then
4742 ac_cv_prog_CC="$CC" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 if test -n "$CC"; then
4763 { echo "$as_me:$LINENO: result: $CC" >&5
4764 echo "${ECHO_T}$CC" >&6; }
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4772 if test -z "$ac_cv_prog_CC"; then
4774 # Extract the first word of "gcc", so it can be a program name with args.
4775 set dummy gcc; ac_word=$2
4776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4778 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 if test -n "$ac_ct_CC"; then
4782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_ac_ct_CC="gcc"
4792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4802 if test -n "$ac_ct_CC"; then
4803 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4804 echo "${ECHO_T}$ac_ct_CC" >&6; }
4806 { echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6; }
4810 if test "x$ac_ct_CC" = x; then
4813 case $cross_compiling:$ac_tool_warned in
4815 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4816 whose name does not start with the host triplet. If you think this
4817 configuration is useful to you, please write to autoconf@gnu.org." >&5
4818 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4819 whose name does not start with the host triplet. If you think this
4820 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4821 ac_tool_warned=yes ;;
4829 if test -z "$CC"; then
4830 if test -n "$ac_tool_prefix"; then
4831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4832 set dummy ${ac_tool_prefix}cc; ac_word=$2
4833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4835 if test "${ac_cv_prog_CC+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 if test -n "$CC"; then
4839 ac_cv_prog_CC="$CC" # Let the user override the test.
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848 ac_cv_prog_CC="${ac_tool_prefix}cc"
4849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 if test -n "$CC"; then
4860 { echo "$as_me:$LINENO: result: $CC" >&5
4861 echo "${ECHO_T}$CC" >&6; }
4863 { echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6; }
4870 if test -z "$CC"; then
4871 # Extract the first word of "cc", so it can be a program name with args.
4872 set dummy cc; ac_word=$2
4873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4875 if test "${ac_cv_prog_CC+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 if test -n "$CC"; then
4879 ac_cv_prog_CC="$CC" # Let the user override the test.
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4890 ac_prog_rejected=yes
4894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 if test $ac_prog_rejected = yes; then
4902 # We found a bogon in the path, so make sure we never use it.
4903 set dummy $ac_cv_prog_CC
4905 if test $# != 0; then
4906 # We chose a different compiler from the bogus one.
4907 # However, it has the same basename, so the bogon will be chosen
4908 # first if we set CC to just the basename; use the full file name.
4910 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4916 if test -n "$CC"; then
4917 { echo "$as_me:$LINENO: result: $CC" >&5
4918 echo "${ECHO_T}$CC" >&6; }
4920 { echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6; }
4926 if test -z "$CC"; then
4927 if test -n "$ac_tool_prefix"; then
4928 for ac_prog in cl.exe
4930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934 if test "${ac_cv_prog_CC+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 if test -n "$CC"; then
4938 ac_cv_prog_CC="$CC" # Let the user override the test.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 if test -n "$CC"; then
4959 { echo "$as_me:$LINENO: result: $CC" >&5
4960 echo "${ECHO_T}$CC" >&6; }
4962 { echo "$as_me:$LINENO: result: no" >&5
4963 echo "${ECHO_T}no" >&6; }
4967 test -n "$CC" && break
4970 if test -z "$CC"; then
4972 for ac_prog in cl.exe
4974 # Extract the first word of "$ac_prog", so it can be a program name with args.
4975 set dummy $ac_prog; ac_word=$2
4976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 if test -n "$ac_ct_CC"; then
4982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_prog_ac_ct_CC="$ac_prog"
4992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5002 if test -n "$ac_ct_CC"; then
5003 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5004 echo "${ECHO_T}$ac_ct_CC" >&6; }
5006 { echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6; }
5011 test -n "$ac_ct_CC" && break
5014 if test "x$ac_ct_CC" = x; then
5017 case $cross_compiling:$ac_tool_warned in
5019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5020 whose name does not start with the host triplet. If you think this
5021 configuration is useful to you, please write to autoconf@gnu.org." >&5
5022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5023 whose name does not start with the host triplet. If you think this
5024 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5025 ac_tool_warned=yes ;;
5034 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5035 See \`config.log' for more details." >&5
5036 echo "$as_me: error: no acceptable C compiler found in \$PATH
5037 See \`config.log' for more details." >&2;}
5038 { (exit 1); exit 1; }; }
5040 # Provide some information about the compiler.
5041 echo "$as_me:$LINENO: checking for C compiler version" >&5
5042 ac_compiler=`set X $ac_compile; echo $2`
5043 { (ac_try="$ac_compiler --version >&5"
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_compiler --version >&5") 2>&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }
5053 { (ac_try="$ac_compiler -v >&5"
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_compiler -v >&5") 2>&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }
5063 { (ac_try="$ac_compiler -V >&5"
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_compiler -V >&5") 2>&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }
5074 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5075 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5076 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 cat >conftest.$ac_ext <<_ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5097 rm -f conftest.$ac_objext
5098 if { (ac_try="$ac_compile"
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_compile") 2>conftest.er1
5106 grep -v '^ *+' conftest.er1 >conftest.err
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && {
5111 test -z "$ac_c_werror_flag" ||
5112 test ! -s conftest.err
5113 } && test -s conftest.$ac_objext; then
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5126 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5128 GCC=`test $ac_compiler_gnu = yes && echo yes`
5129 ac_test_CFLAGS=${CFLAGS+set}
5130 ac_save_CFLAGS=$CFLAGS
5131 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5132 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5133 if test "${ac_cv_prog_cc_g+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 ac_save_c_werror_flag=$ac_c_werror_flag
5137 ac_c_werror_flag=yes
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5155 rm -f conftest.$ac_objext
5156 if { (ac_try="$ac_compile"
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162 (eval "$ac_compile") 2>conftest.er1
5164 grep -v '^ *+' conftest.er1 >conftest.err
5166 cat conftest.err >&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } && {
5169 test -z "$ac_c_werror_flag" ||
5170 test ! -s conftest.err
5171 } && test -s conftest.$ac_objext; then
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5178 cat >conftest.$ac_ext <<_ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5193 rm -f conftest.$ac_objext
5194 if { (ac_try="$ac_compile"
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compile") 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest.$ac_objext; then
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 ac_c_werror_flag=$ac_save_c_werror_flag
5217 cat >conftest.$ac_ext <<_ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5232 rm -f conftest.$ac_objext
5233 if { (ac_try="$ac_compile"
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239 (eval "$ac_compile") 2>conftest.er1
5241 grep -v '^ *+' conftest.er1 >conftest.err
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } && {
5246 test -z "$ac_c_werror_flag" ||
5247 test ! -s conftest.err
5248 } && test -s conftest.$ac_objext; then
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 ac_c_werror_flag=$ac_save_c_werror_flag
5266 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5267 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5268 if test "$ac_test_CFLAGS" = set; then
5269 CFLAGS=$ac_save_CFLAGS
5270 elif test $ac_cv_prog_cc_g = yes; then
5271 if test "$GCC" = yes; then
5277 if test "$GCC" = yes; then
5283 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5284 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5285 if test "${ac_cv_prog_cc_c89+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 ac_cv_prog_cc_c89=no
5290 cat >conftest.$ac_ext <<_ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5298 #include <sys/types.h>
5299 #include <sys/stat.h>
5300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5301 struct buf { int x; };
5302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5303 static char *e (p, i)
5309 static char *f (char * (*g) (char **, int), char **p, ...)
5314 s = g (p, va_arg (v,int));
5319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5320 function prototypes and stuff, but not '\xHH' hex character constants.
5321 These don't provoke an error unfortunately, instead are silently treated
5322 as 'x'. The following induces an error, until -std is added to get
5323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5324 array size at least. It's necessary to write '\x00'==0 to get something
5325 that's true only with -std. */
5326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5329 inside strings and character constants. */
5331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5333 int test (int i, double x);
5334 struct s1 {int (*f) (int a);};
5335 struct s2 {int (*f) (double a);};
5336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5342 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5347 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5350 CC="$ac_save_CC $ac_arg"
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_compile") 2>conftest.er1
5360 grep -v '^ *+' conftest.er1 >conftest.err
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && {
5365 test -z "$ac_c_werror_flag" ||
5366 test ! -s conftest.err
5367 } && test -s conftest.$ac_objext; then
5368 ac_cv_prog_cc_c89=$ac_arg
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5376 rm -f core conftest.err conftest.$ac_objext
5377 test "x$ac_cv_prog_cc_c89" != "xno" && break
5379 rm -f conftest.$ac_ext
5384 case "x$ac_cv_prog_cc_c89" in
5386 { echo "$as_me:$LINENO: result: none needed" >&5
5387 echo "${ECHO_T}none needed" >&6; } ;;
5389 { echo "$as_me:$LINENO: result: unsupported" >&5
5390 echo "${ECHO_T}unsupported" >&6; } ;;
5392 CC="$CC $ac_cv_prog_cc_c89"
5393 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5394 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404 depcc="$CC" am_compiler_list=
5406 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5408 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5412 # We make a subdir and do the tests there. Otherwise we can end up
5413 # making bogus files that we don't know about and never remove. For
5414 # instance it was reported that on HP-UX the gcc test will end up
5415 # making a dummy file named `D' -- because `-MD' means `put the output
5418 # Copy depcomp to subdir because otherwise we won't find it if we're
5419 # using a relative directory.
5420 cp "$am_depcomp" conftest.dir
5422 # We will build objects and dependencies in a subdirectory because
5423 # it helps to detect inapplicable dependency modes. For instance
5424 # both Tru64's cc and ICC support -MD to output dependencies as a
5425 # side effect of compilation, but ICC will put the dependencies in
5426 # the current directory while Tru64 will put them in the object
5430 am_cv_CC_dependencies_compiler_type=none
5431 if test "$am_compiler_list" = ""; then
5432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5434 for depmode in $am_compiler_list; do
5435 # Setup a source with many dependencies, because some compilers
5436 # like to wrap large dependency lists on column 80 (with \), and
5437 # we should not choose a depcomp mode which is confused by this.
5439 # We need to recreate these files for each test, as the compiler may
5440 # overwrite some of them when testing with obscure command lines.
5441 # This happens at least with the AIX C compiler.
5443 for i in 1 2 3 4 5 6; do
5444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5446 # Solaris 8's {/usr,}/bin/sh.
5447 touch sub/conftst$i.h
5449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5453 # after this tag, mechanisms are not by side-effect, so they'll
5454 # only be used when explicitly requested
5455 if test "x$enable_dependency_tracking" = xyes; then
5463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5464 # mode. It turns out that the SunPro C++ compiler does not properly
5465 # handle `-M -o', and we need to detect this.
5466 if depmode=$depmode \
5467 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5469 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5470 >/dev/null 2>conftest.err &&
5471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5472 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5474 # icc doesn't choke on unknown options, it will just issue warnings
5475 # or remarks (even with -Werror). So we grep stderr for any message
5476 # that says an option was ignored or not supported.
5477 # When given -MP, icc 7.0 and 7.1 complain thusly:
5478 # icc: Command line warning: ignoring option '-M'; no argument required
5479 # The diagnosis changed in icc 8.0:
5480 # icc: Command line remark: option '-MP' not supported
5481 if (grep 'ignoring option' conftest.err ||
5482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5483 am_cv_CC_dependencies_compiler_type=$depmode
5492 am_cv_CC_dependencies_compiler_type=none
5496 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5497 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5503 test "x$enable_dependency_tracking" != xno \
5504 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5506 am__fastdepCC_FALSE='#'
5508 am__fastdepCC_TRUE='#'
5509 am__fastdepCC_FALSE=
5514 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5517 ac_cpp='$CPP $CPPFLAGS'
5518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5521 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5522 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5523 # On Suns, sometimes $CPP names a directory.
5524 if test -n "$CPP" && test -d "$CPP"; then
5527 if test -z "$CPP"; then
5528 if test "${ac_cv_prog_CPP+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 # Double quotes because CPP needs to be expanded
5532 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5535 for ac_c_preproc_warn_flag in '' yes
5537 # Use a header file that comes with gcc, so configuring glibc
5538 # with a fresh cross-compiler works.
5539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5540 # <limits.h> exists even on freestanding compilers.
5541 # On the NeXT, cc -E runs the code through the compiler's parser,
5542 # not just through cpp. "Syntax error" is here to catch this case.
5543 cat >conftest.$ac_ext <<_ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5550 # include <limits.h>
5552 # include <assert.h>
5556 if { (ac_try="$ac_cpp conftest.$ac_ext"
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5564 grep -v '^ *+' conftest.er1 >conftest.err
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } >/dev/null && {
5569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 # Broken: fails on valid input.
5581 rm -f conftest.err conftest.$ac_ext
5583 # OK, works on sane cases. Now check whether nonexistent headers
5584 # can be detected and how.
5585 cat >conftest.$ac_ext <<_ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 #include <ac_nonexistent.h>
5593 if { (ac_try="$ac_cpp conftest.$ac_ext"
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1 >conftest.err
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } >/dev/null && {
5606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5609 # Broken: success on invalid input.
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5615 # Passes both tests.
5620 rm -f conftest.err conftest.$ac_ext
5623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5624 rm -f conftest.err conftest.$ac_ext
5625 if $ac_preproc_ok; then
5637 { echo "$as_me:$LINENO: result: $CPP" >&5
5638 echo "${ECHO_T}$CPP" >&6; }
5640 for ac_c_preproc_warn_flag in '' yes
5642 # Use a header file that comes with gcc, so configuring glibc
5643 # with a fresh cross-compiler works.
5644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 # <limits.h> exists even on freestanding compilers.
5646 # On the NeXT, cc -E runs the code through the compiler's parser,
5647 # not just through cpp. "Syntax error" is here to catch this case.
5648 cat >conftest.$ac_ext <<_ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5655 # include <limits.h>
5657 # include <assert.h>
5661 if { (ac_try="$ac_cpp conftest.$ac_ext"
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null && {
5674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 # Broken: fails on valid input.
5686 rm -f conftest.err conftest.$ac_ext
5688 # OK, works on sane cases. Now check whether nonexistent headers
5689 # can be detected and how.
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <ac_nonexistent.h>
5698 if { (ac_try="$ac_cpp conftest.$ac_ext"
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5706 grep -v '^ *+' conftest.er1 >conftest.err
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } >/dev/null && {
5711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5714 # Broken: success on invalid input.
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 # Passes both tests.
5725 rm -f conftest.err conftest.$ac_ext
5728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5729 rm -f conftest.err conftest.$ac_ext
5730 if $ac_preproc_ok; then
5733 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5734 See \`config.log' for more details." >&5
5735 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5736 See \`config.log' for more details." >&2;}
5737 { (exit 1); exit 1; }; }
5741 ac_cpp='$CPP $CPPFLAGS'
5742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5750 if test -z "$CC_FOR_BUILD"; then
5751 if test "$#" = yes; then
5752 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5753 See \`config.log' for more details." >&5
5754 echo "$as_me: error: cannot run test program while cross compiling
5755 See \`config.log' for more details." >&2;}
5756 { (exit 1); exit 1; }; }
5758 cat >conftest.$ac_ext <<_ACEOF
5759 int main(){return 0;}
5761 rm -f conftest$ac_exeext
5762 if { (ac_try="$ac_link"
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_link") 2>&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5772 { (case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_try") 2>&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5783 echo "$as_me: program exited with status $ac_status" >&5
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5796 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5797 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5798 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5800 if test -n "$ac_build_tool_prefix"; then
5801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5802 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5805 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 if test -n "$CC_FOR_BUILD"; then
5809 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5829 if test -n "$CC_FOR_BUILD"; then
5830 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5831 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5833 { echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6; }
5839 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5840 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5841 # Extract the first word of "gcc", so it can be a program name with args.
5842 set dummy gcc; ac_word=$2
5843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5845 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 if test -n "$ac_ct_CC_FOR_BUILD"; then
5849 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5869 if test -n "$ac_ct_CC_FOR_BUILD"; then
5870 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5871 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5873 { echo "$as_me:$LINENO: result: no" >&5
5874 echo "${ECHO_T}no" >&6; }
5877 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5880 case $#:$ac_tool_warned in
5882 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5883 whose name does not start with the build triplet. If you think this
5884 configuration is useful to you, please write to autoconf@gnu.org." >&5
5885 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5886 whose name does not start with the build triplet. If you think this
5887 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5888 ac_tool_warned=yes ;;
5890 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5893 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5896 if test -z "$CC_FOR_BUILD"; then
5897 if test -n "$ac_build_tool_prefix"; then
5898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5899 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5902 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 if test -n "$CC_FOR_BUILD"; then
5906 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5926 if test -n "$CC_FOR_BUILD"; then
5927 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5928 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5930 { echo "$as_me:$LINENO: result: no" >&5
5931 echo "${ECHO_T}no" >&6; }
5937 if test -z "$CC_FOR_BUILD"; then
5938 # Extract the first word of "cc", so it can be a program name with args.
5939 set dummy cc; ac_word=$2
5940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5942 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 if test -n "$CC_FOR_BUILD"; then
5946 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5957 ac_prog_rejected=yes
5960 ac_cv_prog_CC_FOR_BUILD="cc"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 if test $ac_prog_rejected = yes; then
5969 # We found a bogon in the path, so make sure we never use it.
5970 set dummy $ac_cv_prog_CC_FOR_BUILD
5972 if test $# != 0; then
5973 # We chose a different compiler from the bogus one.
5974 # However, it has the same basename, so the bogon will be chosen
5975 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5977 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5982 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5983 if test -n "$CC_FOR_BUILD"; then
5984 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5985 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5993 if test -z "$CC_FOR_BUILD"; then
5994 if test -n "$ac_build_tool_prefix"; then
5995 for ac_prog in cl.exe
5997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5998 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 if test -n "$CC_FOR_BUILD"; then
6005 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
6015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6025 if test -n "$CC_FOR_BUILD"; then
6026 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
6027 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
6029 { echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6; }
6034 test -n "$CC_FOR_BUILD" && break
6037 if test -z "$CC_FOR_BUILD"; then
6038 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6039 for ac_prog in cl.exe
6041 # Extract the first word of "$ac_prog", so it can be a program name with args.
6042 set dummy $ac_prog; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 if test -n "$ac_ct_CC_FOR_BUILD"; then
6049 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
6059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6069 if test -n "$ac_ct_CC_FOR_BUILD"; then
6070 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
6071 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
6073 { echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6; }
6078 test -n "$ac_ct_CC_FOR_BUILD" && break
6081 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6084 case $#:$ac_tool_warned in
6086 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6087 whose name does not start with the build triplet. If you think this
6088 configuration is useful to you, please write to autoconf@gnu.org." >&5
6089 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6090 whose name does not start with the build triplet. If you think this
6091 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6092 ac_tool_warned=yes ;;
6094 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6101 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6102 See \`config.log' for more details." >&5
6103 echo "$as_me: error: no acceptable C compiler found in \$PATH
6104 See \`config.log' for more details." >&2;}
6105 { (exit 1); exit 1; }; }
6107 # Provide some information about the compiler.
6108 echo "$as_me:$LINENO: checking for C compiler version" >&5
6109 ac_compiler=`set X $ac_build_compile; echo $2`
6110 { (ac_try="$ac_compiler --version >&5"
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compiler --version >&5") 2>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }
6120 { (ac_try="$ac_compiler -v >&5"
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_compiler -v >&5") 2>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }
6130 { (ac_try="$ac_compiler -V >&5"
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compiler -V >&5") 2>&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }
6141 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 cat >conftest.$ac_ext <<_ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6164 rm -f conftest.$ac_build_objext
6165 if { (ac_try="$ac_build_compile"
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_build_compile") 2>conftest.er1
6173 grep -v '^ *+' conftest.er1 >conftest.err
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && {
6178 test -z "$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest.$ac_build_objext; then
6181 ac_build_compiler_gnu=yes
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ac_build_compiler_gnu=no
6189 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6190 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
6193 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6194 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6195 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
6196 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
6197 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
6198 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
6199 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
6200 if test "${ac_cv_build_prog_cc_g+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 ac_save_c_werror_flag=$ac_c_werror_flag
6204 ac_c_werror_flag=yes
6205 ac_cv_build_prog_cc_g=no
6206 CFLAGS_FOR_BUILD="-g"
6207 cat >conftest.$ac_ext <<_ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6222 rm -f conftest.$ac_build_objext
6223 if { (ac_try="$ac_build_compile"
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_build_compile") 2>conftest.er1
6231 grep -v '^ *+' conftest.er1 >conftest.err
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } && {
6236 test -z "$ac_c_werror_flag" ||
6237 test ! -s conftest.err
6238 } && test -s conftest.$ac_build_objext; then
6239 ac_cv_build_prog_cc_g=yes
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6245 cat >conftest.$ac_ext <<_ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6260 rm -f conftest.$ac_build_objext
6261 if { (ac_try="$ac_build_compile"
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_build_compile") 2>conftest.er1
6269 grep -v '^ *+' conftest.er1 >conftest.err
6271 cat conftest.err >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } && {
6274 test -z "$ac_c_werror_flag" ||
6275 test ! -s conftest.err
6276 } && test -s conftest.$ac_build_objext; then
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6282 ac_c_werror_flag=$ac_save_c_werror_flag
6283 CFLAGS_FOR_BUILD="-g"
6284 cat >conftest.$ac_ext <<_ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6299 rm -f conftest.$ac_build_objext
6300 if { (ac_try="$ac_build_compile"
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_build_compile") 2>conftest.er1
6308 grep -v '^ *+' conftest.er1 >conftest.err
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_build_objext; then
6316 ac_cv_build_prog_cc_g=yes
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6324 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6327 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6330 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6331 ac_c_werror_flag=$ac_save_c_werror_flag
6333 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6334 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6335 if test "$ac_test_CFLAGS" = set; then
6336 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6337 elif test $ac_cv_build_prog_cc_g = yes; then
6338 if test "$GCC" = yes; then
6339 CFLAGS_FOR_BUILD="-g -O2"
6341 CFLAGS_FOR_BUILD="-g"
6344 if test "$GCC" = yes; then
6345 CFLAGS_FOR_BUILD="-O2"
6350 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6351 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6352 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 ac_cv_build_prog_cc_stdc=no
6356 ac_save_CC=$CC_FOR_BUILD
6357 cat >conftest.$ac_ext <<_ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6365 #include <sys/types.h>
6366 #include <sys/stat.h>
6367 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6368 struct buf { int x; };
6369 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6370 static char *e (p, i)
6376 static char *f (char * (*g) (char **, int), char **p, ...)
6381 s = g (p, va_arg (v,int));
6386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6387 function prototypes and stuff, but not '\xHH' hex character constants.
6388 These don't provoke an error unfortunately, instead are silently treated
6389 as 'x'. The following induces an error, until -std is added to get
6390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6391 array size at least. It's necessary to write '\x00'==0 to get something
6392 that's true only with -std. */
6393 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6396 inside strings and character constants. */
6398 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6400 int test (int i, double x);
6401 struct s1 {int (*f) (int a);};
6402 struct s2 {int (*f) (double a);};
6403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6414 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6417 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6418 rm -f conftest.$ac_build_objext
6419 if { (ac_try="$ac_build_compile"
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_build_compile") 2>conftest.er1
6427 grep -v '^ *+' conftest.er1 >conftest.err
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } && {
6432 test -z "$ac_c_werror_flag" ||
6433 test ! -s conftest.err
6434 } && test -s conftest.$ac_build_objext; then
6435 ac_cv_build_prog_cc_stdc=$ac_arg
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6443 rm -f core conftest.err conftest.$ac_build_objext
6444 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6446 rm -f conftest.$ac_ext
6447 CC_FOR_BUILD=$ac_save_CC
6451 case "x$ac_cv_build_prog_cc_stdc" in
6453 { echo "$as_me:$LINENO: result: none needed" >&5
6454 echo "${ECHO_T}none needed" >&6; } ;;
6456 { echo "$as_me:$LINENO: result: unsupported" >&5
6457 echo "${ECHO_T}unsupported" >&6; } ;;
6459 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6460 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6461 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6466 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6467 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6468 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6471 depcc="$CC_FOR_BUILD" am_compiler_list=
6473 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6474 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6475 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6479 # We make a subdir and do the tests there. Otherwise we can end up
6480 # making bogus files that we don't know about and never remove. For
6481 # instance it was reported that on HP-UX the gcc test will end up
6482 # making a dummy file named `D' -- because `-MD' means `put the output
6485 # Copy depcomp to subdir because otherwise we won't find it if we're
6486 # using a relative directory.
6487 cp "$am_depcomp" conftest.dir
6489 # We will build objects and dependencies in a subdirectory because
6490 # it helps to detect inapplicable dependency modes. For instance
6491 # both Tru64's cc and ICC support -MD to output dependencies as a
6492 # side effect of compilation, but ICC will put the dependencies in
6493 # the current directory while Tru64 will put them in the object
6497 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6498 if test "$am_compiler_list" = ""; then
6499 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6501 for depmode in $am_compiler_list; do
6502 # Setup a source with many dependencies, because some compilers
6503 # like to wrap large dependency lists on column 80 (with \), and
6504 # we should not choose a depcomp mode which is confused by this.
6506 # We need to recreate these files for each test, as the compiler may
6507 # overwrite some of them when testing with obscure command lines.
6508 # This happens at least with the AIX C compiler.
6510 for i in 1 2 3 4 5 6; do
6511 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6512 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6513 # Solaris 8's {/usr,}/bin/sh.
6514 touch sub/conftst$i.h
6516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6520 # after this tag, mechanisms are not by side-effect, so they'll
6521 # only be used when explicitly requested
6522 if test "x$enable_dependency_tracking" = xyes; then
6530 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6531 # mode. It turns out that the SunPro C++ compiler does not properly
6532 # handle `-M -o', and we need to detect this.
6533 if depmode=$depmode \
6534 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6535 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6536 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6537 >/dev/null 2>conftest.err &&
6538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6539 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6541 # icc doesn't choke on unknown options, it will just issue warnings
6542 # or remarks (even with -Werror). So we grep stderr for any message
6543 # that says an option was ignored or not supported.
6544 # When given -MP, icc 7.0 and 7.1 complain thusly:
6545 # icc: Command line warning: ignoring option '-M'; no argument required
6546 # The diagnosis changed in icc 8.0:
6547 # icc: Command line remark: option '-MP' not supported
6548 if (grep 'ignoring option' conftest.err ||
6549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6550 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6559 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6563 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6564 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6565 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6570 test "x$enable_dependency_tracking" != xno \
6571 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6572 am__fastdepCC_FOR_BUILD_TRUE=
6573 am__fastdepCC_FOR_BUILD_FALSE='#'
6575 am__fastdepCC_FOR_BUILD_TRUE='#'
6576 am__fastdepCC_FOR_BUILD_FALSE=
6580 case $ac_cv_build_prog_cc_stdc in
6581 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6582 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6583 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6584 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 ac_cv_build_prog_cc_stdc=no
6588 ac_save_CC=$CC_FOR_BUILD
6589 cat >conftest.$ac_ext <<_ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6596 #include <stdbool.h>
6601 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6602 #define debug(...) fprintf (stderr, __VA_ARGS__)
6603 #define showlist(...) puts (#__VA_ARGS__)
6604 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6606 test_varargs_macros (void)
6611 debug ("X = %d\n", x);
6612 showlist (The first, second, and third items.);
6613 report (x>y, "x is %d but y is %d", x, y);
6616 // Check long long types.
6617 #define BIG64 18446744073709551615ull
6618 #define BIG32 4294967295ul
6619 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6621 your preprocessor is broken;
6625 your preprocessor is broken;
6627 static long long int bignum = -9223372036854775807LL;
6628 static unsigned long long int ubignum = BIG64;
6630 struct incomplete_array
6638 const wchar_t *name;
6642 typedef const char *ccp;
6645 test_restrict (ccp restrict text)
6647 // See if C++-style comments work.
6648 // Iterate through items via the restricted pointer.
6649 // Also check for declarations in for loops.
6650 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6655 // Check varargs and va_copy.
6657 test_varargs (const char *format, ...)
6660 va_start (args, format);
6662 va_copy (args_copy, args);
6673 str = va_arg (args_copy, const char *);
6676 number = va_arg (args_copy, int);
6679 fnumber = va_arg (args_copy, double);
6694 _Bool success = false;
6697 if (test_restrict ("String literal") == 0)
6699 char *restrict newvar = "Another string";
6702 test_varargs ("s, d' f .", "string", 65, 34.234);
6703 test_varargs_macros ();
6705 // Check flexible array members.
6706 struct incomplete_array *ia =
6707 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6709 for (int i = 0; i < ia->datasize; ++i)
6710 ia->data[i] = i * 1.234;
6712 // Check named initializers.
6713 struct named_init ni = {
6715 .name = L"Test wide string",
6716 .average = 543.34343,
6721 int dynamic_array[ni.number];
6722 dynamic_array[ni.number - 1] = 543;
6724 // work around unused variable warnings
6725 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6726 || dynamic_array[ni.number - 1] != 543);
6732 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6734 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6735 rm -f conftest.$ac_build_objext
6736 if { (ac_try="$ac_build_compile"
6738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_build_compile") 2>conftest.er1
6744 grep -v '^ *+' conftest.er1 >conftest.err
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } && {
6749 test -z "$ac_c_werror_flag" ||
6750 test ! -s conftest.err
6751 } && test -s conftest.$ac_build_objext; then
6752 ac_cv_build_prog_cc_stdc=$ac_arg
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5