2 # From configure.ac Revision: 271657 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for asterisk trunk.
6 # Report bugs to <https://issues.asterisk.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
18 ## -------------------- ##
19 ## M4sh Initialization. ##
20 ## -------------------- ##
22 # Be more Bourne compatible
23 DUALCASE=1; export DUALCASE # for MKS sh
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
32 case `(set -o) 2>/dev/null` in #(
44 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 # Prefer a ksh shell builtin over an external printf program on Solaris,
49 # but without wasting forks for bash or zsh.
50 if test -z "$BASH_VERSION$ZSH_VERSION" \
51 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo_n='print -rn --'
54 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
58 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
60 as_echo_n='/usr/ucb/echo -n'
62 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
67 expr "X$arg" : "X\\(.*\\)$as_nl";
68 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73 as_echo_n='sh -c $as_echo_n_body as_echo'
76 as_echo='sh -c $as_echo_body as_echo'
79 # The user is always right.
80 if test "${PATH_SEPARATOR+set}" != set; then
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 # Unset variables that we do not need and which cause bugs (e.g. in
121 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122 # suppresses any "Segmentation fault" message there. '((' could
123 # trigger a bug in pdksh 5.2.14.
124 for as_var in BASH_ENV ENV MAIL MAILPATH
125 do eval test x\${$as_var+set} = xset \
126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 case \`(set -o) 2>/dev/null\` in #(
158 as_required="as_fn_return () { (exit \$1); }
159 as_fn_success () { as_fn_return 0; }
160 as_fn_failure () { as_fn_return 1; }
161 as_fn_ret_success () { return 0; }
162 as_fn_ret_failure () { return 1; }
165 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
172 exitcode=1; echo positional parameters were not saved.
174 test x\$exitcode = x0 || exit 1"
175 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179 test \$(( 1 + 1 )) = 2 || exit 1"
180 if (eval "$as_required") 2>/dev/null; then :
185 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 test -z "$as_dir" && as_dir=.
197 for as_base in sh bash ksh sh5; do
198 # Try only shells that exist, to save several forks.
199 as_shell=$as_dir/$as_base
200 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
201 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 CONFIG_SHELL=$as_shell as_have_required=yes
203 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
212 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
213 CONFIG_SHELL=$SHELL as_have_required=yes
218 if test "x$CONFIG_SHELL" != x; then :
219 # We cannot yet assume a decent shell, so we have to provide a
220 # neutralization value for shells without unset; and this also
221 # works around shells that cannot unset nonexistent variables.
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
229 if test x$as_have_required = xno; then :
230 $as_echo "$0: This script requires a shell more modern than all"
231 $as_echo "$0: the shells that I found on your system."
232 if test x${ZSH_VERSION+set} = xset ; then
233 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
234 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 $as_echo "$0: Please tell bug-autoconf@gnu.org and
237 $0: https://issues.asterisk.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535 test -n "$DJDIR" || exec 7<&0 </dev/null
539 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
540 # so uname gets run too.
541 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 ac_default_prefix=/usr/local
548 ac_config_libobj_dir=.
555 # Identity of this package.
556 PACKAGE_NAME='asterisk'
557 PACKAGE_TARNAME='asterisk'
558 PACKAGE_VERSION='trunk'
559 PACKAGE_STRING='asterisk trunk'
560 PACKAGE_BUGREPORT='https://issues.asterisk.org'
563 ac_unique_file="main/asterisk.c"
564 # Factoring default headers for most tests.
565 ac_includes_default="\
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
577 # ifdef HAVE_STDLIB_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
600 ac_default_prefix=/usr/local
601 ac_default_prefix=/usr/local
602 ac_default_prefix=/usr
604 ac_subst_vars='LTLIBOBJS
606 PBX_SYSLOG_FACILITY_LOG_UUCP
607 PBX_SYSLOG_FACILITY_LOG_SYSLOG
608 PBX_SYSLOG_FACILITY_LOG_NEWS
609 PBX_SYSLOG_FACILITY_LOG_MAIL
610 PBX_SYSLOG_FACILITY_LOG_LPR
611 PBX_SYSLOG_FACILITY_LOG_KERN
612 PBX_SYSLOG_FACILITY_LOG_FTP
613 PBX_SYSLOG_FACILITY_LOG_DAEMON
614 PBX_SYSLOG_FACILITY_LOG_CRON
615 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
616 PBX_SYSLOG_FACILITY_LOG_AUTH
656 AST_NO_STRICT_OVERFLOW
658 AST_DECLARATION_AFTER_STATEMENT
661 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
662 PBX_PTHREAD_RWLOCK_INITIALIZER
738 SPEEX_PREPROCESS_INCLUDE
773 PBX_PRI_REVERSE_CHARGE
774 PRI_REVERSE_CHARGE_DIR
775 PRI_REVERSE_CHARGE_INCLUDE
776 PRI_REVERSE_CHARGE_LIB
777 PBX_PRI_SERVICE_MESSAGES
778 PRI_SERVICE_MESSAGES_DIR
779 PRI_SERVICE_MESSAGES_INCLUDE
780 PRI_SERVICE_MESSAGES_LIB
783 PRI_PROG_W_CAUSE_INCLUDE
785 PBX_PRI_INBANDDISCONNECT
786 PRI_INBANDDISCONNECT_DIR
787 PRI_INBANDDISCONNECT_INCLUDE
788 PRI_INBANDDISCONNECT_LIB
791 PRI_SETUP_KEYPAD_INCLUDE
793 PBX_PRI_CALL_REROUTING
794 PRI_CALL_REROUTING_DIR
795 PRI_CALL_REROUTING_INCLUDE
796 PRI_CALL_REROUTING_LIB
799 PRI_CALL_HOLD_INCLUDE
807 PRI_HANGUP_FIX_INCLUDE
819 PRI_AOC_EVENTS_INCLUDE
823 PRI_CALL_WAITING_INCLUDE
1116 program_transform_name
1129 enable_option_checking
1203 enable_internal_poll
1206 ac_precious_vars='build_alias
1221 # Initialize some variables set by options.
1223 ac_init_version=false
1224 ac_unrecognized_opts=
1225 ac_unrecognized_sep=
1226 # The variables have the same names as the options, with
1227 # dashes changed to underlines.
1228 cache_file=/dev/null
1235 program_transform_name=s,x,x,
1243 # Installation directory options.
1244 # These are left unexpanded so users can "make install exec_prefix=/foo"
1245 # and all the variables that are supposed to be based on exec_prefix
1246 # by default will actually change.
1247 # Use braces instead of parens because sh, perl, etc. also accept them.
1248 # (The list follows the same order as the GNU Coding Standards.)
1249 bindir='${exec_prefix}/bin'
1250 sbindir='${exec_prefix}/sbin'
1251 libexecdir='${exec_prefix}/libexec'
1252 datarootdir='${prefix}/share'
1253 datadir='${datarootdir}'
1254 sysconfdir='${prefix}/etc'
1255 sharedstatedir='${prefix}/com'
1256 localstatedir='${prefix}/var'
1257 includedir='${prefix}/include'
1258 oldincludedir='/usr/include'
1259 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1260 infodir='${datarootdir}/info'
1265 libdir='${exec_prefix}/lib'
1266 localedir='${datarootdir}/locale'
1267 mandir='${datarootdir}/man'
1273 # If the previous option needs an argument, assign it.
1274 if test -n "$ac_prev"; then
1275 eval $ac_prev=\$ac_option
1281 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1285 # Accept the important Cygnus configure options, so we can diagnose typos.
1287 case $ac_dashdash$ac_option in
1291 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1293 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1294 bindir=$ac_optarg ;;
1296 -build | --build | --buil | --bui | --bu)
1297 ac_prev=build_alias ;;
1298 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1299 build_alias=$ac_optarg ;;
1301 -cache-file | --cache-file | --cache-fil | --cache-fi \
1302 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1303 ac_prev=cache_file ;;
1304 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1305 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1306 cache_file=$ac_optarg ;;
1308 --config-cache | -C)
1309 cache_file=config.cache ;;
1311 -datadir | --datadir | --datadi | --datad)
1313 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1314 datadir=$ac_optarg ;;
1316 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1317 | --dataroo | --dataro | --datar)
1318 ac_prev=datarootdir ;;
1319 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1320 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1321 datarootdir=$ac_optarg ;;
1323 -disable-* | --disable-*)
1324 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327 as_fn_error "invalid feature name: $ac_useropt"
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1332 "enable_$ac_useropt"
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1337 eval enable_$ac_useropt=no ;;
1339 -docdir | --docdir | --docdi | --doc | --do)
1341 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1342 docdir=$ac_optarg ;;
1344 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1346 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1347 dvidir=$ac_optarg ;;
1349 -enable-* | --enable-*)
1350 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353 as_fn_error "invalid feature name: $ac_useropt"
1354 ac_useropt_orig=$ac_useropt
1355 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1358 "enable_$ac_useropt"
1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1361 ac_unrecognized_sep=', ';;
1363 eval enable_$ac_useropt=\$ac_optarg ;;
1365 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1366 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1367 | --exec | --exe | --ex)
1368 ac_prev=exec_prefix ;;
1369 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1370 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1371 | --exec=* | --exe=* | --ex=*)
1372 exec_prefix=$ac_optarg ;;
1374 -gas | --gas | --ga | --g)
1375 # Obsolete; use --with-gas.
1378 -help | --help | --hel | --he | -h)
1379 ac_init_help=long ;;
1380 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1381 ac_init_help=recursive ;;
1382 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1383 ac_init_help=short ;;
1385 -host | --host | --hos | --ho)
1386 ac_prev=host_alias ;;
1387 -host=* | --host=* | --hos=* | --ho=*)
1388 host_alias=$ac_optarg ;;
1390 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1392 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1394 htmldir=$ac_optarg ;;
1396 -includedir | --includedir | --includedi | --included | --include \
1397 | --includ | --inclu | --incl | --inc)
1398 ac_prev=includedir ;;
1399 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1400 | --includ=* | --inclu=* | --incl=* | --inc=*)
1401 includedir=$ac_optarg ;;
1403 -infodir | --infodir | --infodi | --infod | --info | --inf)
1405 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1406 infodir=$ac_optarg ;;
1408 -libdir | --libdir | --libdi | --libd)
1410 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1411 libdir=$ac_optarg ;;
1413 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1414 | --libexe | --libex | --libe)
1415 ac_prev=libexecdir ;;
1416 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1417 | --libexe=* | --libex=* | --libe=*)
1418 libexecdir=$ac_optarg ;;
1420 -localedir | --localedir | --localedi | --localed | --locale)
1421 ac_prev=localedir ;;
1422 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1423 localedir=$ac_optarg ;;
1425 -localstatedir | --localstatedir | --localstatedi | --localstated \
1426 | --localstate | --localstat | --localsta | --localst | --locals)
1427 ac_prev=localstatedir ;;
1428 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1429 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1430 localstatedir=$ac_optarg ;;
1432 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1434 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1435 mandir=$ac_optarg ;;
1437 -nfp | --nfp | --nf)
1438 # Obsolete; use --without-fp.
1441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1442 | --no-cr | --no-c | -n)
1445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1449 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1450 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1451 | --oldin | --oldi | --old | --ol | --o)
1452 ac_prev=oldincludedir ;;
1453 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1454 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1455 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1456 oldincludedir=$ac_optarg ;;
1458 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1460 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1461 prefix=$ac_optarg ;;
1463 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1464 | --program-pre | --program-pr | --program-p)
1465 ac_prev=program_prefix ;;
1466 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1467 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1468 program_prefix=$ac_optarg ;;
1470 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1471 | --program-suf | --program-su | --program-s)
1472 ac_prev=program_suffix ;;
1473 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1474 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1475 program_suffix=$ac_optarg ;;
1477 -program-transform-name | --program-transform-name \
1478 | --program-transform-nam | --program-transform-na \
1479 | --program-transform-n | --program-transform- \
1480 | --program-transform | --program-transfor \
1481 | --program-transfo | --program-transf \
1482 | --program-trans | --program-tran \
1483 | --progr-tra | --program-tr | --program-t)
1484 ac_prev=program_transform_name ;;
1485 -program-transform-name=* | --program-transform-name=* \
1486 | --program-transform-nam=* | --program-transform-na=* \
1487 | --program-transform-n=* | --program-transform-=* \
1488 | --program-transform=* | --program-transfor=* \
1489 | --program-transfo=* | --program-transf=* \
1490 | --program-trans=* | --program-tran=* \
1491 | --progr-tra=* | --program-tr=* | --program-t=*)
1492 program_transform_name=$ac_optarg ;;
1494 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1496 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1497 pdfdir=$ac_optarg ;;
1499 -psdir | --psdir | --psdi | --psd | --ps)
1501 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1505 | -silent | --silent | --silen | --sile | --sil)
1508 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1510 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1512 sbindir=$ac_optarg ;;
1514 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1515 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1516 | --sharedst | --shareds | --shared | --share | --shar \
1518 ac_prev=sharedstatedir ;;
1519 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1520 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1521 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1523 sharedstatedir=$ac_optarg ;;
1525 -site | --site | --sit)
1527 -site=* | --site=* | --sit=*)
1530 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1532 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1533 srcdir=$ac_optarg ;;
1535 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1536 | --syscon | --sysco | --sysc | --sys | --sy)
1537 ac_prev=sysconfdir ;;
1538 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1539 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1540 sysconfdir=$ac_optarg ;;
1542 -target | --target | --targe | --targ | --tar | --ta | --t)
1543 ac_prev=target_alias ;;
1544 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1545 target_alias=$ac_optarg ;;
1547 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1550 -version | --version | --versio | --versi | --vers | -V)
1551 ac_init_version=: ;;
1554 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1555 # Reject names that are not valid shell variable names.
1556 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1557 as_fn_error "invalid package name: $ac_useropt"
1558 ac_useropt_orig=$ac_useropt
1559 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1560 case $ac_user_opts in
1564 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1565 ac_unrecognized_sep=', ';;
1567 eval with_$ac_useropt=\$ac_optarg ;;
1569 -without-* | --without-*)
1570 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1571 # Reject names that are not valid shell variable names.
1572 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1573 as_fn_error "invalid package name: $ac_useropt"
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_fn_error "unrecognized option: \`$ac_option'
1604 Try \`$0 --help' for more information."
1608 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1609 # Reject names that are not valid shell variable names.
1610 case $ac_envvar in #(
1611 '' | [0-9]* | *[!_$as_cr_alnum]* )
1612 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
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_fn_error "missing argument to $ac_option"
1633 if test -n "$ac_unrecognized_opts"; then
1634 case $enable_option_checking in
1636 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1637 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1641 # Check all directory arguments for consistency.
1642 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1643 datadir sysconfdir sharedstatedir localstatedir includedir \
1644 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1645 libdir localedir mandir
1647 eval ac_val=\$$ac_var
1648 # Remove trailing slashes.
1651 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1652 eval $ac_var=\$ac_val;;
1654 # Be sure to have absolute directory names.
1656 [\\/$]* | ?:[\\/]* ) continue;;
1657 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1659 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1662 # There might be people who depend on the old broken behavior: `$host'
1663 # used to hold the argument of --host etc.
1664 # FIXME: To remove some day.
1667 target=$target_alias
1669 # FIXME: To remove some day.
1670 if test "x$host_alias" != x; then
1671 if test "x$build_alias" = x; then
1672 cross_compiling=maybe
1673 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1674 If a cross compiler is detected then cross compile mode will be used." >&2
1675 elif test "x$build_alias" != "x$host_alias"; then
1681 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1683 test "$silent" = yes && exec 6>/dev/null
1686 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1687 ac_ls_di=`ls -di .` &&
1688 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1689 as_fn_error "working directory cannot be determined"
1690 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1691 as_fn_error "pwd does not report name of working directory"
1694 # Find the source files, if location was not specified.
1695 if test -z "$srcdir"; then
1696 ac_srcdir_defaulted=yes
1697 # Try the directory containing this script, then the parent directory.
1698 ac_confdir=`$as_dirname -- "$as_myself" ||
1699 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1700 X"$as_myself" : 'X\(//\)[^/]' \| \
1701 X"$as_myself" : 'X\(//\)$' \| \
1702 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1703 $as_echo X"$as_myself" |
1704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1722 if test ! -r "$srcdir/$ac_unique_file"; then
1726 ac_srcdir_defaulted=no
1728 if test ! -r "$srcdir/$ac_unique_file"; then
1729 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1730 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1732 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1734 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1736 # When building in place, set srcdir=.
1737 if test "$ac_abs_confdir" = "$ac_pwd"; then
1740 # Remove unnecessary trailing slashes from srcdir.
1741 # Double slashes in file names in object file debugging info
1742 # mess up M-x gdb in Emacs.
1744 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1748 eval ac_env_${ac_var}_value=\$${ac_var}
1749 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1750 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1754 # Report the --help message.
1756 if test "$ac_init_help" = "long"; then
1757 # Omit some internal or obsolete options to make the list less imposing.
1758 # This message is too long to be a string in the A/UX 3.1 sh.
1760 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1762 Usage: $0 [OPTION]... [VAR=VALUE]...
1764 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1765 VAR=VALUE. See below for descriptions of some of the useful variables.
1767 Defaults for the options are specified in brackets.
1770 -h, --help display this help and exit
1771 --help=short display options specific to this package
1772 --help=recursive display the short help of all the included packages
1773 -V, --version display version information and exit
1774 -q, --quiet, --silent do not print \`checking...' messages
1775 --cache-file=FILE cache test results in FILE [disabled]
1776 -C, --config-cache alias for \`--cache-file=config.cache'
1777 -n, --no-create do not create output files
1778 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1780 Installation directories:
1781 --prefix=PREFIX install architecture-independent files in PREFIX
1782 [$ac_default_prefix]
1783 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1786 By default, \`make install' will install all the files in
1787 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1788 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1789 for instance \`--prefix=\$HOME'.
1791 For better control, use the options below.
1793 Fine tuning of the installation directories:
1794 --bindir=DIR user executables [EPREFIX/bin]
1795 --sbindir=DIR system admin executables [EPREFIX/sbin]
1796 --libexecdir=DIR program executables [EPREFIX/libexec]
1797 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1798 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1799 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1800 --libdir=DIR object code libraries [EPREFIX/lib]
1801 --includedir=DIR C header files [PREFIX/include]
1802 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1803 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1804 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1805 --infodir=DIR info documentation [DATAROOTDIR/info]
1806 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1807 --mandir=DIR man documentation [DATAROOTDIR/man]
1808 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1809 --htmldir=DIR html documentation [DOCDIR]
1810 --dvidir=DIR dvi documentation [DOCDIR]
1811 --pdfdir=DIR pdf documentation [DOCDIR]
1812 --psdir=DIR ps documentation [DOCDIR]
1818 --build=BUILD configure for building on BUILD [guessed]
1819 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1823 if test -n "$ac_init_help"; then
1824 case $ac_init_help in
1825 short | recursive ) echo "Configuration of asterisk trunk:";;
1830 --disable-option-checking ignore unrecognized --enable/--with options
1831 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1832 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1833 --enable-dev-mode Turn on developer mode
1834 --disable-largefile omit support for large files
1835 --enable-internal-poll Use Asterisk's poll implementation
1836 --disable-xmldoc Explicity disable XML documentation
1839 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1840 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1841 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1842 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1843 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1844 --with-bluetooth=PATH use Bluetooth files in PATH
1845 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1846 --with-curses=PATH use curses files in PATH
1847 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1848 --with-dahdi=PATH use DAHDI files in PATH
1849 --with-execinfo=PATH use Stack Backtrace files in PATH
1850 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1852 --with-gtk2=PATH use gtk2 files in PATH
1853 --with-gmime=PATH use GMime files in PATH
1854 --with-h323=PATH use OpenH323 files in PATH
1855 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1856 --with-ical=PATH use iCal files in PATH
1857 --with-iconv=PATH use Iconv files in PATH
1858 --with-iksemel=PATH use Iksemel Jabber files in PATH
1859 --with-imap=PATH use UW IMAP Toolkit files in PATH
1860 --with-inotify=PATH use inotify support files in PATH
1861 --with-iodbc=PATH use iODBC files in PATH
1862 --with-isdnnet=PATH use ISDN4Linux files in PATH
1863 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1864 --with-kqueue=PATH use kqueue support files in PATH
1865 --with-ldap=PATH use OpenLDAP files in PATH
1866 --with-libcurl=DIR look for the curl library in DIR
1867 --with-libxml2=PATH use LibXML2 files in PATH
1868 --with-ltdl=PATH use libtool files in PATH
1869 --with-lua=PATH use Lua files in PATH
1870 --with-misdn=PATH use mISDN user files in PATH
1871 --with-mysqlclient=PATH use MySQL client files in PATH
1872 --with-nbs=PATH use Network Broadcast Sound files in PATH
1873 --with-ncurses=PATH use ncurses files in PATH
1874 --with-neon=PATH use neon files in PATH
1875 --with-neon29=PATH use neon29 files in PATH
1876 --with-netsnmp=PATH use Net-SNMP files in PATH
1877 --with-newt=PATH use newt files in PATH
1878 --with-ogg=PATH use OGG files in PATH
1879 --with-openais=PATH use OpenAIS files in PATH
1880 --with-openr2=PATH use MFR2 files in PATH
1881 --with-osptk=PATH use OSP Toolkit files in PATH
1882 --with-oss=PATH use Open Sound System files in PATH
1883 --with-postgres=PATH use PostgreSQL files in PATH
1884 --with-popt=PATH use popt files in PATH
1885 --with-portaudio=PATH use PortAudio files in PATH
1886 --with-pri=PATH use ISDN PRI files in PATH
1887 --with-pwlib=PATH use PWlib files in PATH
1888 --with-radius=PATH use Radius Client files in PATH
1889 --with-resample=PATH use LIBRESAMPLE files in PATH
1890 --with-sdl=PATH use Sdl files in PATH
1891 --with-SDL_image=PATH use Sdl Image files in PATH
1892 --with-sounds-cache=PATH
1893 use cached sound tarfiles in PATH
1894 --with-spandsp=PATH use SPANDSP files in PATH
1895 --with-ss7=PATH use ISDN SS7 files in PATH
1896 --with-speex=PATH use Speex files in PATH
1897 --with-speex=PATH use Speex preprocess routines files in PATH
1898 --with-speexdsp=PATH use SpeexDSP files in PATH
1899 --with-sqlite=PATH use SQLite files in PATH
1900 --with-sqlite3=PATH use SQLite files in PATH
1901 --with-srtp=PATH use Secure RTP files in PATH
1902 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1903 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1904 --with-tds=PATH use FreeTDS files in PATH
1905 --with-termcap=PATH use Termcap files in PATH
1906 --with-timerfd=PATH use timerfd files in PATH
1907 --with-tinfo=PATH use Term Info files in PATH
1908 --with-tonezone=PATH use tonezone files in PATH
1909 --with-unixodbc=PATH use unixODBC files in PATH
1910 --with-usb=PATH use usb files in PATH
1911 --with-vorbis=PATH use Vorbis files in PATH
1912 --with-vpb=PATH use Voicetronix API files in PATH
1913 --with-x11=PATH use X11 files in PATH
1914 --with-z=PATH use zlib compression files in PATH
1916 Some influential environment variables:
1917 CC C compiler command
1918 CFLAGS C compiler flags
1919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1920 nonstandard directory <lib dir>
1921 LIBS libraries to pass to the linker, e.g. -l<library>
1922 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1923 you have headers in a nonstandard directory <include dir>
1925 CXX C++ compiler command
1926 CXXFLAGS C++ compiler flags
1927 CXXCPP C++ preprocessor
1929 Use these variables to override the choices made by `configure' or to help
1930 it to find libraries and programs with nonstandard names/locations.
1932 Report bugs to <https://issues.asterisk.org>.
1937 if test "$ac_init_help" = "recursive"; then
1938 # If there are subdirs, report their specific --help.
1939 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1940 test -d "$ac_dir" ||
1941 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1948 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1949 # A ".." for each directory in $ac_dir_suffix.
1950 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1951 case $ac_top_builddir_sub in
1952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1956 ac_abs_top_builddir=$ac_pwd
1957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1958 # for backward compatibility:
1959 ac_top_builddir=$ac_top_build_prefix
1962 .) # We are building in place.
1964 ac_top_srcdir=$ac_top_builddir_sub
1965 ac_abs_top_srcdir=$ac_pwd ;;
1966 [\\/]* | ?:[\\/]* ) # Absolute name.
1967 ac_srcdir=$srcdir$ac_dir_suffix;
1968 ac_top_srcdir=$srcdir
1969 ac_abs_top_srcdir=$srcdir ;;
1971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1972 ac_top_srcdir=$ac_top_build_prefix$srcdir
1973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1977 cd "$ac_dir" || { ac_status=$?; continue; }
1978 # Check for guested configure.
1979 if test -f "$ac_srcdir/configure.gnu"; then
1981 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1982 elif test -f "$ac_srcdir/configure"; then
1984 $SHELL "$ac_srcdir/configure" --help=recursive
1986 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1988 cd "$ac_pwd" || { ac_status=$?; break; }
1992 test -n "$ac_init_help" && exit $ac_status
1993 if $ac_init_version; then
1995 asterisk configure trunk
1996 generated by GNU Autoconf 2.65
1998 Copyright (C) 2009 Free Software Foundation, Inc.
1999 This configure script is free software; the Free Software Foundation
2000 gives unlimited permission to copy, distribute and modify it.
2007 ## ------------------------ ##
2008 ## Autoconf initialization. ##
2009 ## ------------------------ ##
2011 # ac_fn_c_try_compile LINENO
2012 # --------------------------
2013 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_c_try_compile ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 rm -f conftest.$ac_objext
2018 if { { ac_try="$ac_compile"
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_compile") 2>conftest.err
2027 if test -s conftest.err; then
2028 grep -v '^ *+' conftest.err >conftest.er1
2029 cat conftest.er1 >&5
2030 mv -f conftest.er1 conftest.err
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; } && {
2034 test -z "$ac_c_werror_flag" ||
2035 test ! -s conftest.err
2036 } && test -s conftest.$ac_objext; then :
2039 $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045 as_fn_set_status $ac_retval
2047 } # ac_fn_c_try_compile
2049 # ac_fn_c_try_cpp LINENO
2050 # ----------------------
2051 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if { { ac_try="$ac_cpp conftest.$ac_ext"
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064 if test -s conftest.err; then
2065 grep -v '^ *+' conftest.err >conftest.er1
2066 cat conftest.er1 >&5
2067 mv -f conftest.er1 conftest.err
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; } >/dev/null && {
2071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2072 test ! -s conftest.err
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 as_fn_set_status $ac_retval
2086 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2087 # -------------------------------------------------------
2088 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2089 # the include files in INCLUDES and setting the cache variable VAR
2091 ac_fn_c_check_header_mongrel ()
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098 $as_echo_n "(cached) " >&6
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2104 # Is the header compilable?
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2106 $as_echo_n "checking $2 usability... " >&6; }
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_header_compiler=yes
2115 ac_header_compiler=no
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2119 $as_echo "$ac_header_compiler" >&6; }
2121 # Is the header present?
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2123 $as_echo_n "checking $2 presence... " >&6; }
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2128 if ac_fn_c_try_cpp "$LINENO"; then :
2129 ac_header_preproc=yes
2131 ac_header_preproc=no
2133 rm -f conftest.err conftest.$ac_ext
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2135 $as_echo "$ac_header_preproc" >&6; }
2137 # So? What about this header?
2138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2141 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2143 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2147 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2149 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2151 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2153 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2155 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2157 ## ------------------------------------------ ##
2158 ## Report this to https://issues.asterisk.org ##
2159 ## ------------------------------------------ ##
2161 ) | sed "s/^/$as_me: WARNING: /" >&2
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2165 $as_echo_n "checking for $2... " >&6; }
2166 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2167 $as_echo_n "(cached) " >&6
2169 eval "$3=\$ac_header_compiler"
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2175 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2177 } # ac_fn_c_check_header_mongrel
2179 # ac_fn_c_try_run LINENO
2180 # ----------------------
2181 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2182 # that executables *can* be run.
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 if { { ac_try="$ac_link"
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_link") 2>&5
2195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2197 { { case "(($ac_try" in
2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199 *) ac_try_echo=$ac_try;;
2201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2202 $as_echo "$ac_try_echo"; } >&5
2203 (eval "$ac_try") 2>&5
2205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206 test $ac_status = 0; }; }; then :
2209 $as_echo "$as_me: program exited with status $ac_status" >&5
2210 $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2213 ac_retval=$ac_status
2215 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2216 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2217 as_fn_set_status $ac_retval
2221 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2222 # -------------------------------------------------------
2223 # Tests whether HEADER exists and can be compiled using the include files in
2224 # INCLUDES, setting the cache variable VAR accordingly.
2225 ac_fn_c_check_header_compile ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229 $as_echo_n "checking for $2... " >&6; }
2230 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2231 $as_echo_n "(cached) " >&6
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2238 if ac_fn_c_try_compile "$LINENO"; then :
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250 } # ac_fn_c_check_header_compile
2252 # ac_fn_cxx_try_compile LINENO
2253 # ----------------------------
2254 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2255 ac_fn_cxx_try_compile ()
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 rm -f conftest.$ac_objext
2259 if { { ac_try="$ac_compile"
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265 $as_echo "$ac_try_echo"; } >&5
2266 (eval "$ac_compile") 2>conftest.err
2268 if test -s conftest.err; then
2269 grep -v '^ *+' conftest.err >conftest.er1
2270 cat conftest.er1 >&5
2271 mv -f conftest.er1 conftest.err
2273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274 test $ac_status = 0; } && {
2275 test -z "$ac_cxx_werror_flag" ||
2276 test ! -s conftest.err
2277 } && test -s conftest.$ac_objext; then :
2280 $as_echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2285 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2286 as_fn_set_status $ac_retval
2288 } # ac_fn_cxx_try_compile
2290 # ac_fn_cxx_try_cpp LINENO
2291 # ------------------------
2292 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2293 ac_fn_cxx_try_cpp ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 if { { ac_try="$ac_cpp conftest.$ac_ext"
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302 $as_echo "$ac_try_echo"; } >&5
2303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2305 if test -s conftest.err; then
2306 grep -v '^ *+' conftest.err >conftest.er1
2307 cat conftest.er1 >&5
2308 mv -f conftest.er1 conftest.err
2310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311 test $ac_status = 0; } >/dev/null && {
2312 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2313 test ! -s conftest.err
2317 $as_echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2322 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 as_fn_set_status $ac_retval
2325 } # ac_fn_cxx_try_cpp
2327 # ac_fn_c_try_link LINENO
2328 # -----------------------
2329 # Try to link conftest.$ac_ext, and return whether this succeeded.
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 rm -f conftest.$ac_objext conftest$ac_exeext
2334 if { { ac_try="$ac_link"
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 $as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_link") 2>conftest.err
2343 if test -s conftest.err; then
2344 grep -v '^ *+' conftest.err >conftest.er1
2345 cat conftest.er1 >&5
2346 mv -f conftest.er1 conftest.err
2348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2349 test $ac_status = 0; } && {
2350 test -z "$ac_c_werror_flag" ||
2351 test ! -s conftest.err
2352 } && test -s conftest$ac_exeext && {
2353 test "$cross_compiling" = yes ||
2354 $as_test_x conftest$ac_exeext
2358 $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2363 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2364 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2365 # interfere with the next link command; also delete a directory that is
2366 # left behind by Apple's compiler. We do this before executing the actions.
2367 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2368 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2369 as_fn_set_status $ac_retval
2371 } # ac_fn_c_try_link
2373 # ac_fn_c_check_func LINENO FUNC VAR
2374 # ----------------------------------
2375 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2376 ac_fn_c_check_func ()
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2382 $as_echo_n "(cached) " >&6
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2386 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2388 #define $2 innocuous_$2
2390 /* System header to define __stub macros and hopefully few prototypes,
2391 which can conflict with char $2 (); below.
2392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2393 <limits.h> exists even on freestanding compilers. */
2396 # include <limits.h>
2398 # include <assert.h>
2403 /* Override any GCC internal prototype to avoid an error.
2404 Use char because int might match the return type of a GCC
2405 builtin and then its argument prototype would still apply. */
2410 /* The GNU C library defines this for functions which it implements
2411 to always fail with ENOSYS. Some functions are actually named
2412 something starting with __ and the normal name is an alias. */
2413 #if defined __stub_$2 || defined __stub___$2
2425 if ac_fn_c_try_link "$LINENO"; then :
2430 rm -f core conftest.err conftest.$ac_objext \
2431 conftest$ac_exeext conftest.$ac_ext
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2438 } # ac_fn_c_check_func
2440 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2441 # -------------------------------------------
2442 # Tests whether TYPE exists after having included INCLUDES, setting cache
2443 # variable VAR accordingly.
2444 ac_fn_c_check_type ()
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2448 $as_echo_n "checking for $2... " >&6; }
2449 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2450 $as_echo_n "(cached) " >&6
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2478 if ac_fn_c_try_compile "$LINENO"; then :
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 $as_echo "$ac_res" >&6; }
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2492 } # ac_fn_c_check_type
2494 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2495 # ----------------------------------------------------
2496 # Tries to find if the field MEMBER exists in type AGGR, after including
2497 # INCLUDES, setting cache variable VAR accordingly.
2498 ac_fn_c_check_member ()
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2502 $as_echo_n "checking for $2.$3... " >&6; }
2503 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2504 $as_echo_n "(cached) " >&6
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2519 if ac_fn_c_try_compile "$LINENO"; then :
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h. */
2529 if (sizeof ac_aggr.$3)
2535 if ac_fn_c_try_compile "$LINENO"; then :
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549 } # ac_fn_c_check_member
2551 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2552 # --------------------------------------------
2553 # Tries to find the compile-time value of EXPR in a program that includes
2554 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2556 ac_fn_c_compute_int ()
2558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559 if test "$cross_compiling" = yes; then
2560 # Depending upon the size, compute the lo and hi bounds.
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2567 static int test_array [1 - 2 * !(($2) >= 0)];
2574 if ac_fn_c_try_compile "$LINENO"; then :
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578 /* end confdefs.h. */
2583 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2590 if ac_fn_c_try_compile "$LINENO"; then :
2591 ac_hi=$ac_mid; break
2593 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2594 if test $ac_lo -le $ac_mid; then
2598 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2609 static int test_array [1 - 2 * !(($2) < 0)];
2616 if ac_fn_c_try_compile "$LINENO"; then :
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h. */
2625 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2632 if ac_fn_c_try_compile "$LINENO"; then :
2633 ac_lo=$ac_mid; break
2635 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2636 if test $ac_mid -le $ac_hi; then
2640 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 # Binary search between lo and hi bounds.
2651 while test "x$ac_lo" != "x$ac_hi"; do
2652 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2654 /* end confdefs.h. */
2659 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2666 if ac_fn_c_try_compile "$LINENO"; then :
2669 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2681 static long int longval () { return $2; }
2682 static unsigned long int ulongval () { return $2; }
2689 FILE *f = fopen ("conftest.val", "w");
2694 long int i = longval ();
2697 fprintf (f, "%ld", i);
2701 unsigned long int i = ulongval ();
2704 fprintf (f, "%lu", i);
2706 /* Do not output a trailing newline, as this causes \r\n confusion
2707 on some platforms. */
2708 return ferror (f) || fclose (f) != 0;
2714 if ac_fn_c_try_run "$LINENO"; then :
2715 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2720 conftest.$ac_objext conftest.beam conftest.$ac_ext
2724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2725 as_fn_set_status $ac_retval
2727 } # ac_fn_c_compute_int
2729 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2730 # ---------------------------------------------------------
2731 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2732 # the include files in INCLUDES and setting the cache variable VAR
2734 ac_fn_cxx_check_header_mongrel ()
2736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2737 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2739 $as_echo_n "checking for $2... " >&6; }
2740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2741 $as_echo_n "(cached) " >&6
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745 $as_echo "$ac_res" >&6; }
2747 # Is the header compilable?
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2749 $as_echo_n "checking $2 usability... " >&6; }
2750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751 /* end confdefs.h. */
2755 if ac_fn_cxx_try_compile "$LINENO"; then :
2756 ac_header_compiler=yes
2758 ac_header_compiler=no
2760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2762 $as_echo "$ac_header_compiler" >&6; }
2764 # Is the header present?
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2766 $as_echo_n "checking $2 presence... " >&6; }
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2771 if ac_fn_cxx_try_cpp "$LINENO"; then :
2772 ac_header_preproc=yes
2774 ac_header_preproc=no
2776 rm -f conftest.err conftest.$ac_ext
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2778 $as_echo "$ac_header_preproc" >&6; }
2780 # So? What about this header?
2781 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2784 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2790 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2792 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2794 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2796 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2800 ## ------------------------------------------ ##
2801 ## Report this to https://issues.asterisk.org ##
2802 ## ------------------------------------------ ##
2804 ) | sed "s/^/$as_me: WARNING: /" >&2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2808 $as_echo_n "checking for $2... " >&6; }
2809 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2810 $as_echo_n "(cached) " >&6
2812 eval "$3=\$ac_header_compiler"
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2816 $as_echo "$ac_res" >&6; }
2818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2820 } # ac_fn_cxx_check_header_mongrel
2822 # ac_fn_cxx_try_link LINENO
2823 # -------------------------
2824 # Try to link conftest.$ac_ext, and return whether this succeeded.
2825 ac_fn_cxx_try_link ()
2827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2828 rm -f conftest.$ac_objext conftest$ac_exeext
2829 if { { ac_try="$ac_link"
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2835 $as_echo "$ac_try_echo"; } >&5
2836 (eval "$ac_link") 2>conftest.err
2838 if test -s conftest.err; then
2839 grep -v '^ *+' conftest.err >conftest.er1
2840 cat conftest.er1 >&5
2841 mv -f conftest.er1 conftest.err
2843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844 test $ac_status = 0; } && {
2845 test -z "$ac_cxx_werror_flag" ||
2846 test ! -s conftest.err
2847 } && test -s conftest$ac_exeext && {
2848 test "$cross_compiling" = yes ||
2849 $as_test_x conftest$ac_exeext
2853 $as_echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.$ac_ext >&5
2858 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2859 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2860 # interfere with the next link command; also delete a directory that is
2861 # left behind by Apple's compiler. We do this before executing the actions.
2862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2864 as_fn_set_status $ac_retval
2866 } # ac_fn_cxx_try_link
2868 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2869 # ---------------------------------------------------------
2870 # Tests whether HEADER exists and can be compiled using the include files in
2871 # INCLUDES, setting the cache variable VAR accordingly.
2872 ac_fn_cxx_check_header_compile ()
2874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2876 $as_echo_n "checking for $2... " >&6; }
2877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2878 $as_echo_n "(cached) " >&6
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2885 if ac_fn_cxx_try_compile "$LINENO"; then :
2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2894 $as_echo "$ac_res" >&6; }
2895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2897 } # ac_fn_cxx_check_header_compile
2898 cat >config.log <<_ACEOF
2899 This file contains any messages produced by compilers while
2900 running configure, to aid debugging if configure makes a mistake.
2902 It was created by asterisk $as_me trunk, which was
2903 generated by GNU Autoconf 2.65. Invocation command line was
2915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2927 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 $as_echo "PATH: $as_dir"
2955 # Keep a trace of the command line.
2956 # Strip out --no-create and --no-recursion so they do not pile up.
2957 # Strip out --silent because we don't want to record it for future runs.
2958 # Also quote any args containing shell meta-characters.
2959 # Make two passes to allow for proper duplicate-argument suppression.
2963 ac_must_keep_next=false
2969 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2971 | -silent | --silent | --silen | --sile | --sil)
2974 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2977 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2979 as_fn_append ac_configure_args1 " '$ac_arg'"
2980 if test $ac_must_keep_next = true; then
2981 ac_must_keep_next=false # Got value, back to normal.
2984 *=* | --config-cache | -C | -disable-* | --disable-* \
2985 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2986 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2987 | -with-* | --with-* | -without-* | --without-* | --x)
2988 case "$ac_configure_args0 " in
2989 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2992 -* ) ac_must_keep_next=true ;;
2995 as_fn_append ac_configure_args " '$ac_arg'"
3000 { ac_configure_args0=; unset ac_configure_args0;}
3001 { ac_configure_args1=; unset ac_configure_args1;}
3003 # When interrupted or exit'd, cleanup temporary files, and complete
3004 # config.log. We remove comments because anyway the quotes in there
3005 # would cause problems or look ugly.
3006 # WARNING: Use '\'' to represent an apostrophe within the trap.
3007 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3008 trap 'exit_status=$?
3009 # Save into config.log some information that might help in debugging.
3014 ## ---------------- ##
3015 ## Cache variables. ##
3016 ## ---------------- ##
3019 # The following way of writing the cache mishandles newlines in values,
3021 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3022 eval ac_val=\$$ac_var
3026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3030 _ | IFS | as_nl) ;; #(
3031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3032 *) { eval $ac_var=; unset $ac_var;} ;;
3037 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3038 *${as_nl}ac_space=\ *)
3040 "s/'\''/'\''\\\\'\'''\''/g;
3041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3044 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3052 ## ----------------- ##
3053 ## Output variables. ##
3054 ## ----------------- ##
3057 for ac_var in $ac_subst_vars
3059 eval ac_val=\$$ac_var
3061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3063 $as_echo "$ac_var='\''$ac_val'\''"
3067 if test -n "$ac_subst_files"; then
3069 ## ------------------- ##
3070 ## File substitutions. ##
3071 ## ------------------- ##
3074 for ac_var in $ac_subst_files
3076 eval ac_val=\$$ac_var
3078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3080 $as_echo "$ac_var='\''$ac_val'\''"
3085 if test -s confdefs.h; then
3095 test "$ac_signal" != 0 &&
3096 $as_echo "$as_me: caught signal $ac_signal"
3097 $as_echo "$as_me: exit $exit_status"
3099 rm -f core *.core core.conftest.* &&
3100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3103 for ac_signal in 1 2 13 15; do
3104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3109 rm -f -r conftest* confdefs.h
3111 $as_echo "/* confdefs.h */" > confdefs.h
3113 # Predefined preprocessor variables.
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_NAME "$PACKAGE_NAME"
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3127 cat >>confdefs.h <<_ACEOF
3128 #define PACKAGE_STRING "$PACKAGE_STRING"
3131 cat >>confdefs.h <<_ACEOF
3132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3135 cat >>confdefs.h <<_ACEOF
3136 #define PACKAGE_URL "$PACKAGE_URL"
3140 # Let the site file select an alternate cache file if it wants to.
3141 # Prefer an explicitly selected file to automatically selected ones.
3144 if test -n "$CONFIG_SITE"; then
3145 ac_site_file1=$CONFIG_SITE
3146 elif test "x$prefix" != xNONE; then
3147 ac_site_file1=$prefix/share/config.site
3148 ac_site_file2=$prefix/etc/config.site
3150 ac_site_file1=$ac_default_prefix/share/config.site
3151 ac_site_file2=$ac_default_prefix/etc/config.site
3153 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3155 test "x$ac_site_file" = xNONE && continue
3156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3159 sed 's/^/| /' "$ac_site_file" >&5
3164 if test -r "$cache_file"; then
3165 # Some versions of bash will fail to source /dev/null (special files
3166 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3169 $as_echo "$as_me: loading cache $cache_file" >&6;}
3171 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3172 *) . "./$cache_file";;
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3177 $as_echo "$as_me: creating cache $cache_file" >&6;}
3181 as_fn_append ac_header_list " stdlib.h"
3182 as_fn_append ac_header_list " unistd.h"
3183 as_fn_append ac_header_list " sys/param.h"
3184 as_fn_append ac_header_list " utime.h"
3185 # Check that the precious variables saved in the cache have kept the same
3187 ac_cache_corrupted=false
3188 for ac_var in $ac_precious_vars; do
3189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3190 eval ac_new_set=\$ac_env_${ac_var}_set
3191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3192 eval ac_new_val=\$ac_env_${ac_var}_value
3193 case $ac_old_set,$ac_new_set in
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3196 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3197 ac_cache_corrupted=: ;;
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3200 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3201 ac_cache_corrupted=: ;;
3204 if test "x$ac_old_val" != "x$ac_new_val"; then
3205 # differences in whitespace do not lead to failure.
3206 ac_old_val_w=`echo x $ac_old_val`
3207 ac_new_val_w=`echo x $ac_new_val`
3208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3210 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3211 ac_cache_corrupted=:
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3214 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3215 eval $ac_var=\$ac_old_val
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3218 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3220 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3223 # Pass precious variables to config.status.
3224 if test "$ac_new_set" = set; then
3226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3227 *) ac_arg=$ac_var=$ac_new_val ;;
3229 case " $ac_configure_args " in
3230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3235 if $ac_cache_corrupted; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3239 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3240 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3242 ## -------------------- ##
3243 ## Main body of script. ##
3244 ## -------------------- ##
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254 # cross-compile macros
3256 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3257 for ac_t in install-sh install.sh shtool; do
3258 if test -f "$ac_dir/$ac_t"; then
3260 ac_install_sh="$ac_aux_dir/$ac_t -c"
3265 if test -z "$ac_aux_dir"; then
3266 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3269 # These three variables are undocumented and unsupported,
3270 # and are intended to be withdrawn in a future Autoconf release.
3271 # They can cause serious problems if a builder's source tree is in a directory
3272 # whose full name contains unusual characters.
3273 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3274 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3275 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3278 # Make sure we can run config.sub.
3279 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3280 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3283 $as_echo_n "checking build system type... " >&6; }
3284 if test "${ac_cv_build+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
3287 ac_build_alias=$build_alias
3288 test "x$ac_build_alias" = x &&
3289 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3290 test "x$ac_build_alias" = x &&
3291 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3292 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3293 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3297 $as_echo "$ac_cv_build" >&6; }
3298 case $ac_cv_build in
3300 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3303 ac_save_IFS=$IFS; IFS='-'
3309 # Remember, the first character of IFS is used to create $*,
3310 # except with old shells:
3313 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3317 $as_echo_n "checking host system type... " >&6; }
3318 if test "${ac_cv_host+set}" = set; then :
3319 $as_echo_n "(cached) " >&6
3321 if test "x$host_alias" = x; then
3322 ac_cv_host=$ac_cv_build
3324 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3325 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3330 $as_echo "$ac_cv_host" >&6; }
3333 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3336 ac_save_IFS=$IFS; IFS='-'
3342 # Remember, the first character of IFS is used to create $*,
3343 # except with old shells:
3346 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3350 # check existence of the package
3354 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3355 for ac_t in install-sh install.sh shtool; do
3356 if test -f "$ac_dir/$ac_t"; then
3358 ac_install_sh="$ac_aux_dir/$ac_t -c"
3363 if test -z "$ac_aux_dir"; then
3364 as_fn_error "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3367 # These three variables are undocumented and unsupported,
3368 # and are intended to be withdrawn in a future Autoconf release.
3369 # They can cause serious problems if a builder's source tree is in a directory
3370 # whose full name contains unusual characters.
3371 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3372 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3373 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3380 # preserve any CFLAGS or LDFLAGS that may be set
3381 # NOTE: This must be done before calling any macros that end up
3382 # calling AC_PROG_CC or the like, since they will set a default
3383 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3384 # we don't want those default flags to be carried over into the
3385 # rest of the build system since we have other means of controlling
3386 # debugging symbol generation and optimization.
3387 CONFIG_CFLAGS="${CFLAGS}"
3388 CONFIG_LDFLAGS="${LDFLAGS}"
3392 # specify output header file
3393 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401 if test -n "$ac_tool_prefix"; then
3402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3403 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if test "${ac_cv_prog_CC+set}" = set; then :
3407 $as_echo_n "(cached) " >&6
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 if test -n "$CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432 $as_echo "$CC" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3440 if test -z "$ac_cv_prog_CC"; then
3442 # Extract the first word of "gcc", so it can be a program name with args.
3443 set dummy gcc; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
3449 if test -n "$ac_ct_CC"; then
3450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3459 ac_cv_prog_ac_ct_CC="gcc"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3470 if test -n "$ac_ct_CC"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3472 $as_echo "$ac_ct_CC" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3478 if test "x$ac_ct_CC" = x; then
3481 case $cross_compiling:$ac_tool_warned in
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3485 ac_tool_warned=yes ;;
3493 if test -z "$CC"; then
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}cc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC="${ac_tool_prefix}cc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3534 if test -z "$CC"; then
3535 # Extract the first word of "cc", so it can be a program name with args.
3536 set dummy cc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3554 ac_prog_rejected=yes
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test $ac_prog_rejected = yes; then
3566 # We found a bogon in the path, so make sure we never use it.
3567 set dummy $ac_cv_prog_CC
3569 if test $# != 0; then
3570 # We chose a different compiler from the bogus one.
3571 # However, it has the same basename, so the bogon will be chosen
3572 # first if we set CC to just the basename; use the full file name.
3574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3590 if test -z "$CC"; then
3591 if test -n "$ac_tool_prefix"; then
3592 for ac_prog in cl.exe
3594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if test "${ac_cv_prog_CC+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3601 if test -n "$CC"; then
3602 ac_cv_prog_CC="$CC" # Let the user override the test.
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 if test -n "$CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3624 $as_echo "$CC" >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3631 test -n "$CC" && break
3634 if test -z "$CC"; then
3636 for ac_prog in cl.exe
3638 # Extract the first word of "$ac_prog", so it can be a program name with args.
3639 set dummy $ac_prog; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3643 $as_echo_n "(cached) " >&6
3645 if test -n "$ac_ct_CC"; then
3646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_ac_ct_CC="$ac_prog"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3666 if test -n "$ac_ct_CC"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3668 $as_echo "$ac_ct_CC" >&6; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3675 test -n "$ac_ct_CC" && break
3678 if test "x$ac_ct_CC" = x; then
3681 case $cross_compiling:$ac_tool_warned in
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3685 ac_tool_warned=yes ;;
3694 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696 as_fn_error "no acceptable C compiler found in \$PATH
3697 See \`config.log' for more details." "$LINENO" 5; }
3699 # Provide some information about the compiler.
3700 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3703 for ac_option in --version -v -V -qversion; do
3704 { { ac_try="$ac_compiler $ac_option >&5"
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710 $as_echo "$ac_try_echo"; } >&5
3711 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3713 if test -s conftest.err; then
3715 ... rest of stderr output deleted ...
3716 10q' conftest.err >conftest.er1
3717 cat conftest.er1 >&5
3719 rm -f conftest.er1 conftest.err
3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3735 ac_clean_files_save=$ac_clean_files
3736 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3737 # Try to create an executable without -o first, disregard a.out.
3738 # It will help us diagnose broken compilers, and finding out an intuition
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3741 $as_echo_n "checking whether the C compiler works... " >&6; }
3742 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3744 # The possible output files:
3745 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3748 for ac_file in $ac_files
3751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3752 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3757 if { { ac_try="$ac_link_default"
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763 $as_echo "$ac_try_echo"; } >&5
3764 (eval "$ac_link_default") 2>&5
3766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767 test $ac_status = 0; }; then :
3768 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3769 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3770 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3771 # so that the user can short-circuit this test for compilers unknown to
3773 for ac_file in $ac_files ''
3775 test -f "$ac_file" || continue
3777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3780 # We found the default executable, but exeext='' is most
3784 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3786 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3788 # We set ac_cv_exeext here because the later test for it is not
3789 # safe: cross compilers may not add the suffix if given an `-o'
3790 # argument, so we may need to know it at that point already.
3791 # Even if this section looks crufty: it has the advantage of
3798 test "$ac_cv_exeext" = no && ac_cv_exeext=
3803 if test -z "$ac_file"; then :
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 $as_echo "no" >&6; }
3806 $as_echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811 { as_fn_set_status 77
3812 as_fn_error "C compiler cannot create executables
3813 See \`config.log' for more details." "$LINENO" 5; }; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3816 $as_echo "yes" >&6; }
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3819 $as_echo_n "checking for C compiler default output file name... " >&6; }
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3821 $as_echo "$ac_file" >&6; }
3822 ac_exeext=$ac_cv_exeext
3824 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3825 ac_clean_files=$ac_clean_files_save
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3827 $as_echo_n "checking for suffix of executables... " >&6; }
3828 if { { ac_try="$ac_link"
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_link") 2>&5
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }; then :
3839 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3840 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3841 # work properly (i.e., refer to `conftest.exe'), while it won't with
3843 for ac_file in conftest.exe conftest conftest.*; do
3844 test -f "$ac_file" || continue
3846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3847 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3855 as_fn_error "cannot compute suffix of executables: cannot compile and link
3856 See \`config.log' for more details." "$LINENO" 5; }
3858 rm -f conftest conftest$ac_cv_exeext
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3860 $as_echo "$ac_cv_exeext" >&6; }
3862 rm -f conftest.$ac_ext
3863 EXEEXT=$ac_cv_exeext
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3871 FILE *f = fopen ("conftest.out", "w");
3872 return ferror (f) || fclose (f) != 0;
3878 ac_clean_files="$ac_clean_files conftest.out"
3879 # Check that the compiler produces executables we can run. If not, either
3880 # the compiler is broken, or we cross compile.
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3882 $as_echo_n "checking whether we are cross compiling... " >&6; }
3883 if test "$cross_compiling" != yes; then
3884 { { ac_try="$ac_link"
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }
3895 if { ac_try='./conftest$ac_cv_exeext'
3896 { { case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_try") 2>&5
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }; }; then
3908 if test "$cross_compiling" = maybe; then
3911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913 as_fn_error "cannot run C compiled programs.
3914 If you meant to cross compile, use \`--host'.
3915 See \`config.log' for more details." "$LINENO" 5; }
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3920 $as_echo "$cross_compiling" >&6; }
3922 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3923 ac_clean_files=$ac_clean_files_save
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3925 $as_echo_n "checking for suffix of object files... " >&6; }
3926 if test "${ac_cv_objext+set}" = set; then :
3927 $as_echo_n "(cached) " >&6
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3940 rm -f conftest.o conftest.obj
3941 if { { ac_try="$ac_compile"
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 $as_echo "$ac_try_echo"; } >&5
3948 (eval "$ac_compile") 2>&5
3950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951 test $ac_status = 0; }; then :
3952 for ac_file in conftest.o conftest.obj conftest.*; do
3953 test -f "$ac_file" || continue;
3955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3961 $as_echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error "cannot compute suffix of object files: cannot compile
3967 See \`config.log' for more details." "$LINENO" 5; }
3969 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3972 $as_echo "$ac_cv_objext" >&6; }
3973 OBJEXT=$ac_cv_objext
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3976 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3977 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3994 if ac_fn_c_try_compile "$LINENO"; then :
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4004 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4005 if test $ac_compiler_gnu = yes; then
4010 ac_test_CFLAGS=${CFLAGS+set}
4011 ac_save_CFLAGS=$CFLAGS
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4013 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4014 if test "${ac_cv_prog_cc_g+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
4017 ac_save_c_werror_flag=$ac_c_werror_flag
4018 ac_c_werror_flag=yes
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4032 if ac_fn_c_try_compile "$LINENO"; then :
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4047 if ac_fn_c_try_compile "$LINENO"; then :
4050 ac_c_werror_flag=$ac_save_c_werror_flag
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4063 if ac_fn_c_try_compile "$LINENO"; then :
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 ac_c_werror_flag=$ac_save_c_werror_flag
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4074 $as_echo "$ac_cv_prog_cc_g" >&6; }
4075 if test "$ac_test_CFLAGS" = set; then
4076 CFLAGS=$ac_save_CFLAGS
4077 elif test $ac_cv_prog_cc_g = yes; then
4078 if test "$GCC" = yes; then
4084 if test "$GCC" = yes; then
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4091 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4092 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4095 ac_cv_prog_cc_c89=no
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4101 #include <sys/types.h>
4102 #include <sys/stat.h>
4103 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4104 struct buf { int x; };
4105 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4106 static char *e (p, i)
4112 static char *f (char * (*g) (char **, int), char **p, ...)
4117 s = g (p, va_arg (v,int));
4122 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4123 function prototypes and stuff, but not '\xHH' hex character constants.
4124 These don't provoke an error unfortunately, instead are silently treated
4125 as 'x'. The following induces an error, until -std is added to get
4126 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4127 array size at least. It's necessary to write '\x00'==0 to get something
4128 that's true only with -std. */
4129 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4131 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4132 inside strings and character constants. */
4134 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4136 int test (int i, double x);
4137 struct s1 {int (*f) (int a);};
4138 struct s2 {int (*f) (double a);};
4139 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4145 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4150 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4151 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4153 CC="$ac_save_CC $ac_arg"
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155 ac_cv_prog_cc_c89=$ac_arg
4157 rm -f core conftest.err conftest.$ac_objext
4158 test "x$ac_cv_prog_cc_c89" != "xno" && break
4160 rm -f conftest.$ac_ext
4165 case "x$ac_cv_prog_cc_c89" in
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4168 $as_echo "none needed" >&6; } ;;
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4171 $as_echo "unsupported" >&6; } ;;
4173 CC="$CC $ac_cv_prog_cc_c89"
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4175 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4177 if test "x$ac_cv_prog_cc_c89" != xno; then :
4182 ac_cpp='$CPP $CPPFLAGS'
4183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4194 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4195 # On Suns, sometimes $CPP names a directory.
4196 if test -n "$CPP" && test -d "$CPP"; then
4199 if test -z "$CPP"; then
4200 if test "${ac_cv_prog_CPP+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4203 # Double quotes because CPP needs to be expanded
4204 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4207 for ac_c_preproc_warn_flag in '' yes
4209 # Use a header file that comes with gcc, so configuring glibc
4210 # with a fresh cross-compiler works.
4211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212 # <limits.h> exists even on freestanding compilers.
4213 # On the NeXT, cc -E runs the code through the compiler's parser,
4214 # not just through cpp. "Syntax error" is here to catch this case.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4218 # include <limits.h>
4220 # include <assert.h>
4224 if ac_fn_c_try_cpp "$LINENO"; then :
4227 # Broken: fails on valid input.
4230 rm -f conftest.err conftest.$ac_ext
4232 # OK, works on sane cases. Now check whether nonexistent headers
4233 # can be detected and how.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <ac_nonexistent.h>
4238 if ac_fn_c_try_cpp "$LINENO"; then :
4239 # Broken: success on invalid input.
4242 # Passes both tests.
4246 rm -f conftest.err conftest.$ac_ext
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then :
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4264 $as_echo "$CPP" >&6; }
4266 for ac_c_preproc_warn_flag in '' yes
4268 # Use a header file that comes with gcc, so configuring glibc
4269 # with a fresh cross-compiler works.
4270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4271 # <limits.h> exists even on freestanding compilers.
4272 # On the NeXT, cc -E runs the code through the compiler's parser,
4273 # not just through cpp. "Syntax error" is here to catch this case.
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4277 # include <limits.h>
4279 # include <assert.h>
4283 if ac_fn_c_try_cpp "$LINENO"; then :
4286 # Broken: fails on valid input.
4289 rm -f conftest.err conftest.$ac_ext
4291 # OK, works on sane cases. Now check whether nonexistent headers
4292 # can be detected and how.
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4295 #include <ac_nonexistent.h>
4297 if ac_fn_c_try_cpp "$LINENO"; then :
4298 # Broken: success on invalid input.
4301 # Passes both tests.
4305 rm -f conftest.err conftest.$ac_ext
4308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4309 rm -f conftest.err conftest.$ac_ext
4310 if $ac_preproc_ok; then :
4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4316 See \`config.log' for more details." "$LINENO" 5; }
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4327 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4328 if test "${ac_cv_path_GREP+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4331 if test -z "$GREP"; then
4332 ac_path_GREP_found=false
4333 # Loop through the user's path and test for each of PROGNAME-LIST
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4338 test -z "$as_dir" && as_dir=.
4339 for ac_prog in grep ggrep; do
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4342 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4343 # Check for GNU ac_path_GREP and select it if it is found.
4344 # Check for GNU $ac_path_GREP
4345 case `"$ac_path_GREP" --version 2>&1` in
4347 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4350 $as_echo_n 0123456789 >"conftest.in"
4353 cat "conftest.in" "conftest.in" >"conftest.tmp"
4354 mv "conftest.tmp" "conftest.in"
4355 cp "conftest.in" "conftest.nl"
4356 $as_echo 'GREP' >> "conftest.nl"
4357 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359 as_fn_arith $ac_count + 1 && ac_count=$as_val
4360 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4361 # Best one so far, save it but keep looking for a better one
4362 ac_cv_path_GREP="$ac_path_GREP"
4363 ac_path_GREP_max=$ac_count
4365 # 10*(2^10) chars as input seems more than enough
4366 test $ac_count -gt 10 && break
4368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4371 $ac_path_GREP_found && break 3
4376 if test -z "$ac_cv_path_GREP"; then
4377 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4380 ac_cv_path_GREP=$GREP
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4385 $as_echo "$ac_cv_path_GREP" >&6; }
4386 GREP="$ac_cv_path_GREP"
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4390 $as_echo_n "checking for egrep... " >&6; }
4391 if test "${ac_cv_path_EGREP+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
4394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4395 then ac_cv_path_EGREP="$GREP -E"
4397 if test -z "$EGREP"; then
4398 ac_path_EGREP_found=false
4399 # Loop through the user's path and test for each of PROGNAME-LIST
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4404 test -z "$as_dir" && as_dir=.
4405 for ac_prog in egrep; do
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4408 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4409 # Check for GNU ac_path_EGREP and select it if it is found.
4410 # Check for GNU $ac_path_EGREP
4411 case `"$ac_path_EGREP" --version 2>&1` in
4413 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4416 $as_echo_n 0123456789 >"conftest.in"
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 $as_echo 'EGREP' >> "conftest.nl"
4423 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 as_fn_arith $ac_count + 1 && ac_count=$as_val
4426 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_EGREP="$ac_path_EGREP"
4429 ac_path_EGREP_max=$ac_count
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4437 $ac_path_EGREP_found && break 3
4442 if test -z "$ac_cv_path_EGREP"; then
4443 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4446 ac_cv_path_EGREP=$EGREP
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4452 $as_echo "$ac_cv_path_EGREP" >&6; }
4453 EGREP="$ac_cv_path_EGREP"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4457 $as_echo_n "checking for ANSI C header files... " >&6; }
4458 if test "${ac_cv_header_stdc+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4476 if ac_fn_c_try_compile "$LINENO"; then :
4477 ac_cv_header_stdc=yes
4479 ac_cv_header_stdc=no
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 if test $ac_cv_header_stdc = yes; then
4484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "memchr" >/dev/null 2>&1; then :
4494 ac_cv_header_stdc=no
4500 if test $ac_cv_header_stdc = yes; then
4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4508 $EGREP "free" >/dev/null 2>&1; then :
4511 ac_cv_header_stdc=no
4517 if test $ac_cv_header_stdc = yes; then
4518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4519 if test "$cross_compiling" = yes; then :
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4526 #if ((' ' & 0x0FF) == 0x020)
4527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4530 # define ISLOWER(c) \
4531 (('a' <= (c) && (c) <= 'i') \
4532 || ('j' <= (c) && (c) <= 'r') \
4533 || ('s' <= (c) && (c) <= 'z'))
4534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4542 for (i = 0; i < 256; i++)
4543 if (XOR (islower (i), ISLOWER (i))
4544 || toupper (i) != TOUPPER (i))
4549 if ac_fn_c_try_run "$LINENO"; then :
4552 ac_cv_header_stdc=no
4554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4555 conftest.$ac_objext conftest.beam conftest.$ac_ext
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4561 $as_echo "$ac_cv_header_stdc" >&6; }
4562 if test $ac_cv_header_stdc = yes; then
4564 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570 inttypes.h stdint.h unistd.h
4572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4575 eval as_val=\$$as_ac_Header
4576 if test "x$as_val" = x""yes; then :
4577 cat >>confdefs.h <<_ACEOF
4578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4587 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4588 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4595 if test "$MINIX" = yes; then
4597 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4600 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4603 $as_echo "#define _MINIX 1" >>confdefs.h
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4609 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4610 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4611 $as_echo_n "(cached) " >&6
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4616 # define __EXTENSIONS__ 1
4617 $ac_includes_default
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627 ac_cv_safe_to_define___extensions__=yes
4629 ac_cv_safe_to_define___extensions__=no
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4634 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4635 test $ac_cv_safe_to_define___extensions__ = yes &&
4636 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4638 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4640 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4642 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4644 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4646 # note- does not work on FreeBSD
4648 case "${host_os}" in
4651 CPPFLAGS=-I/usr/local/include
4652 LDFLAGS=-L/usr/local/lib
4656 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4657 if test ${sysconfdir} = '${prefix}/etc'; then
4660 if test ${mandir} = '${prefix}/man'; then
4661 mandir=/usr/share/man
4664 CPPFLAGS=-I/usr/local/include
4665 LDFLAGS=-L/usr/local/lib
4669 $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
4674 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4675 if test ${sysconfdir} = '${prefix}/etc'; then
4678 if test ${mandir} = '${prefix}/man'; then
4679 mandir=/usr/share/man
4685 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4686 if test ${localstatedir} = '${prefix}/var'; then
4691 BUILD_PLATFORM=${build}
4692 BUILD_CPU=${build_cpu}
4693 BUILD_VENDOR=${build_vendor}
4694 BUILD_OS=${build_os}
4701 HOST_PLATFORM=${host}
4702 HOST_CPU=${host_cpu}
4703 HOST_VENDOR=${host_vendor}
4713 case "${host_os}" in