2 # From configure.ac Revision: 126226 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.6.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in
29 *posix*) set -o posix ;;
38 # Avoid depending upon Character Ranges.
39 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits='0123456789'
43 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # The user is always right.
46 if test "${PATH_SEPARATOR+set}" != set; then
47 echo "#! /bin/sh" >conf$$.sh
48 echo "exit 0" >>conf$$.sh
50 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
58 # Support unset when possible.
59 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
67 # We need space, tab and new line, in precisely that order. Quoting is
68 # there to prevent editors from complaining about space-tab.
69 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 # splitting by setting IFS to empty value.)
75 # Find who we are. Look in the path if we contain no directory separator.
77 *[\\/]* ) as_myself=$0 ;;
78 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
82 test -z "$as_dir" && as_dir=.
83 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
89 # We did not find ourselves, most probably we were run as `sh COMMAND'
90 # in which case we are not to be found in the path.
91 if test "x$as_myself" = x; then
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
99 # Work around bugs in pre-3.0 UWIN ksh.
100 for as_var in ENV MAIL MAILPATH
101 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C; export $as_var
116 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
120 # Required to use basename.
121 if expr a : '\(a\)' >/dev/null 2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
135 # Name of the executable.
136 as_me=`$as_basename -- "$0" ||
137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 X"$0" : 'X\(//\)$' \| \
139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 if test "x$CONFIG_SHELL" = x; then
160 if (eval ":") 2>/dev/null; then
166 if test $as_have_required = yes && (eval ":
176 as_func_ret_success () {
179 as_func_ret_failure () {
184 if as_func_success; then
188 echo as_func_success failed.
191 if as_func_failure; then
193 echo as_func_failure succeeded.
196 if as_func_ret_success; then
200 echo as_func_ret_success failed.
203 if as_func_ret_failure; then
205 echo as_func_ret_failure succeeded.
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
212 echo positional parameters were not saved.
215 test \$exitcode = 0) || { (exit 1); exit 1; }
220 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 ") 2> /dev/null; then
226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
230 test -z "$as_dir" && as_dir=.
233 for as_base in sh bash ksh sh5; do
234 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
241 for as_shell in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev/null <<\_ASEOF
245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 # is contrary to our usage. Disable this feature.
250 alias -g '${1+"$@"}'='"$@"'
253 case `(set -o) 2>/dev/null` in
254 *posix*) set -o posix ;;
263 CONFIG_SHELL=$as_shell
265 if { "$as_shell" 2> /dev/null <<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
274 case `(set -o) 2>/dev/null` in
275 *posix*) set -o posix ;;
291 as_func_ret_success () {
294 as_func_ret_failure () {
299 if as_func_success; then
303 echo as_func_success failed.
306 if as_func_failure; then
308 echo as_func_failure succeeded.
311 if as_func_ret_success; then
315 echo as_func_ret_success failed.
318 if as_func_ret_failure; then
320 echo as_func_ret_failure succeeded.
323 if ( set x; as_func_ret_success y && test x = "$1" ); then
327 echo positional parameters were not saved.
330 test $exitcode = 0) || { (exit 1); exit 1; }
335 test "x$as_lineno_1" != "x$as_lineno_2" &&
336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
347 if test "x$CONFIG_SHELL" != x; then
348 for as_var in BASH_ENV ENV
349 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
352 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
356 if test $as_have_required = no; then
357 echo This script requires a shell more modern than all the
358 echo shells that I found on your system. Please install a
359 echo modern shell, or manually run the script under such a
360 echo shell if you do have one.
361 { (exit 1); exit 1; }
371 (eval "as_func_return () {
380 as_func_ret_success () {
383 as_func_ret_failure () {
388 if as_func_success; then
392 echo as_func_success failed.
395 if as_func_failure; then
397 echo as_func_failure succeeded.
400 if as_func_ret_success; then
404 echo as_func_ret_success failed.
407 if as_func_ret_failure; then
409 echo as_func_ret_failure succeeded.
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
416 echo positional parameters were not saved.
419 test \$exitcode = 0") || {
420 echo No shell found that supports shell functions.
421 echo Please tell autoconf@gnu.org about your system,
422 echo including any error possibly output before this
430 test "x$as_lineno_1" != "x$as_lineno_2" &&
431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 # uniformly replaced by the line number. The first 'sed' inserts a
435 # line-number line after each line using $LINENO; the second 'sed'
436 # does the real work. The second script uses 'N' to pair each
437 # line-number line with the line containing $LINENO, and appends
438 # trailing '-' during substitution so that $LINENO is not a special
440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 # scripts with optimization help from Paolo Bonzini. Blame Lee
442 # E. McMahon (1931-1989) for sed's syntax. :-)
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 chmod +x "$as_me.lineno" ||
459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 { (exit 1); exit 1; }; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
466 # Exit status is that of the last command.
471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
477 ECHO_C= ECHO_N= ECHO_T=
481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
488 if expr a : '\(a\)' >/dev/null 2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
495 rm -f conf$$ conf$$.exe conf$$.file
496 if test -d conf$$.dir; then
497 rm -f conf$$.dir/conf$$.file
503 if ln -s conf$$.file conf$$ 2>/dev/null; then
505 # ... but there are two gotchas:
506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 # In both cases, we have to default to `cp -p'.
509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
511 elif ln conf$$.file conf$$ 2>/dev/null; then
516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
517 rmdir conf$$.dir 2>/dev/null
519 if mkdir -p . 2>/dev/null; then
522 test -d ./-p && rmdir ./-p
526 if test -x / >/dev/null 2>&1; then
529 if ls -dL / >/dev/null 2>&1; then
536 if test -d "$1"; then
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
547 as_executable_p=$as_test_x
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 exec 7<&0 </dev/null 6>&1
560 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567 ac_default_prefix=/usr/local
569 ac_config_libobj_dir=.
575 SHELL=${CONFIG_SHELL-/bin/sh}
577 # Identity of this package.
578 PACKAGE_NAME='asterisk'
579 PACKAGE_TARNAME='asterisk'
580 PACKAGE_VERSION='1.6'
581 PACKAGE_STRING='asterisk 1.6'
582 PACKAGE_BUGREPORT='www.asterisk.org'
584 ac_unique_file="main/asterisk.c"
585 # Factoring default headers for most tests.
586 ac_includes_default="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
631 program_transform_name
955 PBX_PTHREAD_RWLOCK_INITIALIZER
956 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
959 AST_DECLARATION_AFTER_STATEMENT
960 AST_NO_STRICT_OVERFLOW
989 ac_precious_vars='build_alias
1004 # Initialize some variables set by options.
1006 ac_init_version=false
1007 # The variables have the same names as the options, with
1008 # dashes changed to underlines.
1009 cache_file=/dev/null
1016 program_transform_name=s,x,x,
1024 # Installation directory options.
1025 # These are left unexpanded so users can "make install exec_prefix=/foo"
1026 # and all the variables that are supposed to be based on exec_prefix
1027 # by default will actually change.
1028 # Use braces instead of parens because sh, perl, etc. also accept them.
1029 # (The list follows the same order as the GNU Coding Standards.)
1030 bindir='${exec_prefix}/bin'
1031 sbindir='${exec_prefix}/sbin'
1032 libexecdir='${exec_prefix}/libexec'
1033 datarootdir='${prefix}/share'
1034 datadir='${datarootdir}'
1035 sysconfdir='${prefix}/etc'
1036 sharedstatedir='${prefix}/com'
1037 localstatedir='${prefix}/var'
1038 includedir='${prefix}/include'
1039 oldincludedir='/usr/include'
1040 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1041 infodir='${datarootdir}/info'
1046 libdir='${exec_prefix}/lib'
1047 localedir='${datarootdir}/locale'
1048 mandir='${datarootdir}/man'
1054 # If the previous option needs an argument, assign it.
1055 if test -n "$ac_prev"; then
1056 eval $ac_prev=\$ac_option
1062 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066 # Accept the important Cygnus configure options, so we can diagnose typos.
1068 case $ac_dashdash$ac_option in
1072 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1074 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1075 bindir=$ac_optarg ;;
1077 -build | --build | --buil | --bui | --bu)
1078 ac_prev=build_alias ;;
1079 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1080 build_alias=$ac_optarg ;;
1082 -cache-file | --cache-file | --cache-fil | --cache-fi \
1083 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1084 ac_prev=cache_file ;;
1085 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1086 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1087 cache_file=$ac_optarg ;;
1089 --config-cache | -C)
1090 cache_file=config.cache ;;
1092 -datadir | --datadir | --datadi | --datad)
1094 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1095 datadir=$ac_optarg ;;
1097 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1098 | --dataroo | --dataro | --datar)
1099 ac_prev=datarootdir ;;
1100 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1101 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1102 datarootdir=$ac_optarg ;;
1104 -disable-* | --disable-*)
1105 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1109 { (exit 1); exit 1; }; }
1110 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1111 eval enable_$ac_feature=no ;;
1113 -docdir | --docdir | --docdi | --doc | --do)
1115 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1116 docdir=$ac_optarg ;;
1118 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1120 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1121 dvidir=$ac_optarg ;;
1123 -enable-* | --enable-*)
1124 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1127 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1128 { (exit 1); exit 1; }; }
1129 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1130 eval enable_$ac_feature=\$ac_optarg ;;
1132 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1133 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1134 | --exec | --exe | --ex)
1135 ac_prev=exec_prefix ;;
1136 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1137 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1138 | --exec=* | --exe=* | --ex=*)
1139 exec_prefix=$ac_optarg ;;
1141 -gas | --gas | --ga | --g)
1142 # Obsolete; use --with-gas.
1145 -help | --help | --hel | --he | -h)
1146 ac_init_help=long ;;
1147 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1148 ac_init_help=recursive ;;
1149 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1150 ac_init_help=short ;;
1152 -host | --host | --hos | --ho)
1153 ac_prev=host_alias ;;
1154 -host=* | --host=* | --hos=* | --ho=*)
1155 host_alias=$ac_optarg ;;
1157 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1159 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1161 htmldir=$ac_optarg ;;
1163 -includedir | --includedir | --includedi | --included | --include \
1164 | --includ | --inclu | --incl | --inc)
1165 ac_prev=includedir ;;
1166 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1167 | --includ=* | --inclu=* | --incl=* | --inc=*)
1168 includedir=$ac_optarg ;;
1170 -infodir | --infodir | --infodi | --infod | --info | --inf)
1172 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1173 infodir=$ac_optarg ;;
1175 -libdir | --libdir | --libdi | --libd)
1177 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1178 libdir=$ac_optarg ;;
1180 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1181 | --libexe | --libex | --libe)
1182 ac_prev=libexecdir ;;
1183 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1184 | --libexe=* | --libex=* | --libe=*)
1185 libexecdir=$ac_optarg ;;
1187 -localedir | --localedir | --localedi | --localed | --locale)
1188 ac_prev=localedir ;;
1189 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1190 localedir=$ac_optarg ;;
1192 -localstatedir | --localstatedir | --localstatedi | --localstated \
1193 | --localstate | --localstat | --localsta | --localst | --locals)
1194 ac_prev=localstatedir ;;
1195 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1196 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1197 localstatedir=$ac_optarg ;;
1199 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1201 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1202 mandir=$ac_optarg ;;
1204 -nfp | --nfp | --nf)
1205 # Obsolete; use --without-fp.
1208 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1209 | --no-cr | --no-c | -n)
1212 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1213 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1217 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1218 | --oldin | --oldi | --old | --ol | --o)
1219 ac_prev=oldincludedir ;;
1220 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1221 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1222 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1223 oldincludedir=$ac_optarg ;;
1225 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1227 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1228 prefix=$ac_optarg ;;
1230 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1231 | --program-pre | --program-pr | --program-p)
1232 ac_prev=program_prefix ;;
1233 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1234 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1235 program_prefix=$ac_optarg ;;
1237 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1238 | --program-suf | --program-su | --program-s)
1239 ac_prev=program_suffix ;;
1240 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1241 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1242 program_suffix=$ac_optarg ;;
1244 -program-transform-name | --program-transform-name \
1245 | --program-transform-nam | --program-transform-na \
1246 | --program-transform-n | --program-transform- \
1247 | --program-transform | --program-transfor \
1248 | --program-transfo | --program-transf \
1249 | --program-trans | --program-tran \
1250 | --progr-tra | --program-tr | --program-t)
1251 ac_prev=program_transform_name ;;
1252 -program-transform-name=* | --program-transform-name=* \
1253 | --program-transform-nam=* | --program-transform-na=* \
1254 | --program-transform-n=* | --program-transform-=* \
1255 | --program-transform=* | --program-transfor=* \
1256 | --program-transfo=* | --program-transf=* \
1257 | --program-trans=* | --program-tran=* \
1258 | --progr-tra=* | --program-tr=* | --program-t=*)
1259 program_transform_name=$ac_optarg ;;
1261 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1263 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1264 pdfdir=$ac_optarg ;;
1266 -psdir | --psdir | --psdi | --psd | --ps)
1268 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272 | -silent | --silent | --silen | --sile | --sil)
1275 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1277 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1279 sbindir=$ac_optarg ;;
1281 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1282 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1283 | --sharedst | --shareds | --shared | --share | --shar \
1285 ac_prev=sharedstatedir ;;
1286 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1287 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1288 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1290 sharedstatedir=$ac_optarg ;;
1292 -site | --site | --sit)
1294 -site=* | --site=* | --sit=*)
1297 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1299 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1300 srcdir=$ac_optarg ;;
1302 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1303 | --syscon | --sysco | --sysc | --sys | --sy)
1304 ac_prev=sysconfdir ;;
1305 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1306 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1307 sysconfdir=$ac_optarg ;;
1309 -target | --target | --targe | --targ | --tar | --ta | --t)
1310 ac_prev=target_alias ;;
1311 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1312 target_alias=$ac_optarg ;;
1314 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1317 -version | --version | --versio | --versi | --vers | -V)
1318 ac_init_version=: ;;
1321 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid package name: $ac_package" >&2
1325 { (exit 1); exit 1; }; }
1326 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1327 eval with_$ac_package=\$ac_optarg ;;
1329 -without-* | --without-*)
1330 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 { echo "$as_me: error: invalid package name: $ac_package" >&2
1334 { (exit 1); exit 1; }; }
1335 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1336 eval with_$ac_package=no ;;
1339 # Obsolete; use --with-x.
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1356 -*) { echo "$as_me: error: unrecognized option: $ac_option
1357 Try \`$0 --help' for more information." >&2
1358 { (exit 1); exit 1; }; }
1362 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1365 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1366 { (exit 1); exit 1; }; }
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1381 if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 { echo "$as_me: error: missing argument to $ac_option" >&2
1384 { (exit 1); exit 1; }; }
1387 # Be sure to have absolute directory names.
1388 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1393 eval ac_val=\$$ac_var
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1398 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1399 { (exit 1); exit 1; }; }
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1407 target=$target_alias
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x; then
1411 if test "x$build_alias" = x; then
1412 cross_compiling=maybe
1413 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1414 If a cross compiler is detected then cross compile mode will be used." >&2
1415 elif test "x$build_alias" != "x$host_alias"; then
1421 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1423 test "$silent" = yes && exec 6>/dev/null
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429 { echo "$as_me: error: Working directory cannot be determined" >&2
1430 { (exit 1); exit 1; }; }
1431 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1432 { echo "$as_me: error: pwd does not report name of working directory" >&2
1433 { (exit 1); exit 1; }; }
1436 # Find the source files, if location was not specified.
1437 if test -z "$srcdir"; then
1438 ac_srcdir_defaulted=yes
1439 # Try the directory containing this script, then the parent directory.
1440 ac_confdir=`$as_dirname -- "$0" ||
1441 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1442 X"$0" : 'X\(//\)[^/]' \| \
1443 X"$0" : 'X\(//\)$' \| \
1444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1468 ac_srcdir_defaulted=no
1470 if test ! -r "$srcdir/$ac_unique_file"; then
1471 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1472 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1473 { (exit 1); exit 1; }; }
1475 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1478 { (exit 1); exit 1; }; }
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1488 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1490 for ac_var in $ac_precious_vars; do
1491 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_${ac_var}_value=\$${ac_var}
1493 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1498 # Report the --help message.
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1504 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1511 Defaults for the options are specified in brackets.
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1535 For better control, use the options below.
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1562 --build=BUILD configure for building on BUILD [guessed]
1563 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1567 if test -n "$ac_init_help"; then
1568 case $ac_init_help in
1569 short | recursive ) echo "Configuration of asterisk 1.6:";;
1574 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1575 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1576 --enable-dev-mode Turn on developer mode
1577 --disable-largefile omit support for large files
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1584 --with-execinfo=PATH use Stack Backtrace support files in PATH
1585 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1586 --with-curl=PATH use cURL files in PATH
1587 --with-curses=PATH use curses files in PATH
1588 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1589 --with-dahdi=PATH use DAHDI files in PATH
1590 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1591 --with-gsm=PATH use External GSM library files in PATH , use
1592 'internal' GSM otherwise
1593 --with-gtk=PATH use gtk libraries files in PATH
1594 --with-gtk2=PATH use gtk2 libraries files in PATH
1595 --with-gmime=PATH use GMime library files in PATH
1596 --with-iconv=PATH use Iconv Library files in PATH
1597 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1598 --with-imap=PATH use UW IMAP Toolkit files in PATH
1599 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1600 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1601 --with-ldap=PATH use OpenLDAP files in PATH
1602 --with-ltdl=PATH use libtool files in PATH
1603 --with-lua=PATH use Lua files in PATH
1604 --with-misdn=PATH use mISDN User Library files in PATH
1605 --with-nbs=PATH use Network Broadcast Sound files in PATH
1606 --with-ncurses=PATH use ncurses files in PATH
1607 --with-netsnmp=PATH use Net-SNMP files in PATH
1608 --with-newt=PATH use newt files in PATH
1609 --with-odbc=PATH use unixODBC files in PATH
1610 --with-ogg=PATH use OGG files in PATH
1611 --with-osptk=PATH use OSP Toolkit files in PATH
1612 --with-oss=PATH use Open Sound System files in PATH
1613 --with-postgres=PATH use PostgreSQL files in PATH
1614 --with-popt=PATH use popt files in PATH
1615 --with-portaudio=PATH use PortAudio files in PATH
1616 --with-pri=PATH use ISDN PRI files in PATH
1617 --with-spandsp=PATH use SPANDSP files in PATH
1618 --with-ss7=PATH use ISDN SS7 files in PATH
1619 --with-pwlib=PATH use PWlib files in PATH
1620 --with-h323=PATH use OpenH323 files in PATH
1621 --with-radius=PATH use Radius Client files in PATH
1622 --with-sdl=PATH use Sdl files in PATH
1623 --with-SDL_image=PATH use Sdl Image library files in PATH
1624 --with-SaClm=PATH use SAForum AIS CLM files in PATH
1625 --with-SaEvt=PATH use SAForum AIS EVT files in PATH
1626 --with-speex=PATH use Speex files in PATH
1627 --with-speexdsp=PATH use Speexdsp files in PATH
1628 --with-sqlite=PATH use SQLite files in PATH
1629 --with-sqlite3=PATH use SQLite files in PATH
1630 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1631 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1633 --with-tds=PATH use FreeTDS files in PATH
1634 --with-termcap=PATH use Termcap files in PATH
1635 --with-tinfo=PATH use Term Info files in PATH
1636 --with-tonezone=PATH use tonezone files in PATH
1637 --with-usb=PATH use usb files in PATH
1638 --with-vorbis=PATH use Vorbis files in PATH
1639 --with-vpb=PATH use Voicetronix API files in PATH
1640 --with-x11=PATH use X11 support files in PATH
1641 --with-z=PATH use zlib files in PATH
1643 Some influential environment variables:
1644 CC C compiler command
1645 CFLAGS C compiler flags
1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647 nonstandard directory <lib dir>
1648 LIBS libraries to pass to the linker, e.g. -l<library>
1649 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1650 you have headers in a nonstandard directory <include dir>
1652 CXX C++ compiler command
1653 CXXFLAGS C++ compiler flags
1654 CXXCPP C++ preprocessor
1656 Use these variables to override the choices made by `configure' or to help
1657 it to find libraries and programs with nonstandard names/locations.
1659 Report bugs to <www.asterisk.org>.
1664 if test "$ac_init_help" = "recursive"; then
1665 # If there are subdirs, report their specific --help.
1666 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1667 test -d "$ac_dir" || continue
1671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1674 # A ".." for each directory in $ac_dir_suffix.
1675 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1676 case $ac_top_builddir_sub in
1677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1681 ac_abs_top_builddir=$ac_pwd
1682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1683 # for backward compatibility:
1684 ac_top_builddir=$ac_top_build_prefix
1687 .) # We are building in place.
1689 ac_top_srcdir=$ac_top_builddir_sub
1690 ac_abs_top_srcdir=$ac_pwd ;;
1691 [\\/]* | ?:[\\/]* ) # Absolute name.
1692 ac_srcdir=$srcdir$ac_dir_suffix;
1693 ac_top_srcdir=$srcdir
1694 ac_abs_top_srcdir=$srcdir ;;
1696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1697 ac_top_srcdir=$ac_top_build_prefix$srcdir
1698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1702 cd "$ac_dir" || { ac_status=$?; continue; }
1703 # Check for guested configure.
1704 if test -f "$ac_srcdir/configure.gnu"; then
1706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1707 elif test -f "$ac_srcdir/configure"; then
1709 $SHELL "$ac_srcdir/configure" --help=recursive
1711 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1713 cd "$ac_pwd" || { ac_status=$?; break; }
1717 test -n "$ac_init_help" && exit $ac_status
1718 if $ac_init_version; then
1720 asterisk configure 1.6
1721 generated by GNU Autoconf 2.61
1723 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1724 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1725 This configure script is free software; the Free Software Foundation
1726 gives unlimited permission to copy, distribute and modify it.
1732 cat >config.log <<_ACEOF
1733 This file contains any messages produced by compilers while
1734 running configure, to aid debugging if configure makes a mistake.
1736 It was created by asterisk $as_me 1.6, which was
1737 generated by GNU Autoconf 2.61. Invocation command line was
1749 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1750 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1751 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1752 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1753 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1756 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1758 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1759 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1760 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1761 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1762 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1763 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1764 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 test -z "$as_dir" && as_dir=.
1773 echo "PATH: $as_dir"
1789 # Keep a trace of the command line.
1790 # Strip out --no-create and --no-recursion so they do not pile up.
1791 # Strip out --silent because we don't want to record it for future runs.
1792 # Also quote any args containing shell meta-characters.
1793 # Make two passes to allow for proper duplicate-argument suppression.
1797 ac_must_keep_next=false
1803 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1805 | -silent | --silent | --silen | --sile | --sil)
1808 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1811 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1814 if test $ac_must_keep_next = true; then
1815 ac_must_keep_next=false # Got value, back to normal.
1818 *=* | --config-cache | -C | -disable-* | --disable-* \
1819 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1820 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1821 | -with-* | --with-* | -without-* | --without-* | --x)
1822 case "$ac_configure_args0 " in
1823 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1826 -* ) ac_must_keep_next=true ;;
1829 ac_configure_args="$ac_configure_args '$ac_arg'"
1834 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1835 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837 # When interrupted or exit'd, cleanup temporary files, and complete
1838 # config.log. We remove comments because anyway the quotes in there
1839 # would cause problems or look ugly.
1840 # WARNING: Use '\'' to represent an apostrophe within the trap.
1841 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1842 trap 'exit_status=$?
1843 # Save into config.log some information that might help in debugging.
1848 ## ---------------- ##
1849 ## Cache variables. ##
1850 ## ---------------- ##
1853 # The following way of writing the cache mishandles newlines in values,
1855 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1856 eval ac_val=\$$ac_var
1860 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1861 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1864 _ | IFS | as_nl) ;; #(
1865 *) $as_unset $ac_var ;;
1870 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1871 *${as_nl}ac_space=\ *)
1873 "s/'\''/'\''\\\\'\'''\''/g;
1874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1885 ## ----------------- ##
1886 ## Output variables. ##
1887 ## ----------------- ##
1890 for ac_var in $ac_subst_vars
1892 eval ac_val=\$$ac_var
1894 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896 echo "$ac_var='\''$ac_val'\''"
1900 if test -n "$ac_subst_files"; then
1902 ## ------------------- ##
1903 ## File substitutions. ##
1904 ## ------------------- ##
1907 for ac_var in $ac_subst_files
1909 eval ac_val=\$$ac_var
1911 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913 echo "$ac_var='\''$ac_val'\''"
1918 if test -s confdefs.h; then
1928 test "$ac_signal" != 0 &&
1929 echo "$as_me: caught signal $ac_signal"
1930 echo "$as_me: exit $exit_status"
1932 rm -f core *.core core.conftest.* &&
1933 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936 for ac_signal in 1 2 13 15; do
1937 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1941 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1942 rm -f -r conftest* confdefs.h
1944 # Predefined preprocessor variables.
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_NAME "$PACKAGE_NAME"
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_STRING "$PACKAGE_STRING"
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1971 # Let the site file select an alternate cache file if it wants to.
1972 # Prefer explicitly selected file to automatically selected ones.
1973 if test -n "$CONFIG_SITE"; then
1974 set x "$CONFIG_SITE"
1975 elif test "x$prefix" != xNONE; then
1976 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1978 set x "$ac_default_prefix/share/config.site" \
1979 "$ac_default_prefix/etc/config.site"
1984 if test -r "$ac_site_file"; then
1985 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1986 echo "$as_me: loading site script $ac_site_file" >&6;}
1987 sed 's/^/| /' "$ac_site_file" >&5
1992 if test -r "$cache_file"; then
1993 # Some versions of bash will fail to source /dev/null (special
1994 # files actually), so we avoid doing that.
1995 if test -f "$cache_file"; then
1996 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1997 echo "$as_me: loading cache $cache_file" >&6;}
1999 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2000 *) . "./$cache_file";;
2004 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2005 echo "$as_me: creating cache $cache_file" >&6;}
2009 ac_header_list="$ac_header_list utime.h"
2010 # Check that the precious variables saved in the cache have kept the same
2012 ac_cache_corrupted=false
2013 for ac_var in $ac_precious_vars; do
2014 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2015 eval ac_new_set=\$ac_env_${ac_var}_set
2016 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2017 eval ac_new_val=\$ac_env_${ac_var}_value
2018 case $ac_old_set,$ac_new_set in
2020 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2021 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2022 ac_cache_corrupted=: ;;
2024 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2025 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2026 ac_cache_corrupted=: ;;
2029 if test "x$ac_old_val" != "x$ac_new_val"; then
2030 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2031 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2032 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2033 echo "$as_me: former value: $ac_old_val" >&2;}
2034 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2035 echo "$as_me: current value: $ac_new_val" >&2;}
2036 ac_cache_corrupted=:
2039 # Pass precious variables to config.status.
2040 if test "$ac_new_set" = set; then
2042 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2043 *) ac_arg=$ac_var=$ac_new_val ;;
2045 case " $ac_configure_args " in
2046 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2047 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2051 if $ac_cache_corrupted; then
2052 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2053 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2054 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2055 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2056 { (exit 1); exit 1; }; }
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091 # cross-compile macros
2093 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2094 if test -f "$ac_dir/install-sh"; then
2096 ac_install_sh="$ac_aux_dir/install-sh -c"
2098 elif test -f "$ac_dir/install.sh"; then
2100 ac_install_sh="$ac_aux_dir/install.sh -c"
2102 elif test -f "$ac_dir/shtool"; then
2104 ac_install_sh="$ac_aux_dir/shtool install -c"
2108 if test -z "$ac_aux_dir"; then
2109 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2110 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2111 { (exit 1); exit 1; }; }
2114 # These three variables are undocumented and unsupported,
2115 # and are intended to be withdrawn in a future Autoconf release.
2116 # They can cause serious problems if a builder's source tree is in a directory
2117 # whose full name contains unusual characters.
2118 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2119 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2120 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2123 # Make sure we can run config.sub.
2124 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2125 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2126 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2127 { (exit 1); exit 1; }; }
2129 { echo "$as_me:$LINENO: checking build system type" >&5
2130 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2131 if test "${ac_cv_build+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 ac_build_alias=$build_alias
2135 test "x$ac_build_alias" = x &&
2136 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2137 test "x$ac_build_alias" = x &&
2138 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2139 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2140 { (exit 1); exit 1; }; }
2141 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2142 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2143 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2144 { (exit 1); exit 1; }; }
2147 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2148 echo "${ECHO_T}$ac_cv_build" >&6; }
2149 case $ac_cv_build in
2151 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2152 echo "$as_me: error: invalid value of canonical build" >&2;}
2153 { (exit 1); exit 1; }; };;
2156 ac_save_IFS=$IFS; IFS='-'
2162 # Remember, the first character of IFS is used to create $*,
2163 # except with old shells:
2166 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2169 { echo "$as_me:$LINENO: checking host system type" >&5
2170 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2171 if test "${ac_cv_host+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test "x$host_alias" = x; then
2175 ac_cv_host=$ac_cv_build
2177 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2178 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2179 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2180 { (exit 1); exit 1; }; }
2184 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2185 echo "${ECHO_T}$ac_cv_host" >&6; }
2188 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2189 echo "$as_me: error: invalid value of canonical host" >&2;}
2190 { (exit 1); exit 1; }; };;
2193 ac_save_IFS=$IFS; IFS='-'
2199 # Remember, the first character of IFS is used to create $*,
2200 # except with old shells:
2203 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2207 # check existence of the package
2210 # specify output header file
2211 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2218 cat >>confdefs.h <<\_ACEOF
2219 #define _GNU_SOURCE 1
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228 if test -n "$ac_tool_prefix"; then
2229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2230 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 if test -n "$CC"; then
2258 { echo "$as_me:$LINENO: result: $CC" >&5
2259 echo "${ECHO_T}$CC" >&6; }
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2267 if test -z "$ac_cv_prog_CC"; then
2269 # Extract the first word of "gcc", so it can be a program name with args.
2270 set dummy gcc; ac_word=$2
2271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 if test -n "$ac_ct_CC"; then
2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_ac_ct_CC="gcc"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297 if test -n "$ac_ct_CC"; then
2298 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299 echo "${ECHO_T}$ac_ct_CC" >&6; }
2301 { echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6; }
2305 if test "x$ac_ct_CC" = x; then
2308 case $cross_compiling:$ac_tool_warned in
2310 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2311 whose name does not start with the host triplet. If you think this
2312 configuration is useful to you, please write to autoconf@gnu.org." >&5
2313 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2314 whose name does not start with the host triplet. If you think this
2315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2316 ac_tool_warned=yes ;;
2324 if test -z "$CC"; then
2325 if test -n "$ac_tool_prefix"; then
2326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2327 set dummy ${ac_tool_prefix}cc; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343 ac_cv_prog_CC="${ac_tool_prefix}cc"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 if test -n "$CC"; then
2355 { echo "$as_me:$LINENO: result: $CC" >&5
2356 echo "${ECHO_T}$CC" >&6; }
2358 { echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6; }
2365 if test -z "$CC"; then
2366 # Extract the first word of "cc", so it can be a program name with args.
2367 set dummy cc; ac_word=$2
2368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2370 if test "${ac_cv_prog_CC+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 if test -n "$CC"; then
2374 ac_cv_prog_CC="$CC" # Let the user override the test.
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2385 ac_prog_rejected=yes
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 if test $ac_prog_rejected = yes; then
2397 # We found a bogon in the path, so make sure we never use it.
2398 set dummy $ac_cv_prog_CC
2400 if test $# != 0; then
2401 # We chose a different compiler from the bogus one.
2402 # However, it has the same basename, so the bogon will be chosen
2403 # first if we set CC to just the basename; use the full file name.
2405 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2411 if test -n "$CC"; then
2412 { echo "$as_me:$LINENO: result: $CC" >&5
2413 echo "${ECHO_T}$CC" >&6; }
2415 { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2421 if test -z "$CC"; then
2422 if test -n "$ac_tool_prefix"; then
2423 for ac_prog in cl.exe
2425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2426 set dummy $ac_tool_prefix$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_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$CC"; then
2433 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 if test -n "$CC"; then
2454 { echo "$as_me:$LINENO: result: $CC" >&5
2455 echo "${ECHO_T}$CC" >&6; }
2457 { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2462 test -n "$CC" && break
2465 if test -z "$CC"; then
2467 for ac_prog in cl.exe
2469 # Extract the first word of "$ac_prog", so it can be a program name with args.
2470 set dummy $ac_prog; ac_word=$2
2471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 if test -n "$ac_ct_CC"; then
2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 ac_cv_prog_ac_ct_CC="$ac_prog"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497 if test -n "$ac_ct_CC"; then
2498 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499 echo "${ECHO_T}$ac_ct_CC" >&6; }
2501 { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2506 test -n "$ac_ct_CC" && break
2509 if test "x$ac_ct_CC" = x; then
2512 case $cross_compiling:$ac_tool_warned in
2514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet. If you think this
2516 configuration is useful to you, please write to autoconf@gnu.org." >&5
2517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2520 ac_tool_warned=yes ;;
2529 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2530 See \`config.log' for more details." >&5
2531 echo "$as_me: error: no acceptable C compiler found in \$PATH
2532 See \`config.log' for more details." >&2;}
2533 { (exit 1); exit 1; }; }
2535 # Provide some information about the compiler.
2536 echo "$as_me:$LINENO: checking for C compiler version" >&5
2537 ac_compiler=`set X $ac_compile; echo $2`
2538 { (ac_try="$ac_compiler --version >&5"
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compiler --version >&5") 2>&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }
2548 { (ac_try="$ac_compiler -v >&5"
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_compiler -v >&5") 2>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }
2558 { (ac_try="$ac_compiler -V >&5"
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compiler -V >&5") 2>&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }
2569 cat >conftest.$ac_ext <<_ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2584 ac_clean_files_save=$ac_clean_files
2585 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2586 # Try to create an executable without -o first, disregard a.out.
2587 # It will help us diagnose broken compilers, and finding out an intuition
2589 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2590 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2591 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2593 # List of possible output files, starting from the most likely.
2594 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2595 # only as a last resort. b.out is created by i960 compilers.
2596 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2598 # The IRIX 6 linker writes into existing files which may not be
2599 # executable, retaining their permissions. Remove them first so a
2600 # subsequent execution test works.
2602 for ac_file in $ac_files
2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2606 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2611 if { (ac_try="$ac_link_default"
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617 (eval "$ac_link_default") 2>&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; then
2621 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2622 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2623 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2624 # so that the user can short-circuit this test for compilers unknown to
2626 for ac_file in $ac_files ''
2628 test -f "$ac_file" || continue
2630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2633 # We found the default executable, but exeext='' is most
2637 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2639 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641 # We set ac_cv_exeext here because the later test for it is not
2642 # safe: cross compilers may not add the suffix if given an `-o'
2643 # argument, so we may need to know it at that point already.
2644 # Even if this section looks crufty: it has the advantage of
2651 test "$ac_cv_exeext" = no && ac_cv_exeext=
2657 { echo "$as_me:$LINENO: result: $ac_file" >&5
2658 echo "${ECHO_T}$ac_file" >&6; }
2659 if test -z "$ac_file"; then
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2663 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: C compiler cannot create executables
2666 See \`config.log' for more details." >&2;}
2667 { (exit 77); exit 77; }; }
2670 ac_exeext=$ac_cv_exeext
2672 # Check that the compiler produces executables we can run. If not, either
2673 # the compiler is broken, or we cross compile.
2674 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2675 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2676 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2677 # If not cross compiling, check that we can run a simple program.
2678 if test "$cross_compiling" != yes; then
2679 if { ac_try='./$ac_file'
2680 { (case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_try") 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2691 if test "$cross_compiling" = maybe; then
2694 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2695 If you meant to cross compile, use \`--host'.
2696 See \`config.log' for more details." >&5
2697 echo "$as_me: error: cannot run C compiled programs.
2698 If you meant to cross compile, use \`--host'.
2699 See \`config.log' for more details." >&2;}
2700 { (exit 1); exit 1; }; }
2704 { echo "$as_me:$LINENO: result: yes" >&5
2705 echo "${ECHO_T}yes" >&6; }
2707 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2708 ac_clean_files=$ac_clean_files_save
2709 # Check that the compiler produces executables we can run. If not, either
2710 # the compiler is broken, or we cross compile.
2711 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2712 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2713 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2714 echo "${ECHO_T}$cross_compiling" >&6; }
2716 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2717 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2718 if { (ac_try="$ac_link"
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_link") 2>&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; then
2728 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2729 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2730 # work properly (i.e., refer to `conftest.exe'), while it won't with
2732 for ac_file in conftest.exe conftest conftest.*; do
2733 test -f "$ac_file" || continue
2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2742 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2743 See \`config.log' for more details." >&5
2744 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2745 See \`config.log' for more details." >&2;}
2746 { (exit 1); exit 1; }; }
2749 rm -f conftest$ac_cv_exeext
2750 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2751 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2753 rm -f conftest.$ac_ext
2754 EXEEXT=$ac_cv_exeext
2756 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2757 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2758 if test "${ac_cv_objext+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 cat >conftest.$ac_ext <<_ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2776 rm -f conftest.o conftest.obj
2777 if { (ac_try="$ac_compile"
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compile") 2>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; then
2787 for ac_file in conftest.o conftest.obj conftest.*; do
2788 test -f "$ac_file" || continue;
2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2791 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2799 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2800 See \`config.log' for more details." >&5
2801 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2802 See \`config.log' for more details." >&2;}
2803 { (exit 1); exit 1; }; }
2806 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2808 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2809 echo "${ECHO_T}$ac_cv_objext" >&6; }
2810 OBJEXT=$ac_cv_objext
2812 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2813 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2814 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 cat >conftest.$ac_ext <<_ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2835 rm -f conftest.$ac_objext
2836 if { (ac_try="$ac_compile"
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_compile") 2>conftest.er1
2844 grep -v '^ *+' conftest.er1 >conftest.err
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } && {
2849 test -z "$ac_c_werror_flag" ||
2850 test ! -s conftest.err
2851 } && test -s conftest.$ac_objext; then
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2864 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2865 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2866 GCC=`test $ac_compiler_gnu = yes && echo yes`
2867 ac_test_CFLAGS=${CFLAGS+set}
2868 ac_save_CFLAGS=$CFLAGS
2869 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2870 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2871 if test "${ac_cv_prog_cc_g+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 ac_save_c_werror_flag=$ac_c_werror_flag
2875 ac_c_werror_flag=yes
2878 cat >conftest.$ac_ext <<_ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2893 rm -f conftest.$ac_objext
2894 if { (ac_try="$ac_compile"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } && {
2907 test -z "$ac_c_werror_flag" ||
2908 test ! -s conftest.err
2909 } && test -s conftest.$ac_objext; then
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compile") 2>conftest.er1
2940 grep -v '^ *+' conftest.er1 >conftest.err
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } && {
2945 test -z "$ac_c_werror_flag" ||
2946 test ! -s conftest.err
2947 } && test -s conftest.$ac_objext; then
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 ac_c_werror_flag=$ac_save_c_werror_flag
2955 cat >conftest.$ac_ext <<_ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2970 rm -f conftest.$ac_objext
2971 if { (ac_try="$ac_compile"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } && {
2984 test -z "$ac_c_werror_flag" ||
2985 test ! -s conftest.err
2986 } && test -s conftest.$ac_objext; then
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_c_werror_flag=$ac_save_c_werror_flag
3004 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3005 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3006 if test "$ac_test_CFLAGS" = set; then
3007 CFLAGS=$ac_save_CFLAGS
3008 elif test $ac_cv_prog_cc_g = yes; then
3009 if test "$GCC" = yes; then
3015 if test "$GCC" = yes; then
3021 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3022 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_cc_c89+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 ac_cv_prog_cc_c89=no
3028 cat >conftest.$ac_ext <<_ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3036 #include <sys/types.h>
3037 #include <sys/stat.h>
3038 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3039 struct buf { int x; };
3040 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3041 static char *e (p, i)
3047 static char *f (char * (*g) (char **, int), char **p, ...)
3052 s = g (p, va_arg (v,int));
3057 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3058 function prototypes and stuff, but not '\xHH' hex character constants.
3059 These don't provoke an error unfortunately, instead are silently treated
3060 as 'x'. The following induces an error, until -std is added to get
3061 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3062 array size at least. It's necessary to write '\x00'==0 to get something
3063 that's true only with -std. */
3064 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3066 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3067 inside strings and character constants. */
3069 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3071 int test (int i, double x);
3072 struct s1 {int (*f) (int a);};
3073 struct s2 {int (*f) (double a);};
3074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3080 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3085 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3086 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3088 CC="$ac_save_CC $ac_arg"
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } && {
3103 test -z "$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3105 } && test -s conftest.$ac_objext; then
3106 ac_cv_prog_cc_c89=$ac_arg
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3114 rm -f core conftest.err conftest.$ac_objext
3115 test "x$ac_cv_prog_cc_c89" != "xno" && break
3117 rm -f conftest.$ac_ext
3122 case "x$ac_cv_prog_cc_c89" in
3124 { echo "$as_me:$LINENO: result: none needed" >&5
3125 echo "${ECHO_T}none needed" >&6; } ;;
3127 { echo "$as_me:$LINENO: result: unsupported" >&5
3128 echo "${ECHO_T}unsupported" >&6; } ;;
3130 CC="$CC $ac_cv_prog_cc_c89"
3131 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3132 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3149 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3150 # On Suns, sometimes $CPP names a directory.
3151 if test -n "$CPP" && test -d "$CPP"; then
3154 if test -z "$CPP"; then
3155 if test "${ac_cv_prog_CPP+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 # Double quotes because CPP needs to be expanded
3159 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3162 for ac_c_preproc_warn_flag in '' yes
3164 # Use a header file that comes with gcc, so configuring glibc
3165 # with a fresh cross-compiler works.
3166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3167 # <limits.h> exists even on freestanding compilers.
3168 # On the NeXT, cc -E runs the code through the compiler's parser,
3169 # not just through cpp. "Syntax error" is here to catch this case.
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3177 # include <limits.h>
3179 # include <assert.h>
3183 if { (ac_try="$ac_cpp conftest.$ac_ext"
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3191 grep -v '^ *+' conftest.er1 >conftest.err
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } >/dev/null && {
3196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3197 test ! -s conftest.err
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 # Broken: fails on valid input.
3208 rm -f conftest.err conftest.$ac_ext
3210 # OK, works on sane cases. Now check whether nonexistent headers
3211 # can be detected and how.
3212 cat >conftest.$ac_ext <<_ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3218 #include <ac_nonexistent.h>
3220 if { (ac_try="$ac_cpp conftest.$ac_ext"
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3228 grep -v '^ *+' conftest.er1 >conftest.err
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } >/dev/null && {
3233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3234 test ! -s conftest.err
3236 # Broken: success on invalid input.
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3242 # Passes both tests.
3247 rm -f conftest.err conftest.$ac_ext
3250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3251 rm -f conftest.err conftest.$ac_ext
3252 if $ac_preproc_ok; then
3264 { echo "$as_me:$LINENO: result: $CPP" >&5
3265 echo "${ECHO_T}$CPP" >&6; }
3267 for ac_c_preproc_warn_flag in '' yes
3269 # Use a header file that comes with gcc, so configuring glibc
3270 # with a fresh cross-compiler works.
3271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3272 # <limits.h> exists even on freestanding compilers.
3273 # On the NeXT, cc -E runs the code through the compiler's parser,
3274 # not just through cpp. "Syntax error" is here to catch this case.
3275 cat >conftest.$ac_ext <<_ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3282 # include <limits.h>
3284 # include <assert.h>
3288 if { (ac_try="$ac_cpp conftest.$ac_ext"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3296 grep -v '^ *+' conftest.er1 >conftest.err
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } >/dev/null && {
3301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3302 test ! -s conftest.err
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 # Broken: fails on valid input.
3313 rm -f conftest.err conftest.$ac_ext
3315 # OK, works on sane cases. Now check whether nonexistent headers
3316 # can be detected and how.
3317 cat >conftest.$ac_ext <<_ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323 #include <ac_nonexistent.h>
3325 if { (ac_try="$ac_cpp conftest.$ac_ext"
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3333 grep -v '^ *+' conftest.er1 >conftest.err
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null && {
3338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3339 test ! -s conftest.err
3341 # Broken: success on invalid input.
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 # Passes both tests.
3352 rm -f conftest.err conftest.$ac_ext
3355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356 rm -f conftest.err conftest.$ac_ext
3357 if $ac_preproc_ok; then
3360 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3361 See \`config.log' for more details." >&5
3362 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3363 See \`config.log' for more details." >&2;}
3364 { (exit 1); exit 1; }; }
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3375 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3376 if test "${ac_cv_path_GREP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 # Extract the first word of "grep ggrep" to use in msg output
3380 if test -z "$GREP"; then
3381 set dummy grep ggrep; ac_prog_name=$2
3382 if test "${ac_cv_path_GREP+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 ac_path_GREP_found=false
3386 # Loop through the user's path and test for each of PROGNAME-LIST
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3391 test -z "$as_dir" && as_dir=.
3392 for ac_prog in grep ggrep; do
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3395 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3396 # Check for GNU ac_path_GREP and select it if it is found.
3397 # Check for GNU $ac_path_GREP
3398 case `"$ac_path_GREP" --version 2>&1` in
3400 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3403 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3406 cat "conftest.in" "conftest.in" >"conftest.tmp"
3407 mv "conftest.tmp" "conftest.in"
3408 cp "conftest.in" "conftest.nl"
3409 echo 'GREP' >> "conftest.nl"
3410 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3412 ac_count=`expr $ac_count + 1`
3413 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3414 # Best one so far, save it but keep looking for a better one
3415 ac_cv_path_GREP="$ac_path_GREP"
3416 ac_path_GREP_max=$ac_count
3418 # 10*(2^10) chars as input seems more than enough
3419 test $ac_count -gt 10 && break
3421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3425 $ac_path_GREP_found && break 3
3435 GREP="$ac_cv_path_GREP"
3436 if test -z "$GREP"; then
3437 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3438 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3439 { (exit 1); exit 1; }; }
3443 ac_cv_path_GREP=$GREP
3448 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3449 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3450 GREP="$ac_cv_path_GREP"
3453 { echo "$as_me:$LINENO: checking for egrep" >&5
3454 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3455 if test "${ac_cv_path_EGREP+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3459 then ac_cv_path_EGREP="$GREP -E"
3461 # Extract the first word of "egrep" to use in msg output
3462 if test -z "$EGREP"; then
3463 set dummy egrep; ac_prog_name=$2
3464 if test "${ac_cv_path_EGREP+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_path_EGREP_found=false
3468 # Loop through the user's path and test for each of PROGNAME-LIST
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3473 test -z "$as_dir" && as_dir=.
3474 for ac_prog in egrep; do
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3477 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3478 # Check for GNU ac_path_EGREP and select it if it is found.
3479 # Check for GNU $ac_path_EGREP
3480 case `"$ac_path_EGREP" --version 2>&1` in
3482 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3485 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3488 cat "conftest.in" "conftest.in" >"conftest.tmp"
3489 mv "conftest.tmp" "conftest.in"
3490 cp "conftest.in" "conftest.nl"
3491 echo 'EGREP' >> "conftest.nl"
3492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3494 ac_count=`expr $ac_count + 1`
3495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3496 # Best one so far, save it but keep looking for a better one
3497 ac_cv_path_EGREP="$ac_path_EGREP"
3498 ac_path_EGREP_max=$ac_count
3500 # 10*(2^10) chars as input seems more than enough
3501 test $ac_count -gt 10 && break
3503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3507 $ac_path_EGREP_found && break 3
3517 EGREP="$ac_cv_path_EGREP"
3518 if test -z "$EGREP"; then
3519 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3520 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3521 { (exit 1); exit 1; }; }
3525 ac_cv_path_EGREP=$EGREP
3531 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3532 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3533 EGREP="$ac_cv_path_EGREP"
3537 { echo "$as_me:$LINENO: checking for AIX" >&5
3538 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3551 $EGREP "yes" >/dev/null 2>&1; then
3552 { echo "$as_me:$LINENO: result: yes" >&5
3553 echo "${ECHO_T}yes" >&6; }
3554 cat >>confdefs.h <<\_ACEOF
3555 #define _ALL_SOURCE 1
3559 { echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6; }
3565 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3566 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3567 if test "${ac_cv_header_stdc+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3589 rm -f conftest.$ac_objext
3590 if { (ac_try="$ac_compile"
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_compile") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } && {
3603 test -z "$ac_c_werror_flag" ||
3604 test ! -s conftest.err
3605 } && test -s conftest.$ac_objext; then
3606 ac_cv_header_stdc=yes
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 ac_cv_header_stdc=no
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 if test $ac_cv_header_stdc = yes; then
3617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3618 cat >conftest.$ac_ext <<_ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3628 $EGREP "memchr" >/dev/null 2>&1; then
3631 ac_cv_header_stdc=no
3637 if test $ac_cv_header_stdc = yes; then
3638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3639 cat >conftest.$ac_ext <<_ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3649 $EGREP "free" >/dev/null 2>&1; then
3652 ac_cv_header_stdc=no
3658 if test $ac_cv_header_stdc = yes; then
3659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3660 if test "$cross_compiling" = yes; then
3663 cat >conftest.$ac_ext <<_ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3671 #if ((' ' & 0x0FF) == 0x020)
3672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3675 # define ISLOWER(c) \
3676 (('a' <= (c) && (c) <= 'i') \
3677 || ('j' <= (c) && (c) <= 'r') \
3678 || ('s' <= (c) && (c) <= 'z'))
3679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3687 for (i = 0; i < 256; i++)
3688 if (XOR (islower (i), ISLOWER (i))
3689 || toupper (i) != TOUPPER (i))
3694 rm -f conftest$ac_exeext
3695 if { (ac_try="$ac_link"
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_link") 2>&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3705 { (case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_try") 2>&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3716 echo "$as_me: program exited with status $ac_status" >&5
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3721 ac_cv_header_stdc=no
3723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3729 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3730 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3731 if test $ac_cv_header_stdc = yes; then
3733 cat >>confdefs.h <<\_ACEOF
3734 #define STDC_HEADERS 1
3739 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3749 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3750 inttypes.h stdint.h unistd.h
3752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 cat >conftest.$ac_ext <<_ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 $ac_includes_default
3766 #include <$ac_header>
3768 rm -f conftest.$ac_objext
3769 if { (ac_try="$ac_compile"
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_compile") 2>conftest.er1
3777 grep -v '^ *+' conftest.er1 >conftest.err
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && {
3782 test -z "$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3784 } && test -s conftest.$ac_objext; then
3785 eval "$as_ac_Header=yes"
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 eval "$as_ac_Header=no"
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 ac_res=`eval echo '${'$as_ac_Header'}'`
3796 { echo "$as_me:$LINENO: result: $ac_res" >&5
3797 echo "${ECHO_T}$ac_res" >&6; }
3798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3799 cat >>confdefs.h <<_ACEOF
3800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3808 if test "${ac_cv_header_minix_config_h+set}" = set; then
3809 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3810 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3811 if test "${ac_cv_header_minix_config_h+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3815 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3817 # Is the header compilable?
3818 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3819 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3820 cat >conftest.$ac_ext <<_ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 $ac_includes_default
3827 #include <minix/config.h>
3829 rm -f conftest.$ac_objext
3830 if { (ac_try="$ac_compile"
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_compile") 2>conftest.er1
3838 grep -v '^ *+' conftest.er1 >conftest.err
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } && {
3843 test -z "$ac_c_werror_flag" ||
3844 test ! -s conftest.err
3845 } && test -s conftest.$ac_objext; then
3846 ac_header_compiler=yes
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ac_header_compiler=no
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3856 echo "${ECHO_T}$ac_header_compiler" >&6; }
3858 # Is the header present?
3859 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3860 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3861 cat >conftest.$ac_ext <<_ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867 #include <minix/config.h>
3869 if { (ac_try="$ac_cpp conftest.$ac_ext"
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3877 grep -v '^ *+' conftest.er1 >conftest.err
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } >/dev/null && {
3882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3883 test ! -s conftest.err
3885 ac_header_preproc=yes
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3890 ac_header_preproc=no
3893 rm -f conftest.err conftest.$ac_ext
3894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3895 echo "${ECHO_T}$ac_header_preproc" >&6; }
3897 # So? What about this header?
3898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3900 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3901 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3903 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3904 ac_header_preproc=yes
3907 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3908 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3909 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3910 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3911 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3912 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3914 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3916 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3918 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3920 ## ------------------------------- ##
3921 ## Report this to www.asterisk.org ##
3922 ## ------------------------------- ##
3924 ) | sed "s/^/$as_me: WARNING: /" >&2
3927 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3928 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3929 if test "${ac_cv_header_minix_config_h+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 ac_cv_header_minix_config_h=$ac_header_preproc
3934 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3935 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3938 if test $ac_cv_header_minix_config_h = yes; then
3945 if test "$MINIX" = yes; then
3947 cat >>confdefs.h <<\_ACEOF
3948 #define _POSIX_SOURCE 1
3952 cat >>confdefs.h <<\_ACEOF
3953 #define _POSIX_1_SOURCE 2
3957 cat >>confdefs.h <<\_ACEOF
3973 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3974 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3975 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 cat >conftest.$ac_ext <<_ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3985 # define __EXTENSIONS__ 1
3986 $ac_includes_default
3995 rm -f conftest.$ac_objext
3996 if { (ac_try="$ac_compile"
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4004 grep -v '^ *+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest.$ac_objext; then
4012 ac_cv_safe_to_define___extensions__=yes
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 ac_cv_safe_to_define___extensions__=no
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4023 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4024 test $ac_cv_safe_to_define___extensions__ = yes &&
4025 cat >>confdefs.h <<\_ACEOF
4026 #define __EXTENSIONS__ 1
4029 cat >>confdefs.h <<\_ACEOF
4030 #define _POSIX_PTHREAD_SEMANTICS 1
4033 cat >>confdefs.h <<\_ACEOF
4034 #define _TANDEM_SOURCE 1
4037 # note- does not work on FreeBSD
4039 case "${host_os}" in
4041 ac_default_prefix=/usr/local
4042 CPPFLAGS=-I/usr/local/include
4043 LDFLAGS=-L/usr/local/lib
4047 ac_default_prefix=/usr
4048 if test ${sysconfdir} = '${prefix}/etc'; then
4051 if test ${mandir} = '${prefix}/man'; then
4052 mandir=/usr/share/man
4057 if test ${localstatedir} = '${prefix}/var'; then
4061 BUILD_PLATFORM=${build}
4062 BUILD_CPU=${build_cpu}
4063 BUILD_VENDOR=${build_vendor}
4064 BUILD_OS=${build_os}
4071 HOST_PLATFORM=${host}
4072 HOST_CPU=${host_cpu}
4073 HOST_VENDOR=${host_vendor}
4083 case "${host_os}" in
4113 if test -n "$ac_tool_prefix"; then
4114 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4115 set dummy ${ac_tool_prefix}uname; ac_word=$2
4116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4118 if test "${ac_cv_path_UNAME+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 UNAME=$ac_cv_path_UNAME
4145 if test -n "$UNAME"; then
4146 { echo "$as_me:$LINENO: result: $UNAME" >&5
4147 echo "${ECHO_T}$UNAME" >&6; }
4149 { echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6; }
4155 if test -z "$ac_cv_path_UNAME"; then
4157 # Extract the first word of "uname", so it can be a program name with args.
4158 set dummy uname; ac_word=$2
4159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4161 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 case $ac_pt_UNAME in
4166 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4176 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4188 if test -n "$ac_pt_UNAME"; then
4189 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4190 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4192 { echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6; }
4196 if test "x$ac_pt_UNAME" = x; then
4199 case $cross_compiling:$ac_tool_warned in
4201 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4202 whose name does not start with the host triplet. If you think this
4203 configuration is useful to you, please write to autoconf@gnu.org." >&5
4204 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4205 whose name does not start with the host triplet. If you think this
4206 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4207 ac_tool_warned=yes ;;
4212 UNAME="$ac_cv_path_UNAME"
4215 if test ! x"${UNAME}" = xNo; then
4216 PBX_OSREV=$(${UNAME} -r)
4226 # cross-compile checks
4227 if test "${cross_compiling}" = "yes";
4229 if test -n "$ac_tool_prefix"; then
4230 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4231 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4234 if test "${ac_cv_prog_CC+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 if test -n "$CC"; then
4259 { echo "$as_me:$LINENO: result: $CC" >&5
4260 echo "${ECHO_T}$CC" >&6; }
4262 { echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6; }
4268 if test -z "$ac_cv_prog_CC"; then
4270 # Extract the first word of "gcc", so it can be a program name with args.
4271 set dummy gcc; ac_word=$2
4272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 if test -n "$ac_ct_CC"; then
4278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_ac_ct_CC="gcc"
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4298 if test -n "$ac_ct_CC"; then
4299 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4300 echo "${ECHO_T}$ac_ct_CC" >&6; }
4302 { echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6; }
4306 if test "x$ac_ct_CC" = x; then
4309 case $cross_compiling:$ac_tool_warned in
4311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4312 whose name does not start with the host triplet. If you think this
4313 configuration is useful to you, please write to autoconf@gnu.org." >&5
4314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4315 whose name does not start with the host triplet. If you think this
4316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4317 ac_tool_warned=yes ;;
4325 if test -n "$ac_tool_prefix"; then
4326 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4327 set dummy ${ac_tool_prefix}g++; ac_word=$2
4328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4330 if test "${ac_cv_prog_CXX+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 if test -n "$CXX"; then
4334 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 if test -n "$CXX"; then
4355 { echo "$as_me:$LINENO: result: $CXX" >&5
4356 echo "${ECHO_T}$CXX" >&6; }
4358 { echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6; }
4364 if test -z "$ac_cv_prog_CXX"; then
4366 # Extract the first word of "g++", so it can be a program name with args.
4367 set dummy g++; ac_word=$2
4368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4370 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 if test -n "$ac_ct_CXX"; then
4374 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_ac_ct_CXX="g++"
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4394 if test -n "$ac_ct_CXX"; then
4395 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4396 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4398 { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4402 if test "x$ac_ct_CXX" = x; then
4405 case $cross_compiling:$ac_tool_warned in
4407 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4408 whose name does not start with the host triplet. If you think this
4409 configuration is useful to you, please write to autoconf@gnu.org." >&5
4410 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4411 whose name does not start with the host triplet. If you think this
4412 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4413 ac_tool_warned=yes ;;
4418 CXX="$ac_cv_prog_CXX"
4421 if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4423 set dummy ${ac_tool_prefix}ld; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_LD+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 if test -n "$LD"; then
4430 ac_cv_prog_LD="$LD" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_LD="${ac_tool_prefix}ld"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 if test -n "$LD"; then
4451 { echo "$as_me:$LINENO: result: $LD" >&5
4452 echo "${ECHO_T}$LD" >&6; }
4454 { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4460 if test -z "$ac_cv_prog_LD"; then
4462 # Extract the first word of "ld", so it can be a program name with args.
4463 set dummy ld; ac_word=$2
4464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4466 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 if test -n "$ac_ct_LD"; then
4470 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_ac_ct_LD="ld"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4490 if test -n "$ac_ct_LD"; then
4491 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4492 echo "${ECHO_T}$ac_ct_LD" >&6; }
4494 { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4498 if test "x$ac_ct_LD" = x; then
4501 case $cross_compiling:$ac_tool_warned in
4503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4504 whose name does not start with the host triplet. If you think this
4505 configuration is useful to you, please write to autoconf@gnu.org." >&5
4506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4507 whose name does not start with the host triplet. If you think this
4508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4509 ac_tool_warned=yes ;;
4517 if test -n "$ac_tool_prefix"; then
4518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4522 if test "${ac_cv_prog_RANLIB+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 if test -n "$RANLIB"; then
4526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 RANLIB=$ac_cv_prog_RANLIB
4546 if test -n "$RANLIB"; then
4547 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4548 echo "${ECHO_T}$RANLIB" >&6; }
4550 { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4556 if test -z "$ac_cv_prog_RANLIB"; then
4557 ac_ct_RANLIB=$RANLIB
4558 # Extract the first word of "ranlib", so it can be a program name with args.
4559 set dummy ranlib; ac_word=$2
4560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 if test -n "$ac_ct_RANLIB"; then
4566 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_ac_ct_RANLIB="ranlib"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4586 if test -n "$ac_ct_RANLIB"; then
4587 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4588 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4590 { echo "$as_me:$LINENO: result: no" >&5
4591 echo "${ECHO_T}no" >&6; }
4594 if test "x$ac_ct_RANLIB" = x; then
4597 case $cross_compiling:$ac_tool_warned in
4599 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4600 whose name does not start with the host triplet. If you think this
4601 configuration is useful to you, please write to autoconf@gnu.org." >&5
4602 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4603 whose name does not start with the host triplet. If you think this
4604 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4605 ac_tool_warned=yes ;;
4607 RANLIB=$ac_ct_RANLIB
4610 RANLIB="$ac_cv_prog_RANLIB"
4615 # Checks for programs.
4617 ac_cpp='$CPP $CPPFLAGS'
4618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4621 if test -n "$ac_tool_prefix"; then
4622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4623 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_prog_CC+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 if test -n "$CC"; then
4630 ac_cv_prog_CC="$CC" # Let the user override the test.
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 if test -n "$CC"; then
4651 { echo "$as_me:$LINENO: result: $CC" >&5
4652 echo "${ECHO_T}$CC" >&6; }
4654 { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4660 if test -z "$ac_cv_prog_CC"; then
4662 # Extract the first word of "gcc", so it can be a program name with args.
4663 set dummy gcc; ac_word=$2
4664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 if test -n "$ac_ct_CC"; then
4670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_prog_ac_ct_CC="gcc"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4690 if test -n "$ac_ct_CC"; then
4691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4692 echo "${ECHO_T}$ac_ct_CC" >&6; }
4694 { echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6; }
4698 if test "x$ac_ct_CC" = x; then
4701 case $cross_compiling:$ac_tool_warned in
4703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4704 whose name does not start with the host triplet. If you think this
4705 configuration is useful to you, please write to autoconf@gnu.org." >&5
4706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4707 whose name does not start with the host triplet. If you think this
4708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4709 ac_tool_warned=yes ;;
4717 if test -z "$CC"; then
4718 if test -n "$ac_tool_prefix"; then
4719 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.