2 # From configure.ac Revision: 89464 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix=/usr/local
567 ac_config_libobj_dir=.
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
582 ac_unique_file="asterisk"
583 ac_unique_file="main/asterisk.c"
584 # Factoring default headers for most tests.
585 ac_includes_default="\
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
597 # ifdef HAVE_STDLIB_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
631 program_transform_name
901 ZAPTEL_TRANSCODE_INCLUDE
905 ZAPTEL_VLDTMF_INCLUDE
926 AST_DECLARATION_AFTER_STATEMENT
958 ac_precious_vars='build_alias
973 # Initialize some variables set by options.
975 ac_init_version=false
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
985 program_transform_name=s,x,x,
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1061 -datadir | --datadir | --datadi | --datad)
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1073 -disable-* | --disable-*)
1074 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1080 eval enable_$ac_feature=no ;;
1082 -docdir | --docdir | --docdi | --doc | --do)
1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085 docdir=$ac_optarg ;;
1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090 dvidir=$ac_optarg ;;
1092 -enable-* | --enable-*)
1093 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097 { (exit 1); exit 1; }; }
1098 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1099 eval enable_$ac_feature=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1263 -site=* | --site=* | --sit=*)
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1290 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1296 eval with_$ac_package=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1305 eval with_$ac_package=no ;;
1308 # Obsolete; use --with-x.
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) { echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327 { (exit 1); exit 1; }; }
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335 { (exit 1); exit 1; }; }
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 { echo "$as_me: error: missing argument to $ac_option" >&2
1353 { (exit 1); exit 1; }; }
1356 # Be sure to have absolute directory names.
1357 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1362 eval ac_val=\$$ac_var
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368 { (exit 1); exit 1; }; }
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392 test "$silent" = yes && exec 6>/dev/null
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 { echo "$as_me: error: Working directory cannot be determined" >&2
1399 { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 { echo "$as_me: error: pwd does not report name of working directory" >&2
1402 { (exit 1); exit 1; }; }
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
1408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$0" ||
1410 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$0" : 'X\(//\)[^/]' \| \
1412 X"$0" : 'X\(//\)$' \| \
1413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1437 ac_srcdir_defaulted=no
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442 { (exit 1); exit 1; }; }
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1447 { (exit 1); exit 1; }; }
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1473 \`configure' configures this package to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 if test -n "$ac_init_help"; then
1541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1543 --enable-dev-mode Turn on developer mode
1544 --disable-largefile omit support for large files
1547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1549 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1550 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1551 --with-execinfo=PATH use Stack Backtrace support files in PATH
1552 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1553 --with-curl=PATH use cURL files in PATH
1554 --with-curses=PATH use curses files in PATH
1555 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1556 --with-gsm=PATH use External GSM library files in PATH , use
1557 'internal' GSM otherwise
1558 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1559 --with-imap=PATH use UW IMAP Toolkit files in PATH
1560 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1561 --with-kde=PATH use KDE files in PATH
1562 --with-ltdl=PATH use libtool files in PATH
1563 --with-lua=PATH use Lua files in PATH
1564 --with-misdn=PATH use mISDN User Library files in PATH
1565 --with-nbs=PATH use Network Broadcast Sound files in PATH
1566 --with-ncurses=PATH use ncurses files in PATH
1567 --with-netsnmp=PATH use Net-SNMP files in PATH
1568 --with-newt=PATH use newt files in PATH
1569 --with-odbc=PATH use unixODBC files in PATH
1570 --with-ogg=PATH use OGG files in PATH
1571 --with-osptk=PATH use OSP Toolkit files in PATH
1572 --with-oss=PATH use Open Sound System files in PATH
1573 --with-popt=PATH use popt files in PATH
1574 --with-postgres=PATH use PostgreSQL files in PATH
1575 --with-pri=PATH use ISDN PRI files in PATH
1576 --with-ss7=PATH use ISDN SS7 files in PATH
1577 --with-pwlib=PATH use PWlib files in PATH
1578 --with-h323=PATH use OpenH323 files in PATH
1579 --with-qt=PATH use Qt files in PATH
1580 --with-radius=PATH use Radius Client files in PATH
1581 --with-speex=PATH use Speex files in PATH
1582 --with-sqlite=PATH use SQLite files in PATH
1583 --with-sqlite3=PATH use SQLite files in PATH
1584 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1585 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1587 --with-tds=PATH use FreeTDS files in PATH
1588 --with-termcap=PATH use Termcap files in PATH
1589 --with-tinfo=PATH use Term Info files in PATH
1590 --with-tonezone=PATH use tonezone files in PATH
1591 --with-usb=PATH use usb files in PATH
1592 --with-vorbis=PATH use Vorbis files in PATH
1593 --with-vpb=PATH use Voicetronix API files in PATH
1594 --with-x11=PATH use X11 support files in PATH
1595 --with-z=PATH use zlib files in PATH
1596 --with-zaptel=PATH use Zaptel files in PATH
1597 --with-zaptel_transcode=PATH
1598 use Zaptel_transcode files in PATH
1599 --with-zaptel_vldtmf=PATH
1600 use Zaptel_vldtmf files in PATH
1601 --with-sdl=PATH use Sdl files in PATH
1602 --with-SDL_image=PATH use Sdl Image library files in PATH
1603 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1605 Some influential environment variables:
1606 CC C compiler command
1607 CFLAGS C compiler flags
1608 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1609 nonstandard directory <lib dir>
1610 LIBS libraries to pass to the linker, e.g. -l<library>
1611 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1614 CXX C++ compiler command
1615 CXXFLAGS C++ compiler flags
1616 CXXCPP C++ preprocessor
1618 Use these variables to override the choices made by `configure' or to help
1619 it to find libraries and programs with nonstandard names/locations.
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" || continue
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1648 .) # We are building in place.
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1653 ac_srcdir=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1682 generated by GNU Autoconf 2.61
1684 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1685 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1693 cat >config.log <<_ACEOF
1694 This file contains any messages produced by compilers while
1695 running configure, to aid debugging if configure makes a mistake.
1697 It was created by $as_me, which was
1698 generated by GNU Autoconf 2.61. Invocation command line was
1710 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1711 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1712 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1713 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1714 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1716 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1717 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1719 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1720 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1721 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1722 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1723 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1724 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1725 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 test -z "$as_dir" && as_dir=.
1734 echo "PATH: $as_dir"
1750 # Keep a trace of the command line.
1751 # Strip out --no-create and --no-recursion so they do not pile up.
1752 # Strip out --silent because we don't want to record it for future runs.
1753 # Also quote any args containing shell meta-characters.
1754 # Make two passes to allow for proper duplicate-argument suppression.
1758 ac_must_keep_next=false
1764 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1766 | -silent | --silent | --silen | --sile | --sil)
1769 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1772 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1774 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1775 if test $ac_must_keep_next = true; then
1776 ac_must_keep_next=false # Got value, back to normal.
1779 *=* | --config-cache | -C | -disable-* | --disable-* \
1780 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1781 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1782 | -with-* | --with-* | -without-* | --without-* | --x)
1783 case "$ac_configure_args0 " in
1784 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1787 -* ) ac_must_keep_next=true ;;
1790 ac_configure_args="$ac_configure_args '$ac_arg'"
1795 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1796 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1798 # When interrupted or exit'd, cleanup temporary files, and complete
1799 # config.log. We remove comments because anyway the quotes in there
1800 # would cause problems or look ugly.
1801 # WARNING: Use '\'' to represent an apostrophe within the trap.
1802 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1803 trap 'exit_status=$?
1804 # Save into config.log some information that might help in debugging.
1809 ## ---------------- ##
1810 ## Cache variables. ##
1811 ## ---------------- ##
1814 # The following way of writing the cache mishandles newlines in values,
1816 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1817 eval ac_val=\$$ac_var
1821 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1822 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1825 _ | IFS | as_nl) ;; #(
1826 *) $as_unset $ac_var ;;
1831 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1832 *${as_nl}ac_space=\ *)
1834 "s/'\''/'\''\\\\'\'''\''/g;
1835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1846 ## ----------------- ##
1847 ## Output variables. ##
1848 ## ----------------- ##
1851 for ac_var in $ac_subst_vars
1853 eval ac_val=\$$ac_var
1855 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 echo "$ac_var='\''$ac_val'\''"
1861 if test -n "$ac_subst_files"; then
1863 ## ------------------- ##
1864 ## File substitutions. ##
1865 ## ------------------- ##
1868 for ac_var in $ac_subst_files
1870 eval ac_val=\$$ac_var
1872 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874 echo "$ac_var='\''$ac_val'\''"
1879 if test -s confdefs.h; then
1889 test "$ac_signal" != 0 &&
1890 echo "$as_me: caught signal $ac_signal"
1891 echo "$as_me: exit $exit_status"
1893 rm -f core *.core core.conftest.* &&
1894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1897 for ac_signal in 1 2 13 15; do
1898 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1903 rm -f -r conftest* confdefs.h
1905 # Predefined preprocessor variables.
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_NAME "$PACKAGE_NAME"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932 # Let the site file select an alternate cache file if it wants to.
1933 # Prefer explicitly selected file to automatically selected ones.
1934 if test -n "$CONFIG_SITE"; then
1935 set x "$CONFIG_SITE"
1936 elif test "x$prefix" != xNONE; then
1937 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1939 set x "$ac_default_prefix/share/config.site" \
1940 "$ac_default_prefix/etc/config.site"
1945 if test -r "$ac_site_file"; then
1946 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1947 echo "$as_me: loading site script $ac_site_file" >&6;}
1948 sed 's/^/| /' "$ac_site_file" >&5
1953 if test -r "$cache_file"; then
1954 # Some versions of bash will fail to source /dev/null (special
1955 # files actually), so we avoid doing that.
1956 if test -f "$cache_file"; then
1957 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1958 echo "$as_me: loading cache $cache_file" >&6;}
1960 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1961 *) . "./$cache_file";;
1965 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1966 echo "$as_me: creating cache $cache_file" >&6;}
1970 ac_header_list="$ac_header_list sys/time.h"
1971 ac_header_list="$ac_header_list unistd.h"
1972 ac_func_list="$ac_func_list alarm"
1973 ac_header_list="$ac_header_list utime.h"
1974 # Check that the precious variables saved in the cache have kept the same
1976 ac_cache_corrupted=false
1977 for ac_var in $ac_precious_vars; do
1978 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1979 eval ac_new_set=\$ac_env_${ac_var}_set
1980 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1981 eval ac_new_val=\$ac_env_${ac_var}_value
1982 case $ac_old_set,$ac_new_set in
1984 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1985 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1988 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1989 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1990 ac_cache_corrupted=: ;;
1993 if test "x$ac_old_val" != "x$ac_new_val"; then
1994 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1995 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1996 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1997 echo "$as_me: former value: $ac_old_val" >&2;}
1998 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1999 echo "$as_me: current value: $ac_new_val" >&2;}
2000 ac_cache_corrupted=:
2003 # Pass precious variables to config.status.
2004 if test "$ac_new_set" = set; then
2006 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2007 *) ac_arg=$ac_var=$ac_new_val ;;
2009 case " $ac_configure_args " in
2010 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2011 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2015 if $ac_cache_corrupted; then
2016 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2017 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2019 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2020 { (exit 1); exit 1; }; }
2040 ac_cpp='$CPP $CPPFLAGS'
2041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047 # cross-compile macros
2049 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2050 if test -f "$ac_dir/install-sh"; then
2052 ac_install_sh="$ac_aux_dir/install-sh -c"
2054 elif test -f "$ac_dir/install.sh"; then
2056 ac_install_sh="$ac_aux_dir/install.sh -c"
2058 elif test -f "$ac_dir/shtool"; then
2060 ac_install_sh="$ac_aux_dir/shtool install -c"
2064 if test -z "$ac_aux_dir"; then
2065 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2066 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2067 { (exit 1); exit 1; }; }
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2075 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2076 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2079 # Make sure we can run config.sub.
2080 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2081 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2082 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2083 { (exit 1); exit 1; }; }
2085 { echo "$as_me:$LINENO: checking build system type" >&5
2086 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2087 if test "${ac_cv_build+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 ac_build_alias=$build_alias
2091 test "x$ac_build_alias" = x &&
2092 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2093 test "x$ac_build_alias" = x &&
2094 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2095 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2096 { (exit 1); exit 1; }; }
2097 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2098 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2099 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2100 { (exit 1); exit 1; }; }
2103 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2104 echo "${ECHO_T}$ac_cv_build" >&6; }
2105 case $ac_cv_build in
2107 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2108 echo "$as_me: error: invalid value of canonical build" >&2;}
2109 { (exit 1); exit 1; }; };;
2112 ac_save_IFS=$IFS; IFS='-'
2118 # Remember, the first character of IFS is used to create $*,
2119 # except with old shells:
2122 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2125 { echo "$as_me:$LINENO: checking host system type" >&5
2126 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2127 if test "${ac_cv_host+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 if test "x$host_alias" = x; then
2131 ac_cv_host=$ac_cv_build
2133 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2134 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2135 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2136 { (exit 1); exit 1; }; }
2140 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2141 echo "${ECHO_T}$ac_cv_host" >&6; }
2144 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2145 echo "$as_me: error: invalid value of canonical host" >&2;}
2146 { (exit 1); exit 1; }; };;
2149 ac_save_IFS=$IFS; IFS='-'
2155 # Remember, the first character of IFS is used to create $*,
2156 # except with old shells:
2159 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2163 # check existence of the package
2166 # specify output header file
2167 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2174 cat >>confdefs.h <<\_ACEOF
2175 #define _GNU_SOURCE 1
2180 ac_cpp='$CPP $CPPFLAGS'
2181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2184 if test -n "$ac_tool_prefix"; then
2185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2186 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2189 if test "${ac_cv_prog_CC+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 if test -n "$CC"; then
2193 ac_cv_prog_CC="$CC" # Let the user override the test.
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2202 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 if test -n "$CC"; then
2214 { echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6; }
2217 { echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6; }
2223 if test -z "$ac_cv_prog_CC"; then
2225 # Extract the first word of "gcc", so it can be a program name with args.
2226 set dummy gcc; ac_word=$2
2227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 if test -n "$ac_ct_CC"; then
2233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2242 ac_cv_prog_ac_ct_CC="gcc"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2253 if test -n "$ac_ct_CC"; then
2254 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2255 echo "${ECHO_T}$ac_ct_CC" >&6; }
2257 { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2261 if test "x$ac_ct_CC" = x; then
2264 case $cross_compiling:$ac_tool_warned in
2266 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2267 whose name does not start with the host triplet. If you think this
2268 configuration is useful to you, please write to autoconf@gnu.org." >&5
2269 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2270 whose name does not start with the host triplet. If you think this
2271 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2272 ac_tool_warned=yes ;;
2280 if test -z "$CC"; then
2281 if test -n "$ac_tool_prefix"; then
2282 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2283 set dummy ${ac_tool_prefix}cc; ac_word=$2
2284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2286 if test "${ac_cv_prog_CC+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 if test -n "$CC"; then
2290 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299 ac_cv_prog_CC="${ac_tool_prefix}cc"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 if test -n "$CC"; then
2311 { echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6; }
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2321 if test -z "$CC"; then
2322 # Extract the first word of "cc", so it can be a program name with args.
2323 set dummy cc; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2341 ac_prog_rejected=yes
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 if test $ac_prog_rejected = yes; then
2353 # We found a bogon in the path, so make sure we never use it.
2354 set dummy $ac_cv_prog_CC
2356 if test $# != 0; then
2357 # We chose a different compiler from the bogus one.
2358 # However, it has the same basename, so the bogon will be chosen
2359 # first if we set CC to just the basename; use the full file name.
2361 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2367 if test -n "$CC"; then
2368 { echo "$as_me:$LINENO: result: $CC" >&5
2369 echo "${ECHO_T}$CC" >&6; }
2371 { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2377 if test -z "$CC"; then
2378 if test -n "$ac_tool_prefix"; then
2379 for ac_prog in cl.exe
2381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 if test -n "$CC"; then
2389 ac_cv_prog_CC="$CC" # Let the user override the test.
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 if test -n "$CC"; then
2410 { echo "$as_me:$LINENO: result: $CC" >&5
2411 echo "${ECHO_T}$CC" >&6; }
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2418 test -n "$CC" && break
2421 if test -z "$CC"; then
2423 for ac_prog in cl.exe
2425 # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_ac_ct_CC="$ac_prog"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453 if test -n "$ac_ct_CC"; then
2454 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2455 echo "${ECHO_T}$ac_ct_CC" >&6; }
2457 { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2462 test -n "$ac_ct_CC" && break
2465 if test "x$ac_ct_CC" = x; then
2468 case $cross_compiling:$ac_tool_warned in
2470 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2471 whose name does not start with the host triplet. If you think this
2472 configuration is useful to you, please write to autoconf@gnu.org." >&5
2473 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet. If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2476 ac_tool_warned=yes ;;
2485 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: no acceptable C compiler found in \$PATH
2488 See \`config.log' for more details." >&2;}
2489 { (exit 1); exit 1; }; }
2491 # Provide some information about the compiler.
2492 echo "$as_me:$LINENO: checking for C compiler version" >&5
2493 ac_compiler=`set X $ac_compile; echo $2`
2494 { (ac_try="$ac_compiler --version >&5"
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_compiler --version >&5") 2>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }
2504 { (ac_try="$ac_compiler -v >&5"
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_compiler -v >&5") 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }
2514 { (ac_try="$ac_compiler -V >&5"
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compiler -V >&5") 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }
2525 cat >conftest.$ac_ext <<_ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2540 ac_clean_files_save=$ac_clean_files
2541 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2542 # Try to create an executable without -o first, disregard a.out.
2543 # It will help us diagnose broken compilers, and finding out an intuition
2545 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2546 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2547 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2549 # List of possible output files, starting from the most likely.
2550 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2551 # only as a last resort. b.out is created by i960 compilers.
2552 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2554 # The IRIX 6 linker writes into existing files which may not be
2555 # executable, retaining their permissions. Remove them first so a
2556 # subsequent execution test works.
2558 for ac_file in $ac_files
2561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2562 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2567 if { (ac_try="$ac_link_default"
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573 (eval "$ac_link_default") 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; then
2577 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2578 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2579 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2580 # so that the user can short-circuit this test for compilers unknown to
2582 for ac_file in $ac_files ''
2584 test -f "$ac_file" || continue
2586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2589 # We found the default executable, but exeext='' is most
2593 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2595 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2597 # We set ac_cv_exeext here because the later test for it is not
2598 # safe: cross compilers may not add the suffix if given an `-o'
2599 # argument, so we may need to know it at that point already.
2600 # Even if this section looks crufty: it has the advantage of
2607 test "$ac_cv_exeext" = no && ac_cv_exeext=
2613 { echo "$as_me:$LINENO: result: $ac_file" >&5
2614 echo "${ECHO_T}$ac_file" >&6; }
2615 if test -z "$ac_file"; then
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2619 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2620 See \`config.log' for more details." >&5
2621 echo "$as_me: error: C compiler cannot create executables
2622 See \`config.log' for more details." >&2;}
2623 { (exit 77); exit 77; }; }
2626 ac_exeext=$ac_cv_exeext
2628 # Check that the compiler produces executables we can run. If not, either
2629 # the compiler is broken, or we cross compile.
2630 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2631 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2632 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2633 # If not cross compiling, check that we can run a simple program.
2634 if test "$cross_compiling" != yes; then
2635 if { ac_try='./$ac_file'
2636 { (case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_try") 2>&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2647 if test "$cross_compiling" = maybe; then
2650 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2651 If you meant to cross compile, use \`--host'.
2652 See \`config.log' for more details." >&5
2653 echo "$as_me: error: cannot run C compiled programs.
2654 If you meant to cross compile, use \`--host'.
2655 See \`config.log' for more details." >&2;}
2656 { (exit 1); exit 1; }; }
2660 { echo "$as_me:$LINENO: result: yes" >&5
2661 echo "${ECHO_T}yes" >&6; }
2663 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2664 ac_clean_files=$ac_clean_files_save
2665 # Check that the compiler produces executables we can run. If not, either
2666 # the compiler is broken, or we cross compile.
2667 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2668 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2669 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2670 echo "${ECHO_T}$cross_compiling" >&6; }
2672 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2673 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2674 if { (ac_try="$ac_link"
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680 (eval "$ac_link") 2>&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; then
2684 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2685 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2686 # work properly (i.e., refer to `conftest.exe'), while it won't with
2688 for ac_file in conftest.exe conftest conftest.*; do
2689 test -f "$ac_file" || continue
2691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2692 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2698 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2701 See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }
2705 rm -f conftest$ac_cv_exeext
2706 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2707 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2709 rm -f conftest.$ac_ext
2710 EXEEXT=$ac_cv_exeext
2712 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2713 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2714 if test "${ac_cv_objext+set}" = set; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 cat >conftest.$ac_ext <<_ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2732 rm -f conftest.o conftest.obj
2733 if { (ac_try="$ac_compile"
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; then
2743 for ac_file in conftest.o conftest.obj conftest.*; do
2744 test -f "$ac_file" || continue;
2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2747 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2755 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2756 See \`config.log' for more details." >&5
2757 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2758 See \`config.log' for more details." >&2;}
2759 { (exit 1); exit 1; }; }
2762 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2764 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2765 echo "${ECHO_T}$ac_cv_objext" >&6; }
2766 OBJEXT=$ac_cv_objext
2768 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2769 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2770 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 cat >conftest.$ac_ext <<_ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2791 rm -f conftest.$ac_objext
2792 if { (ac_try="$ac_compile"
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798 (eval "$ac_compile") 2>conftest.er1
2800 grep -v '^ *+' conftest.er1 >conftest.err
2802 cat conftest.err >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } && {
2805 test -z "$ac_c_werror_flag" ||
2806 test ! -s conftest.err
2807 } && test -s conftest.$ac_objext; then
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2820 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2821 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2822 GCC=`test $ac_compiler_gnu = yes && echo yes`
2823 ac_test_CFLAGS=${CFLAGS+set}
2824 ac_save_CFLAGS=$CFLAGS
2825 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2826 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_cc_g+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 ac_save_c_werror_flag=$ac_c_werror_flag
2831 ac_c_werror_flag=yes
2834 cat >conftest.$ac_ext <<_ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2849 rm -f conftest.$ac_objext
2850 if { (ac_try="$ac_compile"
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_compile") 2>conftest.er1
2858 grep -v '^ *+' conftest.er1 >conftest.err
2860 cat conftest.err >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } && {
2863 test -z "$ac_c_werror_flag" ||
2864 test ! -s conftest.err
2865 } && test -s conftest.$ac_objext; then
2868 echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2872 cat >conftest.$ac_ext <<_ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2887 rm -f conftest.$ac_objext
2888 if { (ac_try="$ac_compile"
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compile") 2>conftest.er1
2896 grep -v '^ *+' conftest.er1 >conftest.err
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } && {
2901 test -z "$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest.$ac_objext; then
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 ac_c_werror_flag=$ac_save_c_werror_flag
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2935 grep -v '^ *+' conftest.er1 >conftest.err
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && {
2940 test -z "$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.$ac_objext; then
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 ac_c_werror_flag=$ac_save_c_werror_flag
2960 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2961 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2962 if test "$ac_test_CFLAGS" = set; then
2963 CFLAGS=$ac_save_CFLAGS
2964 elif test $ac_cv_prog_cc_g = yes; then
2965 if test "$GCC" = yes; then
2971 if test "$GCC" = yes; then
2977 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2978 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cc_c89+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 ac_cv_prog_cc_c89=no
2984 cat >conftest.$ac_ext <<_ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2992 #include <sys/types.h>
2993 #include <sys/stat.h>
2994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2995 struct buf { int x; };
2996 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2997 static char *e (p, i)
3003 static char *f (char * (*g) (char **, int), char **p, ...)
3008 s = g (p, va_arg (v,int));
3013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3014 function prototypes and stuff, but not '\xHH' hex character constants.
3015 These don't provoke an error unfortunately, instead are silently treated
3016 as 'x'. The following induces an error, until -std is added to get
3017 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3018 array size at least. It's necessary to write '\x00'==0 to get something
3019 that's true only with -std. */
3020 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3022 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3023 inside strings and character constants. */
3025 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3027 int test (int i, double x);
3028 struct s1 {int (*f) (int a);};
3029 struct s2 {int (*f) (double a);};
3030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3036 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3041 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3042 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3044 CC="$ac_save_CC $ac_arg"
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } && {
3059 test -z "$ac_c_werror_flag" ||
3060 test ! -s conftest.err
3061 } && test -s conftest.$ac_objext; then
3062 ac_cv_prog_cc_c89=$ac_arg
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3070 rm -f core conftest.err conftest.$ac_objext
3071 test "x$ac_cv_prog_cc_c89" != "xno" && break
3073 rm -f conftest.$ac_ext
3078 case "x$ac_cv_prog_cc_c89" in
3080 { echo "$as_me:$LINENO: result: none needed" >&5
3081 echo "${ECHO_T}none needed" >&6; } ;;
3083 { echo "$as_me:$LINENO: result: unsupported" >&5
3084 echo "${ECHO_T}unsupported" >&6; } ;;
3086 CC="$CC $ac_cv_prog_cc_c89"
3087 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3088 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3105 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3106 # On Suns, sometimes $CPP names a directory.
3107 if test -n "$CPP" && test -d "$CPP"; then
3110 if test -z "$CPP"; then
3111 if test "${ac_cv_prog_CPP+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 # Double quotes because CPP needs to be expanded
3115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3118 for ac_c_preproc_warn_flag in '' yes
3120 # Use a header file that comes with gcc, so configuring glibc
3121 # with a fresh cross-compiler works.
3122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123 # <limits.h> exists even on freestanding compilers.
3124 # On the NeXT, cc -E runs the code through the compiler's parser,
3125 # not just through cpp. "Syntax error" is here to catch this case.
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3133 # include <limits.h>
3135 # include <assert.h>
3139 if { (ac_try="$ac_cpp conftest.$ac_ext"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } >/dev/null && {
3152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 # Broken: fails on valid input.
3164 rm -f conftest.err conftest.$ac_ext
3166 # OK, works on sane cases. Now check whether nonexistent headers
3167 # can be detected and how.
3168 cat >conftest.$ac_ext <<_ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3174 #include <ac_nonexistent.h>
3176 if { (ac_try="$ac_cpp conftest.$ac_ext"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } >/dev/null && {
3189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3190 test ! -s conftest.err
3192 # Broken: success on invalid input.
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 # Passes both tests.
3203 rm -f conftest.err conftest.$ac_ext
3206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207 rm -f conftest.err conftest.$ac_ext
3208 if $ac_preproc_ok; then
3220 { echo "$as_me:$LINENO: result: $CPP" >&5
3221 echo "${ECHO_T}$CPP" >&6; }
3223 for ac_c_preproc_warn_flag in '' yes
3225 # Use a header file that comes with gcc, so configuring glibc
3226 # with a fresh cross-compiler works.
3227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228 # <limits.h> exists even on freestanding compilers.
3229 # On the NeXT, cc -E runs the code through the compiler's parser,
3230 # not just through cpp. "Syntax error" is here to catch this case.
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3238 # include <limits.h>
3240 # include <assert.h>
3244 if { (ac_try="$ac_cpp conftest.$ac_ext"
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3252 grep -v '^ *+' conftest.er1 >conftest.err
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } >/dev/null && {
3257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3258 test ! -s conftest.err
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 # Broken: fails on valid input.
3269 rm -f conftest.err conftest.$ac_ext
3271 # OK, works on sane cases. Now check whether nonexistent headers
3272 # can be detected and how.
3273 cat >conftest.$ac_ext <<_ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3279 #include <ac_nonexistent.h>
3281 if { (ac_try="$ac_cpp conftest.$ac_ext"
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289 grep -v '^ *+' conftest.er1 >conftest.err
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } >/dev/null && {
3294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3295 test ! -s conftest.err
3297 # Broken: success on invalid input.
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 # Passes both tests.
3308 rm -f conftest.err conftest.$ac_ext
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.$ac_ext
3313 if $ac_preproc_ok; then
3316 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3317 See \`config.log' for more details." >&5
3318 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3319 See \`config.log' for more details." >&2;}
3320 { (exit 1); exit 1; }; }
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3331 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3332 if test "${ac_cv_path_GREP+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 # Extract the first word of "grep ggrep" to use in msg output
3336 if test -z "$GREP"; then
3337 set dummy grep ggrep; ac_prog_name=$2
3338 if test "${ac_cv_path_GREP+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 ac_path_GREP_found=false
3342 # Loop through the user's path and test for each of PROGNAME-LIST
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3347 test -z "$as_dir" && as_dir=.
3348 for ac_prog in grep ggrep; do
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3351 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3352 # Check for GNU ac_path_GREP and select it if it is found.
3353 # Check for GNU $ac_path_GREP
3354 case `"$ac_path_GREP" --version 2>&1` in
3356 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3359 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3362 cat "conftest.in" "conftest.in" >"conftest.tmp"
3363 mv "conftest.tmp" "conftest.in"
3364 cp "conftest.in" "conftest.nl"
3365 echo 'GREP' >> "conftest.nl"
3366 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3368 ac_count=`expr $ac_count + 1`
3369 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3370 # Best one so far, save it but keep looking for a better one
3371 ac_cv_path_GREP="$ac_path_GREP"
3372 ac_path_GREP_max=$ac_count
3374 # 10*(2^10) chars as input seems more than enough
3375 test $ac_count -gt 10 && break
3377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3381 $ac_path_GREP_found && break 3
3391 GREP="$ac_cv_path_GREP"
3392 if test -z "$GREP"; then
3393 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3394 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3395 { (exit 1); exit 1; }; }
3399 ac_cv_path_GREP=$GREP
3404 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3405 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3406 GREP="$ac_cv_path_GREP"
3409 { echo "$as_me:$LINENO: checking for egrep" >&5
3410 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3411 if test "${ac_cv_path_EGREP+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3415 then ac_cv_path_EGREP="$GREP -E"
3417 # Extract the first word of "egrep" to use in msg output
3418 if test -z "$EGREP"; then
3419 set dummy egrep; ac_prog_name=$2
3420 if test "${ac_cv_path_EGREP+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 ac_path_EGREP_found=false
3424 # Loop through the user's path and test for each of PROGNAME-LIST
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3429 test -z "$as_dir" && as_dir=.
3430 for ac_prog in egrep; do
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3433 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3434 # Check for GNU ac_path_EGREP and select it if it is found.
3435 # Check for GNU $ac_path_EGREP
3436 case `"$ac_path_EGREP" --version 2>&1` in
3438 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3441 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3444 cat "conftest.in" "conftest.in" >"conftest.tmp"
3445 mv "conftest.tmp" "conftest.in"
3446 cp "conftest.in" "conftest.nl"
3447 echo 'EGREP' >> "conftest.nl"
3448 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3450 ac_count=`expr $ac_count + 1`
3451 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3452 # Best one so far, save it but keep looking for a better one
3453 ac_cv_path_EGREP="$ac_path_EGREP"
3454 ac_path_EGREP_max=$ac_count
3456 # 10*(2^10) chars as input seems more than enough
3457 test $ac_count -gt 10 && break
3459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3463 $ac_path_EGREP_found && break 3
3473 EGREP="$ac_cv_path_EGREP"
3474 if test -z "$EGREP"; then
3475 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3476 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3477 { (exit 1); exit 1; }; }
3481 ac_cv_path_EGREP=$EGREP
3487 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3488 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3489 EGREP="$ac_cv_path_EGREP"
3493 { echo "$as_me:$LINENO: checking for AIX" >&5
3494 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3507 $EGREP "yes" >/dev/null 2>&1; then
3508 { echo "$as_me:$LINENO: result: yes" >&5
3509 echo "${ECHO_T}yes" >&6; }
3510 cat >>confdefs.h <<\_ACEOF
3511 #define _ALL_SOURCE 1
3515 { echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6; }
3521 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3522 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3523 if test "${ac_cv_header_stdc+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 cat >conftest.$ac_ext <<_ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3545 rm -f conftest.$ac_objext
3546 if { (ac_try="$ac_compile"
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_compile") 2>conftest.er1
3554 grep -v '^ *+' conftest.er1 >conftest.err
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } && {
3559 test -z "$ac_c_werror_flag" ||
3560 test ! -s conftest.err
3561 } && test -s conftest.$ac_objext; then
3562 ac_cv_header_stdc=yes
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 ac_cv_header_stdc=no
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 if test $ac_cv_header_stdc = yes; then
3573 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3574 cat >conftest.$ac_ext <<_ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3584 $EGREP "memchr" >/dev/null 2>&1; then
3587 ac_cv_header_stdc=no
3593 if test $ac_cv_header_stdc = yes; then
3594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3605 $EGREP "free" >/dev/null 2>&1; then
3608 ac_cv_header_stdc=no
3614 if test $ac_cv_header_stdc = yes; then
3615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3616 if test "$cross_compiling" = yes; then
3619 cat >conftest.$ac_ext <<_ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3627 #if ((' ' & 0x0FF) == 0x020)
3628 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3629 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3631 # define ISLOWER(c) \
3632 (('a' <= (c) && (c) <= 'i') \
3633 || ('j' <= (c) && (c) <= 'r') \
3634 || ('s' <= (c) && (c) <= 'z'))
3635 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3638 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3643 for (i = 0; i < 256; i++)
3644 if (XOR (islower (i), ISLOWER (i))
3645 || toupper (i) != TOUPPER (i))
3650 rm -f conftest$ac_exeext
3651 if { (ac_try="$ac_link"
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_link") 2>&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3661 { (case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_try") 2>&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3672 echo "$as_me: program exited with status $ac_status" >&5
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3677 ac_cv_header_stdc=no
3679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3685 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3686 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3687 if test $ac_cv_header_stdc = yes; then
3689 cat >>confdefs.h <<\_ACEOF
3690 #define STDC_HEADERS 1
3695 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3705 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3706 inttypes.h stdint.h unistd.h
3708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 cat >conftest.$ac_ext <<_ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720 $ac_includes_default
3722 #include <$ac_header>
3724 rm -f conftest.$ac_objext
3725 if { (ac_try="$ac_compile"
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compile") 2>conftest.er1
3733 grep -v '^ *+' conftest.er1 >conftest.err
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } && {
3738 test -z "$ac_c_werror_flag" ||
3739 test ! -s conftest.err
3740 } && test -s conftest.$ac_objext; then
3741 eval "$as_ac_Header=yes"
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 eval "$as_ac_Header=no"
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 ac_res=`eval echo '${'$as_ac_Header'}'`
3752 { echo "$as_me:$LINENO: result: $ac_res" >&5
3753 echo "${ECHO_T}$ac_res" >&6; }
3754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3755 cat >>confdefs.h <<_ACEOF
3756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3764 if test "${ac_cv_header_minix_config_h+set}" = set; then
3765 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3766 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3767 if test "${ac_cv_header_minix_config_h+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3771 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3773 # Is the header compilable?
3774 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3775 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3776 cat >conftest.$ac_ext <<_ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 $ac_includes_default
3783 #include <minix/config.h>
3785 rm -f conftest.$ac_objext
3786 if { (ac_try="$ac_compile"
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_compile") 2>conftest.er1
3794 grep -v '^ *+' conftest.er1 >conftest.err
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } && {
3799 test -z "$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3801 } && test -s conftest.$ac_objext; then
3802 ac_header_compiler=yes
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 ac_header_compiler=no
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3812 echo "${ECHO_T}$ac_header_compiler" >&6; }
3814 # Is the header present?
3815 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3816 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #include <minix/config.h>
3825 if { (ac_try="$ac_cpp conftest.$ac_ext"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3833 grep -v '^ *+' conftest.er1 >conftest.err
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } >/dev/null && {
3838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3839 test ! -s conftest.err
3841 ac_header_preproc=yes
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 ac_header_preproc=no
3849 rm -f conftest.err conftest.$ac_ext
3850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3851 echo "${ECHO_T}$ac_header_preproc" >&6; }
3853 # So? What about this header?
3854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3856 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3857 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3858 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3859 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3860 ac_header_preproc=yes
3863 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3864 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3865 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3866 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3867 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3868 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3869 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3870 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3872 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3874 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3878 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3879 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3880 if test "${ac_cv_header_minix_config_h+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 ac_cv_header_minix_config_h=$ac_header_preproc
3885 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3886 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3889 if test $ac_cv_header_minix_config_h = yes; then
3896 if test "$MINIX" = yes; then
3898 cat >>confdefs.h <<\_ACEOF
3899 #define _POSIX_SOURCE 1
3903 cat >>confdefs.h <<\_ACEOF
3904 #define _POSIX_1_SOURCE 2
3908 cat >>confdefs.h <<\_ACEOF
3924 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3925 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3926 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3936 # define __EXTENSIONS__ 1
3937 $ac_includes_default
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_compile") 2>conftest.er1
3955 grep -v '^ *+' conftest.er1 >conftest.err
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest.$ac_objext; then
3963 ac_cv_safe_to_define___extensions__=yes
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3968 ac_cv_safe_to_define___extensions__=no
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3974 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
3975 test $ac_cv_safe_to_define___extensions__ = yes &&
3976 cat >>confdefs.h <<\_ACEOF
3977 #define __EXTENSIONS__ 1
3980 cat >>confdefs.h <<\_ACEOF
3981 #define _POSIX_PTHREAD_SEMANTICS 1
3984 cat >>confdefs.h <<\_ACEOF
3985 #define _TANDEM_SOURCE 1
3988 # note- does not work on FreeBSD
3990 case "${host_os}" in
3992 ac_default_prefix=/usr/local
3993 CPPFLAGS=-I/usr/local/include
3994 LDFLAGS=-L/usr/local/lib
3998 ac_default_prefix=/usr
3999 if test ${sysconfdir} = '${prefix}/etc'; then
4002 if test ${mandir} = '${prefix}/man'; then
4003 mandir=/usr/share/man
4008 if test ${localstatedir} = '${prefix}/var'; then
4012 BUILD_PLATFORM=${build}
4013 BUILD_CPU=${build_cpu}
4014 BUILD_VENDOR=${build_vendor}
4015 BUILD_OS=${build_os}
4022 HOST_PLATFORM=${host}
4023 HOST_CPU=${host_cpu}
4024 HOST_VENDOR=${host_vendor}
4032 case "${host_os}" in
4053 if test -n "$ac_tool_prefix"; then
4054 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4055 set dummy ${ac_tool_prefix}uname; ac_word=$2
4056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4058 if test "${ac_cv_path_UNAME+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4073 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 UNAME=$ac_cv_path_UNAME
4085 if test -n "$UNAME"; then
4086 { echo "$as_me:$LINENO: result: $UNAME" >&5
4087 echo "${ECHO_T}$UNAME" >&6; }
4089 { echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6; }
4095 if test -z "$ac_cv_path_UNAME"; then
4097 # Extract the first word of "uname", so it can be a program name with args.
4098 set dummy uname; ac_word=$2
4099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4101 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 case $ac_pt_UNAME in
4106 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4128 if test -n "$ac_pt_UNAME"; then
4129 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4130 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4132 { echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6; }
4136 if test "x$ac_pt_UNAME" = x; then
4139 case $cross_compiling:$ac_tool_warned in
4141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4142 whose name does not start with the host triplet. If you think this
4143 configuration is useful to you, please write to autoconf@gnu.org." >&5
4144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4145 whose name does not start with the host triplet. If you think this
4146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4147 ac_tool_warned=yes ;;
4152 UNAME="$ac_cv_path_UNAME"
4155 if test ! x"${UNAME}" = xNo; then
4156 PBX_OSREV=$(${UNAME} -r)
4166 # cross-compile checks
4167 if test "${cross_compiling}" = "yes";
4169 if test -n "$ac_tool_prefix"; then
4170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4174 if test "${ac_cv_prog_CC+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 if test -n "$CC"; then
4178 ac_cv_prog_CC="$CC" # Let the user override the test.
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 if test -n "$CC"; then
4199 { echo "$as_me:$LINENO: result: $CC" >&5
4200 echo "${ECHO_T}$CC" >&6; }
4202 { echo "$as_me:$LINENO: result: no" >&5
4203 echo "${ECHO_T}no" >&6; }
4208 if test -z "$ac_cv_prog_CC"; then
4210 # Extract the first word of "gcc", so it can be a program name with args.
4211 set dummy gcc; ac_word=$2
4212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 if test -n "$ac_ct_CC"; then
4218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 ac_cv_prog_ac_ct_CC="gcc"
4228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4238 if test -n "$ac_ct_CC"; then
4239 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4240 echo "${ECHO_T}$ac_ct_CC" >&6; }
4242 { echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6; }
4246 if test "x$ac_ct_CC" = x; then
4249 case $cross_compiling:$ac_tool_warned in
4251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4252 whose name does not start with the host triplet. If you think this
4253 configuration is useful to you, please write to autoconf@gnu.org." >&5
4254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4255 whose name does not start with the host triplet. If you think this
4256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4257 ac_tool_warned=yes ;;
4265 if test -n "$ac_tool_prefix"; then
4266 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4267 set dummy ${ac_tool_prefix}g++; ac_word=$2
4268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4270 if test "${ac_cv_prog_CXX+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 if test -n "$CXX"; then
4274 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 if test -n "$CXX"; then
4295 { echo "$as_me:$LINENO: result: $CXX" >&5
4296 echo "${ECHO_T}$CXX" >&6; }
4298 { echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; }
4304 if test -z "$ac_cv_prog_CXX"; then
4306 # Extract the first word of "g++", so it can be a program name with args.
4307 set dummy g++; ac_word=$2
4308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4310 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 if test -n "$ac_ct_CXX"; then
4314 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_ac_ct_CXX="g++"
4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4334 if test -n "$ac_ct_CXX"; then
4335 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4336 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4338 { echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6; }
4342 if test "x$ac_ct_CXX" = x; then
4345 case $cross_compiling:$ac_tool_warned in
4347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4348 whose name does not start with the host triplet. If you think this
4349 configuration is useful to you, please write to autoconf@gnu.org." >&5
4350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4351 whose name does not start with the host triplet. If you think this
4352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4353 ac_tool_warned=yes ;;
4358 CXX="$ac_cv_prog_CXX"
4361 if test -n "$ac_tool_prefix"; then
4362 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4363 set dummy ${ac_tool_prefix}ld; ac_word=$2
4364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4366 if test "${ac_cv_prog_LD+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 if test -n "$LD"; then
4370 ac_cv_prog_LD="$LD" # Let the user override the test.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_LD="${ac_tool_prefix}ld"
4380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 if test -n "$LD"; then
4391 { echo "$as_me:$LINENO: result: $LD" >&5
4392 echo "${ECHO_T}$LD" >&6; }
4394 { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4400 if test -z "$ac_cv_prog_LD"; then
4402 # Extract the first word of "ld", so it can be a program name with args.
4403 set dummy ld; ac_word=$2
4404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 if test -n "$ac_ct_LD"; then
4410 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_ac_ct_LD="ld"
4420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4430 if test -n "$ac_ct_LD"; then
4431 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4432 echo "${ECHO_T}$ac_ct_LD" >&6; }
4434 { echo "$as_me:$LINENO: result: no" >&5
4435 echo "${ECHO_T}no" >&6; }
4438 if test "x$ac_ct_LD" = x; then
4441 case $cross_compiling:$ac_tool_warned in
4443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4444 whose name does not start with the host triplet. If you think this
4445 configuration is useful to you, please write to autoconf@gnu.org." >&5
4446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4447 whose name does not start with the host triplet. If you think this
4448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4449 ac_tool_warned=yes ;;
4457 if test -n "$ac_tool_prefix"; then
4458 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4459 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_RANLIB+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$RANLIB"; then
4466 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 RANLIB=$ac_cv_prog_RANLIB
4486 if test -n "$RANLIB"; then
4487 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4488 echo "${ECHO_T}$RANLIB" >&6; }
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4496 if test -z "$ac_cv_prog_RANLIB"; then
4497 ac_ct_RANLIB=$RANLIB
4498 # Extract the first word of "ranlib", so it can be a program name with args.
4499 set dummy ranlib; ac_word=$2
4500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4502 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 if test -n "$ac_ct_RANLIB"; then
4506 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 test -z "$as_dir" && as_dir=.
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4515 ac_cv_prog_ac_ct_RANLIB="ranlib"
4516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4526 if test -n "$ac_ct_RANLIB"; then
4527 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4528 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4530 { echo "$as_me:$LINENO: result: no" >&5
4531 echo "${ECHO_T}no" >&6; }
4534 if test "x$ac_ct_RANLIB" = x; then
4537 case $cross_compiling:$ac_tool_warned in
4539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4540 whose name does not start with the host triplet. If you think this
4541 configuration is useful to you, please write to autoconf@gnu.org." >&5
4542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4543 whose name does not start with the host triplet. If you think this
4544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4545 ac_tool_warned=yes ;;
4547 RANLIB=$ac_ct_RANLIB
4550 RANLIB="$ac_cv_prog_RANLIB"
4555 # Checks for programs.
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4561 if test -n "$ac_tool_prefix"; then
4562 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4563 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 if test -n "$CC"; then
4570 ac_cv_prog_CC="$CC" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 if test -n "$CC"; then
4591 { echo "$as_me:$LINENO: result: $CC" >&5
4592 echo "${ECHO_T}$CC" >&6; }
4594 { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4600 if test -z "$ac_cv_prog_CC"; then
4602 # Extract the first word of "gcc", so it can be a program name with args.
4603 set dummy gcc; ac_word=$2
4604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if test -n "$ac_ct_CC"; then
4610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_ac_ct_CC="gcc"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4630 if test -n "$ac_ct_CC"; then
4631 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4632 echo "${ECHO_T}$ac_ct_CC" >&6; }
4634 { echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6; }
4638 if test "x$ac_ct_CC" = x; then
4641 case $cross_compiling:$ac_tool_warned in
4643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4644 whose name does not start with the host triplet. If you think this
4645 configuration is useful to you, please write to autoconf@gnu.org." >&5
4646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4647 whose name does not start with the host triplet. If you think this
4648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4649 ac_tool_warned=yes ;;
4657 if test -z "$CC"; then
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}cc; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_CC+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_CC="${ac_tool_prefix}cc"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 if test -n "$CC"; then
4688 { echo "$as_me:$LINENO: result: $CC" >&5
4689 echo "${ECHO_T}$CC" >&6; }
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4698 if test -z "$CC"; then
4699 # Extract the first word of "cc", so it can be a program name with args.
4700 set dummy cc; ac_word=$2
4701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703 if test "${ac_cv_prog_CC+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 if test -n "$CC"; then
4707 ac_cv_prog_CC="$CC" # Let the user override the test.
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in ''&nb