2 # From configure.ac Revision: 290103 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk trunk.
6 # Report bugs to <https://issues.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='trunk'
581 PACKAGE_STRING='asterisk trunk'
582 PACKAGE_BUGREPORT='https://issues.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>
621 ac_default_prefix=/usr/local
622 ac_default_prefix=/usr/local
623 ac_default_prefix=/usr
634 program_transform_name
942 PRI_CALL_WAITING_INCLUDE
946 PRI_AOC_EVENTS_INCLUDE
958 PRI_HANGUP_FIX_INCLUDE
966 PRI_CALL_HOLD_INCLUDE
969 PRI_CALL_REROUTING_LIB
970 PRI_CALL_REROUTING_INCLUDE
971 PRI_CALL_REROUTING_DIR
972 PBX_PRI_CALL_REROUTING
974 PRI_SETUP_KEYPAD_INCLUDE
977 PRI_INBANDDISCONNECT_LIB
978 PRI_INBANDDISCONNECT_INCLUDE
979 PRI_INBANDDISCONNECT_DIR
980 PBX_PRI_INBANDDISCONNECT
982 PRI_PROG_W_CAUSE_INCLUDE
985 PRI_SERVICE_MESSAGES_LIB
986 PRI_SERVICE_MESSAGES_INCLUDE
987 PRI_SERVICE_MESSAGES_DIR
988 PBX_PRI_SERVICE_MESSAGES
989 PRI_REVERSE_CHARGE_LIB
990 PRI_REVERSE_CHARGE_INCLUDE
991 PRI_REVERSE_CHARGE_DIR
992 PBX_PRI_REVERSE_CHARGE
1026 SPEEX_PREPROCESS_LIB
1027 SPEEX_PREPROCESS_INCLUDE
1028 SPEEX_PREPROCESS_DIR
1029 PBX_SPEEX_PREPROCESS
1104 PBX_PTHREAD_RWLOCK_INITIALIZER
1105 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
1109 AST_DECLARATION_AFTER_STATEMENT
1111 AST_NO_STRICT_OVERFLOW
1119 PBX_MISDN_FAC_RESULT
1149 GENERIC_ODBC_INCLUDE
1151 PBX_SYSLOG_FACILITY_LOG_AUTH
1152 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
1153 PBX_SYSLOG_FACILITY_LOG_CRON
1154 PBX_SYSLOG_FACILITY_LOG_DAEMON
1155 PBX_SYSLOG_FACILITY_LOG_FTP
1156 PBX_SYSLOG_FACILITY_LOG_KERN
1157 PBX_SYSLOG_FACILITY_LOG_LPR
1158 PBX_SYSLOG_FACILITY_LOG_MAIL
1159 PBX_SYSLOG_FACILITY_LOG_NEWS
1160 PBX_SYSLOG_FACILITY_LOG_SYSLOG
1161 PBX_SYSLOG_FACILITY_LOG_UUCP
1165 ac_precious_vars='build_alias
1180 # Initialize some variables set by options.
1182 ac_init_version=false
1183 # The variables have the same names as the options, with
1184 # dashes changed to underlines.
1185 cache_file=/dev/null
1192 program_transform_name=s,x,x,
1200 # Installation directory options.
1201 # These are left unexpanded so users can "make install exec_prefix=/foo"
1202 # and all the variables that are supposed to be based on exec_prefix
1203 # by default will actually change.
1204 # Use braces instead of parens because sh, perl, etc. also accept them.
1205 # (The list follows the same order as the GNU Coding Standards.)
1206 bindir='${exec_prefix}/bin'
1207 sbindir='${exec_prefix}/sbin'
1208 libexecdir='${exec_prefix}/libexec'
1209 datarootdir='${prefix}/share'
1210 datadir='${datarootdir}'
1211 sysconfdir='${prefix}/etc'
1212 sharedstatedir='${prefix}/com'
1213 localstatedir='${prefix}/var'
1214 includedir='${prefix}/include'
1215 oldincludedir='/usr/include'
1216 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1217 infodir='${datarootdir}/info'
1222 libdir='${exec_prefix}/lib'
1223 localedir='${datarootdir}/locale'
1224 mandir='${datarootdir}/man'
1230 # If the previous option needs an argument, assign it.
1231 if test -n "$ac_prev"; then
1232 eval $ac_prev=\$ac_option
1238 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1242 # Accept the important Cygnus configure options, so we can diagnose typos.
1244 case $ac_dashdash$ac_option in
1248 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1250 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1251 bindir=$ac_optarg ;;
1253 -build | --build | --buil | --bui | --bu)
1254 ac_prev=build_alias ;;
1255 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1256 build_alias=$ac_optarg ;;
1258 -cache-file | --cache-file | --cache-fil | --cache-fi \
1259 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1260 ac_prev=cache_file ;;
1261 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1262 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1263 cache_file=$ac_optarg ;;
1265 --config-cache | -C)
1266 cache_file=config.cache ;;
1268 -datadir | --datadir | --datadi | --datad)
1270 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1271 datadir=$ac_optarg ;;
1273 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1274 | --dataroo | --dataro | --datar)
1275 ac_prev=datarootdir ;;
1276 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1277 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1278 datarootdir=$ac_optarg ;;
1280 -disable-* | --disable-*)
1281 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1285 { (exit 1); exit 1; }; }
1286 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1287 eval enable_$ac_feature=no ;;
1289 -docdir | --docdir | --docdi | --doc | --do)
1291 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1292 docdir=$ac_optarg ;;
1294 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1296 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1297 dvidir=$ac_optarg ;;
1299 -enable-* | --enable-*)
1300 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1304 { (exit 1); exit 1; }; }
1305 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1306 eval enable_$ac_feature=\$ac_optarg ;;
1308 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1309 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1310 | --exec | --exe | --ex)
1311 ac_prev=exec_prefix ;;
1312 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1313 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1314 | --exec=* | --exe=* | --ex=*)
1315 exec_prefix=$ac_optarg ;;
1317 -gas | --gas | --ga | --g)
1318 # Obsolete; use --with-gas.
1321 -help | --help | --hel | --he | -h)
1322 ac_init_help=long ;;
1323 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1324 ac_init_help=recursive ;;
1325 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1326 ac_init_help=short ;;
1328 -host | --host | --hos | --ho)
1329 ac_prev=host_alias ;;
1330 -host=* | --host=* | --hos=* | --ho=*)
1331 host_alias=$ac_optarg ;;
1333 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1335 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1337 htmldir=$ac_optarg ;;
1339 -includedir | --includedir | --includedi | --included | --include \
1340 | --includ | --inclu | --incl | --inc)
1341 ac_prev=includedir ;;
1342 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1343 | --includ=* | --inclu=* | --incl=* | --inc=*)
1344 includedir=$ac_optarg ;;
1346 -infodir | --infodir | --infodi | --infod | --info | --inf)
1348 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1349 infodir=$ac_optarg ;;
1351 -libdir | --libdir | --libdi | --libd)
1353 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1354 libdir=$ac_optarg ;;
1356 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1357 | --libexe | --libex | --libe)
1358 ac_prev=libexecdir ;;
1359 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1360 | --libexe=* | --libex=* | --libe=*)
1361 libexecdir=$ac_optarg ;;
1363 -localedir | --localedir | --localedi | --localed | --locale)
1364 ac_prev=localedir ;;
1365 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1366 localedir=$ac_optarg ;;
1368 -localstatedir | --localstatedir | --localstatedi | --localstated \
1369 | --localstate | --localstat | --localsta | --localst | --locals)
1370 ac_prev=localstatedir ;;
1371 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1372 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1373 localstatedir=$ac_optarg ;;
1375 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1377 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1378 mandir=$ac_optarg ;;
1380 -nfp | --nfp | --nf)
1381 # Obsolete; use --without-fp.
1384 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1385 | --no-cr | --no-c | -n)
1388 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1389 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1392 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1393 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1394 | --oldin | --oldi | --old | --ol | --o)
1395 ac_prev=oldincludedir ;;
1396 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1397 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1398 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1399 oldincludedir=$ac_optarg ;;
1401 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1403 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1404 prefix=$ac_optarg ;;
1406 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1407 | --program-pre | --program-pr | --program-p)
1408 ac_prev=program_prefix ;;
1409 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1410 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1411 program_prefix=$ac_optarg ;;
1413 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1414 | --program-suf | --program-su | --program-s)
1415 ac_prev=program_suffix ;;
1416 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1417 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1418 program_suffix=$ac_optarg ;;
1420 -program-transform-name | --program-transform-name \
1421 | --program-transform-nam | --program-transform-na \
1422 | --program-transform-n | --program-transform- \
1423 | --program-transform | --program-transfor \
1424 | --program-transfo | --program-transf \
1425 | --program-trans | --program-tran \
1426 | --progr-tra | --program-tr | --program-t)
1427 ac_prev=program_transform_name ;;
1428 -program-transform-name=* | --program-transform-name=* \
1429 | --program-transform-nam=* | --program-transform-na=* \
1430 | --program-transform-n=* | --program-transform-=* \
1431 | --program-transform=* | --program-transfor=* \
1432 | --program-transfo=* | --program-transf=* \
1433 | --program-trans=* | --program-tran=* \
1434 | --progr-tra=* | --program-tr=* | --program-t=*)
1435 program_transform_name=$ac_optarg ;;
1437 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1439 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1440 pdfdir=$ac_optarg ;;
1442 -psdir | --psdir | --psdi | --psd | --ps)
1444 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1448 | -silent | --silent | --silen | --sile | --sil)
1451 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1453 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1455 sbindir=$ac_optarg ;;
1457 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1458 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1459 | --sharedst | --shareds | --shared | --share | --shar \
1461 ac_prev=sharedstatedir ;;
1462 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1463 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1464 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1466 sharedstatedir=$ac_optarg ;;
1468 -site | --site | --sit)
1470 -site=* | --site=* | --sit=*)
1473 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1475 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1476 srcdir=$ac_optarg ;;
1478 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1479 | --syscon | --sysco | --sysc | --sys | --sy)
1480 ac_prev=sysconfdir ;;
1481 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1482 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1483 sysconfdir=$ac_optarg ;;
1485 -target | --target | --targe | --targ | --tar | --ta | --t)
1486 ac_prev=target_alias ;;
1487 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1488 target_alias=$ac_optarg ;;
1490 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1493 -version | --version | --versio | --versi | --vers | -V)
1494 ac_init_version=: ;;
1497 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1498 # Reject names that are not valid shell variable names.
1499 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1500 { echo "$as_me: error: invalid package name: $ac_package" >&2
1501 { (exit 1); exit 1; }; }
1502 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1503 eval with_$ac_package=\$ac_optarg ;;
1505 -without-* | --without-*)
1506 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1507 # Reject names that are not valid shell variable names.
1508 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1509 { echo "$as_me: error: invalid package name: $ac_package" >&2
1510 { (exit 1); exit 1; }; }
1511 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1512 eval with_$ac_package=no ;;
1515 # Obsolete; use --with-x.
1518 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1519 | --x-incl | --x-inc | --x-in | --x-i)
1520 ac_prev=x_includes ;;
1521 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1522 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1523 x_includes=$ac_optarg ;;
1525 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1526 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1527 ac_prev=x_libraries ;;
1528 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1529 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1530 x_libraries=$ac_optarg ;;
1532 -*) { echo "$as_me: error: unrecognized option: $ac_option
1533 Try \`$0 --help' for more information." >&2
1534 { (exit 1); exit 1; }; }
1538 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1539 # Reject names that are not valid shell variable names.
1540 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1541 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1542 { (exit 1); exit 1; }; }
1543 eval $ac_envvar=\$ac_optarg
1544 export $ac_envvar ;;
1547 # FIXME: should be removed in autoconf 3.0.
1548 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1549 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1550 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1551 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1557 if test -n "$ac_prev"; then
1558 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1559 { echo "$as_me: error: missing argument to $ac_option" >&2
1560 { (exit 1); exit 1; }; }
1563 # Be sure to have absolute directory names.
1564 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1565 datadir sysconfdir sharedstatedir localstatedir includedir \
1566 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1567 libdir localedir mandir
1569 eval ac_val=\$$ac_var
1571 [\\/$]* | ?:[\\/]* ) continue;;
1572 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1574 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1575 { (exit 1); exit 1; }; }
1578 # There might be people who depend on the old broken behavior: `$host'
1579 # used to hold the argument of --host etc.
1580 # FIXME: To remove some day.
1583 target=$target_alias
1585 # FIXME: To remove some day.
1586 if test "x$host_alias" != x; then
1587 if test "x$build_alias" = x; then
1588 cross_compiling=maybe
1589 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1590 If a cross compiler is detected then cross compile mode will be used." >&2
1591 elif test "x$build_alias" != "x$host_alias"; then
1597 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1599 test "$silent" = yes && exec 6>/dev/null
1602 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1603 ac_ls_di=`ls -di .` &&
1604 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1605 { echo "$as_me: error: Working directory cannot be determined" >&2
1606 { (exit 1); exit 1; }; }
1607 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1608 { echo "$as_me: error: pwd does not report name of working directory" >&2
1609 { (exit 1); exit 1; }; }
1612 # Find the source files, if location was not specified.
1613 if test -z "$srcdir"; then
1614 ac_srcdir_defaulted=yes
1615 # Try the directory containing this script, then the parent directory.
1616 ac_confdir=`$as_dirname -- "$0" ||
1617 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1618 X"$0" : 'X\(//\)[^/]' \| \
1619 X"$0" : 'X\(//\)$' \| \
1620 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1640 if test ! -r "$srcdir/$ac_unique_file"; then
1644 ac_srcdir_defaulted=no
1646 if test ! -r "$srcdir/$ac_unique_file"; then
1647 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1648 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1649 { (exit 1); exit 1; }; }
1651 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1653 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1654 { (exit 1); exit 1; }; }
1656 # When building in place, set srcdir=.
1657 if test "$ac_abs_confdir" = "$ac_pwd"; then
1660 # Remove unnecessary trailing slashes from srcdir.
1661 # Double slashes in file names in object file debugging info
1662 # mess up M-x gdb in Emacs.
1664 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1666 for ac_var in $ac_precious_vars; do
1667 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1668 eval ac_env_${ac_var}_value=\$${ac_var}
1669 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1670 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1674 # Report the --help message.
1676 if test "$ac_init_help" = "long"; then
1677 # Omit some internal or obsolete options to make the list less imposing.
1678 # This message is too long to be a string in the A/UX 3.1 sh.
1680 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1682 Usage: $0 [OPTION]... [VAR=VALUE]...
1684 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1685 VAR=VALUE. See below for descriptions of some of the useful variables.
1687 Defaults for the options are specified in brackets.
1690 -h, --help display this help and exit
1691 --help=short display options specific to this package
1692 --help=recursive display the short help of all the included packages
1693 -V, --version display version information and exit
1694 -q, --quiet, --silent do not print \`checking...' messages
1695 --cache-file=FILE cache test results in FILE [disabled]
1696 -C, --config-cache alias for \`--cache-file=config.cache'
1697 -n, --no-create do not create output files
1698 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1700 Installation directories:
1701 --prefix=PREFIX install architecture-independent files in PREFIX
1702 [$ac_default_prefix]
1703 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1706 By default, \`make install' will install all the files in
1707 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1708 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1709 for instance \`--prefix=\$HOME'.
1711 For better control, use the options below.
1713 Fine tuning of the installation directories:
1714 --bindir=DIR user executables [EPREFIX/bin]
1715 --sbindir=DIR system admin executables [EPREFIX/sbin]
1716 --libexecdir=DIR program executables [EPREFIX/libexec]
1717 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1718 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1719 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1720 --libdir=DIR object code libraries [EPREFIX/lib]
1721 --includedir=DIR C header files [PREFIX/include]
1722 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1723 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1724 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1725 --infodir=DIR info documentation [DATAROOTDIR/info]
1726 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1727 --mandir=DIR man documentation [DATAROOTDIR/man]
1728 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1729 --htmldir=DIR html documentation [DOCDIR]
1730 --dvidir=DIR dvi documentation [DOCDIR]
1731 --pdfdir=DIR pdf documentation [DOCDIR]
1732 --psdir=DIR ps documentation [DOCDIR]
1738 --build=BUILD configure for building on BUILD [guessed]
1739 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1743 if test -n "$ac_init_help"; then
1744 case $ac_init_help in
1745 short | recursive ) echo "Configuration of asterisk trunk:";;
1750 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1751 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1752 --enable-dev-mode Turn on developer mode
1753 --enable-coverage Turn on code coverage tracking (for gcov)
1754 --disable-largefile omit support for large files
1755 --enable-internal-poll Use Asterisk's poll implementation
1756 --disable-xmldoc Explicity disable XML documentation
1759 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1760 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1761 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1762 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1763 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1764 --with-bluetooth=PATH use Bluetooth files in PATH
1765 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1766 --with-curses=PATH use curses files in PATH
1767 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1768 --with-dahdi=PATH use DAHDI files in PATH
1769 --with-execinfo=PATH use Stack Backtrace files in PATH
1770 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1772 --with-gtk2=PATH use gtk2 files in PATH
1773 --with-gmime=PATH use GMime files in PATH
1774 --with-h323=PATH use OpenH323 files in PATH
1775 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1776 --with-ical=PATH use iCal files in PATH
1777 --with-iconv=PATH use Iconv files in PATH
1778 --with-iksemel=PATH use Iksemel Jabber files in PATH
1779 --with-imap=PATH use UW IMAP Toolkit files in PATH
1780 --with-inotify=PATH use inotify support files in PATH
1781 --with-iodbc=PATH use iODBC files in PATH
1782 --with-isdnnet=PATH use ISDN4Linux files in PATH
1783 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1784 --with-kqueue=PATH use kqueue support files in PATH
1785 --with-ldap=PATH use OpenLDAP files in PATH
1786 --with-libcurl=DIR look for the curl library in DIR
1787 --with-libxml2=PATH use LibXML2 files in PATH
1788 --with-ltdl=PATH use libtool files in PATH
1789 --with-lua=PATH use Lua files in PATH
1790 --with-misdn=PATH use mISDN user files in PATH
1791 --with-mysqlclient=PATH use MySQL client files in PATH
1792 --with-nbs=PATH use Network Broadcast Sound files in PATH
1793 --with-ncurses=PATH use ncurses files in PATH
1794 --with-neon=PATH use neon files in PATH
1795 --with-neon29=PATH use neon29 files in PATH
1796 --with-netsnmp=PATH use Net-SNMP files in PATH
1797 --with-newt=PATH use newt files in PATH
1798 --with-ogg=PATH use OGG files in PATH
1799 --with-openais=PATH use OpenAIS files in PATH
1800 --with-openr2=PATH use MFR2 files in PATH
1801 --with-osptk=PATH use OSP Toolkit files in PATH
1802 --with-oss=PATH use Open Sound System files in PATH
1803 --with-postgres=PATH use PostgreSQL files in PATH
1804 --with-popt=PATH use popt files in PATH
1805 --with-portaudio=PATH use PortAudio files in PATH
1806 --with-pri=PATH use ISDN PRI files in PATH
1807 --with-pwlib=PATH use PWlib files in PATH
1808 --with-radius=PATH use Radius Client files in PATH
1809 --with-resample=PATH use LIBRESAMPLE files in PATH
1810 --with-sdl=PATH use Sdl files in PATH
1811 --with-SDL_image=PATH use Sdl Image files in PATH
1812 --with-sounds-cache=PATH
1813 use cached sound tarfiles in PATH
1814 --with-spandsp=PATH use SPANDSP files in PATH
1815 --with-ss7=PATH use ISDN SS7 files in PATH
1816 --with-speex=PATH use Speex files in PATH
1817 --with-speex=PATH use Speex preprocess routines files in PATH
1818 --with-speexdsp=PATH use SpeexDSP files in PATH
1819 --with-sqlite=PATH use SQLite files in PATH
1820 --with-sqlite3=PATH use SQLite files in PATH
1821 --with-srtp=PATH use Secure RTP files in PATH
1822 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1823 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1824 --with-tds=PATH use FreeTDS files in PATH
1825 --with-termcap=PATH use Termcap files in PATH
1826 --with-timerfd=PATH use timerfd files in PATH
1827 --with-tinfo=PATH use Term Info files in PATH
1828 --with-tonezone=PATH use tonezone files in PATH
1829 --with-unixodbc=PATH use unixODBC files in PATH
1830 --with-usb=PATH use usb files in PATH
1831 --with-vorbis=PATH use Vorbis files in PATH
1832 --with-vpb=PATH use Voicetronix API files in PATH
1833 --with-x11=PATH use X11 files in PATH
1834 --with-z=PATH use zlib compression files in PATH
1836 Some influential environment variables:
1837 CC C compiler command
1838 CFLAGS C compiler flags
1839 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1840 nonstandard directory <lib dir>
1841 LIBS libraries to pass to the linker, e.g. -l<library>
1842 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1843 you have headers in a nonstandard directory <include dir>
1845 CXX C++ compiler command
1846 CXXFLAGS C++ compiler flags
1847 CXXCPP C++ preprocessor
1849 Use these variables to override the choices made by `configure' or to help
1850 it to find libraries and programs with nonstandard names/locations.
1852 Report bugs to <https://issues.asterisk.org>.
1857 if test "$ac_init_help" = "recursive"; then
1858 # If there are subdirs, report their specific --help.
1859 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1860 test -d "$ac_dir" || continue
1864 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1866 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1867 # A ".." for each directory in $ac_dir_suffix.
1868 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1869 case $ac_top_builddir_sub in
1870 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1871 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1874 ac_abs_top_builddir=$ac_pwd
1875 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1876 # for backward compatibility:
1877 ac_top_builddir=$ac_top_build_prefix
1880 .) # We are building in place.
1882 ac_top_srcdir=$ac_top_builddir_sub
1883 ac_abs_top_srcdir=$ac_pwd ;;
1884 [\\/]* | ?:[\\/]* ) # Absolute name.
1885 ac_srcdir=$srcdir$ac_dir_suffix;
1886 ac_top_srcdir=$srcdir
1887 ac_abs_top_srcdir=$srcdir ;;
1889 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1890 ac_top_srcdir=$ac_top_build_prefix$srcdir
1891 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1893 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1895 cd "$ac_dir" || { ac_status=$?; continue; }
1896 # Check for guested configure.
1897 if test -f "$ac_srcdir/configure.gnu"; then
1899 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1900 elif test -f "$ac_srcdir/configure"; then
1902 $SHELL "$ac_srcdir/configure" --help=recursive
1904 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1906 cd "$ac_pwd" || { ac_status=$?; break; }
1910 test -n "$ac_init_help" && exit $ac_status
1911 if $ac_init_version; then
1913 asterisk configure trunk
1914 generated by GNU Autoconf 2.61
1916 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1917 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1918 This configure script is free software; the Free Software Foundation
1919 gives unlimited permission to copy, distribute and modify it.
1925 cat >config.log <<_ACEOF
1926 This file contains any messages produced by compilers while
1927 running configure, to aid debugging if configure makes a mistake.
1929 It was created by asterisk $as_me trunk, which was
1930 generated by GNU Autoconf 2.61. Invocation command line was
1942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1949 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1951 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1952 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1954 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1955 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1956 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1957 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 echo "PATH: $as_dir"
1982 # Keep a trace of the command line.
1983 # Strip out --no-create and --no-recursion so they do not pile up.
1984 # Strip out --silent because we don't want to record it for future runs.
1985 # Also quote any args containing shell meta-characters.
1986 # Make two passes to allow for proper duplicate-argument suppression.
1990 ac_must_keep_next=false
1996 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1998 | -silent | --silent | --silen | --sile | --sil)
2001 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2006 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2007 if test $ac_must_keep_next = true; then
2008 ac_must_keep_next=false # Got value, back to normal.
2011 *=* | --config-cache | -C | -disable-* | --disable-* \
2012 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2013 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2014 | -with-* | --with-* | -without-* | --without-* | --x)
2015 case "$ac_configure_args0 " in
2016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2019 -* ) ac_must_keep_next=true ;;
2022 ac_configure_args="$ac_configure_args '$ac_arg'"
2027 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2028 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2030 # When interrupted or exit'd, cleanup temporary files, and complete
2031 # config.log. We remove comments because anyway the quotes in there
2032 # would cause problems or look ugly.
2033 # WARNING: Use '\'' to represent an apostrophe within the trap.
2034 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2035 trap 'exit_status=$?
2036 # Save into config.log some information that might help in debugging.
2041 ## ---------------- ##
2042 ## Cache variables. ##
2043 ## ---------------- ##
2046 # The following way of writing the cache mishandles newlines in values,
2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049 eval ac_val=\$$ac_var
2053 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2054 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2057 _ | IFS | as_nl) ;; #(
2058 *) $as_unset $ac_var ;;
2063 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2064 *${as_nl}ac_space=\ *)
2066 "s/'\''/'\''\\\\'\'''\''/g;
2067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2078 ## ----------------- ##
2079 ## Output variables. ##
2080 ## ----------------- ##
2083 for ac_var in $ac_subst_vars
2085 eval ac_val=\$$ac_var
2087 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 echo "$ac_var='\''$ac_val'\''"
2093 if test -n "$ac_subst_files"; then
2095 ## ------------------- ##
2096 ## File substitutions. ##
2097 ## ------------------- ##
2100 for ac_var in $ac_subst_files
2102 eval ac_val=\$$ac_var
2104 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106 echo "$ac_var='\''$ac_val'\''"
2111 if test -s confdefs.h; then
2121 test "$ac_signal" != 0 &&
2122 echo "$as_me: caught signal $ac_signal"
2123 echo "$as_me: exit $exit_status"
2125 rm -f core *.core core.conftest.* &&
2126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2129 for ac_signal in 1 2 13 15; do
2130 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2135 rm -f -r conftest* confdefs.h
2137 # Predefined preprocessor variables.
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_NAME "$PACKAGE_NAME"
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_STRING "$PACKAGE_STRING"
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164 # Let the site file select an alternate cache file if it wants to.
2165 # Prefer explicitly selected file to automatically selected ones.
2166 if test -n "$CONFIG_SITE"; then
2167 set x "$CONFIG_SITE"
2168 elif test "x$prefix" != xNONE; then
2169 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2171 set x "$ac_default_prefix/share/config.site" \
2172 "$ac_default_prefix/etc/config.site"
2177 if test -r "$ac_site_file"; then
2178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2179 echo "$as_me: loading site script $ac_site_file" >&6;}
2180 sed 's/^/| /' "$ac_site_file" >&5
2185 if test -r "$cache_file"; then
2186 # Some versions of bash will fail to source /dev/null (special
2187 # files actually), so we avoid doing that.
2188 if test -f "$cache_file"; then
2189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2190 echo "$as_me: loading cache $cache_file" >&6;}
2192 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193 *) . "./$cache_file";;
2197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2198 echo "$as_me: creating cache $cache_file" >&6;}
2202 ac_header_list="$ac_header_list utime.h"
2203 # Check that the precious variables saved in the cache have kept the same
2205 ac_cache_corrupted=false
2206 for ac_var in $ac_precious_vars; do
2207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2208 eval ac_new_set=\$ac_env_${ac_var}_set
2209 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2210 eval ac_new_val=\$ac_env_${ac_var}_value
2211 case $ac_old_set,$ac_new_set in
2213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2215 ac_cache_corrupted=: ;;
2217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2219 ac_cache_corrupted=: ;;
2222 if test "x$ac_old_val" != "x$ac_new_val"; then
2223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2226 echo "$as_me: former value: $ac_old_val" >&2;}
2227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2228 echo "$as_me: current value: $ac_new_val" >&2;}
2229 ac_cache_corrupted=:
2232 # Pass precious variables to config.status.
2233 if test "$ac_new_set" = set; then
2235 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2236 *) ac_arg=$ac_var=$ac_new_val ;;
2238 case " $ac_configure_args " in
2239 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2240 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2244 if $ac_cache_corrupted; then
2245 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2246 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2247 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2249 { (exit 1); exit 1; }; }
2277 ac_cpp='$CPP $CPPFLAGS'
2278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2284 # cross-compile macros
2286 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2287 if test -f "$ac_dir/install-sh"; then
2289 ac_install_sh="$ac_aux_dir/install-sh -c"
2291 elif test -f "$ac_dir/install.sh"; then
2293 ac_install_sh="$ac_aux_dir/install.sh -c"
2295 elif test -f "$ac_dir/shtool"; then
2297 ac_install_sh="$ac_aux_dir/shtool install -c"
2301 if test -z "$ac_aux_dir"; then
2302 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2303 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2304 { (exit 1); exit 1; }; }
2307 # These three variables are undocumented and unsupported,
2308 # and are intended to be withdrawn in a future Autoconf release.
2309 # They can cause serious problems if a builder's source tree is in a directory
2310 # whose full name contains unusual characters.
2311 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2316 # Make sure we can run config.sub.
2317 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2318 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2319 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2320 { (exit 1); exit 1; }; }
2322 { echo "$as_me:$LINENO: checking build system type" >&5
2323 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2324 if test "${ac_cv_build+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 ac_build_alias=$build_alias
2328 test "x$ac_build_alias" = x &&
2329 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2330 test "x$ac_build_alias" = x &&
2331 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2332 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2333 { (exit 1); exit 1; }; }
2334 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2335 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2336 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2337 { (exit 1); exit 1; }; }
2340 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2341 echo "${ECHO_T}$ac_cv_build" >&6; }
2342 case $ac_cv_build in
2344 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2345 echo "$as_me: error: invalid value of canonical build" >&2;}
2346 { (exit 1); exit 1; }; };;
2349 ac_save_IFS=$IFS; IFS='-'
2355 # Remember, the first character of IFS is used to create $*,
2356 # except with old shells:
2359 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2362 { echo "$as_me:$LINENO: checking host system type" >&5
2363 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2364 if test "${ac_cv_host+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 if test "x$host_alias" = x; then
2368 ac_cv_host=$ac_cv_build
2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2371 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2372 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2373 { (exit 1); exit 1; }; }
2377 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2378 echo "${ECHO_T}$ac_cv_host" >&6; }
2381 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2382 echo "$as_me: error: invalid value of canonical host" >&2;}
2383 { (exit 1); exit 1; }; };;
2386 ac_save_IFS=$IFS; IFS='-'
2392 # Remember, the first character of IFS is used to create $*,
2393 # except with old shells:
2396 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2400 # check existence of the package
2404 for ac_dir in `pwd` "$srcdir"/`pwd`; do
2405 if test -f "$ac_dir/install-sh"; then
2407 ac_install_sh="$ac_aux_dir/install-sh -c"
2409 elif test -f "$ac_dir/install.sh"; then
2411 ac_install_sh="$ac_aux_dir/install.sh -c"
2413 elif test -f "$ac_dir/shtool"; then
2415 ac_install_sh="$ac_aux_dir/shtool install -c"
2419 if test -z "$ac_aux_dir"; then
2420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&5
2421 echo "$as_me: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&2;}
2422 { (exit 1); exit 1; }; }
2425 # These three variables are undocumented and unsupported,
2426 # and are intended to be withdrawn in a future Autoconf release.
2427 # They can cause serious problems if a builder's source tree is in a directory
2428 # whose full name contains unusual characters.
2429 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2430 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2431 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2438 # preserve any CFLAGS or LDFLAGS that may be set
2439 # NOTE: This must be done before calling any macros that end up
2440 # calling AC_PROG_CC or the like, since they will set a default
2441 # set of CFLAGS ("-g -O2") if the user did not supply any, and
2442 # we don't want those default flags to be carried over into the
2443 # rest of the build system since we have other means of controlling
2444 # debugging symbol generation and optimization.
2445 CONFIG_CFLAGS="${CFLAGS}"
2446 CONFIG_LDFLAGS="${LDFLAGS}"
2450 # specify output header file
2451 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2455 cat >>confdefs.h <<\_ACEOF
2456 #define _GNU_SOURCE 1
2461 ac_cpp='$CPP $CPPFLAGS'
2462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465 if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2467 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_CC+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 if test -n "$CC"; then
2495 { echo "$as_me:$LINENO: result: $CC" >&5
2496 echo "${ECHO_T}$CC" >&6; }
2498 { echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6; }
2504 if test -z "$ac_cv_prog_CC"; then
2506 # Extract the first word of "gcc", so it can be a program name with args.
2507 set dummy gcc; ac_word=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 if test -n "$ac_ct_CC"; then
2514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_ac_ct_CC="gcc"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2534 if test -n "$ac_ct_CC"; then
2535 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2536 echo "${ECHO_T}$ac_ct_CC" >&6; }
2538 { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2542 if test "x$ac_ct_CC" = x; then
2545 case $cross_compiling:$ac_tool_warned in
2547 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2548 whose name does not start with the host triplet. If you think this
2549 configuration is useful to you, please write to autoconf@gnu.org." >&5
2550 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2551 whose name does not start with the host triplet. If you think this
2552 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2553 ac_tool_warned=yes ;;
2561 if test -z "$CC"; then
2562 if test -n "$ac_tool_prefix"; then
2563 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2564 set dummy ${ac_tool_prefix}cc; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_CC="${ac_tool_prefix}cc"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 if test -n "$CC"; then
2592 { echo "$as_me:$LINENO: result: $CC" >&5
2593 echo "${ECHO_T}$CC" >&6; }
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2602 if test -z "$CC"; then
2603 # Extract the first word of "cc", so it can be a program name with args.
2604 set dummy cc; ac_word=$2
2605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2607 if test "${ac_cv_prog_CC+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2622 ac_prog_rejected=yes
2626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 if test $ac_prog_rejected = yes; then
2634 # We found a bogon in the path, so make sure we never use it.
2635 set dummy $ac_cv_prog_CC
2637 if test $# != 0; then
2638 # We chose a different compiler from the bogus one.
2639 # However, it has the same basename, so the bogon will be chosen
2640 # first if we set CC to just the basename; use the full file name.
2642 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2648 if test -n "$CC"; then
2649 { echo "$as_me:$LINENO: result: $CC" >&5
2650 echo "${ECHO_T}$CC" >&6; }
2652 { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2658 if test -z "$CC"; then
2659 if test -n "$ac_tool_prefix"; then
2660 for ac_prog in cl.exe
2662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2666 if test "${ac_cv_prog_CC+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 if test -n "$CC"; then
2691 { echo "$as_me:$LINENO: result: $CC" >&5
2692 echo "${ECHO_T}$CC" >&6; }
2694 { echo "$as_me:$LINENO: result: no" >&5
2695 echo "${ECHO_T}no" >&6; }
2699 test -n "$CC" && break
2702 if test -z "$CC"; then
2704 for ac_prog in cl.exe
2706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2707 set dummy $ac_prog; ac_word=$2
2708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 if test -n "$ac_ct_CC"; then
2714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_prog_ac_ct_CC="$ac_prog"
2724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2734 if test -n "$ac_ct_CC"; then
2735 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2736 echo "${ECHO_T}$ac_ct_CC" >&6; }
2738 { echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6; }
2743 test -n "$ac_ct_CC" && break
2746 if test "x$ac_ct_CC" = x; then
2749 case $cross_compiling:$ac_tool_warned in
2751 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2752 whose name does not start with the host triplet. If you think this
2753 configuration is useful to you, please write to autoconf@gnu.org." >&5
2754 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2755 whose name does not start with the host triplet. If you think this
2756 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2757 ac_tool_warned=yes ;;
2766 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2767 See \`config.log' for more details." >&5
2768 echo "$as_me: error: no acceptable C compiler found in \$PATH
2769 See \`config.log' for more details." >&2;}
2770 { (exit 1); exit 1; }; }
2772 # Provide some information about the compiler.
2773 echo "$as_me:$LINENO: checking for C compiler version" >&5
2774 ac_compiler=`set X $ac_compile; echo $2`
2775 { (ac_try="$ac_compiler --version >&5"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compiler --version >&5") 2>&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }
2785 { (ac_try="$ac_compiler -v >&5"
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_compiler -v >&5") 2>&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }
2795 { (ac_try="$ac_compiler -V >&5"
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_compiler -V >&5") 2>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }
2806 cat >conftest.$ac_ext <<_ACEOF
2809 cat confdefs.h >>conftest.$ac_ext
2810 cat >>conftest.$ac_ext <<_ACEOF
2811 /* end confdefs.h. */
2821 ac_clean_files_save=$ac_clean_files
2822 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2823 # Try to create an executable without -o first, disregard a.out.
2824 # It will help us diagnose broken compilers, and finding out an intuition
2826 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2827 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2828 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2830 # List of possible output files, starting from the most likely.
2831 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2832 # only as a last resort. b.out is created by i960 compilers.
2833 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2835 # The IRIX 6 linker writes into existing files which may not be
2836 # executable, retaining their permissions. Remove them first so a
2837 # subsequent execution test works.
2839 for ac_file in $ac_files
2842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2843 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2848 if { (ac_try="$ac_link_default"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_link_default") 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; then
2858 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2859 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2860 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2861 # so that the user can short-circuit this test for compilers unknown to
2863 for ac_file in $ac_files ''
2865 test -f "$ac_file" || continue
2867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2870 # We found the default executable, but exeext='' is most
2874 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2876 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2878 # We set ac_cv_exeext here because the later test for it is not
2879 # safe: cross compilers may not add the suffix if given an `-o'
2880 # argument, so we may need to know it at that point already.
2881 # Even if this section looks crufty: it has the advantage of
2888 test "$ac_cv_exeext" = no && ac_cv_exeext=
2894 { echo "$as_me:$LINENO: result: $ac_file" >&5
2895 echo "${ECHO_T}$ac_file" >&6; }
2896 if test -z "$ac_file"; then
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2901 See \`config.log' for more details." >&5
2902 echo "$as_me: error: C compiler cannot create executables
2903 See \`config.log' for more details." >&2;}
2904 { (exit 77); exit 77; }; }
2907 ac_exeext=$ac_cv_exeext
2909 # Check that the compiler produces executables we can run. If not, either
2910 # the compiler is broken, or we cross compile.
2911 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2912 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2913 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2914 # If not cross compiling, check that we can run a simple program.
2915 if test "$cross_compiling" != yes; then
2916 if { ac_try='./$ac_file'
2917 { (case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_try") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; }; then
2928 if test "$cross_compiling" = maybe; then
2931 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2932 If you meant to cross compile, use \`--host'.
2933 See \`config.log' for more details." >&5
2934 echo "$as_me: error: cannot run C compiled programs.
2935 If you meant to cross compile, use \`--host'.
2936 See \`config.log' for more details." >&2;}
2937 { (exit 1); exit 1; }; }
2941 { echo "$as_me:$LINENO: result: yes" >&5
2942 echo "${ECHO_T}yes" >&6; }
2944 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2945 ac_clean_files=$ac_clean_files_save
2946 # Check that the compiler produces executables we can run. If not, either
2947 # the compiler is broken, or we cross compile.
2948 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2949 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2950 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2951 echo "${ECHO_T}$cross_compiling" >&6; }
2953 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2954 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2955 if { (ac_try="$ac_link"
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_link") 2>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; then
2965 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2966 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2967 # work properly (i.e., refer to `conftest.exe'), while it won't with
2969 for ac_file in conftest.exe conftest conftest.*; do
2970 test -f "$ac_file" || continue
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2973 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2980 See \`config.log' for more details." >&5
2981 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2982 See \`config.log' for more details." >&2;}
2983 { (exit 1); exit 1; }; }
2986 rm -f conftest$ac_cv_exeext
2987 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2988 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2990 rm -f conftest.$ac_ext
2991 EXEEXT=$ac_cv_exeext
2993 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2994 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2995 if test "${ac_cv_objext+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 cat >conftest.$ac_ext <<_ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3013 rm -f conftest.o conftest.obj
3014 if { (ac_try="$ac_compile"
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; then
3024 for ac_file in conftest.o conftest.obj conftest.*; do
3025 test -f "$ac_file" || continue;
3027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3028 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3039 See \`config.log' for more details." >&2;}
3040 { (exit 1); exit 1; }; }
3043 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3045 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3046 echo "${ECHO_T}$ac_cv_objext" >&6; }
3047 OBJEXT=$ac_cv_objext
3049 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3050 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3051 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 cat >conftest.$ac_ext <<_ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3081 grep -v '^ *+' conftest.er1 >conftest.err
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } && {
3086 test -z "$ac_c_werror_flag" ||
3087 test ! -s conftest.err
3088 } && test -s conftest.$ac_objext; then
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3101 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3102 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3103 GCC=`test $ac_compiler_gnu = yes && echo yes`
3104 ac_test_CFLAGS=${CFLAGS+set}
3105 ac_save_CFLAGS=$CFLAGS
3106 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3107 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3108 if test "${ac_cv_prog_cc_g+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 ac_save_c_werror_flag=$ac_c_werror_flag
3112 ac_c_werror_flag=yes
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && {
3144 test -z "$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3177 grep -v '^ *+' conftest.er1 >conftest.err
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } && {
3182 test -z "$ac_c_werror_flag" ||
3183 test ! -s conftest.err
3184 } && test -s conftest.$ac_objext; then
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 ac_c_werror_flag=$ac_save_c_werror_flag
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3207 rm -f conftest.$ac_objext
3208 if { (ac_try="$ac_compile"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_compile") 2>conftest.er1
3216 grep -v '^ *+' conftest.er1 >conftest.err
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } && {
3221 test -z "$ac_c_werror_flag" ||
3222 test ! -s conftest.err
3223 } && test -s conftest.$ac_objext; then
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 ac_c_werror_flag=$ac_save_c_werror_flag
3241 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3242 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3243 if test "$ac_test_CFLAGS" = set; then
3244 CFLAGS=$ac_save_CFLAGS
3245 elif test $ac_cv_prog_cc_g = yes; then
3246 if test "$GCC" = yes; then
3252 if test "$GCC" = yes; then
3258 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3259 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3260 if test "${ac_cv_prog_cc_c89+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 ac_cv_prog_cc_c89=no
3265 cat >conftest.$ac_ext <<_ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3273 #include <sys/types.h>
3274 #include <sys/stat.h>
3275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3276 struct buf { int x; };
3277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3278 static char *e (p, i)
3284 static char *f (char * (*g) (char **, int), char **p, ...)
3289 s = g (p, va_arg (v,int));
3294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3295 function prototypes and stuff, but not '\xHH' hex character constants.
3296 These don't provoke an error unfortunately, instead are silently treated
3297 as 'x'. The following induces an error, until -std is added to get
3298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3299 array size at least. It's necessary to write '\x00'==0 to get something
3300 that's true only with -std. */
3301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3304 inside strings and character constants. */
3306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3308 int test (int i, double x);
3309 struct s1 {int (*f) (int a);};
3310 struct s2 {int (*f) (double a);};
3311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3325 CC="$ac_save_CC $ac_arg"
3326 rm -f conftest.$ac_objext
3327 if { (ac_try="$ac_compile"
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_compile") 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } && {
3340 test -z "$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3342 } && test -s conftest.$ac_objext; then
3343 ac_cv_prog_cc_c89=$ac_arg
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3351 rm -f core conftest.err conftest.$ac_objext
3352 test "x$ac_cv_prog_cc_c89" != "xno" && break
3354 rm -f conftest.$ac_ext
3359 case "x$ac_cv_prog_cc_c89" in
3361 { echo "$as_me:$LINENO: result: none needed" >&5
3362 echo "${ECHO_T}none needed" >&6; } ;;
3364 { echo "$as_me:$LINENO: result: unsupported" >&5
3365 echo "${ECHO_T}unsupported" >&6; } ;;
3367 CC="$CC $ac_cv_prog_cc_c89"
3368 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3369 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3386 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3387 # On Suns, sometimes $CPP names a directory.
3388 if test -n "$CPP" && test -d "$CPP"; then
3391 if test -z "$CPP"; then
3392 if test "${ac_cv_prog_CPP+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 # Double quotes because CPP needs to be expanded
3396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3399 for ac_c_preproc_warn_flag in '' yes
3401 # Use a header file that comes with gcc, so configuring glibc
3402 # with a fresh cross-compiler works.
3403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3404 # <limits.h> exists even on freestanding compilers.
3405 # On the NeXT, cc -E runs the code through the compiler's parser,
3406 # not just through cpp. "Syntax error" is here to catch this case.
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3414 # include <limits.h>
3416 # include <assert.h>
3420 if { (ac_try="$ac_cpp conftest.$ac_ext"
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3428 grep -v '^ *+' conftest.er1 >conftest.err
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null && {
3433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3434 test ! -s conftest.err
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3441 # Broken: fails on valid input.
3445 rm -f conftest.err conftest.$ac_ext
3447 # OK, works on sane cases. Now check whether nonexistent headers
3448 # can be detected and how.
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 #include <ac_nonexistent.h>
3457 if { (ac_try="$ac_cpp conftest.$ac_ext"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } >/dev/null && {
3470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3471 test ! -s conftest.err
3473 # Broken: success on invalid input.
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 # Passes both tests.
3484 rm -f conftest.err conftest.$ac_ext
3487 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3488 rm -f conftest.err conftest.$ac_ext
3489 if $ac_preproc_ok; then
3501 { echo "$as_me:$LINENO: result: $CPP" >&5
3502 echo "${ECHO_T}$CPP" >&6; }
3504 for ac_c_preproc_warn_flag in '' yes
3506 # Use a header file that comes with gcc, so configuring glibc
3507 # with a fresh cross-compiler works.
3508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3509 # <limits.h> exists even on freestanding compilers.
3510 # On the NeXT, cc -E runs the code through the compiler's parser,
3511 # not just through cpp. "Syntax error" is here to catch this case.
3512 cat >conftest.$ac_ext <<_ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3519 # include <limits.h>
3521 # include <assert.h>
3525 if { (ac_try="$ac_cpp conftest.$ac_ext"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3533 grep -v '^ *+' conftest.er1 >conftest.err
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } >/dev/null && {
3538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3543 echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3546 # Broken: fails on valid input.
3550 rm -f conftest.err conftest.$ac_ext
3552 # OK, works on sane cases. Now check whether nonexistent headers
3553 # can be detected and how.
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #include <ac_nonexistent.h>
3562 if { (ac_try="$ac_cpp conftest.$ac_ext"
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570 grep -v '^ *+' conftest.er1 >conftest.err
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } >/dev/null && {
3575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3576 test ! -s conftest.err
3578 # Broken: success on invalid input.
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 # Passes both tests.
3589 rm -f conftest.err conftest.$ac_ext
3592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3593 rm -f conftest.err conftest.$ac_ext
3594 if $ac_preproc_ok; then
3597 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3598 See \`config.log' for more details." >&5
3599 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3600 See \`config.log' for more details." >&2;}
3601 { (exit 1); exit 1; }; }
3605 ac_cpp='$CPP $CPPFLAGS'
3606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3612 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3613 if test "${ac_cv_path_GREP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 # Extract the first word of "grep ggrep" to use in msg output
3617 if test -z "$GREP"; then
3618 set dummy grep ggrep; ac_prog_name=$2
3619 if test "${ac_cv_path_GREP+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 ac_path_GREP_found=false
3623 # Loop through the user's path and test for each of PROGNAME-LIST
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3628 test -z "$as_dir" && as_dir=.
3629 for ac_prog in grep ggrep; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3632 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3633 # Check for GNU ac_path_GREP and select it if it is found.
3634 # Check for GNU $ac_path_GREP
3635 case `"$ac_path_GREP" --version 2>&1` in
3637 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3640 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
3646 echo 'GREP' >> "conftest.nl"
3647 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649 ac_count=`expr $ac_count + 1`
3650 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_GREP="$ac_path_GREP"
3653 ac_path_GREP_max=$ac_count
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3662 $ac_path_GREP_found && break 3
3672 GREP="$ac_cv_path_GREP"
3673 if test -z "$GREP"; then
3674 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3675 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3676 { (exit 1); exit 1; }; }
3680 ac_cv_path_GREP=$GREP
3685 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3686 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3687 GREP="$ac_cv_path_GREP"
3690 { echo "$as_me:$LINENO: checking for egrep" >&5
3691 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_EGREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3696 then ac_cv_path_EGREP="$GREP -E"
3698 # Extract the first word of "egrep" to use in msg output
3699 if test -z "$EGREP"; then
3700 set dummy egrep; ac_prog_name=$2
3701 if test "${ac_cv_path_EGREP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 ac_path_EGREP_found=false
3705 # Loop through the user's path and test for each of PROGNAME-LIST
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3710 test -z "$as_dir" && as_dir=.
3711 for ac_prog in egrep; do
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3714 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3715 # Check for GNU ac_path_EGREP and select it if it is found.
3716 # Check for GNU $ac_path_EGREP
3717 case `"$ac_path_EGREP" --version 2>&1` in
3719 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3722 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3725 cat "conftest.in" "conftest.in" >"conftest.tmp"
3726 mv "conftest.tmp" "conftest.in"
3727 cp "conftest.in" "conftest.nl"
3728 echo 'EGREP' >> "conftest.nl"
3729 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3731 ac_count=`expr $ac_count + 1`
3732 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3733 # Best one so far, save it but keep looking for a better one
3734 ac_cv_path_EGREP="$ac_path_EGREP"
3735 ac_path_EGREP_max=$ac_count
3737 # 10*(2^10) chars as input seems more than enough
3738 test $ac_count -gt 10 && break
3740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744 $ac_path_EGREP_found && break 3
3754 EGREP="$ac_cv_path_EGREP"
3755 if test -z "$EGREP"; then
3756 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3757 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3758 { (exit 1); exit 1; }; }
3762 ac_cv_path_EGREP=$EGREP
3768 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3769 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3770 EGREP="$ac_cv_path_EGREP"
3774 { echo "$as_me:$LINENO: checking for AIX" >&5
3775 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3776 cat >conftest.$ac_ext <<_ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788 $EGREP "yes" >/dev/null 2>&1; then
3789 { echo "$as_me:$LINENO: result: yes" >&5
3790 echo "${ECHO_T}yes" >&6; }
3791 cat >>confdefs.h <<\_ACEOF
3792 #define _ALL_SOURCE 1
3796 { echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6; }
3802 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3804 if test "${ac_cv_header_stdc+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3826 rm -f conftest.$ac_objext
3827 if { (ac_try="$ac_compile"
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3835 grep -v '^ *+' conftest.er1 >conftest.err
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && {
3840 test -z "$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 } && test -s conftest.$ac_objext; then
3843 ac_cv_header_stdc=yes
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 ac_cv_header_stdc=no
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 if test $ac_cv_header_stdc = yes; then
3854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3865 $EGREP "memchr" >/dev/null 2>&1; then
3868 ac_cv_header_stdc=no
3874 if test $ac_cv_header_stdc = yes; then
3875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3876 cat >conftest.$ac_ext <<_ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3886 $EGREP "free" >/dev/null 2>&1; then
3889 ac_cv_header_stdc=no
3895 if test $ac_cv_header_stdc = yes; then
3896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3897 if test "$cross_compiling" = yes; then
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3908 #if ((' ' & 0x0FF) == 0x020)
3909 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3910 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3912 # define ISLOWER(c) \
3913 (('a' <= (c) && (c) <= 'i') \
3914 || ('j' <= (c) && (c) <= 'r') \
3915 || ('s' <= (c) && (c) <= 'z'))
3916 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3919 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3924 for (i = 0; i < 256; i++)
3925 if (XOR (islower (i), ISLOWER (i))
3926 || toupper (i) != TOUPPER (i))
3931 rm -f conftest$ac_exeext
3932 if { (ac_try="$ac_link"
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938 (eval "$ac_link") 2>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3942 { (case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_try") 2>&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3953 echo "$as_me: program exited with status $ac_status" >&5
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3958 ac_cv_header_stdc=no
3960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3966 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3967 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3968 if test $ac_cv_header_stdc = yes; then
3970 cat >>confdefs.h <<\_ACEOF
3971 #define STDC_HEADERS 1
3976 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3986 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3987 inttypes.h stdint.h unistd.h
3989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 cat >conftest.$ac_ext <<_ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4001 $ac_includes_default
4003 #include <$ac_header>
4005 rm -f conftest.$ac_objext
4006 if { (ac_try="$ac_compile"
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_compile") 2>conftest.er1
4014 grep -v '^ *+' conftest.er1 >conftest.err
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } && {
4019 test -z "$ac_c_werror_flag" ||
4020 test ! -s conftest.err
4021 } && test -s conftest.$ac_objext; then
4022 eval "$as_ac_Header=yes"
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4027 eval "$as_ac_Header=no"
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_res=`eval echo '${'$as_ac_Header'}'`
4033 { echo "$as_me:$LINENO: result: $ac_res" >&5
4034 echo "${ECHO_T}$ac_res" >&6; }
4035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4036 cat >>confdefs.h <<_ACEOF
4037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4045 if test "${ac_cv_header_minix_config_h+set}" = set; then
4046 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4047 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4048 if test "${ac_cv_header_minix_config_h+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4052 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4054 # Is the header compilable?
4055 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4056 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4057 cat >conftest.$ac_ext <<_ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4064 #include <minix/config.h>
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_compile") 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && {
4080 test -z "$ac_c_werror_flag" ||
4081 test ! -s conftest.err
4082 } && test -s conftest.$ac_objext; then
4083 ac_header_compiler=yes
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088 ac_header_compiler=no
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4093 echo "${ECHO_T}$ac_header_compiler" >&6; }
4095 # Is the header present?
4096 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4097 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <minix/config.h>
4106 if { (ac_try="$ac_cpp conftest.$ac_ext"
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4114 grep -v '^ *+' conftest.er1 >conftest.err
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } >/dev/null && {
4119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4120 test ! -s conftest.err
4122 ac_header_preproc=yes
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4127 ac_header_preproc=no
4130 rm -f conftest.err conftest.$ac_ext
4131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4132 echo "${ECHO_T}$ac_header_preproc" >&6; }
4134 # So? What about this header?
4135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4137 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4138 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4139 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4140 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4141 ac_header_preproc=yes
4144 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4145 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4146 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4147 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4148 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4149 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4150 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4151 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4152 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4153 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4154 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4155 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4157 ## ------------------------------------------ ##
4158 ## Report this to https://issues.asterisk.org ##
4159 ## ------------------------------------------ ##
4161 ) | sed "s/^/$as_me: WARNING: /" >&2
4164 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4165 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4166 if test "${ac_cv_header_minix_config_h+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 ac_cv_header_minix_config_h=$ac_header_preproc
4171 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4172 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4175 if test $ac_cv_header_minix_config_h = yes; then
4182 if test "$MINIX" = yes; then
4184 cat >>confdefs.h <<\_ACEOF
4185 #define _POSIX_SOURCE 1
4189 cat >>confdefs.h <<\_ACEOF
4190 #define _POSIX_1_SOURCE 2
4194 cat >>confdefs.h <<\_ACEOF
4210 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4211 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4212 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 cat >conftest.$ac_ext <<_ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4222 # define __EXTENSIONS__ 1
4223 $ac_includes_default
4232 rm -f conftest.$ac_objext
4233 if { (ac_try="$ac_compile"
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_compile") 2>conftest.er1
4241 grep -v '^ *+' conftest.er1 >conftest.err
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } && {
4246 test -z "$ac_c_werror_flag" ||
4247 test ! -s conftest.err
4248 } && test -s conftest.$ac_objext; then
4249 ac_cv_safe_to_define___extensions__=yes
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 ac_cv_safe_to_define___extensions__=no
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4260 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4261 test $ac_cv_safe_to_define___extensions__ = yes &&
4262 cat >>confdefs.h <<\_ACEOF
4263 #define __EXTENSIONS__ 1
4266 cat >>confdefs.h <<\_ACEOF
4267 #define _POSIX_PTHREAD_SEMANTICS 1
4270 cat >>confdefs.h <<\_ACEOF
4271 #define _TANDEM_SOURCE 1
4275 # System default paths
4276 astsbindir='${sbindir}'
4277 astetcdir='${sysconfdir}/asterisk'
4278 astheaderdir='${includedir}/asterisk'
4279 astlibdir='${libdir}/asterisk'
4280 astmandir='${mandir}'
4281 astvarlibdir='${localstatedir}/lib/asterisk'
4282 astdatadir='${astvarlibdir}'
4283 astdbdir='${astvarlibdir}'
4284 astkeydir='${astvarlibdir}'
4285 astspooldir='${localstatedir}/spool/asterisk'
4286 astlogdir='${localstatedir}/log/asterisk'
4287 astvarrundir='${localstatedir}/run/asterisk'
4289 case "${host_os}" in
4291 if test ${prefix} = 'NONE'; then
4292 astvarlibdir='${prefix}/share/asterisk'
4293 astdbdir='${localstatedir}/db/asterisk'
4297 if test ${prefix} = 'NONE'; then
4298 astvarrundir='/Library/Application Support/Asterisk/Run'
4303 case "${host_os}" in
4306 CPPFLAGS=-I/usr/local/include
4307 LDFLAGS=-L/usr/local/lib
4311 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4312 if test ${sysconfdir} = '${prefix}/etc'; then
4313 astetcdir=/etc/asterisk
4315 if test ${mandir} = '${prefix}/man'; then
4316 astmandir=/usr/share/man
4319 CPPFLAGS=-I/usr/local/include
4320 LDFLAGS=-L/usr/local/lib
4324 cat >>confdefs.h <<\_ACEOF
4325 #define AST_POLL_COMPAT 1
4329 cat >>confdefs.h <<\_ACEOF
4330 #define _DARWIN_UNLIMITED_SELECT 1
4335 if test ${prefix} = 'NONE'; then
4336 astetcdir=/var/etc/asterisk
4337 astsbindir=/opt/asterisk/sbin
4338 astlibdir=/opt/asterisk/lib
4339 astheaderdir=/opt/asterisk/include
4340 astmandir=/opt/asterisk/man
4341 astvarlibdir=/var/opt/asterisk
4342 astspooldir=/var/spool/asterisk
4343 astlogdir=/var/log/asterisk
4344 astvarrundir=/var/run/asterisk
4349 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4350 if test ${sysconfdir} = '${prefix}/etc'; then
4353 if test ${mandir} = '${prefix}/man'; then
4354 mandir=/usr/share/man
4360 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4361 if test ${localstatedir} = '${prefix}/var'; then
4366 BUILD_PLATFORM=${build}
4367 BUILD_CPU=${build_cpu}
4368 BUILD_VENDOR=${build_vendor}
4369 BUILD_OS=${build_os}
4376 HOST_PLATFORM=${host}
4377 HOST_CPU=${host_cpu}
4378 HOST_VENDOR=${host_vendor}
4388 case "${host_os}" in
4424 if test -n "$ac_tool_prefix"; then
4425 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4426 set dummy ${ac_tool_prefix}uname; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_path_UNAME+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 UNAME=$ac_cv_path_UNAME
4456 if test -n "$UNAME"; then
4457 { echo "$as_me:$LINENO: result: $UNAME" >&5
4458 echo "${ECHO_T}$UNAME" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4466 if test -z "$ac_cv_path_UNAME"; then
4468 # Extract the first word of "uname", so it can be a program name with args.
4469 set dummy uname; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 case $ac_pt_UNAME in
4477 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4499 if test -n "$ac_pt_UNAME"; then
4500 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4501 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4503 { echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6; }
4507 if test "x$ac_pt_UNAME" = x; then
4510 case $cross_compiling:$ac_tool_warned in
4512 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4513 whose name does not start with the host triplet. If you think this
4514 configuration is useful to you, please write to autoconf@gnu.org." >&5
4515 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4516 whose name does not start with the host triplet. If you think this
4517 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4518 ac_tool_warned=yes ;;
4523 UNAME="$ac_cv_path_UNAME"
4526 if test ! x"${UNAME}" = xNo; then
4527 PBX_OSREV=$(${UNAME} -r)
4537 # cross-compile checks
4538 if test "${cross_compiling}" = "yes";
4540 if test -n "$ac_tool_prefix"; then
4541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4542 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4545 if test "${ac_cv_prog_CC+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 if test -n "$CC"; then
4570 { echo "$as_me:$LINENO: result: $CC" >&5
4571 echo "${ECHO_T}$CC" >&6; }
4573 { echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6; }
4579 if test -z "$ac_cv_prog_CC"; then
4581 # Extract the first word of "gcc", so it can be a program name with args.
4582 set dummy gcc; ac_word=$2
4583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 if test -n "$ac_ct_CC"; then
4589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_prog_ac_ct_CC="gcc"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4609 if test -n "$ac_ct_CC"; then
4610 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4611 echo "${ECHO_T}$ac_ct_CC" >&6; }
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4617 if test "x$ac_ct_CC" = x; then
4620 case $cross_compiling:$ac_tool_warned in
4622 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4623 whose name does not start with the host triplet. If you think this
4624 configuration is useful to you, please write to autoconf@gnu.org." >&5
4625 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4626 whose name does not start with the host triplet. If you think this
4627 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4628 ac_tool_warned=yes ;;
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}g++; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_prog_CXX+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 if test -n "$CXX"; then
4645 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 if test -n "$CXX"; then
4666 { echo "$as_me:$LINENO: result: $CXX" >&5
4667 echo "${ECHO_T}$CXX" >&6; }
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4675 if test -z "$ac_cv_prog_CXX"; then
4677 # Extract the first word of "g++", so it can be a program name with args.
4678 set dummy g++; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 if test -n "$ac_ct_CXX"; then
4685 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_prog_ac_ct_CXX="g++"
4695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4705 if test -n "$ac_ct_CXX"; then
4706 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4707 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4709 { echo "$as_me:$LINENO: result: no" >&5
4710 echo "${ECHO_T}no" >&6; }
4713 if test "x$ac_ct_CXX" = x; then
4716 case $cross_compiling:$ac_tool_warned in
4718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4719 whose name does not start with the host triplet. If you think this
4720 configuration is useful to you, please write to autoconf@gnu.org." >&5
4721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4722 whose name does not start with the host triplet. If you think this
4723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4724 ac_tool_warned=yes ;;
4729 CXX="$ac_cv_prog_CXX"
4732 if test -n "$ac_tool_prefix"; then
4733 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4734 set dummy ${ac_tool_prefix}ld; ac_word=$2
4735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4737 if test "${ac_cv_prog_LD+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 if test -n "$LD"; then
4741 ac_cv_prog_LD="$LD" # Let the user override the test.
4743 as_save_IFS=$IFS; IFS=$PATH_SE