2 # From configure.ac Revision: 335657 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 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, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
48 # Printing a long string crashes Solaris 7 /usr/bin/printf.
49 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
51 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
52 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # Support unset when possible.
87 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
95 # We need space, tab and new line, in precisely that order. Quoting is
96 # there to prevent editors from complaining about space-tab.
97 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
98 # splitting by setting IFS to empty value.)
101 # Find who we are. Look in the path if we contain no directory separator.
103 *[\\/]* ) as_myself=$0 ;;
104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
108 test -z "$as_dir" && as_dir=.
109 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 # We did not find ourselves, most probably we were run as `sh COMMAND'
116 # in which case we are not to be found in the path.
117 if test "x$as_myself" = x; then
120 if test ! -f "$as_myself"; then
121 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
122 { (exit 1); exit 1; }
125 # Work around bugs in pre-3.0 UWIN ksh.
126 for as_var in ENV MAIL MAILPATH
127 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
139 # Required to use basename.
140 if expr a : '\(a\)' >/dev/null 2>&1 &&
141 test "X`expr 00001 : '.*\(...\)'`" = X001; then
147 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
154 # Name of the executable.
155 as_me=`$as_basename -- "$0" ||
156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
157 X"$0" : 'X\(//\)$' \| \
158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
160 sed '/^.*\/\([^/][^/]*\)\/*$/{
178 if test "x$CONFIG_SHELL" = x; then
179 if (eval ":") 2>/dev/null; then
185 if test $as_have_required = yes && (eval ":
195 as_func_ret_success () {
198 as_func_ret_failure () {
203 if as_func_success; then
207 echo as_func_success failed.
210 if as_func_failure; then
212 echo as_func_failure succeeded.
215 if as_func_ret_success; then
219 echo as_func_ret_success failed.
222 if as_func_ret_failure; then
224 echo as_func_ret_failure succeeded.
227 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
231 echo positional parameters were not saved.
234 test \$exitcode = 0) || { (exit 1); exit 1; }
239 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
240 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
241 ") 2> /dev/null; then
245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
246 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
249 test -z "$as_dir" && as_dir=.
252 for as_base in sh bash ksh sh5; do
253 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
260 for as_shell in $as_candidate_shells $SHELL; do
261 # Try only shells that exist, to save several forks.
262 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
263 { ("$as_shell") 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
282 CONFIG_SHELL=$as_shell
284 if { "$as_shell" 2> /dev/null <<\_ASEOF
285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
288 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
289 # is contrary to our usage. Disable this feature.
290 alias -g '${1+"$@"}'='"$@"'
293 case `(set -o) 2>/dev/null` in
294 *posix*) set -o posix ;;
310 as_func_ret_success () {
313 as_func_ret_failure () {
318 if as_func_success; then
322 echo as_func_success failed.
325 if as_func_failure; then
327 echo as_func_failure succeeded.
330 if as_func_ret_success; then
334 echo as_func_ret_success failed.
337 if as_func_ret_failure; then
339 echo as_func_ret_failure succeeded.
342 if ( set x; as_func_ret_success y && test x = "$1" ); then
346 echo positional parameters were not saved.
349 test $exitcode = 0) || { (exit 1); exit 1; }
354 test "x$as_lineno_1" != "x$as_lineno_2" &&
355 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
366 if test "x$CONFIG_SHELL" != x; then
367 for as_var in BASH_ENV ENV
368 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
371 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
375 if test $as_have_required = no; then
376 echo This script requires a shell more modern than all the
377 echo shells that I found on your system. Please install a
378 echo modern shell, or manually run the script under such a
379 echo shell if you do have one.
380 { (exit 1); exit 1; }
390 (eval "as_func_return () {
399 as_func_ret_success () {
402 as_func_ret_failure () {
407 if as_func_success; then
411 echo as_func_success failed.
414 if as_func_failure; then
416 echo as_func_failure succeeded.
419 if as_func_ret_success; then
423 echo as_func_ret_success failed.
426 if as_func_ret_failure; then
428 echo as_func_ret_failure succeeded.
431 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
435 echo positional parameters were not saved.
438 test \$exitcode = 0") || {
439 echo No shell found that supports shell functions.
440 echo Please tell bug-autoconf@gnu.org about your system,
441 echo including any error possibly output before this message.
442 echo This can help us improve future autoconf versions.
443 echo Configuration will now proceed without shell functions.
450 test "x$as_lineno_1" != "x$as_lineno_2" &&
451 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
453 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
454 # uniformly replaced by the line number. The first 'sed' inserts a
455 # line-number line after each line using $LINENO; the second 'sed'
456 # does the real work. The second script uses 'N' to pair each
457 # line-number line with the line containing $LINENO, and appends
458 # trailing '-' during substitution so that $LINENO is not a special
460 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
461 # scripts with optimization help from Paolo Bonzini. Blame Lee
462 # E. McMahon (1931-1989) for sed's syntax. :-)
474 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
478 chmod +x "$as_me.lineno" ||
479 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
480 { (exit 1); exit 1; }; }
482 # Don't try to exec as it changes $[0], causing all sort of problems
483 # (the dirname of $[0] is not the place where we might find the
484 # original and so on. Autoconf is especially sensitive to this).
486 # Exit status is that of the last command.
491 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
497 ECHO_C= ECHO_N= ECHO_T=
501 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 if expr a : '\(a\)' >/dev/null 2>&1 &&
508 test "X`expr 00001 : '.*\(...\)'`" = X001; then
514 rm -f conf$$ conf$$.exe conf$$.file
515 if test -d conf$$.dir; then
516 rm -f conf$$.dir/conf$$.file
519 mkdir conf$$.dir 2>/dev/null
521 if (echo >conf$$.file) 2>/dev/null; then
522 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 # ... but there are two gotchas:
525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527 # In both cases, we have to default to `cp -p'.
528 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 elif ln conf$$.file conf$$ 2>/dev/null; then
538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539 rmdir conf$$.dir 2>/dev/null
541 if mkdir -p . 2>/dev/null; then
544 test -d ./-p && rmdir ./-p
548 if test -x / >/dev/null 2>&1; then
551 if ls -dL / >/dev/null 2>&1; then
558 if test -d "$1"; then
564 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
565 ???[sx]*):;;*)false;;esac;fi
569 as_executable_p=$as_test_x
571 # Sed expression to map a string onto a valid CPP name.
572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
574 # Sed expression to map a string onto a valid variable name.
575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
579 exec 7<&0 </dev/null 6>&1
582 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
583 # so uname gets run too.
584 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
589 ac_default_prefix=/usr/local
591 ac_config_libobj_dir=.
597 SHELL=${CONFIG_SHELL-/bin/sh}
599 # Identity of this package.
600 PACKAGE_NAME='asterisk'
601 PACKAGE_TARNAME='asterisk'
602 PACKAGE_VERSION='trunk'
603 PACKAGE_STRING='asterisk trunk'
604 PACKAGE_BUGREPORT='https://issues.asterisk.org'
606 ac_unique_file="main/asterisk.c"
607 # Factoring default headers for most tests.
608 ac_includes_default="\
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
620 # ifdef HAVE_STDLIB_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
644 ac_subst_vars='LTLIBOBJS
646 PBX_SYSLOG_FACILITY_LOG_UUCP
647 PBX_SYSLOG_FACILITY_LOG_SYSLOG
648 PBX_SYSLOG_FACILITY_LOG_NEWS
649 PBX_SYSLOG_FACILITY_LOG_MAIL
650 PBX_SYSLOG_FACILITY_LOG_LPR
651 PBX_SYSLOG_FACILITY_LOG_KERN
652 PBX_SYSLOG_FACILITY_LOG_FTP
653 PBX_SYSLOG_FACILITY_LOG_DAEMON
654 PBX_SYSLOG_FACILITY_LOG_CRON
655 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
656 PBX_SYSLOG_FACILITY_LOG_AUTH
696 AST_NO_STRICT_OVERFLOW
698 AST_DECLARATION_AFTER_STATEMENT
702 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
703 PBX_PTHREAD_RWLOCK_INITIALIZER
782 SPEEX_PREPROCESS_INCLUDE
1119 program_transform_name
1131 enable_option_checking
1208 enable_internal_poll
1210 ac_precious_vars='build_alias
1225 # Initialize some variables set by options.
1227 ac_init_version=false
1228 ac_unrecognized_opts=
1229 ac_unrecognized_sep=
1230 # The variables have the same names as the options, with
1231 # dashes changed to underlines.
1232 cache_file=/dev/null
1239 program_transform_name=s,x,x,
1247 # Installation directory options.
1248 # These are left unexpanded so users can "make install exec_prefix=/foo"
1249 # and all the variables that are supposed to be based on exec_prefix
1250 # by default will actually change.
1251 # Use braces instead of parens because sh, perl, etc. also accept them.
1252 # (The list follows the same order as the GNU Coding Standards.)
1253 bindir='${exec_prefix}/bin'
1254 sbindir='${exec_prefix}/sbin'
1255 libexecdir='${exec_prefix}/libexec'
1256 datarootdir='${prefix}/share'
1257 datadir='${datarootdir}'
1258 sysconfdir='${prefix}/etc'
1259 sharedstatedir='${prefix}/com'
1260 localstatedir='${prefix}/var'
1261 includedir='${prefix}/include'
1262 oldincludedir='/usr/include'
1263 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1264 infodir='${datarootdir}/info'
1269 libdir='${exec_prefix}/lib'
1270 localedir='${datarootdir}/locale'
1271 mandir='${datarootdir}/man'
1277 # If the previous option needs an argument, assign it.
1278 if test -n "$ac_prev"; then
1279 eval $ac_prev=\$ac_option
1285 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1289 # Accept the important Cygnus configure options, so we can diagnose typos.
1291 case $ac_dashdash$ac_option in
1295 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1297 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1298 bindir=$ac_optarg ;;
1300 -build | --build | --buil | --bui | --bu)
1301 ac_prev=build_alias ;;
1302 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1303 build_alias=$ac_optarg ;;
1305 -cache-file | --cache-file | --cache-fil | --cache-fi \
1306 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1307 ac_prev=cache_file ;;
1308 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1309 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1310 cache_file=$ac_optarg ;;
1312 --config-cache | -C)
1313 cache_file=config.cache ;;
1315 -datadir | --datadir | --datadi | --datad)
1317 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1318 datadir=$ac_optarg ;;
1320 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1321 | --dataroo | --dataro | --datar)
1322 ac_prev=datarootdir ;;
1323 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1324 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1325 datarootdir=$ac_optarg ;;
1327 -disable-* | --disable-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1332 { (exit 1); exit 1; }; }
1333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1337 "enable_$ac_useropt"
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1342 eval enable_$ac_useropt=no ;;
1344 -docdir | --docdir | --docdi | --doc | --do)
1346 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1347 docdir=$ac_optarg ;;
1349 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1351 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1352 dvidir=$ac_optarg ;;
1354 -enable-* | --enable-*)
1355 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1359 { (exit 1); exit 1; }; }
1360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1364 "enable_$ac_useropt"
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1369 eval enable_$ac_useropt=\$ac_optarg ;;
1371 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1372 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1373 | --exec | --exe | --ex)
1374 ac_prev=exec_prefix ;;
1375 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1376 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1377 | --exec=* | --exe=* | --ex=*)
1378 exec_prefix=$ac_optarg ;;
1380 -gas | --gas | --ga | --g)
1381 # Obsolete; use --with-gas.
1384 -help | --help | --hel | --he | -h)
1385 ac_init_help=long ;;
1386 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1387 ac_init_help=recursive ;;
1388 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1389 ac_init_help=short ;;
1391 -host | --host | --hos | --ho)
1392 ac_prev=host_alias ;;
1393 -host=* | --host=* | --hos=* | --ho=*)
1394 host_alias=$ac_optarg ;;
1396 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1398 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1400 htmldir=$ac_optarg ;;
1402 -includedir | --includedir | --includedi | --included | --include \
1403 | --includ | --inclu | --incl | --inc)
1404 ac_prev=includedir ;;
1405 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1406 | --includ=* | --inclu=* | --incl=* | --inc=*)
1407 includedir=$ac_optarg ;;
1409 -infodir | --infodir | --infodi | --infod | --info | --inf)
1411 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1412 infodir=$ac_optarg ;;
1414 -libdir | --libdir | --libdi | --libd)
1416 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1417 libdir=$ac_optarg ;;
1419 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1420 | --libexe | --libex | --libe)
1421 ac_prev=libexecdir ;;
1422 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1423 | --libexe=* | --libex=* | --libe=*)
1424 libexecdir=$ac_optarg ;;
1426 -localedir | --localedir | --localedi | --localed | --locale)
1427 ac_prev=localedir ;;
1428 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1429 localedir=$ac_optarg ;;
1431 -localstatedir | --localstatedir | --localstatedi | --localstated \
1432 | --localstate | --localstat | --localsta | --localst | --locals)
1433 ac_prev=localstatedir ;;
1434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1435 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1436 localstatedir=$ac_optarg ;;
1438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1441 mandir=$ac_optarg ;;
1443 -nfp | --nfp | --nf)
1444 # Obsolete; use --without-fp.
1447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1448 | --no-cr | --no-c | -n)
1451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1457 | --oldin | --oldi | --old | --ol | --o)
1458 ac_prev=oldincludedir ;;
1459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1462 oldincludedir=$ac_optarg ;;
1464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1467 prefix=$ac_optarg ;;
1469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1470 | --program-pre | --program-pr | --program-p)
1471 ac_prev=program_prefix ;;
1472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1474 program_prefix=$ac_optarg ;;
1476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1477 | --program-suf | --program-su | --program-s)
1478 ac_prev=program_suffix ;;
1479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1481 program_suffix=$ac_optarg ;;
1483 -program-transform-name | --program-transform-name \
1484 | --program-transform-nam | --program-transform-na \
1485 | --program-transform-n | --program-transform- \
1486 | --program-transform | --program-transfor \
1487 | --program-transfo | --program-transf \
1488 | --program-trans | --program-tran \
1489 | --progr-tra | --program-tr | --program-t)
1490 ac_prev=program_transform_name ;;
1491 -program-transform-name=* | --program-transform-name=* \
1492 | --program-transform-nam=* | --program-transform-na=* \
1493 | --program-transform-n=* | --program-transform-=* \
1494 | --program-transform=* | --program-transfor=* \
1495 | --program-transfo=* | --program-transf=* \
1496 | --program-trans=* | --program-tran=* \
1497 | --progr-tra=* | --program-tr=* | --program-t=*)
1498 program_transform_name=$ac_optarg ;;
1500 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1502 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1503 pdfdir=$ac_optarg ;;
1505 -psdir | --psdir | --psdi | --psd | --ps)
1507 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1511 | -silent | --silent | --silen | --sile | --sil)
1514 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1516 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1518 sbindir=$ac_optarg ;;
1520 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1521 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1522 | --sharedst | --shareds | --shared | --share | --shar \
1524 ac_prev=sharedstatedir ;;
1525 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1526 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1527 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1529 sharedstatedir=$ac_optarg ;;
1531 -site | --site | --sit)
1533 -site=* | --site=* | --sit=*)
1536 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1538 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1539 srcdir=$ac_optarg ;;
1541 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1542 | --syscon | --sysco | --sysc | --sys | --sy)
1543 ac_prev=sysconfdir ;;
1544 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1545 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1546 sysconfdir=$ac_optarg ;;
1548 -target | --target | --targe | --targ | --tar | --ta | --t)
1549 ac_prev=target_alias ;;
1550 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1551 target_alias=$ac_optarg ;;
1553 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1556 -version | --version | --versio | --versi | --vers | -V)
1557 ac_init_version=: ;;
1560 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1561 # Reject names that are not valid shell variable names.
1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1563 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1564 { (exit 1); exit 1; }; }
1565 ac_useropt_orig=$ac_useropt
1566 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1567 case $ac_user_opts in
1571 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1572 ac_unrecognized_sep=', ';;
1574 eval with_$ac_useropt=\$ac_optarg ;;
1576 -without-* | --without-*)
1577 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1578 # Reject names that are not valid shell variable names.
1579 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1580 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1581 { (exit 1); exit 1; }; }
1582 ac_useropt_orig=$ac_useropt
1583 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1584 case $ac_user_opts in
1588 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1589 ac_unrecognized_sep=', ';;
1591 eval with_$ac_useropt=no ;;
1594 # Obsolete; use --with-x.
1597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1598 | --x-incl | --x-inc | --x-in | --x-i)
1599 ac_prev=x_includes ;;
1600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1602 x_includes=$ac_optarg ;;
1604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1606 ac_prev=x_libraries ;;
1607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1609 x_libraries=$ac_optarg ;;
1611 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1612 Try \`$0 --help' for more information." >&2
1613 { (exit 1); exit 1; }; }
1617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1618 # Reject names that are not valid shell variable names.
1619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1620 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1621 { (exit 1); exit 1; }; }
1622 eval $ac_envvar=\$ac_optarg
1623 export $ac_envvar ;;
1626 # FIXME: should be removed in autoconf 3.0.
1627 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1628 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1629 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1630 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1636 if test -n "$ac_prev"; then
1637 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1638 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1639 { (exit 1); exit 1; }; }
1642 if test -n "$ac_unrecognized_opts"; then
1643 case $enable_option_checking in
1645 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1646 { (exit 1); exit 1; }; } ;;
1647 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1651 # Check all directory arguments for consistency.
1652 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1653 datadir sysconfdir sharedstatedir localstatedir includedir \
1654 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1655 libdir localedir mandir
1657 eval ac_val=\$$ac_var
1658 # Remove trailing slashes.
1661 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1662 eval $ac_var=\$ac_val;;
1664 # Be sure to have absolute directory names.
1666 [\\/$]* | ?:[\\/]* ) continue;;
1667 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1669 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1670 { (exit 1); exit 1; }; }
1673 # There might be people who depend on the old broken behavior: `$host'
1674 # used to hold the argument of --host etc.
1675 # FIXME: To remove some day.
1678 target=$target_alias
1680 # FIXME: To remove some day.
1681 if test "x$host_alias" != x; then
1682 if test "x$build_alias" = x; then
1683 cross_compiling=maybe
1684 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1685 If a cross compiler is detected then cross compile mode will be used." >&2
1686 elif test "x$build_alias" != "x$host_alias"; then
1692 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1694 test "$silent" = yes && exec 6>/dev/null
1697 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1698 ac_ls_di=`ls -di .` &&
1699 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1700 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1701 { (exit 1); exit 1; }; }
1702 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1703 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1704 { (exit 1); exit 1; }; }
1707 # Find the source files, if location was not specified.
1708 if test -z "$srcdir"; then
1709 ac_srcdir_defaulted=yes
1710 # Try the directory containing this script, then the parent directory.
1711 ac_confdir=`$as_dirname -- "$as_myself" ||
1712 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1713 X"$as_myself" : 'X\(//\)[^/]' \| \
1714 X"$as_myself" : 'X\(//\)$' \| \
1715 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1716 $as_echo X"$as_myself" |
1717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1735 if test ! -r "$srcdir/$ac_unique_file"; then
1739 ac_srcdir_defaulted=no
1741 if test ! -r "$srcdir/$ac_unique_file"; then
1742 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1743 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1744 { (exit 1); exit 1; }; }
1746 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1748 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1749 { (exit 1); exit 1; }; }
1751 # When building in place, set srcdir=.
1752 if test "$ac_abs_confdir" = "$ac_pwd"; then
1755 # Remove unnecessary trailing slashes from srcdir.
1756 # Double slashes in file names in object file debugging info
1757 # mess up M-x gdb in Emacs.
1759 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1761 for ac_var in $ac_precious_vars; do
1762 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1763 eval ac_env_${ac_var}_value=\$${ac_var}
1764 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1765 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1769 # Report the --help message.
1771 if test "$ac_init_help" = "long"; then
1772 # Omit some internal or obsolete options to make the list less imposing.
1773 # This message is too long to be a string in the A/UX 3.1 sh.
1775 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1777 Usage: $0 [OPTION]... [VAR=VALUE]...
1779 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1780 VAR=VALUE. See below for descriptions of some of the useful variables.
1782 Defaults for the options are specified in brackets.
1785 -h, --help display this help and exit
1786 --help=short display options specific to this package
1787 --help=recursive display the short help of all the included packages
1788 -V, --version display version information and exit
1789 -q, --quiet, --silent do not print \`checking...' messages
1790 --cache-file=FILE cache test results in FILE [disabled]
1791 -C, --config-cache alias for \`--cache-file=config.cache'
1792 -n, --no-create do not create output files
1793 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1795 Installation directories:
1796 --prefix=PREFIX install architecture-independent files in PREFIX
1797 [$ac_default_prefix]
1798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1801 By default, \`make install' will install all the files in
1802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1804 for instance \`--prefix=\$HOME'.
1806 For better control, use the options below.
1808 Fine tuning of the installation directories:
1809 --bindir=DIR user executables [EPREFIX/bin]
1810 --sbindir=DIR system admin executables [EPREFIX/sbin]
1811 --libexecdir=DIR program executables [EPREFIX/libexec]
1812 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1813 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1814 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1815 --libdir=DIR object code libraries [EPREFIX/lib]
1816 --includedir=DIR C header files [PREFIX/include]
1817 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1818 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1819 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1820 --infodir=DIR info documentation [DATAROOTDIR/info]
1821 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1822 --mandir=DIR man documentation [DATAROOTDIR/man]
1823 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1824 --htmldir=DIR html documentation [DOCDIR]
1825 --dvidir=DIR dvi documentation [DOCDIR]
1826 --pdfdir=DIR pdf documentation [DOCDIR]
1827 --psdir=DIR ps documentation [DOCDIR]
1833 --build=BUILD configure for building on BUILD [guessed]
1834 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1838 if test -n "$ac_init_help"; then
1839 case $ac_init_help in
1840 short | recursive ) echo "Configuration of asterisk trunk:";;
1845 --disable-option-checking ignore unrecognized --enable/--with options
1846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1848 --enable-dev-mode Turn on developer mode
1849 --enable-coverage Turn on code coverage tracking (for gcov)
1850 --disable-xmldoc Explicity disable XML documentation
1851 --disable-largefile omit support for large files
1852 --enable-internal-poll Use Asterisk's poll implementation
1855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1857 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1858 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1859 --with-bfd=PATH use Debug symbol decoding files in PATH
1860 --with-execinfo=PATH use Stack Backtrace files in PATH
1861 --with-bluetooth=PATH use Bluetooth files in PATH
1862 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1863 --with-curses=PATH use curses files in PATH
1864 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1865 --with-dahdi=PATH use DAHDI files in PATH
1866 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1867 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1869 --with-gtk2=PATH use gtk2 files in PATH
1870 --with-gmime=PATH use GMime files in PATH
1871 --with-h323=PATH use OpenH323 files in PATH
1872 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1873 --with-ical=PATH use iCal files in PATH
1874 --with-iconv=PATH use Iconv files in PATH
1875 --with-iksemel=PATH use Iksemel Jabber files in PATH
1876 --with-imap=PATH use UW IMAP Toolkit files in PATH
1877 --with-inotify=PATH use inotify support files in PATH
1878 --with-iodbc=PATH use iODBC files in PATH
1879 --with-isdnnet=PATH use ISDN4Linux files in PATH
1880 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1881 --with-kqueue=PATH use kqueue support files in PATH
1882 --with-ldap=PATH use OpenLDAP files in PATH
1883 --with-libcurl=DIR look for the curl library in DIR
1884 --with-libxml2=PATH use LibXML2 files in PATH
1885 --with-ltdl=PATH use libtool files in PATH
1886 --with-lua=PATH use Lua files in PATH
1887 --with-misdn=PATH use mISDN user files in PATH
1888 --with-mysqlclient=PATH use MySQL client files in PATH
1889 --with-nbs=PATH use Network Broadcast Sound files in PATH
1890 --with-ncurses=PATH use ncurses files in PATH
1891 --with-neon=PATH use neon files in PATH
1892 --with-neon29=PATH use neon29 files in PATH
1893 --with-netsnmp=PATH use Net-SNMP files in PATH
1894 --with-newt=PATH use newt files in PATH
1895 --with-ogg=PATH use OGG files in PATH
1896 --with-openais=PATH use OpenAIS files in PATH
1897 --with-openr2=PATH use MFR2 files in PATH
1898 --with-osptk=PATH use OSP Toolkit files in PATH
1899 --with-oss=PATH use Open Sound System files in PATH
1900 --with-postgres=PATH use PostgreSQL files in PATH
1901 --with-popt=PATH use popt files in PATH
1902 --with-portaudio=PATH use PortAudio files in PATH
1903 --with-pri=PATH use ISDN PRI files in PATH
1904 --with-pwlib=PATH use PWlib files in PATH
1905 --with-radius=PATH use Radius Client files in PATH
1906 --with-resample=PATH use LIBRESAMPLE files in PATH
1907 --with-sdl=PATH use Sdl files in PATH
1908 --with-SDL_image=PATH use Sdl Image files in PATH
1909 --with-sounds-cache=PATH
1910 use cached sound tarfiles in PATH
1911 --with-spandsp=PATH use SPANDSP files in PATH
1912 --with-ss7=PATH use ISDN SS7 files in PATH
1913 --with-speex=PATH use Speex files in PATH
1914 --with-speex=PATH use Speex preprocess routines files in PATH
1915 --with-speexdsp=PATH use SpeexDSP files in PATH
1916 --with-sqlite=PATH use SQLite files in PATH
1917 --with-sqlite3=PATH use SQLite files in PATH
1918 --with-srtp=PATH use Secure RTP files in PATH
1919 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1920 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1921 --with-tds=PATH use FreeTDS files in PATH
1922 --with-termcap=PATH use Termcap files in PATH
1923 --with-timerfd=PATH use timerfd files in PATH
1924 --with-tinfo=PATH use Term Info files in PATH
1925 --with-tonezone=PATH use tonezone files in PATH
1926 --with-unixodbc=PATH use unixODBC files in PATH
1927 --with-usb=PATH use usb files in PATH
1928 --with-vorbis=PATH use Vorbis files in PATH
1929 --with-vpb=PATH use Voicetronix API files in PATH
1930 --with-x11=PATH use X11 files in PATH
1931 --with-z=PATH use zlib compression files in PATH
1933 Some influential environment variables:
1934 CC C compiler command
1935 CFLAGS C compiler flags
1936 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1937 nonstandard directory <lib dir>
1938 LIBS libraries to pass to the linker, e.g. -l<library>
1939 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1940 you have headers in a nonstandard directory <include dir>
1942 CXX C++ compiler command
1943 CXXFLAGS C++ compiler flags
1944 CXXCPP C++ preprocessor
1946 Use these variables to override the choices made by `configure' or to help
1947 it to find libraries and programs with nonstandard names/locations.
1949 Report bugs to <https://issues.asterisk.org>.
1954 if test "$ac_init_help" = "recursive"; then
1955 # If there are subdirs, report their specific --help.
1956 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1957 test -d "$ac_dir" ||
1958 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1963 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1965 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1966 # A ".." for each directory in $ac_dir_suffix.
1967 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1968 case $ac_top_builddir_sub in
1969 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1970 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1973 ac_abs_top_builddir=$ac_pwd
1974 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1975 # for backward compatibility:
1976 ac_top_builddir=$ac_top_build_prefix
1979 .) # We are building in place.
1981 ac_top_srcdir=$ac_top_builddir_sub
1982 ac_abs_top_srcdir=$ac_pwd ;;
1983 [\\/]* | ?:[\\/]* ) # Absolute name.
1984 ac_srcdir=$srcdir$ac_dir_suffix;
1985 ac_top_srcdir=$srcdir
1986 ac_abs_top_srcdir=$srcdir ;;
1988 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1989 ac_top_srcdir=$ac_top_build_prefix$srcdir
1990 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1992 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1994 cd "$ac_dir" || { ac_status=$?; continue; }
1995 # Check for guested configure.
1996 if test -f "$ac_srcdir/configure.gnu"; then
1998 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1999 elif test -f "$ac_srcdir/configure"; then
2001 $SHELL "$ac_srcdir/configure" --help=recursive
2003 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2005 cd "$ac_pwd" || { ac_status=$?; break; }
2009 test -n "$ac_init_help" && exit $ac_status
2010 if $ac_init_version; then
2012 asterisk configure trunk
2013 generated by GNU Autoconf 2.63
2015 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2016 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2017 This configure script is free software; the Free Software Foundation
2018 gives unlimited permission to copy, distribute and modify it.
2024 cat >config.log <<_ACEOF
2025 This file contains any messages produced by compilers while
2026 running configure, to aid debugging if configure makes a mistake.
2028 It was created by asterisk $as_me trunk, which was
2029 generated by GNU Autoconf 2.63. Invocation command line was
2041 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2042 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2043 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2044 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2045 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2047 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2048 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2050 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2051 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2052 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2053 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2054 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2055 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2056 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir=.
2065 $as_echo "PATH: $as_dir"
2081 # Keep a trace of the command line.
2082 # Strip out --no-create and --no-recursion so they do not pile up.
2083 # Strip out --silent because we don't want to record it for future runs.
2084 # Also quote any args containing shell meta-characters.
2085 # Make two passes to allow for proper duplicate-argument suppression.
2089 ac_must_keep_next=false
2095 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2097 | -silent | --silent | --silen | --sile | --sil)
2100 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2103 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2105 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2106 if test $ac_must_keep_next = true; then
2107 ac_must_keep_next=false # Got value, back to normal.
2110 *=* | --config-cache | -C | -disable-* | --disable-* \
2111 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2112 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2113 | -with-* | --with-* | -without-* | --without-* | --x)
2114 case "$ac_configure_args0 " in
2115 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2118 -* ) ac_must_keep_next=true ;;
2121 ac_configure_args="$ac_configure_args '$ac_arg'"
2126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2129 # When interrupted or exit'd, cleanup temporary files, and complete
2130 # config.log. We remove comments because anyway the quotes in there
2131 # would cause problems or look ugly.
2132 # WARNING: Use '\'' to represent an apostrophe within the trap.
2133 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2134 trap 'exit_status=$?
2135 # Save into config.log some information that might help in debugging.
2140 ## ---------------- ##
2141 ## Cache variables. ##
2142 ## ---------------- ##
2145 # The following way of writing the cache mishandles newlines in values,
2147 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148 eval ac_val=\$$ac_var
2152 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156 _ | IFS | as_nl) ;; #(
2157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158 *) $as_unset $ac_var ;;
2163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164 *${as_nl}ac_space=\ *)
2166 "s/'\''/'\''\\\\'\'''\''/g;
2167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2178 ## ----------------- ##
2179 ## Output variables. ##
2180 ## ----------------- ##
2183 for ac_var in $ac_subst_vars
2185 eval ac_val=\$$ac_var
2187 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 $as_echo "$ac_var='\''$ac_val'\''"
2193 if test -n "$ac_subst_files"; then
2195 ## ------------------- ##
2196 ## File substitutions. ##
2197 ## ------------------- ##
2200 for ac_var in $ac_subst_files
2202 eval ac_val=\$$ac_var
2204 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206 $as_echo "$ac_var='\''$ac_val'\''"
2211 if test -s confdefs.h; then
2221 test "$ac_signal" != 0 &&
2222 $as_echo "$as_me: caught signal $ac_signal"
2223 $as_echo "$as_me: exit $exit_status"
2225 rm -f core *.core core.conftest.* &&
2226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2229 for ac_signal in 1 2 13 15; do
2230 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2235 rm -f -r conftest* confdefs.h
2237 # Predefined preprocessor variables.
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_NAME "$PACKAGE_NAME"
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_STRING "$PACKAGE_STRING"
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264 # Let the site file select an alternate cache file if it wants to.
2265 # Prefer an explicitly selected file to automatically selected ones.
2268 if test -n "$CONFIG_SITE"; then
2269 ac_site_file1=$CONFIG_SITE
2270 elif test "x$prefix" != xNONE; then
2271 ac_site_file1=$prefix/share/config.site
2272 ac_site_file2=$prefix/etc/config.site
2274 ac_site_file1=$ac_default_prefix/share/config.site
2275 ac_site_file2=$ac_default_prefix/etc/config.site
2277 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2279 test "x$ac_site_file" = xNONE && continue
2280 if test -r "$ac_site_file"; then
2281 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2282 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2283 sed 's/^/| /' "$ac_site_file" >&5
2288 if test -r "$cache_file"; then
2289 # Some versions of bash will fail to source /dev/null (special
2290 # files actually), so we avoid doing that.
2291 if test -f "$cache_file"; then
2292 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2293 $as_echo "$as_me: loading cache $cache_file" >&6;}
2295 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2296 *) . "./$cache_file";;
2300 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2301 $as_echo "$as_me: creating cache $cache_file" >&6;}
2305 ac_header_list="$ac_header_list utime.h"
2306 # Check that the precious variables saved in the cache have kept the same
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311 eval ac_new_set=\$ac_env_${ac_var}_set
2312 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313 eval ac_new_val=\$ac_env_${ac_var}_value
2314 case $ac_old_set,$ac_new_set in
2316 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318 ac_cache_corrupted=: ;;
2320 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2325 if test "x$ac_old_val" != "x$ac_new_val"; then
2326 # differences in whitespace do not lead to failure.
2327 ac_old_val_w=`echo x $ac_old_val`
2328 ac_new_val_w=`echo x $ac_new_val`
2329 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2330 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2331 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2332 ac_cache_corrupted=:
2334 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2335 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2336 eval $ac_var=\$ac_old_val
2338 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2339 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2340 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2341 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2344 # Pass precious variables to config.status.
2345 if test "$ac_new_set" = set; then
2347 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 *) ac_arg=$ac_var=$ac_new_val ;;
2350 case " $ac_configure_args " in
2351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2352 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2356 if $ac_cache_corrupted; then
2357 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2360 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2361 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2362 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2363 { (exit 1); exit 1; }; }
2391 ac_cpp='$CPP $CPPFLAGS'
2392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 # cross-compile macros
2400 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2401 if test -f "$ac_dir/install-sh"; then
2403 ac_install_sh="$ac_aux_dir/install-sh -c"
2405 elif test -f "$ac_dir/install.sh"; then
2407 ac_install_sh="$ac_aux_dir/install.sh -c"
2409 elif test -f "$ac_dir/shtool"; then
2411 ac_install_sh="$ac_aux_dir/shtool install -c"
2415 if test -z "$ac_aux_dir"; then
2416 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2417 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2418 { (exit 1); exit 1; }; }
2421 # These three variables are undocumented and unsupported,
2422 # and are intended to be withdrawn in a future Autoconf release.
2423 # They can cause serious problems if a builder's source tree is in a directory
2424 # whose full name contains unusual characters.
2425 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2426 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2427 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2430 # Make sure we can run config.sub.
2431 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2432 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2433 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2434 { (exit 1); exit 1; }; }
2436 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2437 $as_echo_n "checking build system type... " >&6; }
2438 if test "${ac_cv_build+set}" = set; then
2439 $as_echo_n "(cached) " >&6
2441 ac_build_alias=$build_alias
2442 test "x$ac_build_alias" = x &&
2443 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2444 test "x$ac_build_alias" = x &&
2445 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2446 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2447 { (exit 1); exit 1; }; }
2448 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2449 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2450 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2451 { (exit 1); exit 1; }; }
2454 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2455 $as_echo "$ac_cv_build" >&6; }
2456 case $ac_cv_build in
2458 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2459 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2460 { (exit 1); exit 1; }; };;
2463 ac_save_IFS=$IFS; IFS='-'
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2473 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2476 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2477 $as_echo_n "checking host system type... " >&6; }
2478 if test "${ac_cv_host+set}" = set; then
2479 $as_echo_n "(cached) " >&6
2481 if test "x$host_alias" = x; then
2482 ac_cv_host=$ac_cv_build
2484 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2485 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2486 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2487 { (exit 1); exit 1; }; }
2491 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2492 $as_echo "$ac_cv_host" >&6; }
2495 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2496 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2497 { (exit 1); exit 1; }; };;
2500 ac_save_IFS=$IFS; IFS='-'
2506 # Remember, the first character of IFS is used to create $*,
2507 # except with old shells:
2510 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2514 # check existence of the package
2518 for ac_dir in `pwd` "$srcdir"/`pwd`; do
2519 if test -f "$ac_dir/install-sh"; then
2521 ac_install_sh="$ac_aux_dir/install-sh -c"
2523 elif test -f "$ac_dir/install.sh"; then
2525 ac_install_sh="$ac_aux_dir/install.sh -c"
2527 elif test -f "$ac_dir/shtool"; then
2529 ac_install_sh="$ac_aux_dir/shtool install -c"
2533 if test -z "$ac_aux_dir"; then
2534 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&5
2535 $as_echo "$as_me: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&2;}
2536 { (exit 1); exit 1; }; }
2539 # These three variables are undocumented and unsupported,
2540 # and are intended to be withdrawn in a future Autoconf release.
2541 # They can cause serious problems if a builder's source tree is in a directory
2542 # whose full name contains unusual characters.
2543 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2544 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2545 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2552 # preserve any CFLAGS or LDFLAGS that may be set
2553 # NOTE: This must be done before calling any macros that end up
2554 # calling AC_PROG_CC or the like, since they will set a default
2555 # set of CFLAGS ("-g -O2") if the user did not supply any, and
2556 # we don't want those default flags to be carried over into the
2557 # rest of the build system since we have other means of controlling
2558 # debugging symbol generation and optimization.
2559 CONFIG_CFLAGS="${CFLAGS}"
2560 CONFIG_LDFLAGS="${LDFLAGS}"
2564 # specify output header file
2565 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2568 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
2569 # other macro that uses the C compiler, or the default order will be used.
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575 if test -n "$ac_tool_prefix"; then
2576 for ac_prog in gcc cc
2578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if test "${ac_cv_prog_CC+set}" = set; then
2583 $as_echo_n "(cached) " >&6
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 if test -n "$CC"; then
2607 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2608 $as_echo "$CC" >&6; }
2610 { $as_echo "$as_me:$LINENO: result: no" >&5
2611 $as_echo "no" >&6; }
2615 test -n "$CC" && break
2618 if test -z "$CC"; then
2620 for ac_prog in gcc cc
2622 # Extract the first word of "$ac_prog", so it can be a program name with args.
2623 set dummy $ac_prog; ac_word=$2
2624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2627 $as_echo_n "(cached) " >&6
2629 if test -n "$ac_ct_CC"; then
2630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639 ac_cv_prog_ac_ct_CC="$ac_prog"
2640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2650 if test -n "$ac_ct_CC"; then
2651 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2652 $as_echo "$ac_ct_CC" >&6; }
2654 { $as_echo "$as_me:$LINENO: result: no" >&5
2655 $as_echo "no" >&6; }
2659 test -n "$ac_ct_CC" && break
2662 if test "x$ac_ct_CC" = x; then
2665 case $cross_compiling:$ac_tool_warned in
2667 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2669 ac_tool_warned=yes ;;
2676 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2679 See \`config.log' for more details." >&5
2680 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2681 See \`config.log' for more details." >&2;}
2682 { (exit 1); exit 1; }; }; }
2684 # Provide some information about the compiler.
2685 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2688 { (ac_try="$ac_compiler --version >&5"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2694 $as_echo "$ac_try_echo") >&5
2695 (eval "$ac_compiler --version >&5") 2>&5
2697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699 { (ac_try="$ac_compiler -v >&5"
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2705 $as_echo "$ac_try_echo") >&5
2706 (eval "$ac_compiler -v >&5") 2>&5
2708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (ac_try="$ac_compiler -V >&5"
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2716 $as_echo "$ac_try_echo") >&5
2717 (eval "$ac_compiler -V >&5") 2>&5
2719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2737 ac_clean_files_save=$ac_clean_files
2738 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2739 # Try to create an executable without -o first, disregard a.out.
2740 # It will help us diagnose broken compilers, and finding out an intuition
2742 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2743 $as_echo_n "checking for C compiler default output file name... " >&6; }
2744 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2746 # The possible output files:
2747 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2750 for ac_file in $ac_files
2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2754 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2759 if { (ac_try="$ac_link_default"
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2765 $as_echo "$ac_try_echo") >&5
2766 (eval "$ac_link_default") 2>&5
2768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; then
2770 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2771 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2772 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2773 # so that the user can short-circuit this test for compilers unknown to
2775 for ac_file in $ac_files ''
2777 test -f "$ac_file" || continue
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2782 # We found the default executable, but exeext='' is most
2786 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2788 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2790 # We set ac_cv_exeext here because the later test for it is not
2791 # safe: cross compilers may not add the suffix if given an `-o'
2792 # argument, so we may need to know it at that point already.
2793 # Even if this section looks crufty: it has the advantage of
2800 test "$ac_cv_exeext" = no && ac_cv_exeext=
2806 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2807 $as_echo "$ac_file" >&6; }
2808 if test -z "$ac_file"; then
2809 $as_echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2812 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2815 See \`config.log' for more details." >&5
2816 $as_echo "$as_me: error: C compiler cannot create executables
2817 See \`config.log' for more details." >&2;}
2818 { (exit 77); exit 77; }; }; }
2821 ac_exeext=$ac_cv_exeext
2823 # Check that the compiler produces executables we can run. If not, either
2824 # the compiler is broken, or we cross compile.
2825 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2826 $as_echo_n "checking whether the C compiler works... " >&6; }
2827 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2828 # If not cross compiling, check that we can run a simple program.
2829 if test "$cross_compiling" != yes; then
2830 if { ac_try='./$ac_file'
2831 { (case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2836 $as_echo "$ac_try_echo") >&5
2837 (eval "$ac_try") 2>&5
2839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2843 if test "$cross_compiling" = maybe; then
2846 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2848 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2849 If you meant to cross compile, use \`--host'.
2850 See \`config.log' for more details." >&5
2851 $as_echo "$as_me: error: cannot run C compiled programs.
2852 If you meant to cross compile, use \`--host'.
2853 See \`config.log' for more details." >&2;}
2854 { (exit 1); exit 1; }; }; }
2858 { $as_echo "$as_me:$LINENO: result: yes" >&5
2859 $as_echo "yes" >&6; }
2861 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2862 ac_clean_files=$ac_clean_files_save
2863 # Check that the compiler produces executables we can run. If not, either
2864 # the compiler is broken, or we cross compile.
2865 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2866 $as_echo_n "checking whether we are cross compiling... " >&6; }
2867 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2868 $as_echo "$cross_compiling" >&6; }
2870 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2871 $as_echo_n "checking for suffix of executables... " >&6; }
2872 if { (ac_try="$ac_link"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2878 $as_echo "$ac_try_echo") >&5
2879 (eval "$ac_link") 2>&5
2881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; then
2883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2885 # work properly (i.e., refer to `conftest.exe'), while it won't with
2887 for ac_file in conftest.exe conftest conftest.*; do
2888 test -f "$ac_file" || continue
2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2899 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2900 See \`config.log' for more details." >&5
2901 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&2;}
2903 { (exit 1); exit 1; }; }; }
2906 rm -f conftest$ac_cv_exeext
2907 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2908 $as_echo "$ac_cv_exeext" >&6; }
2910 rm -f conftest.$ac_ext
2911 EXEEXT=$ac_cv_exeext
2913 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2914 $as_echo_n "checking for suffix of object files... " >&6; }
2915 if test "${ac_cv_objext+set}" = set; then
2916 $as_echo_n "(cached) " >&6
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2933 rm -f conftest.o conftest.obj
2934 if { (ac_try="$ac_compile"
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940 $as_echo "$ac_try_echo") >&5
2941 (eval "$ac_compile") 2>&5
2943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
2945 for ac_file in conftest.o conftest.obj conftest.*; do
2946 test -f "$ac_file" || continue;
2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2954 $as_echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2959 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&5
2961 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }; }
2966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2968 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969 $as_echo "$ac_cv_objext" >&6; }
2970 OBJEXT=$ac_cv_objext
2972 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 $as_echo_n "(cached) " >&6
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3002 $as_echo "$ac_try_echo") >&5
3003 (eval "$ac_compile") 2>conftest.er1
3005 grep -v '^ *+' conftest.er1 >conftest.err
3007 cat conftest.err >&5
3008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } && {
3010 test -z "$ac_c_werror_flag" ||
3011 test ! -s conftest.err
3012 } && test -s conftest.$ac_objext; then
3015 $as_echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3025 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3027 if test $ac_compiler_gnu = yes; then
3032 ac_test_CFLAGS=${CFLAGS+set}
3033 ac_save_CFLAGS=$CFLAGS
3034 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3036 if test "${ac_cv_prog_cc_g+set}" = set; then
3037 $as_echo_n "(cached) " >&6
3039 ac_save_c_werror_flag=$ac_c_werror_flag
3040 ac_c_werror_flag=yes
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3065 $as_echo "$ac_try_echo") >&5
3066 (eval "$ac_compile") 2>conftest.er1
3068 grep -v '^ *+' conftest.er1 >conftest.err
3070 cat conftest.err >&5
3071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } && {
3073 test -z "$ac_c_werror_flag" ||
3074 test ! -s conftest.err
3075 } && test -s conftest.$ac_objext; then
3078 $as_echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3104 $as_echo "$ac_try_echo") >&5
3105 (eval "$ac_compile") 2>conftest.er1
3107 grep -v '^ *+' conftest.er1 >conftest.err
3109 cat conftest.err >&5
3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } && {
3112 test -z "$ac_c_werror_flag" ||
3113 test ! -s conftest.err
3114 } && test -s conftest.$ac_objext; then
3117 $as_echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3120 ac_c_werror_flag=$ac_save_c_werror_flag
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3144 $as_echo "$ac_try_echo") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } && {
3152 test -z "$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3154 } && test -s conftest.$ac_objext; then
3157 $as_echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 ac_c_werror_flag=$ac_save_c_werror_flag
3172 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3173 $as_echo "$ac_cv_prog_cc_g" >&6; }
3174 if test "$ac_test_CFLAGS" = set; then
3175 CFLAGS=$ac_save_CFLAGS
3176 elif test $ac_cv_prog_cc_g = yes; then
3177 if test "$GCC" = yes; then
3183 if test "$GCC" = yes; then
3189 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3190 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3191 if test "${ac_cv_prog_cc_c89+set}" = set; then
3192 $as_echo_n "(cached) " >&6
3194 ac_cv_prog_cc_c89=no
3196 cat >conftest.$ac_ext <<_ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3204 #include <sys/types.h>
3205 #include <sys/stat.h>
3206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3207 struct buf { int x; };
3208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3209 static char *e (p, i)
3215 static char *f (char * (*g) (char **, int), char **p, ...)
3220 s = g (p, va_arg (v,int));
3225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3226 function prototypes and stuff, but not '\xHH' hex character constants.
3227 These don't provoke an error unfortunately, instead are silently treated
3228 as 'x'. The following induces an error, until -std is added to get
3229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3230 array size at least. It's necessary to write '\x00'==0 to get something
3231 that's true only with -std. */
3232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3234 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3235 inside strings and character constants. */
3237 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3239 int test (int i, double x);
3240 struct s1 {int (*f) (int a);};
3241 struct s2 {int (*f) (double a);};
3242 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3248 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3253 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3254 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3256 CC="$ac_save_CC $ac_arg"
3257 rm -f conftest.$ac_objext
3258 if { (ac_try="$ac_compile"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265 (eval "$ac_compile") 2>conftest.er1
3267 grep -v '^ *+' conftest.er1 >conftest.err
3269 cat conftest.err >&5
3270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } && {
3272 test -z "$ac_c_werror_flag" ||
3273 test ! -s conftest.err
3274 } && test -s conftest.$ac_objext; then
3275 ac_cv_prog_cc_c89=$ac_arg
3277 $as_echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3283 rm -f core conftest.err conftest.$ac_objext
3284 test "x$ac_cv_prog_cc_c89" != "xno" && break
3286 rm -f conftest.$ac_ext
3291 case "x$ac_cv_prog_cc_c89" in
3293 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3294 $as_echo "none needed" >&6; } ;;
3296 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3297 $as_echo "unsupported" >&6; } ;;
3299 CC="$CC $ac_cv_prog_cc_c89"
3300 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3301 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3319 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3320 # On Suns, sometimes $CPP names a directory.
3321 if test -n "$CPP" && test -d "$CPP"; then
3324 if test -z "$CPP"; then
3325 if test "${ac_cv_prog_CPP+set}" = set; then
3326 $as_echo_n "(cached) " >&6
3328 # Double quotes because CPP needs to be expanded
3329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3332 for ac_c_preproc_warn_flag in '' yes
3334 # Use a header file that comes with gcc, so configuring glibc
3335 # with a fresh cross-compiler works.
3336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3337 # <limits.h> exists even on freestanding compilers.
3338 # On the NeXT, cc -E runs the code through the compiler's parser,
3339 # not just through cpp. "Syntax error" is here to catch this case.
3340 cat >conftest.$ac_ext <<_ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3347 # include <limits.h>
3349 # include <assert.h>
3353 if { (ac_try="$ac_cpp conftest.$ac_ext"
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3359 $as_echo "$ac_try_echo") >&5
3360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null && {
3367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3368 test ! -s conftest.err
3372 $as_echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 # Broken: fails on valid input.
3379 rm -f conftest.err conftest.$ac_ext
3381 # OK, works on sane cases. Now check whether nonexistent headers
3382 # can be detected and how.
3383 cat >conftest.$ac_ext <<_ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389 #include <ac_nonexistent.h>
3391 if { (ac_try="$ac_cpp conftest.$ac_ext"
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3397 $as_echo "$ac_try_echo") >&5
3398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } >/dev/null && {
3405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3406 test ! -s conftest.err
3408 # Broken: success on invalid input.
3411 $as_echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3414 # Passes both tests.
3419 rm -f conftest.err conftest.$ac_ext
3422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3423 rm -f conftest.err conftest.$ac_ext
3424 if $ac_preproc_ok; then
3436 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3437 $as_echo "$CPP" >&6; }
3439 for ac_c_preproc_warn_flag in '' yes
3441 # Use a header file that comes with gcc, so configuring glibc
3442 # with a fresh cross-compiler works.
3443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3444 # <limits.h> exists even on freestanding compilers.
3445 # On the NeXT, cc -E runs the code through the compiler's parser,
3446 # not just through cpp. "Syntax error" is here to catch this case.
3447 cat >conftest.$ac_ext <<_ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3454 # include <limits.h>
3456 # include <assert.h>
3460 if { (ac_try="$ac_cpp conftest.$ac_ext"
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3466 $as_echo "$ac_try_echo") >&5
3467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null && {
3474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3475 test ! -s conftest.err
3479 $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether nonexistent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3504 $as_echo "$ac_try_echo") >&5
3505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3507 grep -v '^ *+' conftest.er1 >conftest.err
3509 cat conftest.err >&5
3510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } >/dev/null && {
3512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3515 # Broken: success on invalid input.
3518 $as_echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 # Passes both tests.
3526 rm -f conftest.err conftest.$ac_ext
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then
3534 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3537 See \`config.log' for more details." >&5
3538 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3539 See \`config.log' for more details." >&2;}
3540 { (exit 1); exit 1; }; }; }
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3551 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3552 if test "${ac_cv_path_GREP+set}" = set; then
3553 $as_echo_n "(cached) " >&6
3555 if test -z "$GREP"; then
3556 ac_path_GREP_found=false
3557 # Loop through the user's path and test for each of PROGNAME-LIST
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3562 test -z "$as_dir" && as_dir=.
3563 for ac_prog in grep ggrep; do
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3566 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3567 # Check for GNU ac_path_GREP and select it if it is found.
3568 # Check for GNU $ac_path_GREP
3569 case `"$ac_path_GREP" --version 2>&1` in
3571 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3574 $as_echo_n 0123456789 >"conftest.in"
3577 cat "conftest.in" "conftest.in" >"conftest.tmp"
3578 mv "conftest.tmp" "conftest.in"
3579 cp "conftest.in" "conftest.nl"
3580 $as_echo 'GREP' >> "conftest.nl"
3581 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3583 ac_count=`expr $ac_count + 1`
3584 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3585 # Best one so far, save it but keep looking for a better one
3586 ac_cv_path_GREP="$ac_path_GREP"
3587 ac_path_GREP_max=$ac_count
3589 # 10*(2^10) chars as input seems more than enough
3590 test $ac_count -gt 10 && break
3592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3595 $ac_path_GREP_found && break 3
3600 if test -z "$ac_cv_path_GREP"; then
3601 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3602 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3603 { (exit 1); exit 1; }; }
3606 ac_cv_path_GREP=$GREP
3610 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3611 $as_echo "$ac_cv_path_GREP" >&6; }
3612 GREP="$ac_cv_path_GREP"
3615 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3616 $as_echo_n "checking for egrep... " >&6; }
3617 if test "${ac_cv_path_EGREP+set}" = set; then
3618 $as_echo_n "(cached) " >&6
3620 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3621 then ac_cv_path_EGREP="$GREP -E"
3623 if test -z "$EGREP"; then
3624 ac_path_EGREP_found=false
3625 # Loop through the user's path and test for each of PROGNAME-LIST
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3630 test -z "$as_dir" && as_dir=.
3631 for ac_prog in egrep; do
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3634 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3635 # Check for GNU ac_path_EGREP and select it if it is found.
3636 # Check for GNU $ac_path_EGREP
3637 case `"$ac_path_EGREP" --version 2>&1` in
3639 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3642 $as_echo_n 0123456789 >"conftest.in"
3645 cat "conftest.in" "conftest.in" >"conftest.tmp"
3646 mv "conftest.tmp" "conftest.in"
3647 cp "conftest.in" "conftest.nl"
3648 $as_echo 'EGREP' >> "conftest.nl"
3649 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3651 ac_count=`expr $ac_count + 1`
3652 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3653 # Best one so far, save it but keep looking for a better one
3654 ac_cv_path_EGREP="$ac_path_EGREP"
3655 ac_path_EGREP_max=$ac_count
3657 # 10*(2^10) chars as input seems more than enough
3658 test $ac_count -gt 10 && break
3660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3663 $ac_path_EGREP_found && break 3
3668 if test -z "$ac_cv_path_EGREP"; then
3669 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3670 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3671 { (exit 1); exit 1; }; }
3674 ac_cv_path_EGREP=$EGREP
3679 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3680 $as_echo "$ac_cv_path_EGREP" >&6; }
3681 EGREP="$ac_cv_path_EGREP"
3684 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3685 $as_echo_n "checking for ANSI C header files... " >&6; }
3686 if test "${ac_cv_header_stdc+set}" = set; then
3687 $as_echo_n "(cached) " >&6
3689 cat >conftest.$ac_ext <<_ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3708 rm -f conftest.$ac_objext
3709 if { (ac_try="$ac_compile"
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715 $as_echo "$ac_try_echo") >&5
3716 (eval "$ac_compile") 2>conftest.er1
3718 grep -v '^ *+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && {
3723 test -z "$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 } && test -s conftest.$ac_objext; then
3726 ac_cv_header_stdc=yes
3728 $as_echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 ac_cv_header_stdc=no
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 if test $ac_cv_header_stdc = yes; then
3737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3738 cat >conftest.$ac_ext <<_ACEOF
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h. */
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 $EGREP "memchr" >/dev/null 2>&1; then
3751 ac_cv_header_stdc=no
3757 if test $ac_cv_header_stdc = yes; then
3758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 $EGREP "free" >/dev/null 2>&1; then
3772 ac_cv_header_stdc=no
3778 if test $ac_cv_header_stdc = yes; then
3779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3780 if test "$cross_compiling" = yes; then
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3791 #if ((' ' & 0x0FF) == 0x020)
3792 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3793 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3795 # define ISLOWER(c) \
3796 (('a' <= (c) && (c) <= 'i') \
3797 || ('j' <= (c) && (c) <= 'r') \
3798 || ('s' <= (c) && (c) <= 'z'))
3799 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3802 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3807 for (i = 0; i < 256; i++)
3808 if (XOR (islower (i), ISLOWER (i))
3809 || toupper (i) != TOUPPER (i))
3814 rm -f conftest$ac_exeext
3815 if { (ac_try="$ac_link"
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3821 $as_echo "$ac_try_echo") >&5
3822 (eval "$ac_link") 2>&5
3824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3826 { (case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831 $as_echo "$ac_try_echo") >&5
3832 (eval "$ac_try") 2>&5
3834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3838 $as_echo "$as_me: program exited with status $ac_status" >&5
3839 $as_echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3843 ac_cv_header_stdc=no
3845 rm -rf conftest.dSYM
3846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3853 $as_echo "$ac_cv_header_stdc" >&6; }
3854 if test $ac_cv_header_stdc = yes; then
3856 cat >>confdefs.h <<\_ACEOF
3857 #define STDC_HEADERS 1
3862 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3872 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3873 inttypes.h stdint.h unistd.h
3875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3877 $as_echo_n "checking for $ac_header... " >&6; }
3878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3879 $as_echo_n "(cached) " >&6
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 $ac_includes_default
3889 #include <$ac_header>
3891 rm -f conftest.$ac_objext
3892 if { (ac_try="$ac_compile"
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3898 $as_echo "$ac_try_echo") >&5
3899 (eval "$ac_compile") 2>conftest.er1
3901 grep -v '^ *+' conftest.er1 >conftest.err
3903 cat conftest.err >&5
3904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } && {
3906 test -z "$ac_c_werror_flag" ||
3907 test ! -s conftest.err
3908 } && test -s conftest.$ac_objext; then
3909 eval "$as_ac_Header=yes"
3911 $as_echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 eval "$as_ac_Header=no"
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_res=`eval 'as_val=${'$as_ac_Header'}
3920 $as_echo "$as_val"'`
3921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3922 $as_echo "$ac_res" >&6; }
3923 as_val=`eval 'as_val=${'$as_ac_Header'}
3924 $as_echo "$as_val"'`
3925 if test "x$as_val" = x""yes; then
3926 cat >>confdefs.h <<_ACEOF
3927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3936 if test "${ac_cv_header_minix_config_h+set}" = set; then
3937 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3938 $as_echo_n "checking for minix/config.h... " >&6; }
3939 if test "${ac_cv_header_minix_config_h+set}" = set; then
3940 $as_echo_n "(cached) " >&6
3942 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3943 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3945 # Is the header compilable?
3946 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3947 $as_echo_n "checking minix/config.h usability... " >&6; }
3948 cat >conftest.$ac_ext <<_ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 $ac_includes_default
3955 #include <minix/config.h>
3957 rm -f conftest.$ac_objext
3958 if { (ac_try="$ac_compile"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3964 $as_echo "$ac_try_echo") >&5
3965 (eval "$ac_compile") 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err