2 # From configure.ac Revision: 256528 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for asterisk 1.6.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 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='1.6'
603 PACKAGE_STRING='asterisk 1.6'
604 PACKAGE_BUGREPORT='www.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
695 AST_NO_STRICT_OVERFLOW
697 AST_DECLARATION_AFTER_STATEMENT
700 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
701 PBX_PTHREAD_RWLOCK_INITIALIZER
773 SPEEX_PREPROCESS_INCLUDE
819 PBX_PRI_REVERSE_CHARGE
820 PRI_REVERSE_CHARGE_DIR
821 PRI_REVERSE_CHARGE_INCLUDE
822 PRI_REVERSE_CHARGE_LIB
823 PBX_PRI_SERVICE_MESSAGES
824 PRI_SERVICE_MESSAGES_DIR
825 PRI_SERVICE_MESSAGES_INCLUDE
826 PRI_SERVICE_MESSAGES_LIB
829 PRI_PROG_W_CAUSE_INCLUDE
831 PBX_PRI_INBANDDISCONNECT
832 PRI_INBANDDISCONNECT_DIR
833 PRI_INBANDDISCONNECT_INCLUDE
834 PRI_INBANDDISCONNECT_LIB
841 PRI_SETUP_KEYPAD_INCLUDE
843 PBX_PRI_CALL_REROUTING
844 PRI_CALL_REROUTING_DIR
845 PRI_CALL_REROUTING_INCLUDE
846 PRI_CALL_REROUTING_LIB
849 PRI_CALL_HOLD_INCLUDE
1116 program_transform_name
1128 enable_option_checking
1198 enable_internal_poll
1202 ac_precious_vars='build_alias
1217 # Initialize some variables set by options.
1219 ac_init_version=false
1220 ac_unrecognized_opts=
1221 ac_unrecognized_sep=
1222 # The variables have the same names as the options, with
1223 # dashes changed to underlines.
1224 cache_file=/dev/null
1231 program_transform_name=s,x,x,
1239 # Installation directory options.
1240 # These are left unexpanded so users can "make install exec_prefix=/foo"
1241 # and all the variables that are supposed to be based on exec_prefix
1242 # by default will actually change.
1243 # Use braces instead of parens because sh, perl, etc. also accept them.
1244 # (The list follows the same order as the GNU Coding Standards.)
1245 bindir='${exec_prefix}/bin'
1246 sbindir='${exec_prefix}/sbin'
1247 libexecdir='${exec_prefix}/libexec'
1248 datarootdir='${prefix}/share'
1249 datadir='${datarootdir}'
1250 sysconfdir='${prefix}/etc'
1251 sharedstatedir='${prefix}/com'
1252 localstatedir='${prefix}/var'
1253 includedir='${prefix}/include'
1254 oldincludedir='/usr/include'
1255 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1256 infodir='${datarootdir}/info'
1261 libdir='${exec_prefix}/lib'
1262 localedir='${datarootdir}/locale'
1263 mandir='${datarootdir}/man'
1269 # If the previous option needs an argument, assign it.
1270 if test -n "$ac_prev"; then
1271 eval $ac_prev=\$ac_option
1277 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1281 # Accept the important Cygnus configure options, so we can diagnose typos.
1283 case $ac_dashdash$ac_option in
1287 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1289 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1290 bindir=$ac_optarg ;;
1292 -build | --build | --buil | --bui | --bu)
1293 ac_prev=build_alias ;;
1294 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1295 build_alias=$ac_optarg ;;
1297 -cache-file | --cache-file | --cache-fil | --cache-fi \
1298 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1299 ac_prev=cache_file ;;
1300 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1301 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1302 cache_file=$ac_optarg ;;
1304 --config-cache | -C)
1305 cache_file=config.cache ;;
1307 -datadir | --datadir | --datadi | --datad)
1309 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1310 datadir=$ac_optarg ;;
1312 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1313 | --dataroo | --dataro | --datar)
1314 ac_prev=datarootdir ;;
1315 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1316 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1317 datarootdir=$ac_optarg ;;
1319 -disable-* | --disable-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1324 { (exit 1); exit 1; }; }
1325 ac_useropt_orig=$ac_useropt
1326 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1327 case $ac_user_opts in
1329 "enable_$ac_useropt"
1331 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1332 ac_unrecognized_sep=', ';;
1334 eval enable_$ac_useropt=no ;;
1336 -docdir | --docdir | --docdi | --doc | --do)
1338 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1339 docdir=$ac_optarg ;;
1341 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1343 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1344 dvidir=$ac_optarg ;;
1346 -enable-* | --enable-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1351 { (exit 1); exit 1; }; }
1352 ac_useropt_orig=$ac_useropt
1353 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1354 case $ac_user_opts in
1356 "enable_$ac_useropt"
1358 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1359 ac_unrecognized_sep=', ';;
1361 eval enable_$ac_useropt=\$ac_optarg ;;
1363 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1364 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1365 | --exec | --exe | --ex)
1366 ac_prev=exec_prefix ;;
1367 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1368 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1369 | --exec=* | --exe=* | --ex=*)
1370 exec_prefix=$ac_optarg ;;
1372 -gas | --gas | --ga | --g)
1373 # Obsolete; use --with-gas.
1376 -help | --help | --hel | --he | -h)
1377 ac_init_help=long ;;
1378 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1379 ac_init_help=recursive ;;
1380 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1381 ac_init_help=short ;;
1383 -host | --host | --hos | --ho)
1384 ac_prev=host_alias ;;
1385 -host=* | --host=* | --hos=* | --ho=*)
1386 host_alias=$ac_optarg ;;
1388 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1390 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1392 htmldir=$ac_optarg ;;
1394 -includedir | --includedir | --includedi | --included | --include \
1395 | --includ | --inclu | --incl | --inc)
1396 ac_prev=includedir ;;
1397 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1398 | --includ=* | --inclu=* | --incl=* | --inc=*)
1399 includedir=$ac_optarg ;;
1401 -infodir | --infodir | --infodi | --infod | --info | --inf)
1403 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1404 infodir=$ac_optarg ;;
1406 -libdir | --libdir | --libdi | --libd)
1408 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1409 libdir=$ac_optarg ;;
1411 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1412 | --libexe | --libex | --libe)
1413 ac_prev=libexecdir ;;
1414 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1415 | --libexe=* | --libex=* | --libe=*)
1416 libexecdir=$ac_optarg ;;
1418 -localedir | --localedir | --localedi | --localed | --locale)
1419 ac_prev=localedir ;;
1420 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1421 localedir=$ac_optarg ;;
1423 -localstatedir | --localstatedir | --localstatedi | --localstated \
1424 | --localstate | --localstat | --localsta | --localst | --locals)
1425 ac_prev=localstatedir ;;
1426 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1427 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1428 localstatedir=$ac_optarg ;;
1430 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1432 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1433 mandir=$ac_optarg ;;
1435 -nfp | --nfp | --nf)
1436 # Obsolete; use --without-fp.
1439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1440 | --no-cr | --no-c | -n)
1443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1447 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1448 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1449 | --oldin | --oldi | --old | --ol | --o)
1450 ac_prev=oldincludedir ;;
1451 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1452 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1453 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1454 oldincludedir=$ac_optarg ;;
1456 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1458 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1459 prefix=$ac_optarg ;;
1461 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1462 | --program-pre | --program-pr | --program-p)
1463 ac_prev=program_prefix ;;
1464 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1465 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1466 program_prefix=$ac_optarg ;;
1468 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1469 | --program-suf | --program-su | --program-s)
1470 ac_prev=program_suffix ;;
1471 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1472 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1473 program_suffix=$ac_optarg ;;
1475 -program-transform-name | --program-transform-name \
1476 | --program-transform-nam | --program-transform-na \
1477 | --program-transform-n | --program-transform- \
1478 | --program-transform | --program-transfor \
1479 | --program-transfo | --program-transf \
1480 | --program-trans | --program-tran \
1481 | --progr-tra | --program-tr | --program-t)
1482 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1492 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1494 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1495 pdfdir=$ac_optarg ;;
1497 -psdir | --psdir | --psdi | --psd | --ps)
1499 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1503 | -silent | --silent | --silen | --sile | --sil)
1506 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1508 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1510 sbindir=$ac_optarg ;;
1512 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1513 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1514 | --sharedst | --shareds | --shared | --share | --shar \
1516 ac_prev=sharedstatedir ;;
1517 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1518 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1519 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1521 sharedstatedir=$ac_optarg ;;
1523 -site | --site | --sit)
1525 -site=* | --site=* | --sit=*)
1528 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1530 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1531 srcdir=$ac_optarg ;;
1533 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1534 | --syscon | --sysco | --sysc | --sys | --sy)
1535 ac_prev=sysconfdir ;;
1536 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1537 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1538 sysconfdir=$ac_optarg ;;
1540 -target | --target | --targe | --targ | --tar | --ta | --t)
1541 ac_prev=target_alias ;;
1542 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1543 target_alias=$ac_optarg ;;
1545 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1548 -version | --version | --versio | --versi | --vers | -V)
1549 ac_init_version=: ;;
1552 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1553 # Reject names that are not valid shell variable names.
1554 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1555 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1556 { (exit 1); exit 1; }; }
1557 ac_useropt_orig=$ac_useropt
1558 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1559 case $ac_user_opts in
1563 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1564 ac_unrecognized_sep=', ';;
1566 eval with_$ac_useropt=\$ac_optarg ;;
1568 -without-* | --without-*)
1569 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1570 # Reject names that are not valid shell variable names.
1571 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1572 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1573 { (exit 1); exit 1; }; }
1574 ac_useropt_orig=$ac_useropt
1575 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1576 case $ac_user_opts in
1580 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1581 ac_unrecognized_sep=', ';;
1583 eval with_$ac_useropt=no ;;
1586 # Obsolete; use --with-x.
1589 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1590 | --x-incl | --x-inc | --x-in | --x-i)
1591 ac_prev=x_includes ;;
1592 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1593 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1594 x_includes=$ac_optarg ;;
1596 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1597 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1598 ac_prev=x_libraries ;;
1599 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1600 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1601 x_libraries=$ac_optarg ;;
1603 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1604 Try \`$0 --help' for more information." >&2
1605 { (exit 1); exit 1; }; }
1609 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1610 # Reject names that are not valid shell variable names.
1611 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1612 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1613 { (exit 1); exit 1; }; }
1614 eval $ac_envvar=\$ac_optarg
1615 export $ac_envvar ;;
1618 # FIXME: should be removed in autoconf 3.0.
1619 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1620 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1621 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1622 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1628 if test -n "$ac_prev"; then
1629 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1630 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1631 { (exit 1); exit 1; }; }
1634 if test -n "$ac_unrecognized_opts"; then
1635 case $enable_option_checking in
1637 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1638 { (exit 1); exit 1; }; } ;;
1639 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1643 # Check all directory arguments for consistency.
1644 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1645 datadir sysconfdir sharedstatedir localstatedir includedir \
1646 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1647 libdir localedir mandir
1649 eval ac_val=\$$ac_var
1650 # Remove trailing slashes.
1653 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1654 eval $ac_var=\$ac_val;;
1656 # Be sure to have absolute directory names.
1658 [\\/$]* | ?:[\\/]* ) continue;;
1659 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1661 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1662 { (exit 1); exit 1; }; }
1665 # There might be people who depend on the old broken behavior: `$host'
1666 # used to hold the argument of --host etc.
1667 # FIXME: To remove some day.
1670 target=$target_alias
1672 # FIXME: To remove some day.
1673 if test "x$host_alias" != x; then
1674 if test "x$build_alias" = x; then
1675 cross_compiling=maybe
1676 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1677 If a cross compiler is detected then cross compile mode will be used." >&2
1678 elif test "x$build_alias" != "x$host_alias"; then
1684 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1686 test "$silent" = yes && exec 6>/dev/null
1689 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1690 ac_ls_di=`ls -di .` &&
1691 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1692 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1693 { (exit 1); exit 1; }; }
1694 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1695 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1696 { (exit 1); exit 1; }; }
1699 # Find the source files, if location was not specified.
1700 if test -z "$srcdir"; then
1701 ac_srcdir_defaulted=yes
1702 # Try the directory containing this script, then the parent directory.
1703 ac_confdir=`$as_dirname -- "$as_myself" ||
1704 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1705 X"$as_myself" : 'X\(//\)[^/]' \| \
1706 X"$as_myself" : 'X\(//\)$' \| \
1707 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1708 $as_echo X"$as_myself" |
1709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1727 if test ! -r "$srcdir/$ac_unique_file"; then
1731 ac_srcdir_defaulted=no
1733 if test ! -r "$srcdir/$ac_unique_file"; then
1734 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1735 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1736 { (exit 1); exit 1; }; }
1738 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1740 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1741 { (exit 1); exit 1; }; }
1743 # When building in place, set srcdir=.
1744 if test "$ac_abs_confdir" = "$ac_pwd"; then
1747 # Remove unnecessary trailing slashes from srcdir.
1748 # Double slashes in file names in object file debugging info
1749 # mess up M-x gdb in Emacs.
1751 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1753 for ac_var in $ac_precious_vars; do
1754 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1755 eval ac_env_${ac_var}_value=\$${ac_var}
1756 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1757 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1761 # Report the --help message.
1763 if test "$ac_init_help" = "long"; then
1764 # Omit some internal or obsolete options to make the list less imposing.
1765 # This message is too long to be a string in the A/UX 3.1 sh.
1767 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1769 Usage: $0 [OPTION]... [VAR=VALUE]...
1771 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1772 VAR=VALUE. See below for descriptions of some of the useful variables.
1774 Defaults for the options are specified in brackets.
1777 -h, --help display this help and exit
1778 --help=short display options specific to this package
1779 --help=recursive display the short help of all the included packages
1780 -V, --version display version information and exit
1781 -q, --quiet, --silent do not print \`checking...' messages
1782 --cache-file=FILE cache test results in FILE [disabled]
1783 -C, --config-cache alias for \`--cache-file=config.cache'
1784 -n, --no-create do not create output files
1785 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1787 Installation directories:
1788 --prefix=PREFIX install architecture-independent files in PREFIX
1789 [$ac_default_prefix]
1790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1793 By default, \`make install' will install all the files in
1794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1796 for instance \`--prefix=\$HOME'.
1798 For better control, use the options below.
1800 Fine tuning of the installation directories:
1801 --bindir=DIR user executables [EPREFIX/bin]
1802 --sbindir=DIR system admin executables [EPREFIX/sbin]
1803 --libexecdir=DIR program executables [EPREFIX/libexec]
1804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1807 --libdir=DIR object code libraries [EPREFIX/lib]
1808 --includedir=DIR C header files [PREFIX/include]
1809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1810 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1811 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1812 --infodir=DIR info documentation [DATAROOTDIR/info]
1813 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1814 --mandir=DIR man documentation [DATAROOTDIR/man]
1815 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1816 --htmldir=DIR html documentation [DOCDIR]
1817 --dvidir=DIR dvi documentation [DOCDIR]
1818 --pdfdir=DIR pdf documentation [DOCDIR]
1819 --psdir=DIR ps documentation [DOCDIR]
1825 --build=BUILD configure for building on BUILD [guessed]
1826 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1830 if test -n "$ac_init_help"; then
1831 case $ac_init_help in
1832 short | recursive ) echo "Configuration of asterisk 1.6:";;
1837 --disable-option-checking ignore unrecognized --enable/--with options
1838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1840 --enable-dev-mode Turn on developer mode
1841 --disable-largefile omit support for large files
1842 --enable-internal-poll Use Asterisk's poll implementation
1843 --disable-xmldoc Explicity disable XML documentation
1846 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1847 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1848 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1849 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1850 --with-execinfo=PATH use Stack Backtrace support files in PATH
1851 --with-bluetooth=PATH use Bluetooth Support files in PATH
1852 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1853 --with-curl=PATH use cURL files in PATH
1854 --with-curses=PATH use curses files in PATH
1855 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1856 --with-dahdi=PATH use DAHDI files in PATH
1857 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1858 --with-gsm=PATH use External GSM library files in PATH, use
1859 'internal' GSM otherwise
1860 --with-gtk2=PATH use gtk2 libraries files in PATH
1861 --with-gmime=PATH use GMime library files in PATH
1862 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1863 --with-ical=PATH use ical libraries files in PATH
1864 --with-iconv=PATH use Iconv Library files in PATH
1865 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1866 --with-imap=PATH use UW IMAP Toolkit files in PATH
1867 --with-inotify=PATH use inotify support files in PATH
1868 --with-iodbc=PATH use iODBC files in PATH
1869 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1870 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1871 --with-ldap=PATH use OpenLDAP files in PATH
1872 --with-libxml2=PATH use LibXML2 files in PATH
1873 --with-ltdl=PATH use libtool files in PATH
1874 --with-lua=PATH use Lua files in PATH
1875 --with-misdn=PATH use mISDN User Library files in PATH
1876 --with-mysqlclient=PATH use mysqlclient files in PATH
1877 --with-nbs=PATH use Network Broadcast Sound files in PATH
1878 --with-ncurses=PATH use ncurses files in PATH
1879 --with-neon=PATH use neon files in PATH
1880 --with-netsnmp=PATH use Net-SNMP files in PATH
1881 --with-newt=PATH use newt files in PATH
1882 --with-ogg=PATH use OGG files in PATH
1883 --with-osptk=PATH use OSP Toolkit files in PATH
1884 --with-oss=PATH use Open Sound System files in PATH
1885 --with-postgres=PATH use PostgreSQL files in PATH
1886 --with-popt=PATH use popt files in PATH
1887 --with-portaudio=PATH use PortAudio files in PATH
1888 --with-pri=PATH use ISDN PRI files in PATH
1889 --with-resample=PATH use LIBRESAMPLE files in PATH
1890 --with-spandsp=PATH use SPANDSP files in PATH
1891 --with-ss7=PATH use ISDN SS7 files in PATH
1892 --with-openr2=PATH use MFR2 files in PATH
1893 --with-pwlib=PATH use PWlib files in PATH
1894 --with-h323=PATH use OpenH323 files in PATH
1895 --with-radius=PATH use Radius Client files in PATH
1896 --with-sdl=PATH use Sdl files in PATH
1897 --with-SDL_image=PATH use Sdl Image library files in PATH
1898 --with-openais=PATH use OpenAIS files in PATH
1899 --with-speex=PATH use Speex files in PATH
1900 --with-speex=PATH use Speex preprocess routines files in PATH
1901 --with-speexdsp=PATH use Speexdsp files in PATH
1902 --with-sqlite=PATH use SQLite files in PATH
1903 --with-sqlite3=PATH use SQLite files in PATH
1904 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1905 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1907 --with-tds=PATH use FreeTDS files in PATH
1908 --with-termcap=PATH use Termcap files in PATH
1909 --with-tinfo=PATH use Term Info files in PATH
1910 --with-tonezone=PATH use tonezone files in PATH
1911 --with-unixodbc=PATH use unixODBC files in PATH
1912 --with-usb=PATH use usb files in PATH
1913 --with-vorbis=PATH use Vorbis files in PATH
1914 --with-vpb=PATH use Voicetronix API files in PATH
1915 --with-x11=PATH use X11 support files in PATH
1916 --with-z=PATH use zlib files in PATH
1917 --with-timerfd=PATH use timerfd files in PATH
1918 --with-libcurl=DIR look for the curl library in DIR
1920 Some influential environment variables:
1921 CC C compiler command
1922 CFLAGS C compiler flags
1923 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1924 nonstandard directory <lib dir>
1925 LIBS libraries to pass to the linker, e.g. -l<library>
1926 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1927 you have headers in a nonstandard directory <include dir>
1929 CXX C++ compiler command
1930 CXXFLAGS C++ compiler flags
1931 CXXCPP C++ preprocessor
1933 Use these variables to override the choices made by `configure' or to help
1934 it to find libraries and programs with nonstandard names/locations.
1936 Report bugs to <www.asterisk.org>.
1941 if test "$ac_init_help" = "recursive"; then
1942 # If there are subdirs, report their specific --help.
1943 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1944 test -d "$ac_dir" ||
1945 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1950 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1952 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1953 # A ".." for each directory in $ac_dir_suffix.
1954 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1955 case $ac_top_builddir_sub in
1956 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1957 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1960 ac_abs_top_builddir=$ac_pwd
1961 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1962 # for backward compatibility:
1963 ac_top_builddir=$ac_top_build_prefix
1966 .) # We are building in place.
1968 ac_top_srcdir=$ac_top_builddir_sub
1969 ac_abs_top_srcdir=$ac_pwd ;;
1970 [\\/]* | ?:[\\/]* ) # Absolute name.
1971 ac_srcdir=$srcdir$ac_dir_suffix;
1972 ac_top_srcdir=$srcdir
1973 ac_abs_top_srcdir=$srcdir ;;
1975 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1976 ac_top_srcdir=$ac_top_build_prefix$srcdir
1977 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1979 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1981 cd "$ac_dir" || { ac_status=$?; continue; }
1982 # Check for guested configure.
1983 if test -f "$ac_srcdir/configure.gnu"; then
1985 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1986 elif test -f "$ac_srcdir/configure"; then
1988 $SHELL "$ac_srcdir/configure" --help=recursive
1990 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1992 cd "$ac_pwd" || { ac_status=$?; break; }
1996 test -n "$ac_init_help" && exit $ac_status
1997 if $ac_init_version; then
1999 asterisk configure 1.6
2000 generated by GNU Autoconf 2.63
2002 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2003 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2004 This configure script is free software; the Free Software Foundation
2005 gives unlimited permission to copy, distribute and modify it.
2011 cat >config.log <<_ACEOF
2012 This file contains any messages produced by compilers while
2013 running configure, to aid debugging if configure makes a mistake.
2015 It was created by asterisk $as_me 1.6, which was
2016 generated by GNU Autoconf 2.63. Invocation command line was
2028 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2029 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2030 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2031 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2032 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2034 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2035 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2037 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2038 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2039 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2040 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2041 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2042 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2043 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 $as_echo "PATH: $as_dir"
2068 # Keep a trace of the command line.
2069 # Strip out --no-create and --no-recursion so they do not pile up.
2070 # Strip out --silent because we don't want to record it for future runs.
2071 # Also quote any args containing shell meta-characters.
2072 # Make two passes to allow for proper duplicate-argument suppression.
2076 ac_must_keep_next=false
2082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084 | -silent | --silent | --silen | --sile | --sil)
2087 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2090 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2092 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2093 if test $ac_must_keep_next = true; then
2094 ac_must_keep_next=false # Got value, back to normal.
2097 *=* | --config-cache | -C | -disable-* | --disable-* \
2098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100 | -with-* | --with-* | -without-* | --without-* | --x)
2101 case "$ac_configure_args0 " in
2102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2105 -* ) ac_must_keep_next=true ;;
2108 ac_configure_args="$ac_configure_args '$ac_arg'"
2113 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2114 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2116 # When interrupted or exit'd, cleanup temporary files, and complete
2117 # config.log. We remove comments because anyway the quotes in there
2118 # would cause problems or look ugly.
2119 # WARNING: Use '\'' to represent an apostrophe within the trap.
2120 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2121 trap 'exit_status=$?
2122 # Save into config.log some information that might help in debugging.
2127 ## ---------------- ##
2128 ## Cache variables. ##
2129 ## ---------------- ##
2132 # The following way of writing the cache mishandles newlines in values,
2134 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2135 eval ac_val=\$$ac_var
2139 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2140 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2143 _ | IFS | as_nl) ;; #(
2144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2145 *) $as_unset $ac_var ;;
2150 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2151 *${as_nl}ac_space=\ *)
2153 "s/'\''/'\''\\\\'\'''\''/g;
2154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2157 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2165 ## ----------------- ##
2166 ## Output variables. ##
2167 ## ----------------- ##
2170 for ac_var in $ac_subst_vars
2172 eval ac_val=\$$ac_var
2174 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 $as_echo "$ac_var='\''$ac_val'\''"
2180 if test -n "$ac_subst_files"; then
2182 ## ------------------- ##
2183 ## File substitutions. ##
2184 ## ------------------- ##
2187 for ac_var in $ac_subst_files
2189 eval ac_val=\$$ac_var
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 $as_echo "$ac_var='\''$ac_val'\''"
2198 if test -s confdefs.h; then
2208 test "$ac_signal" != 0 &&
2209 $as_echo "$as_me: caught signal $ac_signal"
2210 $as_echo "$as_me: exit $exit_status"
2212 rm -f core *.core core.conftest.* &&
2213 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2216 for ac_signal in 1 2 13 15; do
2217 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2221 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2222 rm -f -r conftest* confdefs.h
2224 # Predefined preprocessor variables.
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_NAME "$PACKAGE_NAME"
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_STRING "$PACKAGE_STRING"
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2251 # Let the site file select an alternate cache file if it wants to.
2252 # Prefer an explicitly selected file to automatically selected ones.
2255 if test -n "$CONFIG_SITE"; then
2256 ac_site_file1=$CONFIG_SITE
2257 elif test "x$prefix" != xNONE; then
2258 ac_site_file1=$prefix/share/config.site
2259 ac_site_file2=$prefix/etc/config.site
2261 ac_site_file1=$ac_default_prefix/share/config.site
2262 ac_site_file2=$ac_default_prefix/etc/config.site
2264 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2266 test "x$ac_site_file" = xNONE && continue
2267 if test -r "$ac_site_file"; then
2268 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2269 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2270 sed 's/^/| /' "$ac_site_file" >&5
2275 if test -r "$cache_file"; then
2276 # Some versions of bash will fail to source /dev/null (special
2277 # files actually), so we avoid doing that.
2278 if test -f "$cache_file"; then
2279 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2280 $as_echo "$as_me: loading cache $cache_file" >&6;}
2282 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2283 *) . "./$cache_file";;
2287 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2288 $as_echo "$as_me: creating cache $cache_file" >&6;}
2292 ac_header_list="$ac_header_list utime.h"
2293 # Check that the precious variables saved in the cache have kept the same
2295 ac_cache_corrupted=false
2296 for ac_var in $ac_precious_vars; do
2297 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2298 eval ac_new_set=\$ac_env_${ac_var}_set
2299 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2300 eval ac_new_val=\$ac_env_${ac_var}_value
2301 case $ac_old_set,$ac_new_set in
2303 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2304 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2305 ac_cache_corrupted=: ;;
2307 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2308 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2309 ac_cache_corrupted=: ;;
2312 if test "x$ac_old_val" != "x$ac_new_val"; then
2313 # differences in whitespace do not lead to failure.
2314 ac_old_val_w=`echo x $ac_old_val`
2315 ac_new_val_w=`echo x $ac_new_val`
2316 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2317 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2318 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2319 ac_cache_corrupted=:
2321 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2322 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2323 eval $ac_var=\$ac_old_val
2325 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2326 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2327 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2328 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2331 # Pass precious variables to config.status.
2332 if test "$ac_new_set" = set; then
2334 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2335 *) ac_arg=$ac_var=$ac_new_val ;;
2337 case " $ac_configure_args " in
2338 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2339 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2343 if $ac_cache_corrupted; then
2344 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2346 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2347 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2348 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2349 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2350 { (exit 1); exit 1; }; }
2378 ac_cpp='$CPP $CPPFLAGS'
2379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385 # cross-compile macros
2387 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2388 if test -f "$ac_dir/install-sh"; then
2390 ac_install_sh="$ac_aux_dir/install-sh -c"
2392 elif test -f "$ac_dir/install.sh"; then
2394 ac_install_sh="$ac_aux_dir/install.sh -c"
2396 elif test -f "$ac_dir/shtool"; then
2398 ac_install_sh="$ac_aux_dir/shtool install -c"
2402 if test -z "$ac_aux_dir"; then
2403 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2404 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2405 { (exit 1); exit 1; }; }
2408 # These three variables are undocumented and unsupported,
2409 # and are intended to be withdrawn in a future Autoconf release.
2410 # They can cause serious problems if a builder's source tree is in a directory
2411 # whose full name contains unusual characters.
2412 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2413 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2414 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2417 # Make sure we can run config.sub.
2418 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2419 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2420 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2421 { (exit 1); exit 1; }; }
2423 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2424 $as_echo_n "checking build system type... " >&6; }
2425 if test "${ac_cv_build+set}" = set; then
2426 $as_echo_n "(cached) " >&6
2428 ac_build_alias=$build_alias
2429 test "x$ac_build_alias" = x &&
2430 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2431 test "x$ac_build_alias" = x &&
2432 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2433 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2434 { (exit 1); exit 1; }; }
2435 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2436 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2437 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2438 { (exit 1); exit 1; }; }
2441 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2442 $as_echo "$ac_cv_build" >&6; }
2443 case $ac_cv_build in
2445 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2446 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2447 { (exit 1); exit 1; }; };;
2450 ac_save_IFS=$IFS; IFS='-'
2456 # Remember, the first character of IFS is used to create $*,
2457 # except with old shells:
2460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2463 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2464 $as_echo_n "checking host system type... " >&6; }
2465 if test "${ac_cv_host+set}" = set; then
2466 $as_echo_n "(cached) " >&6
2468 if test "x$host_alias" = x; then
2469 ac_cv_host=$ac_cv_build
2471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2472 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2473 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2474 { (exit 1); exit 1; }; }
2478 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2479 $as_echo "$ac_cv_host" >&6; }
2482 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2483 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2484 { (exit 1); exit 1; }; };;
2487 ac_save_IFS=$IFS; IFS='-'
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2501 # check existence of the package
2507 # preserve any CFLAGS or LDFLAGS that may be set
2508 # NOTE: This must be done before calling any macros that end up
2509 # calling AC_PROG_CC or the like, since they will set a default
2510 # set of CFLAGS ("-g -O2") if the user did not supply any, and
2511 # we don't want those default flags to be carried over into the
2512 # rest of the build system since we have other means of controlling
2513 # debugging symbol generation and optimization.
2514 CONFIG_CFLAGS="${CFLAGS}"
2515 CONFIG_LDFLAGS="${LDFLAGS}"
2519 # specify output header file
2520 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528 if test -n "$ac_tool_prefix"; then
2529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2531 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 $as_echo_n "(cached) " >&6
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 if test -n "$CC"; then
2558 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2559 $as_echo "$CC" >&6; }
2561 { $as_echo "$as_me:$LINENO: result: no" >&5
2562 $as_echo "no" >&6; }
2567 if test -z "$ac_cv_prog_CC"; then
2569 # Extract the first word of "gcc", so it can be a program name with args.
2570 set dummy gcc; ac_word=$2
2571 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2574 $as_echo_n "(cached) " >&6
2576 if test -n "$ac_ct_CC"; then
2577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_ac_ct_CC="gcc"
2587 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597 if test -n "$ac_ct_CC"; then
2598 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2599 $as_echo "$ac_ct_CC" >&6; }
2601 { $as_echo "$as_me:$LINENO: result: no" >&5
2602 $as_echo "no" >&6; }
2605 if test "x$ac_ct_CC" = x; then
2608 case $cross_compiling:$ac_tool_warned in
2610 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2612 ac_tool_warned=yes ;;
2620 if test -z "$CC"; then
2621 if test -n "$ac_tool_prefix"; then
2622 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
2627 $as_echo_n "(cached) " >&6
2629 if test -n "$CC"; then
2630 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
2640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 if test -n "$CC"; then
2651 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2652 $as_echo "$CC" >&6; }
2654 { $as_echo "$as_me:$LINENO: result: no" >&5
2655 $as_echo "no" >&6; }
2661 if test -z "$CC"; then
2662 # Extract the first word of "cc", so it can be a program name with args.
2663 set dummy cc; ac_word=$2
2664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if test "${ac_cv_prog_CC+set}" = set; then
2667 $as_echo_n "(cached) " >&6
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2681 ac_prog_rejected=yes
2685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 if test $ac_prog_rejected = yes; then
2693 # We found a bogon in the path, so make sure we never use it.
2694 set dummy $ac_cv_prog_CC
2696 if test $# != 0; then
2697 # We chose a different compiler from the bogus one.
2698 # However, it has the same basename, so the bogon will be chosen
2699 # first if we set CC to just the basename; use the full file name.
2701 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2707 if test -n "$CC"; then
2708 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2709 $as_echo "$CC" >&6; }
2711 { $as_echo "$as_me:$LINENO: result: no" >&5
2712 $as_echo "no" >&6; }
2717 if test -z "$CC"; then
2718 if test -n "$ac_tool_prefix"; then
2719 for ac_prog in cl.exe
2721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if test "${ac_cv_prog_CC+set}" = set; then
2726 $as_echo_n "(cached) " >&6
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 if test -n "$CC"; then
2750 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2751 $as_echo "$CC" >&6; }
2753 { $as_echo "$as_me:$LINENO: result: no" >&5
2754 $as_echo "no" >&6; }
2758 test -n "$CC" && break
2761 if test -z "$CC"; then
2763 for ac_prog in cl.exe
2765 # Extract the first word of "$ac_prog", so it can be a program name with args.
2766 set dummy $ac_prog; ac_word=$2
2767 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2770 $as_echo_n "(cached) " >&6
2772 if test -n "$ac_ct_CC"; then
2773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_ac_ct_CC="$ac_prog"
2783 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2795 $as_echo "$ac_ct_CC" >&6; }
2797 { $as_echo "$as_me:$LINENO: result: no" >&5
2798 $as_echo "no" >&6; }
2802 test -n "$ac_ct_CC" && break
2805 if test "x$ac_ct_CC" = x; then
2808 case $cross_compiling:$ac_tool_warned in
2810 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2812 ac_tool_warned=yes ;;
2821 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2823 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2824 See \`config.log' for more details." >&5
2825 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }; }
2829 # Provide some information about the compiler.
2830 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2833 { (ac_try="$ac_compiler --version >&5"
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2839 $as_echo "$ac_try_echo") >&5
2840 (eval "$ac_compiler --version >&5") 2>&5
2842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }
2844 { (ac_try="$ac_compiler -v >&5"
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2850 $as_echo "$ac_try_echo") >&5
2851 (eval "$ac_compiler -v >&5") 2>&5
2853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }
2855 { (ac_try="$ac_compiler -V >&5"
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2861 $as_echo "$ac_try_echo") >&5
2862 (eval "$ac_compiler -V >&5") 2>&5
2864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }
2867 cat >conftest.$ac_ext <<_ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2882 ac_clean_files_save=$ac_clean_files
2883 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2884 # Try to create an executable without -o first, disregard a.out.
2885 # It will help us diagnose broken compilers, and finding out an intuition
2887 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2888 $as_echo_n "checking for C compiler default output file name... " >&6; }
2889 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2891 # The possible output files:
2892 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2895 for ac_file in $ac_files
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2899 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2904 if { (ac_try="$ac_link_default"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2910 $as_echo "$ac_try_echo") >&5
2911 (eval "$ac_link_default") 2>&5
2913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; then
2915 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2916 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2917 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2918 # so that the user can short-circuit this test for compilers unknown to
2920 for ac_file in $ac_files ''
2922 test -f "$ac_file" || continue
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2927 # We found the default executable, but exeext='' is most
2931 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2933 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2935 # We set ac_cv_exeext here because the later test for it is not
2936 # safe: cross compilers may not add the suffix if given an `-o'
2937 # argument, so we may need to know it at that point already.
2938 # Even if this section looks crufty: it has the advantage of
2945 test "$ac_cv_exeext" = no && ac_cv_exeext=
2951 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2952 $as_echo "$ac_file" >&6; }
2953 if test -z "$ac_file"; then
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: C compiler cannot create executables
2960 See \`config.log' for more details." >&5
2961 $as_echo "$as_me: error: C compiler cannot create executables
2962 See \`config.log' for more details." >&2;}
2963 { (exit 77); exit 77; }; }; }
2966 ac_exeext=$ac_cv_exeext
2968 # Check that the compiler produces executables we can run. If not, either
2969 # the compiler is broken, or we cross compile.
2970 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2971 $as_echo_n "checking whether the C compiler works... " >&6; }
2972 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2973 # If not cross compiling, check that we can run a simple program.
2974 if test "$cross_compiling" != yes; then
2975 if { ac_try='./$ac_file'
2976 { (case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2981 $as_echo "$ac_try_echo") >&5
2982 (eval "$ac_try") 2>&5
2984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
2988 if test "$cross_compiling" = maybe; then
2991 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2994 If you meant to cross compile, use \`--host'.
2995 See \`config.log' for more details." >&5
2996 $as_echo "$as_me: error: cannot run C compiled programs.
2997 If you meant to cross compile, use \`--host'.
2998 See \`config.log' for more details." >&2;}
2999 { (exit 1); exit 1; }; }; }
3003 { $as_echo "$as_me:$LINENO: result: yes" >&5
3004 $as_echo "yes" >&6; }
3006 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3007 ac_clean_files=$ac_clean_files_save
3008 # Check that the compiler produces executables we can run. If not, either
3009 # the compiler is broken, or we cross compile.
3010 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3011 $as_echo_n "checking whether we are cross compiling... " >&6; }
3012 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3013 $as_echo "$cross_compiling" >&6; }
3015 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3016 $as_echo_n "checking for suffix of executables... " >&6; }
3017 if { (ac_try="$ac_link"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3023 $as_echo "$ac_try_echo") >&5
3024 (eval "$ac_link") 2>&5
3026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; then
3028 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3029 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3030 # work properly (i.e., refer to `conftest.exe'), while it won't with
3032 for ac_file in conftest.exe conftest conftest.*; do
3033 test -f "$ac_file" || continue
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3036 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3045 See \`config.log' for more details." >&5
3046 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3047 See \`config.log' for more details." >&2;}
3048 { (exit 1); exit 1; }; }; }
3051 rm -f conftest$ac_cv_exeext
3052 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3053 $as_echo "$ac_cv_exeext" >&6; }
3055 rm -f conftest.$ac_ext
3056 EXEEXT=$ac_cv_exeext
3058 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3059 $as_echo_n "checking for suffix of object files... " >&6; }
3060 if test "${ac_cv_objext+set}" = set; then
3061 $as_echo_n "(cached) " >&6
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3078 rm -f conftest.o conftest.obj
3079 if { (ac_try="$ac_compile"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3085 $as_echo "$ac_try_echo") >&5
3086 (eval "$ac_compile") 2>&5
3088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; then
3090 for ac_file in conftest.o conftest.obj conftest.*; do
3091 test -f "$ac_file" || continue;
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3099 $as_echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3105 See \`config.log' for more details." >&5
3106 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }; }
3111 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3113 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3114 $as_echo "$ac_cv_objext" >&6; }
3115 OBJEXT=$ac_cv_objext
3117 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3118 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3119 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3120 $as_echo_n "(cached) " >&6
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3140 rm -f conftest.$ac_objext
3141 if { (ac_try="$ac_compile"
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3147 $as_echo "$ac_try_echo") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3150 grep -v '^ *+' conftest.er1 >conftest.err
3152 cat conftest.err >&5
3153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
3160 $as_echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3170 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3171 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3172 if test $ac_compiler_gnu = yes; then
3177 ac_test_CFLAGS=${CFLAGS+set}
3178 ac_save_CFLAGS=$CFLAGS
3179 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3180 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3181 if test "${ac_cv_prog_cc_g+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3184 ac_save_c_werror_flag=$ac_c_werror_flag
3185 ac_c_werror_flag=yes
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3203 rm -f conftest.$ac_objext
3204 if { (ac_try="$ac_compile"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3210 $as_echo "$ac_try_echo") >&5
3211 (eval "$ac_compile") 2>conftest.er1
3213 grep -v '^ *+' conftest.er1 >conftest.err
3215 cat conftest.err >&5
3216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } && {
3218 test -z "$ac_c_werror_flag" ||
3219 test ! -s conftest.err
3220 } && test -s conftest.$ac_objext; then
3223 $as_echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3227 cat >conftest.$ac_ext <<_ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3242 rm -f conftest.$ac_objext
3243 if { (ac_try="$ac_compile"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250 (eval "$ac_compile") 2>conftest.er1
3252 grep -v '^ *+' conftest.er1 >conftest.err
3254 cat conftest.err >&5
3255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && {
3257 test -z "$ac_c_werror_flag" ||
3258 test ! -s conftest.err
3259 } && test -s conftest.$ac_objext; then
3262 $as_echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 ac_c_werror_flag=$ac_save_c_werror_flag
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3282 rm -f conftest.$ac_objext
3283 if { (ac_try="$ac_compile"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3289 $as_echo "$ac_try_echo") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3302 $as_echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 ac_c_werror_flag=$ac_save_c_werror_flag
3317 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3318 $as_echo "$ac_cv_prog_cc_g" >&6; }
3319 if test "$ac_test_CFLAGS" = set; then
3320 CFLAGS=$ac_save_CFLAGS
3321 elif test $ac_cv_prog_cc_g = yes; then
3322 if test "$GCC" = yes; then
3328 if test "$GCC" = yes; then
3334 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3335 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3336 if test "${ac_cv_prog_cc_c89+set}" = set; then
3337 $as_echo_n "(cached) " >&6
3339 ac_cv_prog_cc_c89=no
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3349 #include <sys/types.h>
3350 #include <sys/stat.h>
3351 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3352 struct buf { int x; };
3353 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3354 static char *e (p, i)
3360 static char *f (char * (*g) (char **, int), char **p, ...)
3365 s = g (p, va_arg (v,int));
3370 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3371 function prototypes and stuff, but not '\xHH' hex character constants.
3372 These don't provoke an error unfortunately, instead are silently treated
3373 as 'x'. The following induces an error, until -std is added to get
3374 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3375 array size at least. It's necessary to write '\x00'==0 to get something
3376 that's true only with -std. */
3377 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3379 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3380 inside strings and character constants. */
3382 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3384 int test (int i, double x);
3385 struct s1 {int (*f) (int a);};
3386 struct s2 {int (*f) (double a);};
3387 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3393 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3398 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3399 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3401 CC="$ac_save_CC $ac_arg"
3402 rm -f conftest.$ac_objext
3403 if { (ac_try="$ac_compile"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3409 $as_echo "$ac_try_echo") >&5
3410 (eval "$ac_compile") 2>conftest.er1
3412 grep -v '^ *+' conftest.er1 >conftest.err
3414 cat conftest.err >&5
3415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } && {
3417 test -z "$ac_c_werror_flag" ||
3418 test ! -s conftest.err
3419 } && test -s conftest.$ac_objext; then
3420 ac_cv_prog_cc_c89=$ac_arg
3422 $as_echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3428 rm -f core conftest.err conftest.$ac_objext
3429 test "x$ac_cv_prog_cc_c89" != "xno" && break
3431 rm -f conftest.$ac_ext
3436 case "x$ac_cv_prog_cc_c89" in
3438 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3439 $as_echo "none needed" >&6; } ;;
3441 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3442 $as_echo "unsupported" >&6; } ;;
3444 CC="$CC $ac_cv_prog_cc_c89"
3445 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3446 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3463 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3464 # On Suns, sometimes $CPP names a directory.
3465 if test -n "$CPP" && test -d "$CPP"; then
3468 if test -z "$CPP"; then
3469 if test "${ac_cv_prog_CPP+set}" = set; then
3470 $as_echo_n "(cached) " >&6
3472 # Double quotes because CPP needs to be expanded
3473 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3476 for ac_c_preproc_warn_flag in '' yes
3478 # Use a header file that comes with gcc, so configuring glibc
3479 # with a fresh cross-compiler works.
3480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3481 # <limits.h> exists even on freestanding compilers.
3482 # On the NeXT, cc -E runs the code through the compiler's parser,
3483 # not just through cpp. "Syntax error" is here to catch this case.
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3491 # include <limits.h>
3493 # include <assert.h>
3497 if { (ac_try="$ac_cpp conftest.$ac_ext"
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev/null && {
3511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 # Broken: fails on valid input.
3523 rm -f conftest.err conftest.$ac_ext
3525 # OK, works on sane cases. Now check whether nonexistent headers
3526 # can be detected and how.
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533 #include <ac_nonexistent.h>
3535 if { (ac_try="$ac_cpp conftest.$ac_ext"
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3541 $as_echo "$ac_try_echo") >&5
3542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } >/dev/null && {
3549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3552 # Broken: success on invalid input.
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 # Passes both tests.
3563 rm -f conftest.err conftest.$ac_ext
3566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3567 rm -f conftest.err conftest.$ac_ext
3568 if $ac_preproc_ok; then
3580 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3581 $as_echo "$CPP" >&6; }
3583 for ac_c_preproc_warn_flag in '' yes
3585 # Use a header file that comes with gcc, so configuring glibc
3586 # with a fresh cross-compiler works.
3587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3588 # <limits.h> exists even on freestanding compilers.
3589 # On the NeXT, cc -E runs the code through the compiler's parser,
3590 # not just through cpp. "Syntax error" is here to catch this case.
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3598 # include <limits.h>
3600 # include <assert.h>
3604 if { (ac_try="$ac_cpp conftest.$ac_ext"
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3610 $as_echo "$ac_try_echo") >&5
3611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613 grep -v '^ *+' conftest.er1 >conftest.err
3615 cat conftest.err >&5
3616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } >/dev/null && {
3618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3623 $as_echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 # Broken: fails on valid input.
3630 rm -f conftest.err conftest.$ac_ext
3632 # OK, works on sane cases. Now check whether nonexistent headers
3633 # can be detected and how.
3634 cat >conftest.$ac_ext <<_ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3640 #include <ac_nonexistent.h>
3642 if { (ac_try="$ac_cpp conftest.$ac_ext"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3648 $as_echo "$ac_try_echo") >&5
3649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3651 grep -v '^ *+' conftest.er1 >conftest.err
3653 cat conftest.err >&5
3654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } >/dev/null && {
3656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3657 test ! -s conftest.err
3659 # Broken: success on invalid input.
3662 $as_echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3665 # Passes both tests.
3670 rm -f conftest.err conftest.$ac_ext
3673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3674 rm -f conftest.err conftest.$ac_ext
3675 if $ac_preproc_ok; then
3678 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log' for more details." >&5
3682 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3683 See \`config.log' for more details." >&2;}
3684 { (exit 1); exit 1; }; }; }
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3695 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3696 if test "${ac_cv_path_GREP+set}" = set; then
3697 $as_echo_n "(cached) " >&6
3699 if test -z "$GREP"; then
3700 ac_path_GREP_found=false
3701 # Loop through the user's path and test for each of PROGNAME-LIST
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3706 test -z "$as_dir" && as_dir=.
3707 for ac_prog in grep ggrep; do
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3710 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3711 # Check for GNU ac_path_GREP and select it if it is found.
3712 # Check for GNU $ac_path_GREP
3713 case `"$ac_path_GREP" --version 2>&1` in
3715 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3718 $as_echo_n 0123456789 >"conftest.in"
3721 cat "conftest.in" "conftest.in" >"conftest.tmp"
3722 mv "conftest.tmp" "conftest.in"
3723 cp "conftest.in" "conftest.nl"
3724 $as_echo 'GREP' >> "conftest.nl"
3725 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3727 ac_count=`expr $ac_count + 1`
3728 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3729 # Best one so far, save it but keep looking for a better one
3730 ac_cv_path_GREP="$ac_path_GREP"
3731 ac_path_GREP_max=$ac_count
3733 # 10*(2^10) chars as input seems more than enough
3734 test $ac_count -gt 10 && break
3736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3739 $ac_path_GREP_found && break 3
3744 if test -z "$ac_cv_path_GREP"; then
3745 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3746 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3747 { (exit 1); exit 1; }; }
3750 ac_cv_path_GREP=$GREP
3754 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3755 $as_echo "$ac_cv_path_GREP" >&6; }
3756 GREP="$ac_cv_path_GREP"
3759 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3760 $as_echo_n "checking for egrep... " >&6; }
3761 if test "${ac_cv_path_EGREP+set}" = set; then
3762 $as_echo_n "(cached) " >&6
3764 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3765 then ac_cv_path_EGREP="$GREP -E"
3767 if test -z "$EGREP"; then
3768 ac_path_EGREP_found=false
3769 # Loop through the user's path and test for each of PROGNAME-LIST
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3774 test -z "$as_dir" && as_dir=.
3775 for ac_prog in egrep; do
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3778 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3779 # Check for GNU ac_path_EGREP and select it if it is found.
3780 # Check for GNU $ac_path_EGREP
3781 case `"$ac_path_EGREP" --version 2>&1` in
3783 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3786 $as_echo_n 0123456789 >"conftest.in"
3789 cat "conftest.in" "conftest.in" >"conftest.tmp"
3790 mv "conftest.tmp" "conftest.in"
3791 cp "conftest.in" "conftest.nl"
3792 $as_echo 'EGREP' >> "conftest.nl"
3793 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3795 ac_count=`expr $ac_count + 1`
3796 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3797 # Best one so far, save it but keep looking for a better one
3798 ac_cv_path_EGREP="$ac_path_EGREP"
3799 ac_path_EGREP_max=$ac_count
3801 # 10*(2^10) chars as input seems more than enough
3802 test $ac_count -gt 10 && break
3804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3807 $ac_path_EGREP_found && break 3
3812 if test -z "$ac_cv_path_EGREP"; then
3813 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3814 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3815 { (exit 1); exit 1; }; }
3818 ac_cv_path_EGREP=$EGREP
3823 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3824 $as_echo "$ac_cv_path_EGREP" >&6; }
3825 EGREP="$ac_cv_path_EGREP"
3828 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3829 $as_echo_n "checking for ANSI C header files... " >&6; }
3830 if test "${ac_cv_header_stdc+set}" = set; then
3831 $as_echo_n "(cached) " >&6
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3852 rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3859 $as_echo "$ac_try_echo") >&5
3860 (eval "$ac_compile") 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } && {
3867 test -z "$ac_c_werror_flag" ||
3868 test ! -s conftest.err
3869 } && test -s conftest.$ac_objext; then
3870 ac_cv_header_stdc=yes
3872 $as_echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 ac_cv_header_stdc=no
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 if test $ac_cv_header_stdc = yes; then
3881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3882 cat >conftest.$ac_ext <<_ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3892 $EGREP "memchr" >/dev/null 2>&1; then
3895 ac_cv_header_stdc=no
3901 if test $ac_cv_header_stdc = yes; then
3902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3913 $EGREP "free" >/dev/null 2>&1; then
3916 ac_cv_header_stdc=no
3922 if test $ac_cv_header_stdc = yes; then
3923 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3924 if test "$cross_compiling" = yes; then
3927 cat >conftest.$ac_ext <<_ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3935 #if ((' ' & 0x0FF) == 0x020)
3936 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3937 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3939 # define ISLOWER(c) \
3940 (('a' <= (c) && (c) <= 'i') \
3941 || ('j' <= (c) && (c) <= 'r') \
3942 || ('s' <= (c) && (c) <= 'z'))
3943 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3951 for (i = 0; i < 256; i++)
3952 if (XOR (islower (i), ISLOWER (i))
3953 || toupper (i) != TOUPPER (i))
3958 rm -f conftest$ac_exeext
3959 if { (ac_try="$ac_link"
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3965 $as_echo "$ac_try_echo") >&5
3966 (eval "$ac_link") 2>&5
3968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970 { (case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3975 $as_echo "$ac_try_echo") >&5
3976 (eval "$ac_try") 2>&5
3978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3982 $as_echo "$as_me: program exited with status $ac_status" >&5
3983 $as_echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3987 ac_cv_header_stdc=no
3989 rm -rf conftest.dSYM
3990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3996 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3997 $as_echo "$ac_cv_header_stdc" >&6; }
3998 if test $ac_cv_header_stdc = yes; then
4000 cat >>confdefs.h <<\_ACEOF
4001 #define STDC_HEADERS 1
4006 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4016 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4017 inttypes.h stdint.h unistd.h
4019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4020 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4021 $as_echo_n "checking for $ac_header... " >&6; }
4022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4023 $as_echo_n "(cached) " >&6
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 $ac_includes_default
4033 #include <$ac_header>
4035 rm -f conftest.$ac_objext
4036 if { (ac_try="$ac_compile"
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4042 $as_echo "$ac_try_echo") >&5
4043 (eval "$ac_compile") 2>conftest.er1
4045 grep -v '^ *+' conftest.er1 >conftest.err
4047 cat conftest.err >&5
4048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } && {
4050 test -z "$ac_c_werror_flag" ||
4051 test ! -s conftest.err
4052 } && test -s conftest.$ac_objext; then
4053 eval "$as_ac_Header=yes"
4055 $as_echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4058 eval "$as_ac_Header=no"
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 ac_res=`eval 'as_val=${'$as_ac_Header'}
4064 $as_echo "$as_val"'`
4065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4066 $as_echo "$ac_res" >&6; }
4067 as_val=`eval 'as_val=${'$as_ac_Header'}
4068 $as_echo "$as_val"'`
4069 if test "x$as_val" = x""yes; then
4070 cat >>confdefs.h <<_ACEOF
4071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4080 if test "${ac_cv_header_minix_config_h+set}" = set; then
4081 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4082 $as_echo_n "checking for minix/config.h... " >&6; }
4083 if test "${ac_cv_header_minix_config_h+set}" = set; then
4084 $as_echo_n "(cached) " >&6
4086 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4087 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4089 # Is the header compilable?
4090 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4091 $as_echo_n "checking minix/config.h usability... " >&6; }
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 $ac_includes_default
4099 #include <minix/config.h>
4101 rm -f conftest.$ac_objext
4102 if { (ac_try="$ac_compile"
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108 $as_echo "$ac_try_echo") >&5
4109 (eval "$ac_compile") 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest.$ac_objext; then
4119 ac_header_compiler=yes
4121 $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 ac_header_compiler=no
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4129 $as_echo "$ac_header_compiler" >&6; }
4131 # Is the header present?
4132 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4133 $as_echo_n "checking minix/config.h presence... " >&6; }
4134 cat >conftest.$ac_ext <<_ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <minix/config.h>
4142 if { (ac_try="$ac_cpp conftest.$ac_ext"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev/null && {
4156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4159 ac_header_preproc=yes
4161 $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 ac_header_preproc=no
4167 rm -f conftest.err conftest.$ac_ext
4168 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4169 $as_echo "$ac_header_preproc" >&6; }
4171 # So? What about this header?
4172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4174 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4175 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4176 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4177 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4178 ac_header_preproc=yes
4181 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4182 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4183 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4184 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4185 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4186 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4187 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4188 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4189 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4190 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4191 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4192 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4194 ## ------------------------------- ##
4195 ## Report this to www.asterisk.org ##
4196 ## ------------------------------- ##
4198 ) | sed "s/^/$as_me: WARNING: /" >&2
4201 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4202 $as_echo_n "checking for minix/config.h... " >&6; }
4203 if test "${ac_cv_header_minix_config_h+set}" = set; then
4204 $as_echo_n "(cached) " >&6
4206 ac_cv_header_minix_config_h=$ac_header_preproc
4208 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4209 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4212 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4219 if test "$MINIX" = yes; then
4221 cat >>confdefs.h <<\_ACEOF
4222 #define _POSIX_SOURCE 1
4226 cat >>confdefs.h <<\_ACEOF
4227 #define _POSIX_1_SOURCE 2
4231 cat >>confdefs.h <<\_ACEOF
4239 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4240 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4241 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4242 $as_echo_n "(cached) " >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4251 # define __EXTENSIONS__ 1
4252 $ac_includes_default
4261 rm -f conftest.$ac_objext
4262 if { (ac_try="$ac_compile"
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4268 $as_echo "$ac_try_echo") >&5
4269 (eval "$ac_compile") 2>conftest.er1
4271 grep -v '^ *+' conftest.er1 >conftest.err
4273 cat conftest.err >&5
4274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && {
4276 test -z "$ac_c_werror_flag" ||
4277 test ! -s conftest.err
4278 } && test -s conftest.$ac_objext; then
4279 ac_cv_safe_to_define___extensions__=yes
4281 $as_echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 ac_cv_safe_to_define___extensions__=no
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4290 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4291 test $ac_cv_safe_to_define___extensions__ = yes &&
4292 cat >>confdefs.h <<\_ACEOF
4293 #define __EXTENSIONS__ 1
4296 cat >>confdefs.h <<\_ACEOF
4297 #define _ALL_SOURCE 1
4300 cat >>confdefs.h <<\_ACEOF
4301 #define _GNU_SOURCE 1
4304 cat >>confdefs.h <<\_ACEOF
4305 #define _POSIX_PTHREAD_SEMANTICS 1
4308 cat >>confdefs.h <<\_ACEOF
4309 #define _TANDEM_SOURCE 1
4312 # note- does not work on FreeBSD
4314 case "${host_os}" in
4316 ac_default_prefix=/usr/local
4317 CPPFLAGS=-I/usr/local/include
4318 LDFLAGS=-L/usr/local/lib
4321 ac_default_prefix=/usr/local
4322 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4323 if test ${sysconfdir} = '${prefix}/etc'; then
4326 if test ${mandir} = '${prefix}/man'; then
4327 mandir=/usr/share/man
4330 CPPFLAGS=-I/usr/local/include
4331 LDFLAGS=-L/usr/local/lib
4335 cat >>confdefs.h <<\_ACEOF
4336 #define AST_POLL_COMPAT 1
4341 ac_default_prefix=/usr
4342 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4343 if test ${sysconfdir} = '${prefix}/etc'; then
4346 if test ${mandir} = '${prefix}/man'; then
4347 mandir=/usr/share/man
4353 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4354 if test ${localstatedir} = '${prefix}/var'; then
4359 BUILD_PLATFORM=${build}
4360 BUILD_CPU=${build_cpu}
4361 BUILD_VENDOR=${build_vendor}
4362 BUILD_OS=${build_os}
4369 HOST_PLATFORM=${host}
4370 HOST_CPU=${host_cpu}
4371 HOST_VENDOR=${host_vendor}
4381 case "${host_os}" in
4414 if test -n "$ac_tool_prefix"; then
4415 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4416 set dummy ${ac_tool_prefix}uname; ac_word=$2
4417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if test "${ac_cv_path_UNAME+set}" = set; then
4420 $as_echo_n "(cached) " >&6
4424 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 UNAME=$ac_cv_path_UNAME
4446 if test -n "$UNAME"; then
4447 { $as_echo "$as_me:$LINENO: result: $UNAME" >&5
4448 $as_echo "$UNAME" >&6; }
4450 { $as_echo "$as_me:$LINENO: result: no" >&5
4451 $as_echo "no" >&6; }
4456 if test -z "$ac_cv_path_UNAME"; then
4458 # Extract the first word of "uname", so it can be a program name with args.
4459 set dummy uname; ac_word=$2
4460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4463 $as_echo_n "(cached) " >&6
4465 case $ac_pt_UNAME in
4467 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4489 if test -n "$ac_pt_UNAME"; then
4490 { $as_echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4491 $as_echo "$ac_pt_UNAME" >&6; }
4493 { $as_echo "$as_me:$LINENO: result: no" >&5
4494 $as_echo "no" >&6; }
4497 if test "x$ac_pt_UNAME" = x; then
4500 case $cross_compiling:$ac_tool_warned in
4502 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4504 ac_tool_warned=yes ;;
4509 UNAME="$ac_cv_path_UNAME"
4512 if test ! x"${UNAME}" = xNo; then
4513 PBX_OSREV=$(${UNAME} -r)
4523 # cross-compile checks
4524 if test "${cross_compiling}" = "yes";
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_prog_CC+set}" = set; then
4532 $as_echo_n "(cached) " >&6
4534 if test -n "$CC"; then
4535 ac_cv_prog_CC="$CC" # Let the user override the test.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4545 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 if test -n "$CC"; then
4556 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4557 $as_echo "$CC" >&6; }
4559 { $as_echo "$as_me:$LINENO: result: no" >&5
4560 $as_echo "no" >&6; }
4565 if test -z "$ac_cv_prog_CC"; then
4567 # Extract the first word of "gcc", so it can be a program name with args.
4568 set dummy gcc; ac_word=$2
4569 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4572 $as_echo_n "(cached) " >&6
4574 if test -n "$ac_ct_CC"; then
4575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 ac_cv_prog_ac_ct_CC="gcc"
4585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4595 if test -n "$ac_ct_CC"; then
4596 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4597 $as_echo "$ac_ct_CC" >&6; }
4599 { $as_echo "$as_me:$LINENO: result: no" >&5
4600 $as_echo "no" >&6; }
4603 if test "x$ac_ct_CC" = x; then
4606 case $cross_compiling:$ac_tool_warned in
4608 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610 ac_tool_warned=yes ;;
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}g++; ac_word=$2
4621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_prog_CXX+set}" = set; then
4624 $as_echo_n "(cached) " >&6
4626 if test -n "$CXX"; then
4627 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 if test -n "$CXX"; then
4648 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4649 $as_echo "$CXX" >&6; }
4651 { $as_echo "$as_me:$LINENO: result: no" >&5
4652 $as_echo "no" >&6; }
4657 if test -z "$ac_cv_prog_CXX"; then
4659 # Extract the first word of "g++", so it can be a program name with args.
4660 set dummy g++; ac_word=$2
4661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4664 $as_echo_n "(cached) " >&6
4666 if test -n "$ac_ct_CXX"; then
4667 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_ac_ct_CXX="g++"
4677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4687 if test -n "$ac_ct_CXX"; then
4688 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4689 $as_echo "$ac_ct_CXX" >&6; }
4691 { $as_echo "$as_me:$LINENO: result: no" >&5
4692 $as_echo "no" >&6; }
4695 if test "x$ac_ct_CXX" = x; then
4698 case $cross_compiling:$ac_tool_warned in
4700 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned=yes ;;
4707 CXX="$ac_cv_prog_CXX"
4710 if test -n "$ac_tool_prefix"; then
4711 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4712 set dummy ${ac_tool_prefix}ld; ac_word=$2
4713 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_LD+set}" = set; then
4716 $as_echo_n "(cached) " >&6
4718 if test -n "$LD"; then
4719 ac_cv_prog_LD="$LD" # Let the user override the test.
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_LD="${ac_tool_prefix}ld"
4729 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 if test -n "$LD"; then
4740 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4741 $as_echo "$LD" >&6; }
4743 { $as_echo "$as_me:$LINENO: result: no" >&5
4744 $as_echo "no" >&6; }
4749 if test -z "$ac_cv_prog_LD"; then
4751 # Extract the first word of "ld", so it can be a program name with args.
4752 set dummy ld; ac_word=$2
4753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4756 $as_echo_n "(cached) " >&6
4758 if test -n "$ac_ct_LD"; then
4759 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR