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
716 am__fastdepCC_FOR_BUILD_TRUE
717 am__fastdepCC_FOR_BUILD_FALSE
736 am__fastdepOBJC_FALSE
755 GLIB_FOR_BUILD_CFLAGS
830 ac_precious_vars='build_alias
855 GLIB_FOR_BUILD_CFLAGS
871 # Initialize some variables set by options.
873 ac_init_version=false
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
883 program_transform_name=s,x,x,
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE}'
908 infodir='${datarootdir}/info'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
929 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 # Accept the important Cygnus configure options, so we can diagnose typos.
935 case $ac_dashdash$ac_option in
939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944 -build | --build | --buil | --bui | --bu)
945 ac_prev=build_alias ;;
946 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947 build_alias=$ac_optarg ;;
949 -cache-file | --cache-file | --cache-fil | --cache-fi \
950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951 ac_prev=cache_file ;;
952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954 cache_file=$ac_optarg ;;
957 cache_file=config.cache ;;
959 -datadir | --datadir | --datadi | --datad)
961 -datadir=* | --datadir=* | --datadi=* | --datad=*)
962 datadir=$ac_optarg ;;
964 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965 | --dataroo | --dataro | --datar)
966 ac_prev=datarootdir ;;
967 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969 datarootdir=$ac_optarg ;;
971 -disable-* | --disable-*)
972 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
975 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
976 { (exit 1); exit 1; }; }
977 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
978 eval enable_$ac_feature=no ;;
980 -docdir | --docdir | --docdi | --doc | --do)
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990 -enable-* | --enable-*)
991 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
994 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
995 { (exit 1); exit 1; }; }
996 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
997 eval enable_$ac_feature=\$ac_optarg ;;
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 htmldir=$ac_optarg ;;
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1042 -libdir | --libdir | --libdi | --libd)
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1133 -psdir | --psdir | --psdi | --psd | --ps)
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 sbindir=$ac_optarg ;;
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 sharedstatedir=$ac_optarg ;;
1159 -site | --site | --sit)
1161 -site=* | --site=* | --sit=*)
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1188 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid package name: $ac_package" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1194 eval with_$ac_package=\$ac_optarg ;;
1196 -without-* | --without-*)
1197 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 { echo "$as_me: error: invalid package name: $ac_package" >&2
1201 { (exit 1); exit 1; }; }
1202 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1203 eval with_$ac_package=no ;;
1206 # Obsolete; use --with-x.
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) { echo "$as_me: error: unrecognized option: $ac_option
1224 Try \`$0 --help' for more information." >&2
1225 { (exit 1); exit 1; }; }
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1232 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1233 { (exit 1); exit 1; }; }
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 { echo "$as_me: error: missing argument to $ac_option" >&2
1251 { (exit 1); exit 1; }; }
1254 # Be sure to have absolute directory names.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1260 eval ac_val=\$$ac_var
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1266 { (exit 1); exit 1; }; }
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1274 target=$target_alias
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
1280 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290 test "$silent" = yes && exec 6>/dev/null
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 { echo "$as_me: error: Working directory cannot be determined" >&2
1297 { (exit 1); exit 1; }; }
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 { echo "$as_me: error: pwd does not report name of working directory" >&2
1300 { (exit 1); exit 1; }; }
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$0" ||
1308 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$0" : 'X\(//\)[^/]' \| \
1310 X"$0" : 'X\(//\)$' \| \
1311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1340 { (exit 1); exit 1; }; }
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1345 { (exit 1); exit 1; }; }
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 # Report the --help message.
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1371 \`configure' configures this package to adapt to many kinds of systems.
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1378 Defaults for the options are specified in brackets.
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1402 For better control, use the options below.
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 if test -n "$ac_init_help"; then
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-maintainer-mode enable make rules and dependencies not useful
1447 (and sometimes confusing) to the casual installer
1448 --disable-dependency-tracking speeds up one-time build
1449 --enable-dependency-tracking do not reject slow dependency extractors
1450 --enable-strict-warn Enable strict compilation warnings
1451 --disable-translator Disable the SH4 translator (Enabled by default)
1452 --disable-optimized Disable compile-time optimizations (Enabled by
1454 --enable-shared Build drivers as shared libraries (Enabled if
1456 --enable-profiled Enable profiling build
1457 --enable-trace Enable generation of IO traces (warning: hurts
1459 --enable-watch Enable watchpoints in the debugger (warning: hurts
1461 --enable-sh4stats Enable statistics on executed sh4 instructions
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-android=SDK Specify the location of the Android SDK
1467 --with-android-ndk=NDK Specify the location of the Android NDK
1468 --with-android-version Specify target Android SDK version
1469 --with-android-version Specify target Android NDK version
1470 --with-osmesa Build with the osmesa GL library (software
1472 --with-gtk Build with the GTK UI. Default on X11 systems
1473 --with-esd Build with support for the ESounD audio system
1474 --with-pulse Build with support for the PulseAudio audio system
1475 --with-sdl Build with support for SDL audio
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1486 OBJC Objective C compiler command
1487 OBJCFLAGS Objective C compiler flags
1488 CCAS assembler compiler command (defaults to CC)
1489 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1490 PKG_CONFIG path to pkg-config utility
1492 C compiler flags for LIBPNG, overriding pkg-config
1493 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1494 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1495 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1496 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1497 GTK_LIBS linker flags for GTK, overriding pkg-config
1498 GLIB_FOR_BUILD_CFLAGS
1499 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1501 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1503 C compiler flags for LIBISOFS, overriding pkg-config
1505 linker flags for LIBISOFS, overriding pkg-config
1507 C compiler flags for LIBGL, overriding pkg-config
1508 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1509 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1510 SDL_LIBS linker flags for SDL, overriding pkg-config
1512 C compiler flags for PULSE, overriding pkg-config
1513 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1515 C compiler flags for ESOUND, overriding pkg-config
1516 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1517 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1518 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" || continue
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1550 .) # We are building in place.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1584 generated by GNU Autoconf 2.61
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1597 It was created by $as_me, which was
1598 generated by GNU Autoconf 2.61. Invocation command line was
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 echo "PATH: $as_dir"
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_must_keep_next=false
1664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666 | -silent | --silent | --silen | --sile | --sil)
1669 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1674 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true; then
1676 ac_must_keep_next=false # Got value, back to normal.
1679 *=* | --config-cache | -C | -disable-* | --disable-* \
1680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682 | -with-* | --with-* | -without-* | --without-* | --x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687 -* ) ac_must_keep_next=true ;;
1690 ac_configure_args="$ac_configure_args '$ac_arg'"
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1714 # The following way of writing the cache mishandles newlines in values,
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1721 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725 _ | IFS | as_nl) ;; #(
1726 *) $as_unset $ac_var ;;
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1751 for ac_var in $ac_subst_vars
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1761 if test -n "$ac_subst_files"; then
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1768 for ac_var in $ac_subst_files
1770 eval ac_val=\$$ac_var
1772 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 echo "$ac_var='\''$ac_val'\''"
1779 if test -s confdefs.h; then
1789 test "$ac_signal" != 0 &&
1790 echo "$as_me: caught signal $ac_signal"
1791 echo "$as_me: exit $exit_status"
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797 for ac_signal in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1805 # Predefined preprocessor variables.
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835 set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1839 set x "$ac_default_prefix/share/config.site" \
1840 "$ac_default_prefix/etc/config.site"
1845 if test -r "$ac_site_file"; then
1846 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848 sed 's/^/| /' "$ac_site_file" >&5
1853 if test -r "$cache_file"; then
1854 # Some versions of bash will fail to source /dev/null (special
1855 # files actually), so we avoid doing that.
1856 if test -f "$cache_file"; then
1857 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1860 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861 *) . "./$cache_file";;
1865 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1870 # Check that the precious variables saved in the cache have kept the same
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875 eval ac_new_set=\$ac_env_${ac_var}_set
1876 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877 eval ac_new_val=\$ac_env_${ac_var}_value
1878 case $ac_old_set,$ac_new_set in
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1884 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886 ac_cache_corrupted=: ;;
1889 if test "x$ac_old_val" != "x$ac_new_val"; then
1890 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1893 echo "$as_me: former value: $ac_old_val" >&2;}
1894 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1895 echo "$as_me: current value: $ac_new_val" >&2;}
1896 ac_cache_corrupted=:
1899 # Pass precious variables to config.status.
1900 if test "$ac_new_set" = set; then
1902 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 *) ac_arg=$ac_var=$ac_new_val ;;
1905 case " $ac_configure_args " in
1906 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1907 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911 if $ac_cache_corrupted; then
1912 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916 { (exit 1); exit 1; }; }
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 am__api_version="1.9"
1944 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1945 if test -f "$ac_dir/install-sh"; then
1947 ac_install_sh="$ac_aux_dir/install-sh -c"
1949 elif test -f "$ac_dir/install.sh"; then
1951 ac_install_sh="$ac_aux_dir/install.sh -c"
1953 elif test -f "$ac_dir/shtool"; then
1955 ac_install_sh="$ac_aux_dir/shtool install -c"
1959 if test -z "$ac_aux_dir"; then
1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1974 # Find a good install program. We prefer a C program (faster),
1975 # so one script is as good as another. But avoid the broken or
1976 # incompatible versions:
1977 # SysV /etc/install, /usr/sbin/install
1978 # SunOS /usr/etc/install
1979 # IRIX /sbin/install
1981 # AmigaOS /C/install, which installs bootblocks on floppy discs
1982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1985 # OS/2's system install, which has a completely different semantic
1986 # ./install, which can be erroneously created by make from ./install.sh.
1987 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1989 if test -z "$INSTALL"; then
1990 if test "${ac_cv_path_install+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 # Account for people who put trailing slashes in PATH elements.
2000 ./ | .// | /cC/* | \
2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2005 # OSF1 and SCO ODT 3.0 have their own names for install.
2006 # Don't use installbsd from OSF since it installs stuff as root
2008 for ac_prog in ginstall scoinst install; do
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2011 if test $ac_prog = install &&
2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2013 # AIX install. It has an incompatible calling convention.
2015 elif test $ac_prog = install &&
2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2017 # program-specific install script used by HP pwplus--don't use.
2020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2033 if test "${ac_cv_path_install+set}" = set; then
2034 INSTALL=$ac_cv_path_install
2036 # As a last resort, use the slow shell script. Don't cache a
2037 # value for INSTALL within a source directory, because that will
2038 # break other packages using the cache if that directory is
2039 # removed, or if the value is a relative name.
2040 INSTALL=$ac_install_sh
2043 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2044 echo "${ECHO_T}$INSTALL" >&6; }
2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047 # It thinks the first close brace ends the variable substitution.
2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2054 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2055 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2058 echo timestamp > conftest.file
2059 # Do `set' in a subshell so we don't clobber the current shell's
2060 # arguments. Must try -L first in case configure is actually a
2061 # symlink; some systems play weird games with the mod time of symlinks
2062 # (eg FreeBSD returns the mod time of the symlink's containing
2065 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2066 if test "$*" = "X"; then
2068 set X `ls -t $srcdir/configure conftest.file`
2071 if test "$*" != "X $srcdir/configure conftest.file" \
2072 && test "$*" != "X conftest.file $srcdir/configure"; then
2074 # If neither matched, then we have a broken ls. This can happen
2075 # if, for instance, CONFIG_SHELL is bash and it inherits a
2076 # broken ls alias from the environment. This has actually
2077 # happened. Such a system could not be considered "sane".
2078 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2079 alias in your environment" >&5
2080 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2081 alias in your environment" >&2;}
2082 { (exit 1); exit 1; }; }
2085 test "$2" = conftest.file
2091 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2092 Check your system clock" >&5
2093 echo "$as_me: error: newly created file is older than distributed files!
2094 Check your system clock" >&2;}
2095 { (exit 1); exit 1; }; }
2097 { echo "$as_me:$LINENO: result: yes" >&5
2098 echo "${ECHO_T}yes" >&6; }
2099 test "$program_prefix" != NONE &&
2100 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2101 # Use a double $ so make ignores it.
2102 test "$program_suffix" != NONE &&
2103 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2104 # Double any \ or $. echo might interpret backslashes.
2105 # By default was `s,x,x', remove it if useless.
2106 cat <<\_ACEOF >conftest.sed
2107 s/[\\$]/&&/g;s/;s,x,x,$//
2109 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2112 # expand $ac_aux_dir to an absolute path
2113 am_aux_dir=`cd $ac_aux_dir && pwd`
2115 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2116 # Use eval to expand $SHELL
2117 if eval "$MISSING --run true"; then
2118 am_missing_run="$MISSING --run "
2121 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2122 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2125 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2126 # We used to keeping the `.' as first argument, in order to
2127 # allow $(mkdir_p) to be used without argument. As in
2128 # $(mkdir_p) $(somedir)
2129 # where $(somedir) is conditionally defined. However this is wrong
2131 # 1. if the package is installed by a user who cannot write `.'
2132 # make install will fail,
2133 # 2. the above comment should most certainly read
2134 # $(mkdir_p) $(DESTDIR)$(somedir)
2135 # so it does not work when $(somedir) is undefined and
2136 # $(DESTDIR) is not.
2137 # To support the latter case, we have to write
2138 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2139 # so the `.' trick is pointless.
2140 mkdir_p='mkdir -p --'
2142 # On NextStep and OpenStep, the `mkdir' command does not
2143 # recognize any option. It will interpret all options as
2144 # directories to create, and then abort because `.' already
2146 for d in ./-p ./--version;
2148 test -d $d && rmdir $d
2150 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2151 if test -f "$ac_aux_dir/mkinstalldirs"; then
2152 mkdir_p='$(mkinstalldirs)'
2154 mkdir_p='$(install_sh) -d'
2158 for ac_prog in gawk mawk nawk awk
2160 # Extract the first word of "$ac_prog", so it can be a program name with args.
2161 set dummy $ac_prog; ac_word=$2
2162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2164 if test "${ac_cv_prog_AWK+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test -n "$AWK"; then
2168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2177 ac_cv_prog_AWK="$ac_prog"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188 if test -n "$AWK"; then
2189 { echo "$as_me:$LINENO: result: $AWK" >&5
2190 echo "${ECHO_T}$AWK" >&6; }
2192 { echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6; }
2197 test -n "$AWK" && break
2200 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2201 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2202 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2203 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 cat >conftest.make <<\_ACEOF
2209 @echo '@@@%%%=$(MAKE)=@@@%%%'
2211 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2212 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2214 eval ac_cv_prog_make_${ac_make}_set=yes;;
2216 eval ac_cv_prog_make_${ac_make}_set=no;;
2220 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2221 { echo "$as_me:$LINENO: result: yes" >&5
2222 echo "${ECHO_T}yes" >&6; }
2225 { echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6; }
2227 SET_MAKE="MAKE=${MAKE-make}"
2230 rm -rf .tst 2>/dev/null
2231 mkdir .tst 2>/dev/null
2232 if test -d .tst; then
2237 rmdir .tst 2>/dev/null
2239 # test to see if srcdir already configured
2240 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2241 test -f $srcdir/config.status; then
2242 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2243 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2244 { (exit 1); exit 1; }; }
2247 # test whether we have cygpath
2248 if test -z "$CYGPATH_W"; then
2249 if (cygpath --version) >/dev/null 2>/dev/null; then
2250 CYGPATH_W='cygpath -w'
2257 # Define the identity of the package.
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE "$PACKAGE"
2267 cat >>confdefs.h <<_ACEOF
2268 #define VERSION "$VERSION"
2271 # Some tools Automake needs.
2273 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2276 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2279 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2282 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2285 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2287 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2289 # Installed binaries are usually stripped using `strip' when the user
2290 # run `make install-strip'. However `strip' might not be the right
2291 # tool to use in cross-compilation environments, therefore Automake
2292 # will honor the `STRIP' environment variable to overrule this program.
2293 if test "$cross_compiling" != no; then
2294 if test -n "$ac_tool_prefix"; then
2295 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2296 set dummy ${ac_tool_prefix}strip; ac_word=$2
2297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2299 if test "${ac_cv_prog_STRIP+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 if test -n "$STRIP"; then
2303 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 STRIP=$ac_cv_prog_STRIP
2323 if test -n "$STRIP"; then
2324 { echo "$as_me:$LINENO: result: $STRIP" >&5
2325 echo "${ECHO_T}$STRIP" >&6; }
2327 { echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6; }
2333 if test -z "$ac_cv_prog_STRIP"; then
2335 # Extract the first word of "strip", so it can be a program name with args.
2336 set dummy strip; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$ac_ct_STRIP"; then
2343 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_ac_ct_STRIP="strip"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2363 if test -n "$ac_ct_STRIP"; then
2364 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2365 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2371 if test "x$ac_ct_STRIP" = x; then
2374 case $cross_compiling:$ac_tool_warned in
2376 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2377 whose name does not start with the host triplet. If you think this
2378 configuration is useful to you, please write to autoconf@gnu.org." >&5
2379 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2380 whose name does not start with the host triplet. If you think this
2381 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2382 ac_tool_warned=yes ;;
2387 STRIP="$ac_cv_prog_STRIP"
2391 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2393 # We need awk for the "check" target. The system "awk" is bad on
2395 # Always define AMTAR for backward compatibility.
2397 AMTAR=${AMTAR-"${am_missing_run}tar"}
2399 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2405 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2406 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2407 # Check whether --enable-maintainer-mode was given.
2408 if test "${enable_maintainer_mode+set}" = set; then
2409 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2411 USE_MAINTAINER_MODE=no
2414 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2415 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2418 if test $USE_MAINTAINER_MODE = yes; then
2419 MAINTAINER_MODE_TRUE=
2420 MAINTAINER_MODE_FALSE='#'
2422 MAINTAINER_MODE_TRUE='#'
2423 MAINTAINER_MODE_FALSE=
2426 MAINT=$MAINTAINER_MODE_TRUE
2429 ac_config_headers="$ac_config_headers config.h"
2432 # Make sure we can run config.sub.
2433 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2434 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2435 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2436 { (exit 1); exit 1; }; }
2438 { echo "$as_me:$LINENO: checking build system type" >&5
2439 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2440 if test "${ac_cv_build+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 ac_build_alias=$build_alias
2444 test "x$ac_build_alias" = x &&
2445 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2446 test "x$ac_build_alias" = x &&
2447 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2448 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2449 { (exit 1); exit 1; }; }
2450 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2451 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2452 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2453 { (exit 1); exit 1; }; }
2456 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2457 echo "${ECHO_T}$ac_cv_build" >&6; }
2458 case $ac_cv_build in
2460 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2461 echo "$as_me: error: invalid value of canonical build" >&2;}
2462 { (exit 1); exit 1; }; };;
2465 ac_save_IFS=$IFS; IFS='-'
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2475 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2478 { echo "$as_me:$LINENO: checking host system type" >&5
2479 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2480 if test "${ac_cv_host+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test "x$host_alias" = x; then
2484 ac_cv_host=$ac_cv_build
2486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2487 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2488 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2489 { (exit 1); exit 1; }; }
2493 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2494 echo "${ECHO_T}$ac_cv_host" >&6; }
2497 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2498 echo "$as_me: error: invalid value of canonical host" >&2;}
2499 { (exit 1); exit 1; }; };;
2502 ac_save_IFS=$IFS; IFS='-'
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2512 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2524 # Defines --with-android, --with-android-ndk, and --with-android-version
2525 # If specified, checks for a working install, and sets build parameters
2526 # appropriately for an Android host.
2532 # Check whether --with-android was given.
2533 if test "${with_android+set}" = set; then
2534 withval=$with_android;
2538 # Check whether --with-android-ndk was given.
2539 if test "${with_android_ndk+set}" = set; then
2540 withval=$with_android_ndk;
2544 # Check whether --with-android-version was given.
2545 if test "${with_android_version+set}" = set; then
2546 withval=$with_android_version;
2548 with_android_version="android-11"
2552 # Check whether --with-android-ndk-version was given.
2553 if test "${with_android_ndk_version+set}" = set; then
2554 withval=$with_android_ndk_version;
2556 with_ndk_version="android-9"
2560 if test "x$with_android" != "x"; then
2561 if test "$with_android" = "yes"; then
2562 { { echo "$as_me:$LINENO: error: --with-android option must be given with the path to the Android SDK " >&5
2563 echo "$as_me: error: --with-android option must be given with the path to the Android SDK " >&2;}
2564 { (exit 1); exit 1; }; }
2566 if test "x$with_android_ndk" = "x" -o "x$with_android_ndk" = "xyes"; then
2567 { { echo "$as_me:$LINENO: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&5
2568 echo "$as_me: error: --with-android-ndk=/path/to/ndk option must be used with --with-android " >&2;}
2569 { (exit 1); exit 1; }; }
2572 ANDROID_SDK_HOME="$with_android"
2573 ANDROID_NDK_HOME="$with_android_ndk"
2574 ANDROID_SDK_VERSION="$with_android_version"
2575 ANDROID_NDK_VERSION="$with_ndk_version"
2577 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/tools/ant/pre_setup.xml" | $as_tr_sh`
2578 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml" >&5
2579 echo $ECHO_N "checking for $ANDROID_SDK_HOME/tools/ant/pre_setup.xml... $ECHO_C" >&6; }
2580 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 test "$cross_compiling" = yes &&
2584 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2585 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2586 { (exit 1); exit 1; }; }
2587 if test -r "$ANDROID_SDK_HOME/tools/ant/pre_setup.xml"; then
2588 eval "$as_ac_File=yes"
2590 eval "$as_ac_File=no"
2593 ac_res=`eval echo '${'$as_ac_File'}'`
2594 { echo "$as_me:$LINENO: result: $ac_res" >&5
2595 echo "${ECHO_T}$ac_res" >&6; }
2596 if test `eval echo '${'$as_ac_File'}'` = yes; then
2599 { { echo "$as_me:$LINENO: error: Android SDK not found in $ANDROID_SDK_HOME" >&5
2600 echo "$as_me: error: Android SDK not found in $ANDROID_SDK_HOME" >&2;}
2601 { (exit 1); exit 1; }; }
2604 as_ac_File=`echo "ac_cv_file_$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" | $as_tr_sh`
2605 { echo "$as_me:$LINENO: checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties" >&5
2606 echo $ECHO_N "checking for $ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties... $ECHO_C" >&6; }
2607 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 test "$cross_compiling" = yes &&
2611 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2612 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2613 { (exit 1); exit 1; }; }
2614 if test -r "$ANDROID_SDK_HOME/platforms/$ANDROID_SDK_VERSION/sdk.properties"; then
2615 eval "$as_ac_File=yes"
2617 eval "$as_ac_File=no"
2620 ac_res=`eval echo '${'$as_ac_File'}'`
2621 { echo "$as_me:$LINENO: result: $ac_res" >&5
2622 echo "${ECHO_T}$ac_res" >&6; }
2623 if test `eval echo '${'$as_ac_File'}'` = yes; then
2626 { { echo "$as_me:$LINENO: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&5
2627 echo "$as_me: error: Android platform version $ANDROID_SDK_VERSION not found in $ANDROID_SDK_HOME" >&2;}
2628 { (exit 1); exit 1; }; }
2631 as_ac_File=`echo "ac_cv_file_$ANDROID_NDK_HOME/toolchains" | $as_tr_sh`
2632 { echo "$as_me:$LINENO: checking for $ANDROID_NDK_HOME/toolchains" >&5
2633 echo $ECHO_N "checking for $ANDROID_NDK_HOME/toolchains... $ECHO_C" >&6; }
2634 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 test "$cross_compiling" = yes &&
2638 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2639 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2640 { (exit 1); exit 1; }; }
2641 if test -r "$ANDROID_NDK_HOME/toolchains"; then
2642 eval "$as_ac_File=yes"
2644 eval "$as_ac_File=no"
2647 ac_res=`eval echo '${'$as_ac_File'}'`
2648 { echo "$as_me:$LINENO: result: $ac_res" >&5
2649 echo "${ECHO_T}$ac_res" >&6; }
2650 if test `eval echo '${'$as_ac_File'}'` = yes; then
2653 { { echo "$as_me:$LINENO: error: Android NDK not found in $ANDROID_NDK_HOME" >&5
2654 echo "$as_me: error: Android NDK not found in $ANDROID_NDK_HOME" >&2;}
2655 { (exit 1); exit 1; }; }
2661 host_alias="arm-linux-androideabi"
2663 host_vendor="unknown";
2664 host_os="linux-androideabi"
2665 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/*/bin`
2666 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/arm-*/prebuilt/gdbserver`
2667 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-arm"
2668 TARGETFLAGS="-ffunction-sections -funwind-tables -fstack-protector -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wno-psabi -Wa,--noexecstack"
2669 TARGETFLAGS="$TARGETFLAGS -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -march=armv5te -mtune=xscale -msoft-float -mthumb -Os"
2672 host_alias="i686-android-linux"
2674 host_vendor="android"
2676 ANDROID_NDK_BIN=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/*/bin`
2677 ANDROID_GDBSERVER=`echo $ANDROID_NDK_HOME/toolchains/x86-*/prebuilt/gdbserver`
2678 ANDROID_SYSROOT="$ANDROID_NDK_HOME/platforms/$ANDROID_NDK_VERSION/arch-x86"
2682 { { echo "$as_me:$LINENO: error: Unsupported android host $host_alias" >&5
2683 echo "$as_me: error: Unsupported android host $host_alias" >&2;}
2684 { (exit 1); exit 1; }; }
2688 # Extract the first word of "ant ", so it can be a program name with args.
2689 set dummy ant ; ac_word=$2
2690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2692 if test "${ac_cv_path_ANT+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
2708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 if test -n "$ANT"; then
2720 { echo "$as_me:$LINENO: result: $ANT" >&5
2721 echo "${ECHO_T}$ANT" >&6; }
2723 { echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6; }
2729 CC="$ANDROID_NDK_BIN/${host_alias}-gcc"
2730 CXX="$ANDROID_NDK_BIN/${host_alias}-g++"
2731 CPP="$ANDROID_NDK_BIN/${host_alias}-cpp"
2732 LD="$ANDROID_NDK_BIN/${host_alias}-ld"
2733 AR="$ANDROID_NDK_BIN/${host_alias}-ar"
2734 RANLIB="$ANDROID_NDK_BIN/${host_alias}-ranlib"
2735 STRIP="$ANDROID_NDK_BIN/${host_alias}-strip"
2736 OBJDUMP="$ANDROID_NDK_BIN/${host_alias}-objdump"
2737 CPPFLAGS="-fPIC --sysroot=$ANDROID_SYSROOT -I$ANDROID_SYSROOT/usr/include $TARGETFLAGS $CPPFLAGS"
2738 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"
2739 LIBS="$LIBS -liconv -landroid -llog -lgcc -lc -lm"
2753 if test "$ANDROID_BUILD" = "yes"; then
2755 GUI_ANDROID_FALSE='#'
2757 GUI_ANDROID_TRUE='#'
2764 DEPDIR="${am__leading_dot}deps"
2766 ac_config_commands="$ac_config_commands depfiles"
2769 am_make=${MAKE-make}
2770 cat > confinc << 'END'
2775 # If we don't find an include directive, just comment out the code.
2776 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2777 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2781 # First try GNU make style include.
2782 echo "include confinc" > confmf
2783 # We grep out `Entering directory' and `Leaving directory'
2784 # messages which can occur if `w' ends up in MAKEFLAGS.
2785 # In particular we don't look at `^make:' because GNU make might
2786 # be invoked under some other name (usually "gmake"), in which
2787 # case it prints its new name instead of `make'.
2788 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2793 # Now try BSD make style include.
2794 if test "$am__include" = "#"; then
2795 echo '.include "confinc"' > confmf
2796 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2797 am__include=.include
2804 { echo "$as_me:$LINENO: result: $_am_result" >&5
2805 echo "${ECHO_T}$_am_result" >&6; }
2806 rm -f confinc confmf
2808 # Check whether --enable-dependency-tracking was given.
2809 if test "${enable_dependency_tracking+set}" = set; then
2810 enableval=$enable_dependency_tracking;
2813 if test "x$enable_dependency_tracking" != xno; then
2814 am_depcomp="$ac_aux_dir/depcomp"
2819 if test "x$enable_dependency_tracking" != xno; then
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_CC+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 if test -n "$CC"; then
2864 { echo "$as_me:$LINENO: result: $CC" >&5
2865 echo "${ECHO_T}$CC" >&6; }
2867 { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2873 if test -z "$ac_cv_prog_CC"; then
2875 # Extract the first word of "gcc", so it can be a program name with args.
2876 set dummy gcc; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_ac_ct_CC="gcc"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903 if test -n "$ac_ct_CC"; then
2904 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2905 echo "${ECHO_T}$ac_ct_CC" >&6; }
2907 { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2911 if test "x$ac_ct_CC" = x; then
2914 case $cross_compiling:$ac_tool_warned in
2916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2917 whose name does not start with the host triplet. If you think this
2918 configuration is useful to you, please write to autoconf@gnu.org." >&5
2919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2920 whose name does not start with the host triplet. If you think this
2921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2922 ac_tool_warned=yes ;;
2930 if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_CC="${ac_tool_prefix}cc"
2950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 if test -n "$CC"; then
2961 { echo "$as_me:$LINENO: result: $CC" >&5
2962 echo "${ECHO_T}$CC" >&6; }
2964 { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2971 if test -z "$CC"; then
2972 # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2976 if test "${ac_cv_prog_CC+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991 ac_prog_rejected=yes
2995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 if test $ac_prog_rejected = yes; then
3003 # We found a bogon in the path, so make sure we never use it.
3004 set dummy $ac_cv_prog_CC
3006 if test $# != 0; then
3007 # We chose a different compiler from the bogus one.
3008 # However, it has the same basename, so the bogon will be chosen
3009 # first if we set CC to just the basename; use the full file name.
3011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3017 if test -n "$CC"; then
3018 { echo "$as_me:$LINENO: result: $CC" >&5
3019 echo "${ECHO_T}$CC" >&6; }
3021 { echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6; }
3027 if test -z "$CC"; then
3028 if test -n "$ac_tool_prefix"; then
3029 for ac_prog in cl.exe
3031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 { echo "$as_me:$LINENO: result: $CC" >&5
3061 echo "${ECHO_T}$CC" >&6; }
3063 { echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6; }
3068 test -n "$CC" && break
3071 if test -z "$CC"; then
3073 for ac_prog in cl.exe
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 if test -n "$ac_ct_CC"; then
3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_ac_ct_CC="$ac_prog"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3105 echo "${ECHO_T}$ac_ct_CC" >&6; }
3107 { echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6; }
3112 test -n "$ac_ct_CC" && break
3115 if test "x$ac_ct_CC" = x; then
3118 case $cross_compiling:$ac_tool_warned in
3120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3121 whose name does not start with the host triplet. If you think this
3122 configuration is useful to you, please write to autoconf@gnu.org." >&5
3123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3124 whose name does not start with the host triplet. If you think this
3125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3126 ac_tool_warned=yes ;;
3135 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3136 See \`config.log' for more details." >&5
3137 echo "$as_me: error: no acceptable C compiler found in \$PATH
3138 See \`config.log' for more details." >&2;}
3139 { (exit 1); exit 1; }; }
3141 # Provide some information about the compiler.
3142 echo "$as_me:$LINENO: checking for C compiler version" >&5
3143 ac_compiler=`set X $ac_compile; echo $2`
3144 { (ac_try="$ac_compiler --version >&5"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compiler --version >&5") 2>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }
3154 { (ac_try="$ac_compiler -v >&5"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_compiler -v >&5") 2>&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }
3164 { (ac_try="$ac_compiler -V >&5"
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compiler -V >&5") 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3190 ac_clean_files_save=$ac_clean_files
3191 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3192 # Try to create an executable without -o first, disregard a.out.
3193 # It will help us diagnose broken compilers, and finding out an intuition
3195 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3196 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3197 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3199 # List of possible output files, starting from the most likely.
3200 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3201 # only as a last resort. b.out is created by i960 compilers.
3202 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3204 # The IRIX 6 linker writes into existing files which may not be
3205 # executable, retaining their permissions. Remove them first so a
3206 # subsequent execution test works.
3208 for ac_file in $ac_files
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3212 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3217 if { (ac_try="$ac_link_default"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_link_default") 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; then
3227 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3228 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3229 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3230 # so that the user can short-circuit this test for compilers unknown to
3232 for ac_file in $ac_files ''
3234 test -f "$ac_file" || continue
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3239 # We found the default executable, but exeext='' is most
3243 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3245 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247 # We set ac_cv_exeext here because the later test for it is not
3248 # safe: cross compilers may not add the suffix if given an `-o'
3249 # argument, so we may need to know it at that point already.
3250 # Even if this section looks crufty: it has the advantage of
3257 test "$ac_cv_exeext" = no && ac_cv_exeext=
3263 { echo "$as_me:$LINENO: result: $ac_file" >&5
3264 echo "${ECHO_T}$ac_file" >&6; }
3265 if test -z "$ac_file"; then
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3270 See \`config.log' for more details." >&5
3271 echo "$as_me: error: C compiler cannot create executables
3272 See \`config.log' for more details." >&2;}
3273 { (exit 77); exit 77; }; }
3276 ac_exeext=$ac_cv_exeext
3278 # Check that the compiler produces executables we can run. If not, either
3279 # the compiler is broken, or we cross compile.
3280 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3281 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3282 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3283 # If not cross compiling, check that we can run a simple program.
3284 if test "$cross_compiling" != yes; then
3285 if { ac_try='./$ac_file'
3286 { (case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_try") 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3297 if test "$cross_compiling" = maybe; then
3300 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3301 If you meant to cross compile, use \`--host'.
3302 See \`config.log' for more details." >&5
3303 echo "$as_me: error: cannot run C compiled programs.
3304 If you meant to cross compile, use \`--host'.
3305 See \`config.log' for more details." >&2;}
3306 { (exit 1); exit 1; }; }
3310 { echo "$as_me:$LINENO: result: yes" >&5
3311 echo "${ECHO_T}yes" >&6; }
3313 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3314 ac_clean_files=$ac_clean_files_save
3315 # Check that the compiler produces executables we can run. If not, either
3316 # the compiler is broken, or we cross compile.
3317 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3318 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3319 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3320 echo "${ECHO_T}$cross_compiling" >&6; }
3322 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3323 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3324 if { (ac_try="$ac_link"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_link") 2>&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; then
3334 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3335 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3336 # work properly (i.e., refer to `conftest.exe'), while it won't with
3338 for ac_file in conftest.exe conftest conftest.*; do
3339 test -f "$ac_file" || continue
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3349 See \`config.log' for more details." >&5
3350 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3351 See \`config.log' for more details." >&2;}
3352 { (exit 1); exit 1; }; }
3355 rm -f conftest$ac_cv_exeext
3356 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3357 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3359 rm -f conftest.$ac_ext
3360 EXEEXT=$ac_cv_exeext
3362 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3363 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3364 if test "${ac_cv_objext+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 cat >conftest.$ac_ext <<_ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3382 rm -f conftest.o conftest.obj
3383 if { (ac_try="$ac_compile"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_compile") 2>&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; then
3393 for ac_file in conftest.o conftest.obj conftest.*; do
3394 test -f "$ac_file" || continue;
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3397 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3406 See \`config.log' for more details." >&5
3407 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3408 See \`config.log' for more details." >&2;}
3409 { (exit 1); exit 1; }; }
3412 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3414 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3415 echo "${ECHO_T}$ac_cv_objext" >&6; }
3416 OBJEXT=$ac_cv_objext
3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3419 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3420 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3470 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3471 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3472 GCC=`test $ac_compiler_gnu = yes && echo yes`
3473 ac_test_CFLAGS=${CFLAGS+set}
3474 ac_save_CFLAGS=$CFLAGS
3475 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3476 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3477 if test "${ac_cv_prog_cc_g+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 ac_save_c_werror_flag=$ac_c_werror_flag
3481 ac_c_werror_flag=yes
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_compile") 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } && {
3513 test -z "$ac_c_werror_flag" ||
3514 test ! -s conftest.err
3515 } && test -s conftest.$ac_objext; then
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_compile") 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } && {
3551 test -z "$ac_c_werror_flag" ||
3552 test ! -s conftest.err
3553 } && test -s conftest.$ac_objext; then
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 ac_c_werror_flag=$ac_save_c_werror_flag
3561 cat >conftest.$ac_ext <<_ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_c_werror_flag=$ac_save_c_werror_flag
3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3611 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613 CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615 if test "$GCC" = yes; then
3621 if test "$GCC" = yes; then
3627 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3628 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3629 if test "${ac_cv_prog_cc_c89+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 ac_cv_prog_cc_c89=no
3634 cat >conftest.$ac_ext <<_ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3642 #include <sys/types.h>
3643 #include <sys/stat.h>
3644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3645 struct buf { int x; };
3646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3647 static char *e (p, i)
3653 static char *f (char * (*g) (char **, int), char **p, ...)
3658 s = g (p, va_arg (v,int));
3663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3664 function prototypes and stuff, but not '\xHH' hex character constants.
3665 These don't provoke an error unfortunately, instead are silently treated
3666 as 'x'. The following induces an error, until -std is added to get
3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3668 array size at least. It's necessary to write '\x00'==0 to get something
3669 that's true only with -std. */
3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673 inside strings and character constants. */
3675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3694 CC="$ac_save_CC $ac_arg"
3695 rm -f conftest.$ac_objext
3696 if { (ac_try="$ac_compile"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_compile") 2>conftest.er1
3704 grep -v '^ *+' conftest.er1 >conftest.err
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } && {
3709 test -z "$ac_c_werror_flag" ||
3710 test ! -s conftest.err
3711 } && test -s conftest.$ac_objext; then
3712 ac_cv_prog_cc_c89=$ac_arg
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3720 rm -f core conftest.err conftest.$ac_objext
3721 test "x$ac_cv_prog_cc_c89" != "xno" && break
3723 rm -f conftest.$ac_ext
3728 case "x$ac_cv_prog_cc_c89" in
3730 { echo "$as_me:$LINENO: result: none needed" >&5
3731 echo "${ECHO_T}none needed" >&6; } ;;
3733 { echo "$as_me:$LINENO: result: unsupported" >&5
3734 echo "${ECHO_T}unsupported" >&6; } ;;
3736 CC="$CC $ac_cv_prog_cc_c89"
3737 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3738 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 depcc="$CC" am_compiler_list=
3750 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3751 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3752 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3756 # We make a subdir and do the tests there. Otherwise we can end up
3757 # making bogus files that we don't know about and never remove. For
3758 # instance it was reported that on HP-UX the gcc test will end up
3759 # making a dummy file named `D' -- because `-MD' means `put the output
3762 # Copy depcomp to subdir because otherwise we won't find it if we're
3763 # using a relative directory.
3764 cp "$am_depcomp" conftest.dir
3766 # We will build objects and dependencies in a subdirectory because
3767 # it helps to detect inapplicable dependency modes. For instance
3768 # both Tru64's cc and ICC support -MD to output dependencies as a
3769 # side effect of compilation, but ICC will put the dependencies in
3770 # the current directory while Tru64 will put them in the object
3774 am_cv_CC_dependencies_compiler_type=none
3775 if test "$am_compiler_list" = ""; then
3776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3778 for depmode in $am_compiler_list; do
3779 # Setup a source with many dependencies, because some compilers
3780 # like to wrap large dependency lists on column 80 (with \), and
3781 # we should not choose a depcomp mode which is confused by this.
3783 # We need to recreate these files for each test, as the compiler may
3784 # overwrite some of them when testing with obscure command lines.
3785 # This happens at least with the AIX C compiler.
3787 for i in 1 2 3 4 5 6; do
3788 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3789 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3790 # Solaris 8's {/usr,}/bin/sh.
3791 touch sub/conftst$i.h
3793 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3797 # after this tag, mechanisms are not by side-effect, so they'll
3798 # only be used when explicitly requested
3799 if test "x$enable_dependency_tracking" = xyes; then
3807 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3808 # mode. It turns out that the SunPro C++ compiler does not properly
3809 # handle `-M -o', and we need to detect this.
3810 if depmode=$depmode \
3811 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3812 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3813 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3814 >/dev/null 2>conftest.err &&
3815 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3816 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3817 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3818 # icc doesn't choke on unknown options, it will just issue warnings
3819 # or remarks (even with -Werror). So we grep stderr for any message
3820 # that says an option was ignored or not supported.
3821 # When given -MP, icc 7.0 and 7.1 complain thusly:
3822 # icc: Command line warning: ignoring option '-M'; no argument required
3823 # The diagnosis changed in icc 8.0:
3824 # icc: Command line remark: option '-MP' not supported
3825 if (grep 'ignoring option' conftest.err ||
3826 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3827 am_cv_CC_dependencies_compiler_type=$depmode
3836 am_cv_CC_dependencies_compiler_type=none
3840 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3841 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3842 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3847 test "x$enable_dependency_tracking" != xno \
3848 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3850 am__fastdepCC_FALSE='#'
3852 am__fastdepCC_TRUE='#'
3853 am__fastdepCC_FALSE=
3859 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3860 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3861 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 ac_check_lib_save_LIBS=$LIBS
3865 LIBS="-lcposix $LIBS"
3866 cat >conftest.$ac_ext <<_ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3873 /* Override any GCC internal prototype to avoid an error.
3874 Use char because int might match the return type of a GCC
3875 builtin and then its argument prototype would still apply. */
3888 rm -f conftest.$ac_objext conftest$ac_exeext
3889 if { (ac_try="$ac_link"
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_link") 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } && {
3902 test -z "$ac_c_werror_flag" ||
3903 test ! -s conftest.err
3904 } && test -s conftest$ac_exeext &&
3905 $as_test_x conftest$ac_exeext; then
3906 ac_cv_lib_cposix_strerror=yes
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 ac_cv_lib_cposix_strerror=no
3914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3915 conftest$ac_exeext conftest.$ac_ext
3916 LIBS=$ac_check_lib_save_LIBS
3918 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3919 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3920 if test $ac_cv_lib_cposix_strerror = yes; then
3921 LIBS="$LIBS -lcposix"
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 if test -n "$ac_tool_prefix"; then
3932 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3933 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3936 if test "${ac_cv_prog_CC+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 if test -n "$CC"; then
3940 ac_cv_prog_CC="$CC" # Let the user override the test.
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3949 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 if test -n "$CC"; then
3961 { echo "$as_me:$LINENO: result: $CC" >&5
3962 echo "${ECHO_T}$CC" >&6; }
3964 { echo "$as_me:$LINENO: result: no" >&5
3965 echo "${ECHO_T}no" >&6; }
3970 if test -z "$ac_cv_prog_CC"; then
3972 # Extract the first word of "gcc", so it can be a program name with args.
3973 set dummy gcc; ac_word=$2
3974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 if test -n "$ac_ct_CC"; then
3980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989 ac_cv_prog_ac_ct_CC="gcc"
3990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4000 if test -n "$ac_ct_CC"; then
4001 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4002 echo "${ECHO_T}$ac_ct_CC" >&6; }
4004 { echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6; }
4008 if test "x$ac_ct_CC" = x; then
4011 case $cross_compiling:$ac_tool_warned in
4013 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4014 whose name does not start with the host triplet. If you think this
4015 configuration is useful to you, please write to autoconf@gnu.org." >&5
4016 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4017 whose name does not start with the host triplet. If you think this
4018 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4019 ac_tool_warned=yes ;;
4027 if test -z "$CC"; then
4028 if test -n "$ac_tool_prefix"; then
4029 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4030 set dummy ${ac_tool_prefix}cc; ac_word=$2
4031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4033 if test "${ac_cv_prog_CC+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if test -n "$CC"; then
4037 ac_cv_prog_CC="$CC" # Let the user override the test.
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_prog_CC="${ac_tool_prefix}cc"
4047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 if test -n "$CC"; then
4058 { echo "$as_me:$LINENO: result: $CC" >&5
4059 echo "${ECHO_T}$CC" >&6; }
4061 { echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6; }
4068 if test -z "$CC"; then
4069 # Extract the first word of "cc", so it can be a program name with args.
4070 set dummy cc; ac_word=$2
4071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4073 if test "${ac_cv_prog_CC+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 if test -n "$CC"; then
4077 ac_cv_prog_CC="$CC" # Let the user override the test.
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 test -z "$as_dir" && as_dir=.
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4087 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4088 ac_prog_rejected=yes
4092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 if test $ac_prog_rejected = yes; then
4100 # We found a bogon in the path, so make sure we never use it.
4101 set dummy $ac_cv_prog_CC
4103 if test $# != 0; then
4104 # We chose a different compiler from the bogus one.
4105 # However, it has the same basename, so the bogon will be chosen
4106 # first if we set CC to just the basename; use the full file name.
4108 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4114 if test -n "$CC"; then
4115 { echo "$as_me:$LINENO: result: $CC" >&5
4116 echo "${ECHO_T}$CC" >&6; }
4118 { echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6; }
4124 if test -z "$CC"; then
4125 if test -n "$ac_tool_prefix"; then
4126 for ac_prog in cl.exe
4128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4132 if test "${ac_cv_prog_CC+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 if test -n "$CC"; then
4157 { echo "$as_me:$LINENO: result: $CC" >&5
4158 echo "${ECHO_T}$CC" >&6; }
4160 { echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6; }
4165 test -n "$CC" && break
4168 if test -z "$CC"; then
4170 for ac_prog in cl.exe
4172 # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy $ac_prog; ac_word=$2
4174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 if test -n "$ac_ct_CC"; then
4180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189 ac_cv_prog_ac_ct_CC="$ac_prog"
4190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4200 if test -n "$ac_ct_CC"; then
4201 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4202 echo "${ECHO_T}$ac_ct_CC" >&6; }
4204 { echo "$as_me:$LINENO: result: no" >&5
4205 echo "${ECHO_T}no" >&6; }
4209 test -n "$ac_ct_CC" && break
4212 if test "x$ac_ct_CC" = x; then
4215 case $cross_compiling:$ac_tool_warned in
4217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4218 whose name does not start with the host triplet. If you think this
4219 configuration is useful to you, please write to autoconf@gnu.org." >&5
4220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4221 whose name does not start with the host triplet. If you think this
4222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4223 ac_tool_warned=yes ;;
4232 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4233 See \`config.log' for more details." >&5
4234 echo "$as_me: error: no acceptable C compiler found in \$PATH
4235 See \`config.log' for more details." >&2;}
4236 { (exit 1); exit 1; }; }
4238 # Provide some information about the compiler.
4239 echo "$as_me:$LINENO: checking for C compiler version" >&5
4240 ac_compiler=`set X $ac_compile; echo $2`
4241 { (ac_try="$ac_compiler --version >&5"
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_compiler --version >&5") 2>&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }
4251 { (ac_try="$ac_compiler -v >&5"
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_compiler -v >&5") 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }
4261 { (ac_try="$ac_compiler -V >&5"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_compiler -V >&5") 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }
4272 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 cat >conftest.$ac_ext <<_ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4295 rm -f conftest.$ac_objext
4296 if { (ac_try="$ac_compile"
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_compile") 2>conftest.er1
4304 grep -v '^ *+' conftest.er1 >conftest.err
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } && {
4309 test -z "$ac_c_werror_flag" ||
4310 test ! -s conftest.err
4311 } && test -s conftest.$ac_objext; then
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4324 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4325 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4326 GCC=`test $ac_compiler_gnu = yes && echo yes`
4327 ac_test_CFLAGS=${CFLAGS+set}
4328 ac_save_CFLAGS=$CFLAGS
4329 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4330 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4331 if test "${ac_cv_prog_cc_g+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 ac_save_c_werror_flag=$ac_c_werror_flag
4335 ac_c_werror_flag=yes
4338 cat >conftest.$ac_ext <<_ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4353 rm -f conftest.$ac_objext
4354 if { (ac_try="$ac_compile"
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_compile") 2>conftest.er1
4362 grep -v '^ *+' conftest.er1 >conftest.err
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest.$ac_objext; then
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4376 cat >conftest.$ac_ext <<_ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4391 rm -f conftest.$ac_objext
4392 if { (ac_try="$ac_compile"
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_compile") 2>conftest.er1
4400 grep -v '^ *+' conftest.er1 >conftest.err
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } && {
4405 test -z "$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4407 } && test -s conftest.$ac_objext; then
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_c_werror_flag=$ac_save_c_werror_flag
4415 cat >conftest.$ac_ext <<_ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4430 rm -f conftest.$ac_objext
4431 if { (ac_try="$ac_compile"
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_compile") 2>conftest.er1
4439 grep -v '^ *+' conftest.er1 >conftest.err
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } && {
4444 test -z "$ac_c_werror_flag" ||
4445 test ! -s conftest.err
4446 } && test -s conftest.$ac_objext; then
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462 ac_c_werror_flag=$ac_save_c_werror_flag
4464 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4465 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4466 if test "$ac_test_CFLAGS" = set; then
4467 CFLAGS=$ac_save_CFLAGS
4468 elif test $ac_cv_prog_cc_g = yes; then
4469 if test "$GCC" = yes; then
4475 if test "$GCC" = yes; then
4481 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4482 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4483 if test "${ac_cv_prog_cc_c89+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 ac_cv_prog_cc_c89=no
4488 cat >conftest.$ac_ext <<_ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4496 #include <sys/types.h>
4497 #include <sys/stat.h>
4498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4499 struct buf { int x; };
4500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4501 static char *e (p, i)
4507 static char *f (char * (*g) (char **, int), char **p, ...)
4512 s = g (p, va_arg (v,int));
4517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4518 function prototypes and stuff, but not '\xHH' hex character constants.
4519 These don't provoke an error unfortunately, instead are silently treated
4520 as 'x'. The following induces an error, until -std is added to get
4521 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4522 array size at least. It's necessary to write '\x00'==0 to get something
4523 that's true only with -std. */
4524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4526 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4527 inside strings and character constants. */
4529 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4531 int test (int i, double x);
4532 struct s1 {int (*f) (int a);};
4533 struct s2 {int (*f) (double a);};
4534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4546 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4548 CC="$ac_save_CC $ac_arg"
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_compile") 2>conftest.er1
4558 grep -v '^ *+' conftest.er1 >conftest.err
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } && {
4563 test -z "$ac_c_werror_flag" ||
4564 test ! -s conftest.err
4565 } && test -s conftest.$ac_objext; then
4566 ac_cv_prog_cc_c89=$ac_arg
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4574 rm -f core conftest.err conftest.$ac_objext
4575 test "x$ac_cv_prog_cc_c89" != "xno" && break
4577 rm -f conftest.$ac_ext
4582 case "x$ac_cv_prog_cc_c89" in
4584 { echo "$as_me:$LINENO: result: none needed" >&5
4585 echo "${ECHO_T}none needed" >&6; } ;;
4587 { echo "$as_me:$LINENO: result: unsupported" >&5
4588 echo "${ECHO_T}unsupported" >&6; } ;;
4590 CC="$CC $ac_cv_prog_cc_c89"
4591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4592 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4597 ac_cpp='$CPP $CPPFLAGS'
4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 depcc="$CC" am_compiler_list=
4604 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4605 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4606 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4610 # We make a subdir and do the tests there. Otherwise we can end up
4611 # making bogus files that we don't know about and never remove. For
4612 # instance it was reported that on HP-UX the gcc test will end up
4613 # making a dummy file named `D' -- because `-MD' means `put the output
4616 # Copy depcomp to subdir because otherwise we won't find it if we're
4617 # using a relative directory.
4618 cp "$am_depcomp" conftest.dir
4620 # We will build objects and dependencies in a subdirectory because
4621 # it helps to detect inapplicable dependency modes. For instance
4622 # both Tru64's cc and ICC support -MD to output dependencies as a
4623 # side effect of compilation, but ICC will put the dependencies in
4624 # the current directory while Tru64 will put them in the object
4628 am_cv_CC_dependencies_compiler_type=none
4629 if test "$am_compiler_list" = ""; then
4630 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4632 for depmode in $am_compiler_list; do
4633 # Setup a source with many dependencies, because some compilers
4634 # like to wrap large dependency lists on column 80 (with \), and
4635 # we should not choose a depcomp mode which is confused by this.
4637 # We need to recreate these files for each test, as the compiler may
4638 # overwrite some of them when testing with obscure command lines.
4639 # This happens at least with the AIX C compiler.
4641 for i in 1 2 3 4 5 6; do
4642 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4643 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4644 # Solaris 8's {/usr,}/bin/sh.
4645 touch sub/conftst$i.h
4647 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4651 # after this tag, mechanisms are not by side-effect, so they'll
4652 # only be used when explicitly requested
4653 if test "x$enable_dependency_tracking" = xyes; then
4661 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4662 # mode. It turns out that the SunPro C++ compiler does not properly
4663 # handle `-M -o', and we need to detect this.
4664 if depmode=$depmode \
4665 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4667 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4668 >/dev/null 2>conftest.err &&
4669 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4670 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4671 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4672 # icc doesn't choke on unknown options, it will just issue warnings
4673 # or remarks (even with -Werror). So we grep stderr for any message
4674 # that says an option was ignored or not supported.
4675 # When given -MP, icc 7.0 and 7.1 complain thusly:
4676 # icc: Command line warning: ignoring option '-M'; no argument required
4677 # The diagnosis changed in icc 8.0:
4678 # icc: Command line remark: option '-MP' not supported
4679 if (grep 'ignoring option' conftest.err ||
4680 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4681 am_cv_CC_dependencies_compiler_type=$depmode
4690 am_cv_CC_dependencies_compiler_type=none
4694 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4695 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4696 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4701 test "x$enable_dependency_tracking" != xno \
4702 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4704 am__fastdepCC_FALSE='#'
4706 am__fastdepCC_TRUE='#'
4707 am__fastdepCC_FALSE=
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716 if test -n "$ac_tool_prefix"; then
4717 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_prog_CC+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 if test -n "$CC"; then
4725 ac_cv_prog_CC="$CC" # Let the user override the test.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 if test -n "$CC"; then
4746 { echo "$as_me:$LINENO: result: $CC" >&5
4747 echo "${ECHO_T}$CC" >&6; }
4749 { echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6; }
4755 if test -z "$ac_cv_prog_CC"; then
4757 # Extract the first word of "gcc", so it can be a program name with args.
4758 set dummy gcc; ac_word=$2
4759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4761 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 if test -n "$ac_ct_CC"; then
4765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_prog_ac_ct_CC="gcc"
4775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4785 if test -n "$ac_ct_CC"; then
4786 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4787 echo "${ECHO_T}$ac_ct_CC" >&6; }
4789 { echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6; }
4793 if test "x$ac_ct_CC" = x; then
4796 case $cross_compiling:$ac_tool_warned in
4798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4799 whose name does not start with the host triplet. If you think this
4800 configuration is useful to you, please write to autoconf@gnu.org." >&5
4801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4802 whose name does not start with the host triplet. If you think this
4803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4804 ac_tool_warned=yes ;;
4812 if test -z "$CC"; then
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}cc; ac_word=$2
4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818 if test "${ac_cv_prog_CC+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 if test -n "$CC"; then
4822 ac_cv_prog_CC="$CC" # Let the user override the test.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_CC="${ac_tool_prefix}cc"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 if test -n "$CC"; then
4843 { echo "$as_me:$LINENO: result: $CC" >&5
4844 echo "${ECHO_T}$CC" >&6; }
4846 { echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6; }
4853 if test -z "$CC"; then
4854 # Extract the first word of "cc", so it can be a program name with args.
4855 set dummy cc; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_prog_CC+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 if test -n "$CC"; then
4862 ac_cv_prog_CC="$CC" # Let the user override the test.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4873 ac_prog_rejected=yes
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 if test $ac_prog_rejected = yes; then
4885 # We found a bogon in the path, so make sure we never use it.
4886 set dummy $ac_cv_prog_CC
4888 if test $# != 0; then
4889 # We chose a different compiler from the bogus one.
4890 # However, it has the same basename, so the bogon will be chosen
4891 # first if we set CC to just the basename; use the full file name.
4893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4899 if test -n "$CC"; then
4900 { echo "$as_me:$LINENO: result: $CC" >&5
4901 echo "${ECHO_T}$CC" >&6; }
4903 { echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6; }
4909 if test -z "$CC"; then
4910 if test -n "$ac_tool_prefix"; then
4911 for ac_prog in cl.exe
4913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4917 if test "${ac_cv_prog_CC+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 if test -n "$CC"; then
4921 ac_cv_prog_CC="$CC" # Let the user override the test.
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 if test -n "$CC"; then
4942 { echo "$as_me:$LINENO: result: $CC" >&5
4943 echo "${ECHO_T}$CC" >&6; }
4945 { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4950 test -n "$CC" && break
4953 if test -z "$CC"; then
4955 for ac_prog in cl.exe
4957 # Extract the first word of "$ac_prog", so it can be a program name with args.
4958 set dummy $ac_prog; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 if test -n "$ac_ct_CC"; then
4965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974 ac_cv_prog_ac_ct_CC="$ac_prog"
4975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4985 if test -n "$ac_ct_CC"; then
4986 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4987 echo "${ECHO_T}$ac_ct_CC" >&6; }
4989 { echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6; }
4994 test -n "$ac_ct_CC" && break
4997 if test "x$ac_ct_CC" = x; then
5000 case $cross_compiling:$ac_tool_warned in
5002 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5003 whose name does not start with the host triplet. If you think this
5004 configuration is useful to you, please write to autoconf@gnu.org." >&5
5005 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5006 whose name does not start with the host triplet. If you think this
5007 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5008 ac_tool_warned=yes ;;
5017 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5018 See \`config.log' for more details." >&5
5019 echo "$as_me: error: no acceptable C compiler found in \$PATH
5020 See \`config.log' for more details." >&2;}
5021 { (exit 1); exit 1; }; }
5023 # Provide some information about the compiler.
5024 echo "$as_me:$LINENO: checking for C compiler version" >&5
5025 ac_compiler=`set X $ac_compile; echo $2`
5026 { (ac_try="$ac_compiler --version >&5"
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032 (eval "$ac_compiler --version >&5") 2>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }
5036 { (ac_try="$ac_compiler -v >&5"
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_compiler -v >&5") 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }
5046 { (ac_try="$ac_compiler -V >&5"
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_compiler -V >&5") 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }
5057 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 cat >conftest.$ac_ext <<_ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5080 rm -f conftest.$ac_objext
5081 if { (ac_try="$ac_compile"
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_compile") 2>conftest.er1
5089 grep -v '^ *+' conftest.er1 >conftest.err
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } && {
5094 test -z "$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5096 } && test -s conftest.$ac_objext; then
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5109 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5111 GCC=`test $ac_compiler_gnu = yes && echo yes`
5112 ac_test_CFLAGS=${CFLAGS+set}
5113 ac_save_CFLAGS=$CFLAGS
5114 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5115 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5116 if test "${ac_cv_prog_cc_g+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 ac_save_c_werror_flag=$ac_c_werror_flag
5120 ac_c_werror_flag=yes
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5161 cat >conftest.$ac_ext <<_ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5176 rm -f conftest.$ac_objext
5177 if { (ac_try="$ac_compile"
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_compile") 2>conftest.er1
5185 grep -v '^ *+' conftest.er1 >conftest.err
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } && {
5190 test -z "$ac_c_werror_flag" ||
5191 test ! -s conftest.err
5192 } && test -s conftest.$ac_objext; then
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 ac_c_werror_flag=$ac_save_c_werror_flag
5200 cat >conftest.$ac_ext <<_ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5215 rm -f conftest.$ac_objext
5216 if { (ac_try="$ac_compile"
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_compile") 2>conftest.er1
5224 grep -v '^ *+' conftest.er1 >conftest.err
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && {
5229 test -z "$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5231 } && test -s conftest.$ac_objext; then
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 ac_c_werror_flag=$ac_save_c_werror_flag
5249 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5250 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5251 if test "$ac_test_CFLAGS" = set; then
5252 CFLAGS=$ac_save_CFLAGS
5253 elif test $ac_cv_prog_cc_g = yes; then
5254 if test "$GCC" = yes; then
5260 if test "$GCC" = yes; then
5266 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5267 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5268 if test "${ac_cv_prog_cc_c89+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 ac_cv_prog_cc_c89=no
5273 cat >conftest.$ac_ext <<_ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5281 #include <sys/types.h>
5282 #include <sys/stat.h>
5283 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5284 struct buf { int x; };
5285 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5286 static char *e (p, i)
5292 static char *f (char * (*g) (char **, int), char **p, ...)
5297 s = g (p, va_arg (v,int));
5302 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5303 function prototypes and stuff, but not '\xHH' hex character constants.
5304 These don't provoke an error unfortunately, instead are silently treated
5305 as 'x'. The following induces an error, until -std is added to get
5306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5307 array size at least. It's necessary to write '\x00'==0 to get something
5308 that's true only with -std. */
5309 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5311 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5312 inside strings and character constants. */
5314 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5316 int test (int i, double x);
5317 struct s1 {int (*f) (int a);};
5318 struct s2 {int (*f) (double a);};
5319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5325 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5330 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5333 CC="$ac_save_CC $ac_arg"
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.$ac_objext; then
5351 ac_cv_prog_cc_c89=$ac_arg
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5359 rm -f core conftest.err conftest.$ac_objext
5360 test "x$ac_cv_prog_cc_c89" != "xno" && break
5362 rm -f conftest.$ac_ext
5367 case "x$ac_cv_prog_cc_c89" in
5369 { echo "$as_me:$LINENO: result: none needed" >&5
5370 echo "${ECHO_T}none needed" >&6; } ;;
5372 { echo "$as_me:$LINENO: result: unsupported" >&5
5373 echo "${ECHO_T}unsupported" >&6; } ;;
5375 CC="$CC $ac_cv_prog_cc_c89"
5376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5382 ac_cpp='$CPP $CPPFLAGS'
5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387 depcc="$CC" am_compiler_list=
5389 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5390 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5391 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5395 # We make a subdir and do the tests there. Otherwise we can end up
5396 # making bogus files that we don't know about and never remove. For
5397 # instance it was reported that on HP-UX the gcc test will end up
5398 # making a dummy file named `D' -- because `-MD' means `put the output
5401 # Copy depcomp to subdir because otherwise we won't find it if we're
5402 # using a relative directory.
5403 cp "$am_depcomp" conftest.dir
5405 # We will build objects and dependencies in a subdirectory because
5406 # it helps to detect inapplicable dependency modes. For instance
5407 # both Tru64's cc and ICC support -MD to output dependencies as a
5408 # side effect of compilation, but ICC will put the dependencies in
5409 # the current directory while Tru64 will put them in the object
5413 am_cv_CC_dependencies_compiler_type=none
5414 if test "$am_compiler_list" = ""; then
5415 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5417 for depmode in $am_compiler_list; do
5418 # Setup a source with many dependencies, because some compilers
5419 # like to wrap large dependency lists on column 80 (with \), and
5420 # we should not choose a depcomp mode which is confused by this.
5422 # We need to recreate these files for each test, as the compiler may
5423 # overwrite some of them when testing with obscure command lines.
5424 # This happens at least with the AIX C compiler.
5426 for i in 1 2 3 4 5 6; do
5427 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5428 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5429 # Solaris 8's {/usr,}/bin/sh.
5430 touch sub/conftst$i.h
5432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5436 # after this tag, mechanisms are not by side-effect, so they'll
5437 # only be used when explicitly requested
5438 if test "x$enable_dependency_tracking" = xyes; then
5446 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5447 # mode. It turns out that the SunPro C++ compiler does not properly
5448 # handle `-M -o', and we need to detect this.
5449 if depmode=$depmode \
5450 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5451 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5452 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5453 >/dev/null 2>conftest.err &&
5454 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5455 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5456 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5457 # icc doesn't choke on unknown options, it will just issue warnings
5458 # or remarks (even with -Werror). So we grep stderr for any message
5459 # that says an option was ignored or not supported.
5460 # When given -MP, icc 7.0 and 7.1 complain thusly:
5461 # icc: Command line warning: ignoring option '-M'; no argument required
5462 # The diagnosis changed in icc 8.0:
5463 # icc: Command line remark: option '-MP' not supported
5464 if (grep 'ignoring option' conftest.err ||
5465 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5466 am_cv_CC_dependencies_compiler_type=$depmode
5475 am_cv_CC_dependencies_compiler_type=none
5479 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5480 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5481 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5486 test "x$enable_dependency_tracking" != xno \
5487 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5489 am__fastdepCC_FALSE='#'
5491 am__fastdepCC_TRUE='#'
5492 am__fastdepCC_FALSE=
5497 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5500 ac_cpp='$CPP $CPPFLAGS'
5501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5504 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5505 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5506 # On Suns, sometimes $CPP names a directory.
5507 if test -n "$CPP" && test -d "$CPP"; then
5510 if test -z "$CPP"; then
5511 if test "${ac_cv_prog_CPP+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 # Double quotes because CPP needs to be expanded
5515 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5518 for ac_c_preproc_warn_flag in '' yes
5520 # Use a header file that comes with gcc, so configuring glibc
5521 # with a fresh cross-compiler works.
5522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5523 # <limits.h> exists even on freestanding compilers.
5524 # On the NeXT, cc -E runs the code through the compiler's parser,
5525 # not just through cpp. "Syntax error" is here to catch this case.
5526 cat >conftest.$ac_ext <<_ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5533 # include <limits.h>
5535 # include <assert.h>
5539 if { (ac_try="$ac_cpp conftest.$ac_ext"
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5547 grep -v '^ *+' conftest.er1 >conftest.err
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } >/dev/null && {
5552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5560 # Broken: fails on valid input.
5564 rm -f conftest.err conftest.$ac_ext
5566 # OK, works on sane cases. Now check whether nonexistent headers
5567 # can be detected and how.
5568 cat >conftest.$ac_ext <<_ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 #include <ac_nonexistent.h>
5576 if { (ac_try="$ac_cpp conftest.$ac_ext"
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5584 grep -v '^ *+' conftest.er1 >conftest.err
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } >/dev/null && {
5589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5590 test ! -s conftest.err
5592 # Broken: success on invalid input.
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5598 # Passes both tests.
5603 rm -f conftest.err conftest.$ac_ext
5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5607 rm -f conftest.err conftest.$ac_ext
5608 if $ac_preproc_ok; then
5620 { echo "$as_me:$LINENO: result: $CPP" >&5
5621 echo "${ECHO_T}$CPP" >&6; }
5623 for ac_c_preproc_warn_flag in '' yes
5625 # Use a header file that comes with gcc, so configuring glibc
5626 # with a fresh cross-compiler works.
5627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628 # <limits.h> exists even on freestanding compilers.
5629 # On the NeXT, cc -E runs the code through the compiler's parser,
5630 # not just through cpp. "Syntax error" is here to catch this case.
5631 cat >conftest.$ac_ext <<_ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5638 # include <limits.h>
5640 # include <assert.h>
5644 if { (ac_try="$ac_cpp conftest.$ac_ext"
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5652 grep -v '^ *+' conftest.er1 >conftest.err
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } >/dev/null && {
5657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5658 test ! -s conftest.err
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 # Broken: fails on valid input.
5669 rm -f conftest.err conftest.$ac_ext
5671 # OK, works on sane cases. Now check whether nonexistent headers
5672 # can be detected and how.
5673 cat >conftest.$ac_ext <<_ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 #include <ac_nonexistent.h>
5681 if { (ac_try="$ac_cpp conftest.$ac_ext"
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5689 grep -v '^ *+' conftest.er1 >conftest.err
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } >/dev/null && {
5694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5697 # Broken: success on invalid input.
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 # Passes both tests.
5708 rm -f conftest.err conftest.$ac_ext
5711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5712 rm -f conftest.err conftest.$ac_ext
5713 if $ac_preproc_ok; then
5716 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5717 See \`config.log' for more details." >&5
5718 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5719 See \`config.log' for more details." >&2;}
5720 { (exit 1); exit 1; }; }
5724 ac_cpp='$CPP $CPPFLAGS'
5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5733 if test -z "$CC_FOR_BUILD"; then
5734 if test "$#" = yes; then
5735 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5736 See \`config.log' for more details." >&5
5737 echo "$as_me: error: cannot run test program while cross compiling
5738 See \`config.log' for more details." >&2;}
5739 { (exit 1); exit 1; }; }
5741 cat >conftest.$ac_ext <<_ACEOF
5742 int main(){return 0;}
5744 rm -f conftest$ac_exeext
5745 if { (ac_try="$ac_link"
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_link") 2>&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5755 { (case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_try") 2>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5766 echo "$as_me: program exited with status $ac_status" >&5
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5779 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5780 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5781 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5783 if test -n "$ac_build_tool_prefix"; then
5784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5785 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5788 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 if test -n "$CC_FOR_BUILD"; then
5792 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5812 if test -n "$CC_FOR_BUILD"; then
5813 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5814 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5816 { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5822 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5823 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5824 # Extract the first word of "gcc", so it can be a program name with args.
5825 set dummy gcc; ac_word=$2
5826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5828 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 if test -n "$ac_ct_CC_FOR_BUILD"; then
5832 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5852 if test -n "$ac_ct_CC_FOR_BUILD"; then
5853 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5854 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5856 { echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6; }
5860 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5863 case $#:$ac_tool_warned in
5865 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5866 whose name does not start with the build triplet. If you think this
5867 configuration is useful to you, please write to autoconf@gnu.org." >&5
5868 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5869 whose name does not start with the build triplet. If you think this
5870 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5871 ac_tool_warned=yes ;;
5873 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5876 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5879 if test -z "$CC_FOR_BUILD"; then
5880 if test -n "$ac_build_tool_prefix"; then
5881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5882 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 if test -n "$CC_FOR_BUILD"; then
5889 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5909 if test -n "$CC_FOR_BUILD"; then
5910 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5911 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5913 { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5920 if test -z "$CC_FOR_BUILD"; then
5921 # Extract the first word of "cc", so it can be a program name with args.
5922 set dummy cc; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 if test -n "$CC_FOR_BUILD"; then
5929 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5940 ac_prog_rejected=yes
5943 ac_cv_prog_CC_FOR_BUILD="cc"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 if test $ac_prog_rejected = yes; then
5952 # We found a bogon in the path, so make sure we never use it.
5953 set dummy $ac_cv_prog_CC_FOR_BUILD
5955 if test $# != 0; then
5956 # We chose a different compiler from the bogus one.
5957 # However, it has the same basename, so the bogon will be chosen
5958 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5960 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5965 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5966 if test -n "$CC_FOR_BUILD"; then
5967 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5968 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5970 { echo "$as_me:$LINENO: result: no" >&5
5971 echo "${ECHO_T}no" >&6; }
5976 if test -z "$CC_FOR_BUILD"; then
5977 if test -n "$ac_build_tool_prefix"; then
5978 for ac_prog in cl.exe
5980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5981 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5984 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 if test -n "$CC_FOR_BUILD"; then
5988 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6008 if test -n "$CC_FOR_BUILD"; then
6009 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
6010 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
6012 { echo "$as_me:$LINENO: result: no" >&5
6013 echo "${ECHO_T}no" >&6; }
6017 test -n "$CC_FOR_BUILD" && break
6020 if test -z "$CC_FOR_BUILD"; then
6021 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6022 for ac_prog in cl.exe
6024 # Extract the first word of "$ac_prog", so it can be a program name with args.
6025 set dummy $ac_prog; ac_word=$2
6026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6028 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 if test -n "$ac_ct_CC_FOR_BUILD"; then
6032 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
6042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6052 if test -n "$ac_ct_CC_FOR_BUILD"; then
6053 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
6054 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
6056 { echo "$as_me:$LINENO: result: no" >&5
6057 echo "${ECHO_T}no" >&6; }
6061 test -n "$ac_ct_CC_FOR_BUILD" && break
6064 if test "x$ac_ct_CC_FOR_BUILD" = x; then
6067 case $#:$ac_tool_warned in
6069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6070 whose name does not start with the build triplet. If you think this
6071 configuration is useful to you, please write to autoconf@gnu.org." >&5
6072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6073 whose name does not start with the build triplet. If you think this
6074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6075 ac_tool_warned=yes ;;
6077 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6084 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6085 See \`config.log' for more details." >&5
6086 echo "$as_me: error: no acceptable C compiler found in \$PATH
6087 See \`config.log' for more details." >&2;}
6088 { (exit 1); exit 1; }; }
6090 # Provide some information about the compiler.
6091 echo "$as_me:$LINENO: checking for C compiler version" >&5
6092 ac_compiler=`set X $ac_build_compile; echo $2`
6093 { (ac_try="$ac_compiler --version >&5"
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_compiler --version >&5") 2>&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }
6103 { (ac_try="$ac_compiler -v >&5"
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_compiler -v >&5") 2>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }
6113 { (ac_try="$ac_compiler -V >&5"
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_compiler -V >&5") 2>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }
6124 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6125 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6126 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 cat >conftest.$ac_ext <<_ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6147 rm -f conftest.$ac_build_objext
6148 if { (ac_try="$ac_build_compile"
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_build_compile") 2>conftest.er1
6156 grep -v '^ *+' conftest.er1 >conftest.err
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } && {
6161 test -z "$ac_c_werror_flag" ||
6162 test ! -s conftest.err
6163 } && test -s conftest.$ac_build_objext; then
6164 ac_build_compiler_gnu=yes
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 ac_build_compiler_gnu=no
6172 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6173 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
6176 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6177 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6178 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
6179 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
6180 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
6181 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
6182 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
6183 if test "${ac_cv_build_prog_cc_g+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 ac_save_c_werror_flag=$ac_c_werror_flag
6187 ac_c_werror_flag=yes
6188 ac_cv_build_prog_cc_g=no
6189 CFLAGS_FOR_BUILD="-g"
6190 cat >conftest.$ac_ext <<_ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6205 rm -f conftest.$ac_build_objext
6206 if { (ac_try="$ac_build_compile"
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_build_compile") 2>conftest.er1
6214 grep -v '^ *+' conftest.er1 >conftest.err
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.$ac_build_objext; then
6222 ac_cv_build_prog_cc_g=yes
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6243 rm -f conftest.$ac_build_objext
6244 if { (ac_try="$ac_build_compile"
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_build_compile") 2>conftest.er1
6252 grep -v '^ *+' conftest.er1 >conftest.err
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest.$ac_build_objext; then
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_c_werror_flag=$ac_save_c_werror_flag
6266 CFLAGS_FOR_BUILD="-g"
6267 cat >conftest.$ac_ext <<_ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6282 rm -f conftest.$ac_build_objext
6283 if { (ac_try="$ac_build_compile"
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_build_compile") 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_build_objext; then
6299 ac_cv_build_prog_cc_g=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6307 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6310 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6313 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6314 ac_c_werror_flag=$ac_save_c_werror_flag
6316 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6317 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6318 if test "$ac_test_CFLAGS" = set; then
6319 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6320 elif test $ac_cv_build_prog_cc_g = yes; then
6321 if test "$GCC" = yes; then
6322 CFLAGS_FOR_BUILD="-g -O2"
6324 CFLAGS_FOR_BUILD="-g"
6327 if test "$GCC" = yes; then
6328 CFLAGS_FOR_BUILD="-O2"
6333 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6334 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6335 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 ac_cv_build_prog_cc_stdc=no
6339 ac_save_CC=$CC_FOR_BUILD
6340 cat >conftest.$ac_ext <<_ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6348 #include <sys/types.h>
6349 #include <sys/stat.h>
6350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6351 struct buf { int x; };
6352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6353 static char *e (p, i)
6359 static char *f (char * (*g) (char **, int), char **p, ...)
6364 s = g (p, va_arg (v,int));
6369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6370 function prototypes and stuff, but not '\xHH' hex character constants.
6371 These don't provoke an error unfortunately, instead are silently treated
6372 as 'x'. The following induces an error, until -std is added to get
6373 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6374 array size at least. It's necessary to write '\x00'==0 to get something
6375 that's true only with -std. */
6376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6378 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6379 inside strings and character constants. */
6381 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6383 int test (int i, double x);
6384 struct s1 {int (*f) (int a);};
6385 struct s2 {int (*f) (double a);};
6386 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6392 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6397 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6398 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6400 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6401 rm -f conftest.$ac_build_objext
6402 if { (ac_try="$ac_build_compile"
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_build_compile") 2>conftest.er1
6410 grep -v '^ *+' conftest.er1 >conftest.err
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } && {
6415 test -z "$ac_c_werror_flag" ||
6416 test ! -s conftest.err
6417 } && test -s conftest.$ac_build_objext; then
6418 ac_cv_build_prog_cc_stdc=$ac_arg
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6426 rm -f core conftest.err conftest.$ac_build_objext
6427 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6429 rm -f conftest.$ac_ext
6430 CC_FOR_BUILD=$ac_save_CC
6434 case "x$ac_cv_build_prog_cc_stdc" in
6436 { echo "$as_me:$LINENO: result: none needed" >&5
6437 echo "${ECHO_T}none needed" >&6; } ;;
6439 { echo "$as_me:$LINENO: result: unsupported" >&5
6440 echo "${ECHO_T}unsupported" >&6; } ;;
6442 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6443 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6444 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6449 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6450 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6451 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6454 depcc="$CC_FOR_BUILD" am_compiler_list=
6456 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6457 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6458 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6462 # We make a subdir and do the tests there. Otherwise we can end up
6463 # making bogus files that we don't know about and never remove. For
6464 # instance it was reported that on HP-UX the gcc test will end up
6465 # making a dummy file named `D' -- because `-MD' means `put the output
6468 # Copy depcomp to subdir because otherwise we won't find it if we're
6469 # using a relative directory.
6470 cp "$am_depcomp" conftest.dir
6472 # We will build objects and dependencies in a subdirectory because
6473 # it helps to detect inapplicable dependency modes. For instance
6474 # both Tru64's cc and ICC support -MD to output dependencies as a
6475 # side effect of compilation, but ICC will put the dependencies in
6476 # the current directory while Tru64 will put them in the object
6480 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6481 if test "$am_compiler_list" = ""; then
6482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6484 for depmode in $am_compiler_list; do
6485 # Setup a source with many dependencies, because some compilers
6486 # like to wrap large dependency lists on column 80 (with \), and
6487 # we should not choose a depcomp mode which is confused by this.
6489 # We need to recreate these files for each test, as the compiler may
6490 # overwrite some of them when testing with obscure command lines.
6491 # This happens at least with the AIX C compiler.
6493 for i in 1 2 3 4 5 6; do
6494 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6496 # Solaris 8's {/usr,}/bin/sh.
6497 touch sub/conftst$i.h
6499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6503 # after this tag, mechanisms are not by side-effect, so they'll
6504 # only be used when explicitly requested
6505 if test "x$enable_dependency_tracking" = xyes; then
6513 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6514 # mode. It turns out that the SunPro C++ compiler does not properly
6515 # handle `-M -o', and we need to detect this.
6516 if depmode=$depmode \
6517 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6518 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6519 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6520 >/dev/null 2>conftest.err &&
6521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6522 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6524 # icc doesn't choke on unknown options, it will just issue warnings
6525 # or remarks (even with -Werror). So we grep stderr for any message
6526 # that says an option was ignored or not supported.
6527 # When given -MP, icc 7.0 and 7.1 complain thusly:
6528 # icc: Command line warning: ignoring option '-M'; no argument required
6529 # The diagnosis changed in icc 8.0:
6530 # icc: Command line remark: option '-MP' not supported
6531 if (grep 'ignoring option' conftest.err ||
6532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6533 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6542 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6546 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6547 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6548 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6553 test "x$enable_dependency_tracking" != xno \
6554 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6555 am__fastdepCC_FOR_BUILD_TRUE=
6556 am__fastdepCC_FOR_BUILD_FALSE='#'
6558 am__fastdepCC_FOR_BUILD_TRUE='#'
6559 am__fastdepCC_FOR_BUILD_FALSE=
6563 case $ac_cv_build_prog_cc_stdc in
6564 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6565 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6566 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6567 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 ac_cv_build_prog_cc_stdc=no
6571 ac_save_CC=$CC_FOR_BUILD
6572 cat >conftest.$ac_ext <<_ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6579 #include <stdbool.h>
6584 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6585 #define debug(...) fprintf (stderr, __VA_ARGS__)
6586 #define showlist(...) puts (#__VA_ARGS__)
6587 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6589 test_varargs_macros (void)
6594 debug ("X = %d\n", x);
6595 showlist (The first, second, and third items.);
6596 report (x>y, "x is %d but y is %d", x, y);
6599 // Check long long types.
6600 #define BIG64 18446744073709551615ull
6601 #define BIG32 4294967295ul
6602 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6604 your preprocessor is broken;
6608 your preprocessor is broken;
6610 static long long int bignum = -9223372036854775807LL;
6611 static unsigned long long int ubignum = BIG64;
6613 struct incomplete_array
6621 const wchar_t *name;
6625 typedef const char *ccp;
6628 test_restrict (ccp restrict text)
6630 // See if C++-style comments work.
6631 // Iterate through items via the restricted pointer.
6632 // Also check for declarations in for loops.
6633 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6638 // Check varargs and va_copy.
6640 test_varargs (const char *format, ...)
6643 va_start (args, format);
6645 va_copy (args_copy, args);
6656 str = va_arg (args_copy, const char *);
6659 number = va_arg (args_copy, int);
6662 fnumber = va_arg (args_copy, double);
6677 _Bool success = false;
6680 if (test_restrict ("String literal") == 0)
6682 char *restrict newvar = "Another string";
6685 test_varargs ("s, d' f .", "string", 65, 34.234);
6686 test_varargs_macros ();
6688 // Check flexible array members.
6689 struct incomplete_array *ia =
6690 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6692 for (int i = 0; i < ia->datasize; ++i)
6693 ia->data[i] = i * 1.234;
6695 // Check named initializers.
6696 struct named_init ni = {
6698 .name = L"Test wide string",
6699 .average = 543.34343,
6704 int dynamic_array[ni.number];
6705 dynamic_array[ni.number - 1] = 543;
6707 // work around unused variable warnings
6708 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6709 || dynamic_array[ni.number - 1] != 543);
6715 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6717 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6718 rm -f conftest.$ac_build_objext
6719 if { (ac_try="$ac_build_compile"
6721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722 *) ac_try_echo=$ac_try;;
6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6725 (eval "$ac_build_compile") 2>conftest.er1
6727 grep -v '^ *+' conftest.er1 >conftest.err
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } && {
6732 test -z "$ac_c_werror_flag" ||
6733 test ! -s conftest.err
6734 } && test -s conftest.$ac_build_objext; then
6735 ac_cv_build_prog_cc_stdc=$ac_arg
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6743 rm -f core conftest.err conftest.$ac_build_objext
6744 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6746 rm -f conftest.$ac_ext
6747 CC_FOR_BUILD=$ac_save_CC
6751 case "x$ac_cv_build_prog_cc_stdc" in
6753 { echo "$as_me:$LINENO: result: none needed" >&5
6754 echo "${ECHO_T}none needed" >&6; } ;;
6756 { echo "$as_me:$LINENO: result: unsupported" >&5
6757 echo "${ECHO_T}unsupported" >&6; } ;;
6759 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"