2 # From configure.ac Revision: 332388 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67 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, 2010 Free Software
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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
377 $as_echo "$as_me: error: $2" >&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, old GNU/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>
601 ac_subst_vars='LTLIBOBJS
603 PBX_SYSLOG_FACILITY_LOG_UUCP
604 PBX_SYSLOG_FACILITY_LOG_SYSLOG
605 PBX_SYSLOG_FACILITY_LOG_NEWS
606 PBX_SYSLOG_FACILITY_LOG_MAIL
607 PBX_SYSLOG_FACILITY_LOG_LPR
608 PBX_SYSLOG_FACILITY_LOG_KERN
609 PBX_SYSLOG_FACILITY_LOG_FTP
610 PBX_SYSLOG_FACILITY_LOG_DAEMON
611 PBX_SYSLOG_FACILITY_LOG_CRON
612 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
613 PBX_SYSLOG_FACILITY_LOG_AUTH
655 AST_NO_STRICT_OVERFLOW
657 AST_DECLARATION_AFTER_STATEMENT
661 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
662 PBX_PTHREAD_RWLOCK_INITIALIZER
739 SPEEX_PREPROCESS_INCLUDE
774 PBX_PRI_REVERSE_CHARGE
775 PRI_REVERSE_CHARGE_DIR
776 PRI_REVERSE_CHARGE_INCLUDE
777 PRI_REVERSE_CHARGE_LIB
778 PBX_PRI_SERVICE_MESSAGES
779 PRI_SERVICE_MESSAGES_DIR
780 PRI_SERVICE_MESSAGES_INCLUDE
781 PRI_SERVICE_MESSAGES_LIB
784 PRI_PROG_W_CAUSE_INCLUDE
786 PBX_PRI_INBANDDISCONNECT
787 PRI_INBANDDISCONNECT_DIR
788 PRI_INBANDDISCONNECT_INCLUDE
789 PRI_INBANDDISCONNECT_LIB
792 PRI_SETUP_KEYPAD_INCLUDE
794 PBX_PRI_CALL_REROUTING
795 PRI_CALL_REROUTING_DIR
796 PRI_CALL_REROUTING_INCLUDE
797 PRI_CALL_REROUTING_LIB
800 PRI_CALL_HOLD_INCLUDE
808 PRI_HANGUP_FIX_INCLUDE
820 PRI_AOC_EVENTS_INCLUDE
824 PRI_CALL_WAITING_INCLUDE
836 PRI_DISPLAY_TEXT_INCLUDE
842 PBX_PRI_DATETIME_SEND
843 PRI_DATETIME_SEND_DIR
844 PRI_DATETIME_SEND_INCLUDE
845 PRI_DATETIME_SEND_LIB
846 PBX_PRI_L2_PERSISTENCE
847 PRI_L2_PERSISTENCE_DIR
848 PRI_L2_PERSISTENCE_INCLUDE
849 PRI_L2_PERSISTENCE_LIB
1152 program_transform_name
1165 enable_option_checking
1241 enable_internal_poll
1244 ac_precious_vars='build_alias
1259 # Initialize some variables set by options.
1261 ac_init_version=false
1262 ac_unrecognized_opts=
1263 ac_unrecognized_sep=
1264 # The variables have the same names as the options, with
1265 # dashes changed to underlines.
1266 cache_file=/dev/null
1273 program_transform_name=s,x,x,
1281 # Installation directory options.
1282 # These are left unexpanded so users can "make install exec_prefix=/foo"
1283 # and all the variables that are supposed to be based on exec_prefix
1284 # by default will actually change.
1285 # Use braces instead of parens because sh, perl, etc. also accept them.
1286 # (The list follows the same order as the GNU Coding Standards.)
1287 bindir='${exec_prefix}/bin'
1288 sbindir='${exec_prefix}/sbin'
1289 libexecdir='${exec_prefix}/libexec'
1290 datarootdir='${prefix}/share'
1291 datadir='${datarootdir}'
1292 sysconfdir='${prefix}/etc'
1293 sharedstatedir='${prefix}/com'
1294 localstatedir='${prefix}/var'
1295 includedir='${prefix}/include'
1296 oldincludedir='/usr/include'
1297 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1298 infodir='${datarootdir}/info'
1303 libdir='${exec_prefix}/lib'
1304 localedir='${datarootdir}/locale'
1305 mandir='${datarootdir}/man'
1311 # If the previous option needs an argument, assign it.
1312 if test -n "$ac_prev"; then
1313 eval $ac_prev=\$ac_option
1319 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1324 # Accept the important Cygnus configure options, so we can diagnose typos.
1326 case $ac_dashdash$ac_option in
1330 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1332 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1333 bindir=$ac_optarg ;;
1335 -build | --build | --buil | --bui | --bu)
1336 ac_prev=build_alias ;;
1337 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1338 build_alias=$ac_optarg ;;
1340 -cache-file | --cache-file | --cache-fil | --cache-fi \
1341 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1342 ac_prev=cache_file ;;
1343 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1344 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1345 cache_file=$ac_optarg ;;
1347 --config-cache | -C)
1348 cache_file=config.cache ;;
1350 -datadir | --datadir | --datadi | --datad)
1352 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1353 datadir=$ac_optarg ;;
1355 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1356 | --dataroo | --dataro | --datar)
1357 ac_prev=datarootdir ;;
1358 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1359 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1360 datarootdir=$ac_optarg ;;
1362 -disable-* | --disable-*)
1363 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1364 # Reject names that are not valid shell variable names.
1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366 as_fn_error $? "invalid feature name: $ac_useropt"
1367 ac_useropt_orig=$ac_useropt
1368 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1371 "enable_$ac_useropt"
1373 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1374 ac_unrecognized_sep=', ';;
1376 eval enable_$ac_useropt=no ;;
1378 -docdir | --docdir | --docdi | --doc | --do)
1380 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1381 docdir=$ac_optarg ;;
1383 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1385 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1386 dvidir=$ac_optarg ;;
1388 -enable-* | --enable-*)
1389 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1392 as_fn_error $? "invalid feature name: $ac_useropt"
1393 ac_useropt_orig=$ac_useropt
1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1397 "enable_$ac_useropt"
1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1400 ac_unrecognized_sep=', ';;
1402 eval enable_$ac_useropt=\$ac_optarg ;;
1404 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1405 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1406 | --exec | --exe | --ex)
1407 ac_prev=exec_prefix ;;
1408 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1409 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1410 | --exec=* | --exe=* | --ex=*)
1411 exec_prefix=$ac_optarg ;;
1413 -gas | --gas | --ga | --g)
1414 # Obsolete; use --with-gas.
1417 -help | --help | --hel | --he | -h)
1418 ac_init_help=long ;;
1419 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1420 ac_init_help=recursive ;;
1421 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1422 ac_init_help=short ;;
1424 -host | --host | --hos | --ho)
1425 ac_prev=host_alias ;;
1426 -host=* | --host=* | --hos=* | --ho=*)
1427 host_alias=$ac_optarg ;;
1429 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1431 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1433 htmldir=$ac_optarg ;;
1435 -includedir | --includedir | --includedi | --included | --include \
1436 | --includ | --inclu | --incl | --inc)
1437 ac_prev=includedir ;;
1438 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1439 | --includ=* | --inclu=* | --incl=* | --inc=*)
1440 includedir=$ac_optarg ;;
1442 -infodir | --infodir | --infodi | --infod | --info | --inf)
1444 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1445 infodir=$ac_optarg ;;
1447 -libdir | --libdir | --libdi | --libd)
1449 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1450 libdir=$ac_optarg ;;
1452 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1453 | --libexe | --libex | --libe)
1454 ac_prev=libexecdir ;;
1455 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1456 | --libexe=* | --libex=* | --libe=*)
1457 libexecdir=$ac_optarg ;;
1459 -localedir | --localedir | --localedi | --localed | --locale)
1460 ac_prev=localedir ;;
1461 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1462 localedir=$ac_optarg ;;
1464 -localstatedir | --localstatedir | --localstatedi | --localstated \
1465 | --localstate | --localstat | --localsta | --localst | --locals)
1466 ac_prev=localstatedir ;;
1467 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1468 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1469 localstatedir=$ac_optarg ;;
1471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1474 mandir=$ac_optarg ;;
1476 -nfp | --nfp | --nf)
1477 # Obsolete; use --without-fp.
1480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1481 | --no-cr | --no-c | -n)
1484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1490 | --oldin | --oldi | --old | --ol | --o)
1491 ac_prev=oldincludedir ;;
1492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1495 oldincludedir=$ac_optarg ;;
1497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1500 prefix=$ac_optarg ;;
1502 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1503 | --program-pre | --program-pr | --program-p)
1504 ac_prev=program_prefix ;;
1505 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1507 program_prefix=$ac_optarg ;;
1509 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1510 | --program-suf | --program-su | --program-s)
1511 ac_prev=program_suffix ;;
1512 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1514 program_suffix=$ac_optarg ;;
1516 -program-transform-name | --program-transform-name \
1517 | --program-transform-nam | --program-transform-na \
1518 | --program-transform-n | --program-transform- \
1519 | --program-transform | --program-transfor \
1520 | --program-transfo | --program-transf \
1521 | --program-trans | --program-tran \
1522 | --progr-tra | --program-tr | --program-t)
1523 ac_prev=program_transform_name ;;
1524 -program-transform-name=* | --program-transform-name=* \
1525 | --program-transform-nam=* | --program-transform-na=* \
1526 | --program-transform-n=* | --program-transform-=* \
1527 | --program-transform=* | --program-transfor=* \
1528 | --program-transfo=* | --program-transf=* \
1529 | --program-trans=* | --program-tran=* \
1530 | --progr-tra=* | --program-tr=* | --program-t=*)
1531 program_transform_name=$ac_optarg ;;
1533 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1535 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1536 pdfdir=$ac_optarg ;;
1538 -psdir | --psdir | --psdi | --psd | --ps)
1540 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1544 | -silent | --silent | --silen | --sile | --sil)
1547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1551 sbindir=$ac_optarg ;;
1553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1555 | --sharedst | --shareds | --shared | --share | --shar \
1557 ac_prev=sharedstatedir ;;
1558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1562 sharedstatedir=$ac_optarg ;;
1564 -site | --site | --sit)
1566 -site=* | --site=* | --sit=*)
1569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1572 srcdir=$ac_optarg ;;
1574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1575 | --syscon | --sysco | --sysc | --sys | --sy)
1576 ac_prev=sysconfdir ;;
1577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1579 sysconfdir=$ac_optarg ;;
1581 -target | --target | --targe | --targ | --tar | --ta | --t)
1582 ac_prev=target_alias ;;
1583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1584 target_alias=$ac_optarg ;;
1586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1589 -version | --version | --versio | --versi | --vers | -V)
1590 ac_init_version=: ;;
1593 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1594 # Reject names that are not valid shell variable names.
1595 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1596 as_fn_error $? "invalid package name: $ac_useropt"
1597 ac_useropt_orig=$ac_useropt
1598 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1599 case $ac_user_opts in
1603 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1604 ac_unrecognized_sep=', ';;
1606 eval with_$ac_useropt=\$ac_optarg ;;
1608 -without-* | --without-*)
1609 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1610 # Reject names that are not valid shell variable names.
1611 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1612 as_fn_error $? "invalid package name: $ac_useropt"
1613 ac_useropt_orig=$ac_useropt
1614 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1615 case $ac_user_opts in
1619 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1620 ac_unrecognized_sep=', ';;
1622 eval with_$ac_useropt=no ;;
1625 # Obsolete; use --with-x.
1628 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1629 | --x-incl | --x-inc | --x-in | --x-i)
1630 ac_prev=x_includes ;;
1631 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1632 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1633 x_includes=$ac_optarg ;;
1635 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1636 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1637 ac_prev=x_libraries ;;
1638 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1639 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1640 x_libraries=$ac_optarg ;;
1642 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1643 Try \`$0 --help' for more information"
1647 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1648 # Reject names that are not valid shell variable names.
1649 case $ac_envvar in #(
1650 '' | [0-9]* | *[!_$as_cr_alnum]* )
1651 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1653 eval $ac_envvar=\$ac_optarg
1654 export $ac_envvar ;;
1657 # FIXME: should be removed in autoconf 3.0.
1658 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1659 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1660 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1661 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1667 if test -n "$ac_prev"; then
1668 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1669 as_fn_error $? "missing argument to $ac_option"
1672 if test -n "$ac_unrecognized_opts"; then
1673 case $enable_option_checking in
1675 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1676 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1680 # Check all directory arguments for consistency.
1681 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1682 datadir sysconfdir sharedstatedir localstatedir includedir \
1683 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1684 libdir localedir mandir
1686 eval ac_val=\$$ac_var
1687 # Remove trailing slashes.
1690 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1691 eval $ac_var=\$ac_val;;
1693 # Be sure to have absolute directory names.
1695 [\\/$]* | ?:[\\/]* ) continue;;
1696 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1698 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1701 # There might be people who depend on the old broken behavior: `$host'
1702 # used to hold the argument of --host etc.
1703 # FIXME: To remove some day.
1706 target=$target_alias
1708 # FIXME: To remove some day.
1709 if test "x$host_alias" != x; then
1710 if test "x$build_alias" = x; then
1711 cross_compiling=maybe
1712 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1713 If a cross compiler is detected then cross compile mode will be used" >&2
1714 elif test "x$build_alias" != "x$host_alias"; then
1720 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1722 test "$silent" = yes && exec 6>/dev/null
1725 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1726 ac_ls_di=`ls -di .` &&
1727 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1728 as_fn_error $? "working directory cannot be determined"
1729 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1730 as_fn_error $? "pwd does not report name of working directory"
1733 # Find the source files, if location was not specified.
1734 if test -z "$srcdir"; then
1735 ac_srcdir_defaulted=yes
1736 # Try the directory containing this script, then the parent directory.
1737 ac_confdir=`$as_dirname -- "$as_myself" ||
1738 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1739 X"$as_myself" : 'X\(//\)[^/]' \| \
1740 X"$as_myself" : 'X\(//\)$' \| \
1741 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1742 $as_echo X"$as_myself" |
1743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1761 if test ! -r "$srcdir/$ac_unique_file"; then
1765 ac_srcdir_defaulted=no
1767 if test ! -r "$srcdir/$ac_unique_file"; then
1768 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1769 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1771 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1773 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1775 # When building in place, set srcdir=.
1776 if test "$ac_abs_confdir" = "$ac_pwd"; then
1779 # Remove unnecessary trailing slashes from srcdir.
1780 # Double slashes in file names in object file debugging info
1781 # mess up M-x gdb in Emacs.
1783 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1785 for ac_var in $ac_precious_vars; do
1786 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1787 eval ac_env_${ac_var}_value=\$${ac_var}
1788 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1789 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1793 # Report the --help message.
1795 if test "$ac_init_help" = "long"; then
1796 # Omit some internal or obsolete options to make the list less imposing.
1797 # This message is too long to be a string in the A/UX 3.1 sh.
1799 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1801 Usage: $0 [OPTION]... [VAR=VALUE]...
1803 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1804 VAR=VALUE. See below for descriptions of some of the useful variables.
1806 Defaults for the options are specified in brackets.
1809 -h, --help display this help and exit
1810 --help=short display options specific to this package
1811 --help=recursive display the short help of all the included packages
1812 -V, --version display version information and exit
1813 -q, --quiet, --silent do not print \`checking ...' messages
1814 --cache-file=FILE cache test results in FILE [disabled]
1815 -C, --config-cache alias for \`--cache-file=config.cache'
1816 -n, --no-create do not create output files
1817 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1819 Installation directories:
1820 --prefix=PREFIX install architecture-independent files in PREFIX
1821 [$ac_default_prefix]
1822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1825 By default, \`make install' will install all the files in
1826 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1827 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1828 for instance \`--prefix=\$HOME'.
1830 For better control, use the options below.
1832 Fine tuning of the installation directories:
1833 --bindir=DIR user executables [EPREFIX/bin]
1834 --sbindir=DIR system admin executables [EPREFIX/sbin]
1835 --libexecdir=DIR program executables [EPREFIX/libexec]
1836 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1837 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1838 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1839 --libdir=DIR object code libraries [EPREFIX/lib]
1840 --includedir=DIR C header files [PREFIX/include]
1841 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1842 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1843 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1844 --infodir=DIR info documentation [DATAROOTDIR/info]
1845 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1846 --mandir=DIR man documentation [DATAROOTDIR/man]
1847 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1848 --htmldir=DIR html documentation [DOCDIR]
1849 --dvidir=DIR dvi documentation [DOCDIR]
1850 --pdfdir=DIR pdf documentation [DOCDIR]
1851 --psdir=DIR ps documentation [DOCDIR]
1857 --build=BUILD configure for building on BUILD [guessed]
1858 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1862 if test -n "$ac_init_help"; then
1863 case $ac_init_help in
1864 short | recursive ) echo "Configuration of asterisk trunk:";;
1869 --disable-option-checking ignore unrecognized --enable/--with options
1870 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1871 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1872 --enable-dev-mode Turn on developer mode
1873 --enable-coverage Turn on code coverage tracking (for gcov)
1874 --disable-largefile omit support for large files
1875 --enable-internal-poll Use Asterisk's poll implementation
1876 --disable-xmldoc Explicity disable XML documentation
1879 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1880 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1881 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1882 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1883 --with-bfd=PATH use Debug symbol decoding files in PATH
1884 --with-execinfo=PATH use Stack Backtrace files in PATH
1885 --with-bluetooth=PATH use Bluetooth files in PATH
1886 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1887 --with-curses=PATH use curses files in PATH
1888 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1889 --with-dahdi=PATH use DAHDI files in PATH
1890 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1891 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1893 --with-gtk2=PATH use gtk2 files in PATH
1894 --with-gmime=PATH use GMime files in PATH
1895 --with-h323=PATH use OpenH323 files in PATH
1896 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1897 --with-ical=PATH use iCal files in PATH
1898 --with-iconv=PATH use Iconv files in PATH
1899 --with-iksemel=PATH use Iksemel Jabber files in PATH
1900 --with-imap=PATH use UW IMAP Toolkit files in PATH
1901 --with-inotify=PATH use inotify support files in PATH
1902 --with-iodbc=PATH use iODBC files in PATH
1903 --with-isdnnet=PATH use ISDN4Linux files in PATH
1904 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1905 --with-kqueue=PATH use kqueue support files in PATH
1906 --with-ldap=PATH use OpenLDAP files in PATH
1907 --with-libcurl=DIR look for the curl library in DIR
1908 --with-libxml2=PATH use LibXML2 files in PATH
1909 --with-ltdl=PATH use libtool files in PATH
1910 --with-lua=PATH use Lua files in PATH
1911 --with-misdn=PATH use mISDN user files in PATH
1912 --with-mysqlclient=PATH use MySQL client files in PATH
1913 --with-nbs=PATH use Network Broadcast Sound files in PATH
1914 --with-ncurses=PATH use ncurses files in PATH
1915 --with-neon=PATH use neon files in PATH
1916 --with-neon29=PATH use neon29 files in PATH
1917 --with-netsnmp=PATH use Net-SNMP files in PATH
1918 --with-newt=PATH use newt files in PATH
1919 --with-ogg=PATH use OGG files in PATH
1920 --with-openais=PATH use OpenAIS files in PATH
1921 --with-openr2=PATH use MFR2 files in PATH
1922 --with-osptk=PATH use OSP Toolkit files in PATH
1923 --with-oss=PATH use Open Sound System files in PATH
1924 --with-postgres=PATH use PostgreSQL files in PATH
1925 --with-popt=PATH use popt files in PATH
1926 --with-portaudio=PATH use PortAudio files in PATH
1927 --with-pri=PATH use ISDN PRI files in PATH
1928 --with-pwlib=PATH use PWlib files in PATH
1929 --with-radius=PATH use Radius Client files in PATH
1930 --with-resample=PATH use LIBRESAMPLE files in PATH
1931 --with-sdl=PATH use Sdl files in PATH
1932 --with-SDL_image=PATH use Sdl Image files in PATH
1933 --with-sounds-cache=PATH
1934 use cached sound tarfiles in PATH
1935 --with-spandsp=PATH use SPANDSP files in PATH
1936 --with-ss7=PATH use ISDN SS7 files in PATH
1937 --with-speex=PATH use Speex files in PATH
1938 --with-speex=PATH use Speex preprocess routines files in PATH
1939 --with-speexdsp=PATH use SpeexDSP files in PATH
1940 --with-sqlite=PATH use SQLite files in PATH
1941 --with-sqlite3=PATH use SQLite files in PATH
1942 --with-srtp=PATH use Secure RTP files in PATH
1943 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1944 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1945 --with-tds=PATH use FreeTDS files in PATH
1946 --with-termcap=PATH use Termcap files in PATH
1947 --with-timerfd=PATH use timerfd files in PATH
1948 --with-tinfo=PATH use Term Info files in PATH
1949 --with-tonezone=PATH use tonezone files in PATH
1950 --with-unixodbc=PATH use unixODBC files in PATH
1951 --with-usb=PATH use usb files in PATH
1952 --with-vorbis=PATH use Vorbis files in PATH
1953 --with-vpb=PATH use Voicetronix API files in PATH
1954 --with-x11=PATH use X11 files in PATH
1955 --with-z=PATH use zlib compression files in PATH
1957 Some influential environment variables:
1958 CC C compiler command
1959 CFLAGS C compiler flags
1960 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1961 nonstandard directory <lib dir>
1962 LIBS libraries to pass to the linker, e.g. -l<library>
1963 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1964 you have headers in a nonstandard directory <include dir>
1966 CXX C++ compiler command
1967 CXXFLAGS C++ compiler flags
1968 CXXCPP C++ preprocessor
1970 Use these variables to override the choices made by `configure' or to help
1971 it to find libraries and programs with nonstandard names/locations.
1973 Report bugs to <https://issues.asterisk.org>.
1978 if test "$ac_init_help" = "recursive"; then
1979 # If there are subdirs, report their specific --help.
1980 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1981 test -d "$ac_dir" ||
1982 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1987 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1989 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1990 # A ".." for each directory in $ac_dir_suffix.
1991 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1992 case $ac_top_builddir_sub in
1993 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1994 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1997 ac_abs_top_builddir=$ac_pwd
1998 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1999 # for backward compatibility:
2000 ac_top_builddir=$ac_top_build_prefix
2003 .) # We are building in place.
2005 ac_top_srcdir=$ac_top_builddir_sub
2006 ac_abs_top_srcdir=$ac_pwd ;;
2007 [\\/]* | ?:[\\/]* ) # Absolute name.
2008 ac_srcdir=$srcdir$ac_dir_suffix;
2009 ac_top_srcdir=$srcdir
2010 ac_abs_top_srcdir=$srcdir ;;
2012 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2013 ac_top_srcdir=$ac_top_build_prefix$srcdir
2014 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2016 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2018 cd "$ac_dir" || { ac_status=$?; continue; }
2019 # Check for guested configure.
2020 if test -f "$ac_srcdir/configure.gnu"; then
2022 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2023 elif test -f "$ac_srcdir/configure"; then
2025 $SHELL "$ac_srcdir/configure" --help=recursive
2027 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2029 cd "$ac_pwd" || { ac_status=$?; break; }
2033 test -n "$ac_init_help" && exit $ac_status
2034 if $ac_init_version; then
2036 asterisk configure trunk
2037 generated by GNU Autoconf 2.67
2039 Copyright (C) 2010 Free Software Foundation, Inc.
2040 This configure script is free software; the Free Software Foundation
2041 gives unlimited permission to copy, distribute and modify it.
2048 ## ------------------------ ##
2049 ## Autoconf initialization. ##
2050 ## ------------------------ ##
2052 # ac_fn_c_try_compile LINENO
2053 # --------------------------
2054 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2055 ac_fn_c_try_compile ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 rm -f conftest.$ac_objext
2059 if { { ac_try="$ac_compile"
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_compile") 2>conftest.err
2068 if test -s conftest.err; then
2069 grep -v '^ *+' conftest.err >conftest.er1
2070 cat conftest.er1 >&5
2071 mv -f conftest.er1 conftest.err
2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; } && {
2075 test -z "$ac_c_werror_flag" ||
2076 test ! -s conftest.err
2077 } && test -s conftest.$ac_objext; then :
2080 $as_echo "$as_me: failed program was:" >&5
2081 sed 's/^/| /' conftest.$ac_ext >&5
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 as_fn_set_status $ac_retval
2088 } # ac_fn_c_try_compile
2090 # ac_fn_c_try_cpp LINENO
2091 # ----------------------
2092 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if { { ac_try="$ac_cpp conftest.$ac_ext"
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102 $as_echo "$ac_try_echo"; } >&5
2103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2105 if test -s conftest.err; then
2106 grep -v '^ *+' conftest.err >conftest.er1
2107 cat conftest.er1 >&5
2108 mv -f conftest.er1 conftest.err
2110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111 test $ac_status = 0; } > conftest.i && {
2112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2113 test ! -s conftest.err
2117 $as_echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2122 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2123 as_fn_set_status $ac_retval
2127 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2128 # -------------------------------------------------------
2129 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2130 # the include files in INCLUDES and setting the cache variable VAR
2132 ac_fn_c_check_header_mongrel ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if eval "test \"\${$3+set}\"" = set; then :
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137 $as_echo_n "checking for $2... " >&6; }
2138 if eval "test \"\${$3+set}\"" = set; then :
2139 $as_echo_n "(cached) " >&6
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143 $as_echo "$ac_res" >&6; }
2145 # Is the header compilable?
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2147 $as_echo_n "checking $2 usability... " >&6; }
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_header_compiler=yes
2156 ac_header_compiler=no
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2160 $as_echo "$ac_header_compiler" >&6; }
2162 # Is the header present?
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2164 $as_echo_n "checking $2 presence... " >&6; }
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 if ac_fn_c_try_cpp "$LINENO"; then :
2170 ac_header_preproc=yes
2172 ac_header_preproc=no
2174 rm -f conftest.err conftest.i conftest.$ac_ext
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2176 $as_echo "$ac_header_preproc" >&6; }
2178 # So? What about this header?
2179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2182 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2184 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2188 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2190 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2192 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2194 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2196 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2197 ( $as_echo "## ------------------------------------------ ##
2198 ## Report this to https://issues.asterisk.org ##
2199 ## ------------------------------------------ ##"
2200 ) | sed "s/^/$as_me: WARNING: /" >&2
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204 $as_echo_n "checking for $2... " >&6; }
2205 if eval "test \"\${$3+set}\"" = set; then :
2206 $as_echo_n "(cached) " >&6
2208 eval "$3=\$ac_header_compiler"
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2214 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216 } # ac_fn_c_check_header_mongrel
2218 # ac_fn_c_try_run LINENO
2219 # ----------------------
2220 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2221 # that executables *can* be run.
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 if { { ac_try="$ac_link"
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2231 $as_echo "$ac_try_echo"; } >&5
2232 (eval "$ac_link") 2>&5
2234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2235 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2236 { { case "(($ac_try" in
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2241 $as_echo "$ac_try_echo"; } >&5
2242 (eval "$ac_try") 2>&5
2244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2245 test $ac_status = 0; }; }; then :
2248 $as_echo "$as_me: program exited with status $ac_status" >&5
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2252 ac_retval=$ac_status
2254 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2255 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2256 as_fn_set_status $ac_retval
2260 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2261 # -------------------------------------------------------
2262 # Tests whether HEADER exists and can be compiled using the include files in
2263 # INCLUDES, setting the cache variable VAR accordingly.
2264 ac_fn_c_check_header_compile ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268 $as_echo_n "checking for $2... " >&6; }
2269 if eval "test \"\${$3+set}\"" = set; then :
2270 $as_echo_n "(cached) " >&6
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2277 if ac_fn_c_try_compile "$LINENO"; then :
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2289 } # ac_fn_c_check_header_compile
2291 # ac_fn_cxx_try_compile LINENO
2292 # ----------------------------
2293 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2294 ac_fn_cxx_try_compile ()
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 rm -f conftest.$ac_objext
2298 if { { ac_try="$ac_compile"
2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301 *) ac_try_echo=$ac_try;;
2303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2304 $as_echo "$ac_try_echo"; } >&5
2305 (eval "$ac_compile") 2>conftest.err
2307 if test -s conftest.err; then
2308 grep -v '^ *+' conftest.err >conftest.er1
2309 cat conftest.er1 >&5
2310 mv -f conftest.er1 conftest.err
2312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2313 test $ac_status = 0; } && {
2314 test -z "$ac_cxx_werror_flag" ||
2315 test ! -s conftest.err
2316 } && test -s conftest.$ac_objext; then :
2319 $as_echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2324 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2325 as_fn_set_status $ac_retval
2327 } # ac_fn_cxx_try_compile
2329 # ac_fn_cxx_try_cpp LINENO
2330 # ------------------------
2331 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2332 ac_fn_cxx_try_cpp ()
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 if { { ac_try="$ac_cpp conftest.$ac_ext"
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2341 $as_echo "$ac_try_echo"; } >&5
2342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2344 if test -s conftest.err; then
2345 grep -v '^ *+' conftest.err >conftest.er1
2346 cat conftest.er1 >&5
2347 mv -f conftest.er1 conftest.err
2349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2350 test $ac_status = 0; } > conftest.i && {
2351 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2352 test ! -s conftest.err
2356 $as_echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2361 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2362 as_fn_set_status $ac_retval
2364 } # ac_fn_cxx_try_cpp
2366 # ac_fn_c_try_link LINENO
2367 # -----------------------
2368 # Try to link conftest.$ac_ext, and return whether this succeeded.
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 rm -f conftest.$ac_objext conftest$ac_exeext
2373 if { { ac_try="$ac_link"
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_link") 2>conftest.err
2382 if test -s conftest.err; then
2383 grep -v '^ *+' conftest.err >conftest.er1
2384 cat conftest.er1 >&5
2385 mv -f conftest.er1 conftest.err
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; } && {
2389 test -z "$ac_c_werror_flag" ||
2390 test ! -s conftest.err
2391 } && test -s conftest$ac_exeext && {
2392 test "$cross_compiling" = yes ||
2393 $as_test_x conftest$ac_exeext
2397 $as_echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2402 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2403 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2404 # interfere with the next link command; also delete a directory that is
2405 # left behind by Apple's compiler. We do this before executing the actions.
2406 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2407 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2408 as_fn_set_status $ac_retval
2410 } # ac_fn_c_try_link
2412 # ac_fn_c_check_func LINENO FUNC VAR
2413 # ----------------------------------
2414 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2415 ac_fn_c_check_func ()
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2419 $as_echo_n "checking for $2... " >&6; }
2420 if eval "test \"\${$3+set}\"" = set; then :
2421 $as_echo_n "(cached) " >&6
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2425 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2427 #define $2 innocuous_$2
2429 /* System header to define __stub macros and hopefully few prototypes,
2430 which can conflict with char $2 (); below.
2431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2432 <limits.h> exists even on freestanding compilers. */
2435 # include <limits.h>
2437 # include <assert.h>
2442 /* Override any GCC internal prototype to avoid an error.
2443 Use char because int might match the return type of a GCC
2444 builtin and then its argument prototype would still apply. */
2449 /* The GNU C library defines this for functions which it implements
2450 to always fail with ENOSYS. Some functions are actually named
2451 something starting with __ and the normal name is an alias. */
2452 #if defined __stub_$2 || defined __stub___$2
2464 if ac_fn_c_try_link "$LINENO"; then :
2469 rm -f core conftest.err conftest.$ac_objext \
2470 conftest$ac_exeext conftest.$ac_ext
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477 } # ac_fn_c_check_func
2479 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2480 # -------------------------------------------
2481 # Tests whether TYPE exists after having included INCLUDES, setting cache
2482 # variable VAR accordingly.
2483 ac_fn_c_check_type ()
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2487 $as_echo_n "checking for $2... " >&6; }
2488 if eval "test \"\${$3+set}\"" = set; then :
2489 $as_echo_n "(cached) " >&6
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506 /* end confdefs.h. */
2517 if ac_fn_c_try_compile "$LINENO"; then :
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2528 $as_echo "$ac_res" >&6; }
2529 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2531 } # ac_fn_c_check_type
2533 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2534 # ----------------------------------------------------
2535 # Tries to find if the field MEMBER exists in type AGGR, after including
2536 # INCLUDES, setting cache variable VAR accordingly.
2537 ac_fn_c_check_member ()
2539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2541 $as_echo_n "checking for $2.$3... " >&6; }
2542 if eval "test \"\${$4+set}\"" = set; then :
2543 $as_echo_n "(cached) " >&6
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h. */
2558 if ac_fn_c_try_compile "$LINENO"; then :
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2568 if (sizeof ac_aggr.$3)
2574 if ac_fn_c_try_compile "$LINENO"; then :
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2585 $as_echo "$ac_res" >&6; }
2586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2588 } # ac_fn_c_check_member
2590 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2591 # --------------------------------------------
2592 # Tries to find the compile-time value of EXPR in a program that includes
2593 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2595 ac_fn_c_compute_int ()
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 if test "$cross_compiling" = yes; then
2599 # Depending upon the size, compute the lo and hi bounds.
2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h. */
2606 static int test_array [1 - 2 * !(($2) >= 0)];
2613 if ac_fn_c_try_compile "$LINENO"; then :
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2622 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2629 if ac_fn_c_try_compile "$LINENO"; then :
2630 ac_hi=$ac_mid; break
2632 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2633 if test $ac_lo -le $ac_mid; then
2637 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2643 /* end confdefs.h. */
2648 static int test_array [1 - 2 * !(($2) < 0)];
2655 if ac_fn_c_try_compile "$LINENO"; then :
2658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659 /* end confdefs.h. */
2664 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2671 if ac_fn_c_try_compile "$LINENO"; then :
2672 ac_lo=$ac_mid; break
2674 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2675 if test $ac_mid -le $ac_hi; then
2679 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 # Binary search between lo and hi bounds.
2690 while test "x$ac_lo" != "x$ac_hi"; do
2691 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2698 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2705 if ac_fn_c_try_compile "$LINENO"; then :
2708 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2720 static long int longval () { return $2; }
2721 static unsigned long int ulongval () { return $2; }
2728 FILE *f = fopen ("conftest.val", "w");
2733 long int i = longval ();
2736 fprintf (f, "%ld", i);
2740 unsigned long int i = ulongval ();
2743 fprintf (f, "%lu", i);
2745 /* Do not output a trailing newline, as this causes \r\n confusion
2746 on some platforms. */
2747 return ferror (f) || fclose (f) != 0;
2753 if ac_fn_c_try_run "$LINENO"; then :
2754 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2759 conftest.$ac_objext conftest.beam conftest.$ac_ext
2763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2764 as_fn_set_status $ac_retval
2766 } # ac_fn_c_compute_int
2768 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2769 # ---------------------------------------------------------
2770 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2771 # the include files in INCLUDES and setting the cache variable VAR
2773 ac_fn_cxx_check_header_mongrel ()
2775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2776 if eval "test \"\${$3+set}\"" = set; then :
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2778 $as_echo_n "checking for $2... " >&6; }
2779 if eval "test \"\${$3+set}\"" = set; then :
2780 $as_echo_n "(cached) " >&6
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2784 $as_echo "$ac_res" >&6; }
2786 # Is the header compilable?
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2788 $as_echo_n "checking $2 usability... " >&6; }
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h. */
2794 if ac_fn_cxx_try_compile "$LINENO"; then :
2795 ac_header_compiler=yes
2797 ac_header_compiler=no
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2801 $as_echo "$ac_header_compiler" >&6; }
2803 # Is the header present?
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2805 $as_echo_n "checking $2 presence... " >&6; }
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h. */
2810 if ac_fn_cxx_try_cpp "$LINENO"; then :
2811 ac_header_preproc=yes
2813 ac_header_preproc=no
2815 rm -f conftest.err conftest.i conftest.$ac_ext
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2817 $as_echo "$ac_header_preproc" >&6; }
2819 # So? What about this header?
2820 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2823 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2829 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2831 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2833 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2835 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2837 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2838 ( $as_echo "## ------------------------------------------ ##
2839 ## Report this to https://issues.asterisk.org ##
2840 ## ------------------------------------------ ##"
2841 ) | sed "s/^/$as_me: WARNING: /" >&2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2845 $as_echo_n "checking for $2... " >&6; }
2846 if eval "test \"\${$3+set}\"" = set; then :
2847 $as_echo_n "(cached) " >&6
2849 eval "$3=\$ac_header_compiler"
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2853 $as_echo "$ac_res" >&6; }
2855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2857 } # ac_fn_cxx_check_header_mongrel
2859 # ac_fn_cxx_try_link LINENO
2860 # -------------------------
2861 # Try to link conftest.$ac_ext, and return whether this succeeded.
2862 ac_fn_cxx_try_link ()
2864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865 rm -f conftest.$ac_objext conftest$ac_exeext
2866 if { { ac_try="$ac_link"
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2872 $as_echo "$ac_try_echo"; } >&5
2873 (eval "$ac_link") 2>conftest.err
2875 if test -s conftest.err; then
2876 grep -v '^ *+' conftest.err >conftest.er1
2877 cat conftest.er1 >&5
2878 mv -f conftest.er1 conftest.err
2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2881 test $ac_status = 0; } && {
2882 test -z "$ac_cxx_werror_flag" ||
2883 test ! -s conftest.err
2884 } && test -s conftest$ac_exeext && {
2885 test "$cross_compiling" = yes ||
2886 $as_test_x conftest$ac_exeext
2890 $as_echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2895 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2896 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2897 # interfere with the next link command; also delete a directory that is
2898 # left behind by Apple's compiler. We do this before executing the actions.
2899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2901 as_fn_set_status $ac_retval
2903 } # ac_fn_cxx_try_link
2905 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2906 # ---------------------------------------------------------
2907 # Tests whether HEADER exists and can be compiled using the include files in
2908 # INCLUDES, setting the cache variable VAR accordingly.
2909 ac_fn_cxx_check_header_compile ()
2911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2913 $as_echo_n "checking for $2... " >&6; }
2914 if eval "test \"\${$3+set}\"" = set; then :
2915 $as_echo_n "(cached) " >&6
2917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2922 if ac_fn_cxx_try_compile "$LINENO"; then :
2927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2931 $as_echo "$ac_res" >&6; }
2932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2934 } # ac_fn_cxx_check_header_compile
2935 cat >config.log <<_ACEOF
2936 This file contains any messages produced by compilers while
2937 running configure, to aid debugging if configure makes a mistake.
2939 It was created by asterisk $as_me trunk, which was
2940 generated by GNU Autoconf 2.67. Invocation command line was
2952 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2953 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2954 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2955 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2956 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2958 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2959 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2961 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2962 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2963 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2964 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2965 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2966 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2967 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir=.
2976 $as_echo "PATH: $as_dir"
2992 # Keep a trace of the command line.
2993 # Strip out --no-create and --no-recursion so they do not pile up.
2994 # Strip out --silent because we don't want to record it for future runs.
2995 # Also quote any args containing shell meta-characters.
2996 # Make two passes to allow for proper duplicate-argument suppression.
3000 ac_must_keep_next=false
3006 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3008 | -silent | --silent | --silen | --sile | --sil)
3011 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3014 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3016 as_fn_append ac_configure_args1 " '$ac_arg'"
3017 if test $ac_must_keep_next = true; then
3018 ac_must_keep_next=false # Got value, back to normal.
3021 *=* | --config-cache | -C | -disable-* | --disable-* \
3022 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3023 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3024 | -with-* | --with-* | -without-* | --without-* | --x)
3025 case "$ac_configure_args0 " in
3026 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3029 -* ) ac_must_keep_next=true ;;
3032 as_fn_append ac_configure_args " '$ac_arg'"
3037 { ac_configure_args0=; unset ac_configure_args0;}
3038 { ac_configure_args1=; unset ac_configure_args1;}
3040 # When interrupted or exit'd, cleanup temporary files, and complete
3041 # config.log. We remove comments because anyway the quotes in there
3042 # would cause problems or look ugly.
3043 # WARNING: Use '\'' to represent an apostrophe within the trap.
3044 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3045 trap 'exit_status=$?
3046 # Save into config.log some information that might help in debugging.
3050 $as_echo "## ---------------- ##
3051 ## Cache variables. ##
3052 ## ---------------- ##"
3054 # The following way of writing the cache mishandles newlines in values,
3056 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3057 eval ac_val=\$$ac_var
3061 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3062 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3065 _ | IFS | as_nl) ;; #(
3066 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3067 *) { eval $ac_var=; unset $ac_var;} ;;
3072 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3073 *${as_nl}ac_space=\ *)
3075 "s/'\''/'\''\\\\'\'''\''/g;
3076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3079 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3086 $as_echo "## ----------------- ##
3087 ## Output variables. ##
3088 ## ----------------- ##"
3090 for ac_var in $ac_subst_vars
3092 eval ac_val=\$$ac_var
3094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3096 $as_echo "$ac_var='\''$ac_val'\''"
3100 if test -n "$ac_subst_files"; then
3101 $as_echo "## ------------------- ##
3102 ## File substitutions. ##
3103 ## ------------------- ##"
3105 for ac_var in $ac_subst_files
3107 eval ac_val=\$$ac_var
3109 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3111 $as_echo "$ac_var='\''$ac_val'\''"
3116 if test -s confdefs.h; then
3117 $as_echo "## ----------- ##
3124 test "$ac_signal" != 0 &&
3125 $as_echo "$as_me: caught signal $ac_signal"
3126 $as_echo "$as_me: exit $exit_status"
3128 rm -f core *.core core.conftest.* &&
3129 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3132 for ac_signal in 1 2 13 15; do
3133 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3137 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3138 rm -f -r conftest* confdefs.h
3140 $as_echo "/* confdefs.h */" > confdefs.h
3142 # Predefined preprocessor variables.
3144 cat >>confdefs.h <<_ACEOF
3145 #define PACKAGE_NAME "$PACKAGE_NAME"
3148 cat >>confdefs.h <<_ACEOF
3149 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3152 cat >>confdefs.h <<_ACEOF
3153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3156 cat >>confdefs.h <<_ACEOF
3157 #define PACKAGE_STRING "$PACKAGE_STRING"
3160 cat >>confdefs.h <<_ACEOF
3161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3164 cat >>confdefs.h <<_ACEOF
3165 #define PACKAGE_URL "$PACKAGE_URL"
3169 # Let the site file select an alternate cache file if it wants to.
3170 # Prefer an explicitly selected file to automatically selected ones.
3173 if test -n "$CONFIG_SITE"; then
3174 # We do not want a PATH search for config.site.
3175 case $CONFIG_SITE in #((
3176 -*) ac_site_file1=./$CONFIG_SITE;;
3177 */*) ac_site_file1=$CONFIG_SITE;;
3178 *) ac_site_file1=./$CONFIG_SITE;;
3180 elif test "x$prefix" != xNONE; then
3181 ac_site_file1=$prefix/share/config.site
3182 ac_site_file2=$prefix/etc/config.site
3184 ac_site_file1=$ac_default_prefix/share/config.site
3185 ac_site_file2=$ac_default_prefix/etc/config.site
3187 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3189 test "x$ac_site_file" = xNONE && continue
3190 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3192 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3193 sed 's/^/| /' "$ac_site_file" >&5
3195 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error $? "failed to load site script $ac_site_file
3198 See \`config.log' for more details" "$LINENO" 5 ; }
3202 if test -r "$cache_file"; then
3203 # Some versions of bash will fail to source /dev/null (special files
3204 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3205 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3207 $as_echo "$as_me: loading cache $cache_file" >&6;}
3209 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3210 *) . "./$cache_file";;
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3215 $as_echo "$as_me: creating cache $cache_file" >&6;}
3219 as_fn_append ac_header_list " stdlib.h"
3220 as_fn_append ac_header_list " unistd.h"
3221 as_fn_append ac_header_list " sys/param.h"
3222 as_fn_append ac_header_list " utime.h"
3223 # Check that the precious variables saved in the cache have kept the same
3225 ac_cache_corrupted=false
3226 for ac_var in $ac_precious_vars; do
3227 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3228 eval ac_new_set=\$ac_env_${ac_var}_set
3229 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3230 eval ac_new_val=\$ac_env_${ac_var}_value
3231 case $ac_old_set,$ac_new_set in
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3234 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3235 ac_cache_corrupted=: ;;
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3238 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3239 ac_cache_corrupted=: ;;
3242 if test "x$ac_old_val" != "x$ac_new_val"; then
3243 # differences in whitespace do not lead to failure.
3244 ac_old_val_w=`echo x $ac_old_val`
3245 ac_new_val_w=`echo x $ac_new_val`
3246 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3248 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3249 ac_cache_corrupted=:
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3252 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3253 eval $ac_var=\$ac_old_val
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3256 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3258 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3261 # Pass precious variables to config.status.
3262 if test "$ac_new_set" = set; then
3264 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3265 *) ac_arg=$ac_var=$ac_new_val ;;
3267 case " $ac_configure_args " in
3268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3269 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3273 if $ac_cache_corrupted; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3277 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3278 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3280 ## -------------------- ##
3281 ## Main body of script. ##
3282 ## -------------------- ##
3285 ac_cpp='$CPP $CPPFLAGS'
3286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 # cross-compile macros
3294 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3295 if test -f "$ac_dir/install-sh"; then
3297 ac_install_sh="$ac_aux_dir/install-sh -c"
3299 elif test -f "$ac_dir/install.sh"; then
3301 ac_install_sh="$ac_aux_dir/install.sh -c"
3303 elif test -f "$ac_dir/shtool"; then
3305 ac_install_sh="$ac_aux_dir/shtool install -c"
3309 if test -z "$ac_aux_dir"; then
3310 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3313 # These three variables are undocumented and unsupported,
3314 # and are intended to be withdrawn in a future Autoconf release.
3315 # They can cause serious problems if a builder's source tree is in a directory
3316 # whose full name contains unusual characters.
3317 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3318 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3319 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3322 # Make sure we can run config.sub.
3323 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3324 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3327 $as_echo_n "checking build system type... " >&6; }
3328 if test "${ac_cv_build+set}" = set; then :
3329 $as_echo_n "(cached) " >&6
3331 ac_build_alias=$build_alias
3332 test "x$ac_build_alias" = x &&
3333 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3334 test "x$ac_build_alias" = x &&
3335 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3336 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3337 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3341 $as_echo "$ac_cv_build" >&6; }
3342 case $ac_cv_build in
3344 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3347 ac_save_IFS=$IFS; IFS='-'
3353 # Remember, the first character of IFS is used to create $*,
3354 # except with old shells:
3357 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3361 $as_echo_n "checking host system type... " >&6; }
3362 if test "${ac_cv_host+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 if test "x$host_alias" = x; then
3366 ac_cv_host=$ac_cv_build
3368 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3369 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3374 $as_echo "$ac_cv_host" >&6; }
3377 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3380 ac_save_IFS=$IFS; IFS='-'
3386 # Remember, the first character of IFS is used to create $*,
3387 # except with old shells:
3390 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3394 # check existence of the package
3398 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3399 if test -f "$ac_dir/install-sh"; then
3401 ac_install_sh="$ac_aux_dir/install-sh -c"
3403 elif test -f "$ac_dir/install.sh"; then
3405 ac_install_sh="$ac_aux_dir/install.sh -c"
3407 elif test -f "$ac_dir/shtool"; then
3409 ac_install_sh="$ac_aux_dir/shtool install -c"
3413 if test -z "$ac_aux_dir"; then
3414 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3417 # These three variables are undocumented and unsupported,
3418 # and are intended to be withdrawn in a future Autoconf release.
3419 # They can cause serious problems if a builder's source tree is in a directory
3420 # whose full name contains unusual characters.
3421 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3422 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3423 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3430 # preserve any CFLAGS or LDFLAGS that may be set
3431 # NOTE: This must be done before calling any macros that end up
3432 # calling AC_PROG_CC or the like, since they will set a default
3433 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3434 # we don't want those default flags to be carried over into the
3435 # rest of the build system since we have other means of controlling
3436 # debugging symbol generation and optimization.
3437 CONFIG_CFLAGS="${CFLAGS}"
3438 CONFIG_LDFLAGS="${LDFLAGS}"
3442 # specify output header file
3443 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3446 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3447 # other macro that uses the C compiler, or the default order will be used.
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 if test -n "$ac_tool_prefix"; then
3454 for ac_prog in gcc cc
3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if test "${ac_cv_prog_CC+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC="$CC" # Let the user override the test.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3493 test -n "$CC" && break
3496 if test -z "$CC"; then
3498 for ac_prog in gcc cc
3500 # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3507 if test -n "$ac_ct_CC"; then
3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 ac_cv_prog_ac_ct_CC="$ac_prog"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3530 $as_echo "$ac_ct_CC" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3537 test -n "$ac_ct_CC" && break
3540 if test "x$ac_ct_CC" = x; then
3543 case $cross_compiling:$ac_tool_warned in
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547 ac_tool_warned=yes ;;
3554 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error $? "no acceptable C compiler found in \$PATH
3557 See \`config.log' for more details" "$LINENO" 5 ; }
3559 # Provide some information about the compiler.
3560 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3563 for ac_option in --version -v -V -qversion; do
3564 { { ac_try="$ac_compiler $ac_option >&5"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3573 if test -s conftest.err; then
3575 ... rest of stderr output deleted ...
3576 10q' conftest.err >conftest.er1
3577 cat conftest.er1 >&5
3579 rm -f conftest.er1 conftest.err
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3595 ac_clean_files_save=$ac_clean_files
3596 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3597 # Try to create an executable without -o first, disregard a.out.
3598 # It will help us diagnose broken compilers, and finding out an intuition
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3601 $as_echo_n "checking whether the C compiler works... " >&6; }
3602 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3604 # The possible output files:
3605 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3608 for ac_file in $ac_files
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3612 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3617 if { { ac_try="$ac_link_default"
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_link_default") 2>&5
3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627 test $ac_status = 0; }; then :
3628 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3629 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3630 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3631 # so that the user can short-circuit this test for compilers unknown to
3633 for ac_file in $ac_files ''
3635 test -f "$ac_file" || continue
3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3640 # We found the default executable, but exeext='' is most
3644 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3646 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3648 # We set ac_cv_exeext here because the later test for it is not
3649 # safe: cross compilers may not add the suffix if given an `-o'
3650 # argument, so we may need to know it at that point already.
3651 # Even if this section looks crufty: it has the advantage of
3658 test "$ac_cv_exeext" = no && ac_cv_exeext=
3663 if test -z "$ac_file"; then :
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3666 $as_echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error 77 "C compiler cannot create executables
3672 See \`config.log' for more details" "$LINENO" 5 ; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675 $as_echo "yes" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3678 $as_echo_n "checking for C compiler default output file name... " >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3680 $as_echo "$ac_file" >&6; }
3681 ac_exeext=$ac_cv_exeext
3683 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3684 ac_clean_files=$ac_clean_files_save
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3686 $as_echo_n "checking for suffix of executables... " >&6; }
3687 if { { ac_try="$ac_link"
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_link") 2>&5
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3699 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3700 # work properly (i.e., refer to `conftest.exe'), while it won't with
3702 for ac_file in conftest.exe conftest conftest.*; do
3703 test -f "$ac_file" || continue
3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3706 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3715 See \`config.log' for more details" "$LINENO" 5 ; }
3717 rm -f conftest conftest$ac_cv_exeext
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3719 $as_echo "$ac_cv_exeext" >&6; }
3721 rm -f conftest.$ac_ext
3722 EXEEXT=$ac_cv_exeext
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3730 FILE *f = fopen ("conftest.out", "w");
3731 return ferror (f) || fclose (f) != 0;
3737 ac_clean_files="$ac_clean_files conftest.out"
3738 # Check that the compiler produces executables we can run. If not, either
3739 # the compiler is broken, or we cross compile.
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3741 $as_echo_n "checking whether we are cross compiling... " >&6; }
3742 if test "$cross_compiling" != yes; then
3743 { { ac_try="$ac_link"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_link") 2>&5
3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; }
3754 if { ac_try='./conftest$ac_cv_exeext'
3755 { { case "(($ac_try" in
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_try") 2>&5
3763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764 test $ac_status = 0; }; }; then
3767 if test "$cross_compiling" = maybe; then
3770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error $? "cannot run C compiled programs.
3773 If you meant to cross compile, use \`--host'.
3774 See \`config.log' for more details" "$LINENO" 5 ; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3779 $as_echo "$cross_compiling" >&6; }
3781 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3782 ac_clean_files=$ac_clean_files_save
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3784 $as_echo_n "checking for suffix of object files... " >&6; }
3785 if test "${ac_cv_objext+set}" = set; then :
3786 $as_echo_n "(cached) " >&6
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3799 rm -f conftest.o conftest.obj
3800 if { { ac_try="$ac_compile"
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compile") 2>&5
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }; then :
3811 for ac_file in conftest.o conftest.obj conftest.*; do
3812 test -f "$ac_file" || continue;
3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3815 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3820 $as_echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825 as_fn_error $? "cannot compute suffix of object files: cannot compile
3826 See \`config.log' for more details" "$LINENO" 5 ; }
3828 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3831 $as_echo "$ac_cv_objext" >&6; }
3832 OBJEXT=$ac_cv_objext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3835 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3836 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3853 if ac_fn_c_try_compile "$LINENO"; then :
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3863 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3864 if test $ac_compiler_gnu = yes; then
3869 ac_test_CFLAGS=${CFLAGS+set}
3870 ac_save_CFLAGS=$CFLAGS
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3872 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3873 if test "${ac_cv_prog_cc_g+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3876 ac_save_c_werror_flag=$ac_c_werror_flag
3877 ac_c_werror_flag=yes
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3891 if ac_fn_c_try_compile "$LINENO"; then :
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3906 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_c_werror_flag=$ac_save_c_werror_flag
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3922 if ac_fn_c_try_compile "$LINENO"; then :
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 ac_c_werror_flag=$ac_save_c_werror_flag
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3933 $as_echo "$ac_cv_prog_cc_g" >&6; }
3934 if test "$ac_test_CFLAGS" = set; then
3935 CFLAGS=$ac_save_CFLAGS
3936 elif test $ac_cv_prog_cc_g = yes; then
3937 if test "$GCC" = yes; then
3943 if test "$GCC" = yes; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3950 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3951 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3954 ac_cv_prog_cc_c89=no
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3960 #include <sys/types.h>
3961 #include <sys/stat.h>
3962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3963 struct buf { int x; };
3964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965 static char *e (p, i)
3971 static char *f (char * (*g) (char **, int), char **p, ...)
3976 s = g (p, va_arg (v,int));
3981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3982 function prototypes and stuff, but not '\xHH' hex character constants.
3983 These don't provoke an error unfortunately, instead are silently treated
3984 as 'x'. The following induces an error, until -std is added to get
3985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3986 array size at least. It's necessary to write '\x00'==0 to get something
3987 that's true only with -std. */
3988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991 inside strings and character constants. */
3993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3995 int test (int i, double x);
3996 struct s1 {int (*f) (int a);};
3997 struct s2 {int (*f) (double a);};
3998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4004 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4012 CC="$ac_save_CC $ac_arg"
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_c89=$ac_arg
4016 rm -f core conftest.err conftest.$ac_objext
4017 test "x$ac_cv_prog_cc_c89" != "xno" && break
4019 rm -f conftest.$ac_ext
4024 case "x$ac_cv_prog_cc_c89" in
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4032 CC="$CC $ac_cv_prog_cc_c89"
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4036 if test "x$ac_cv_prog_cc_c89" != xno; then :
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4054 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4055 # On Suns, sometimes $CPP names a directory.
4056 if test -n "$CPP" && test -d "$CPP"; then
4059 if test -z "$CPP"; then
4060 if test "${ac_cv_prog_CPP+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4063 # Double quotes because CPP needs to be expanded
4064 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4067 for ac_c_preproc_warn_flag in '' yes
4069 # Use a header file that comes with gcc, so configuring glibc
4070 # with a fresh cross-compiler works.
4071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4072 # <limits.h> exists even on freestanding compilers.
4073 # On the NeXT, cc -E runs the code through the compiler's parser,
4074 # not just through cpp. "Syntax error" is here to catch this case.
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4078 # include <limits.h>
4080 # include <assert.h>
4084 if ac_fn_c_try_cpp "$LINENO"; then :
4087 # Broken: fails on valid input.
4090 rm -f conftest.err conftest.i conftest.$ac_ext
4092 # OK, works on sane cases. Now check whether nonexistent headers
4093 # can be detected and how.
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096 #include <ac_nonexistent.h>
4098 if ac_fn_c_try_cpp "$LINENO"; then :
4099 # Broken: success on invalid input.
4102 # Passes both tests.
4106 rm -f conftest.err conftest.i conftest.$ac_ext
4109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4110 rm -f conftest.i conftest.err conftest.$ac_ext
4111 if $ac_preproc_ok; then :
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4124 $as_echo "$CPP" >&6; }
4126 for ac_c_preproc_warn_flag in '' yes
4128 # Use a header file that comes with gcc, so configuring glibc
4129 # with a fresh cross-compiler works.
4130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 # <limits.h> exists even on freestanding compilers.
4132 # On the NeXT, cc -E runs the code through the compiler's parser,
4133 # not just through cpp. "Syntax error" is here to catch this case.
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4137 # include <limits.h>
4139 # include <assert.h>
4143 if ac_fn_c_try_cpp "$LINENO"; then :
4146 # Broken: fails on valid input.
4149 rm -f conftest.err conftest.i conftest.$ac_ext
4151 # OK, works on sane cases. Now check whether nonexistent headers
4152 # can be detected and how.
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <ac_nonexistent.h>
4157 if ac_fn_c_try_cpp "$LINENO"; then :
4158 # Broken: success on invalid input.
4161 # Passes both tests.
4165 rm -f conftest.err conftest.i conftest.$ac_ext
4168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4169 rm -f conftest.i conftest.err conftest.$ac_ext
4170 if $ac_preproc_ok; then :
4173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4175 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4176 See \`config.log' for more details" "$LINENO" 5 ; }
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4187 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4188 if test "${ac_cv_path_GREP+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
4191 if test -z "$GREP"; then
4192 ac_path_GREP_found=false
4193 # Loop through the user's path and test for each of PROGNAME-LIST
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198 test -z "$as_dir" && as_dir=.
4199 for ac_prog in grep ggrep; do
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4202 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4203 # Check for GNU ac_path_GREP and select it if it is found.
4204 # Check for GNU $ac_path_GREP
4205 case `"$ac_path_GREP" --version 2>&1` in
4207 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4210 $as_echo_n 0123456789 >"conftest.in"
4213 cat "conftest.in" "conftest.in" >"conftest.tmp"
4214 mv "conftest.tmp" "conftest.in"
4215 cp "conftest.in" "conftest.nl"
4216 $as_echo 'GREP' >> "conftest.nl"
4217 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4219 as_fn_arith $ac_count + 1 && ac_count=$as_val
4220 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4221 # Best one so far, save it but keep looking for a better one
4222 ac_cv_path_GREP="$ac_path_GREP"
4223 ac_path_GREP_max=$ac_count
4225 # 10*(2^10) chars as input seems more than enough
4226 test $ac_count -gt 10 && break
4228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231 $ac_path_GREP_found && break 3
4236 if test -z "$ac_cv_path_GREP"; then
4237 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4240 ac_cv_path_GREP=$GREP
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4245 $as_echo "$ac_cv_path_GREP" >&6; }
4246 GREP="$ac_cv_path_GREP"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4250 $as_echo_n "checking for egrep... " >&6; }
4251 if test "${ac_cv_path_EGREP+set}" = set; then :
4252 $as_echo_n "(cached) " >&6
4254 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4255 then ac_cv_path_EGREP="$GREP -E"
4257 if test -z "$EGREP"; then
4258 ac_path_EGREP_found=false
4259 # Loop through the user's path and test for each of PROGNAME-LIST
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4264 test -z "$as_dir" && as_dir=.
4265 for ac_prog in egrep; do
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4268 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4269 # Check for GNU ac_path_EGREP and select it if it is found.
4270 # Check for GNU $ac_path_EGREP
4271 case `"$ac_path_EGREP" --version 2>&1` in
4273 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4276 $as_echo_n 0123456789 >"conftest.in"
4279 cat "conftest.in" "conftest.in" >"conftest.tmp"
4280 mv "conftest.tmp" "conftest.in"
4281 cp "conftest.in" "conftest.nl"
4282 $as_echo 'EGREP' >> "conftest.nl"
4283 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4285 as_fn_arith $ac_count + 1 && ac_count=$as_val
4286 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4287 # Best one so far, save it but keep looking for a better one
4288 ac_cv_path_EGREP="$ac_path_EGREP"
4289 ac_path_EGREP_max=$ac_count
4291 # 10*(2^10) chars as input seems more than enough
4292 test $ac_count -gt 10 && break
4294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4297 $ac_path_EGREP_found && break 3
4302 if test -z "$ac_cv_path_EGREP"; then
4303 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4306 ac_cv_path_EGREP=$EGREP
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4312 $as_echo "$ac_cv_path_EGREP" >&6; }
4313 EGREP="$ac_cv_path_EGREP"
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4317 $as_echo_n "checking for ANSI C header files... " >&6; }
4318 if test "${ac_cv_header_stdc+set}" = set; then :
4319 $as_echo_n "(cached) " >&6
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4336 if ac_fn_c_try_compile "$LINENO"; then :
4337 ac_cv_header_stdc=yes
4339 ac_cv_header_stdc=no
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 if test $ac_cv_header_stdc = yes; then
4344 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4351 $EGREP "memchr" >/dev/null 2>&1; then :
4354 ac_cv_header_stdc=no
4360 if test $ac_cv_header_stdc = yes; then
4361 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4368 $EGREP "free" >/dev/null 2>&1; then :
4371 ac_cv_header_stdc=no
4377 if test $ac_cv_header_stdc = yes; then
4378 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4379 if test "$cross_compiling" = yes; then :
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4386 #if ((' ' & 0x0FF) == 0x020)
4387 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4388 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4390 # define ISLOWER(c) \
4391 (('a' <= (c) && (c) <= 'i') \
4392 || ('j' <= (c) && (c) <= 'r') \
4393 || ('s' <= (c) && (c) <= 'z'))
4394 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4402 for (i = 0; i < 256; i++)
4403 if (XOR (islower (i), ISLOWER (i))
4404 || toupper (i) != TOUPPER (i))
4409 if ac_fn_c_try_run "$LINENO"; then :
4412 ac_cv_header_stdc=no
4414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4415 conftest.$ac_objext conftest.beam conftest.$ac_ext
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4421 $as_echo "$ac_cv_header_stdc" >&6; }
4422 if test $ac_cv_header_stdc = yes; then
4424 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4428 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4429 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4430 inttypes.h stdint.h unistd.h
4432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4433 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4435 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4436 cat >>confdefs.h <<_ACEOF
4437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4446 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4447 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4454 if test "$MINIX" = yes; then
4456 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4459 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4462 $as_echo "#define _MINIX 1" >>confdefs.h
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4468 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4469 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4475 # define __EXTENSIONS__ 1
4476 $ac_includes_default
4485 if ac_fn_c_try_compile "$LINENO"; then :
4486 ac_cv_safe_to_define___extensions__=yes
4488 ac_cv_safe_to_define___extensions__=no
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4493 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4494 test $ac_cv_safe_to_define___extensions__ = yes &&
4495 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4497 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4499 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4501 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4503 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4506 # System default paths
4507 astsbindir='${sbindir}'
4508 astetcdir='${sysconfdir}/asterisk'
4509 astheaderdir='${includedir}/asterisk'
4510 astlibdir='${libdir}/asterisk'
4511 astmandir='${mandir}'
4512 astvarlibdir='${localstatedir}/lib/asterisk'
4513 astdatadir='${astvarlibdir}'
4514 astdbdir='${astvarlibdir}'
4515 astkeydir='${astvarlibdir}'
4516 astspooldir='${localstatedir}/spool/asterisk'
4517 astlogdir='${localstatedir}/log/asterisk'
4518 astvarrundir='${localstatedir}/run/asterisk'
4520 case "${host_os}" in
4522 if test ${prefix} = 'NONE'; then
4523 astvarlibdir='${prefix}/share/asterisk'
4524 astdbdir='${localstatedir}/db/asterisk'
4528 if test ${prefix} = 'NONE'; then
4529 astvarrundir='/Library/Application Support/Asterisk/Run'
4534 case "${host_os}" in
4536 ac_default_prefix=/usr/local
4537 CPPFLAGS=-I/usr/local/include
4538 LDFLAGS=-L/usr/local/lib
4541 ac_default_prefix=/usr/local
4542 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4543 if test ${sysconfdir} = '${prefix}/etc'; then
4544 astetcdir=/etc/asterisk
4546 if test ${mandir} = '${prefix}/man'; then
4547 astmandir=/usr/share/man
4550 CPPFLAGS=-I/usr/local/include
4551 LDFLAGS=-L/usr/local/lib
4554 ac_default_prefix=/usr/local
4555 if test ${prefix} = 'NONE'; then
4556 astlibdir='/Library/Application Support/Asterisk/Modules'
4557 astvarlibdir='/Library/Application Support/Asterisk'
4558 astlogdir=/Library/Logs/Asterisk
4559 astvarrundir='/Library/Application Support/Asterisk/Run'
4562 $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
4565 $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
4569 if test ${prefix} = 'NONE'; then
4570 astetcdir=/var/etc/asterisk
4571 astsbindir=/opt/asterisk/sbin
4572 astlibdir=/opt/asterisk/lib
4573 astheaderdir=/opt/asterisk/include
4574 astmandir=/opt/asterisk/man
4575 astvarlibdir=/var/opt/asterisk
4576 astspooldir=/var/spool/asterisk
4577 astlogdir=/var/log/asterisk
4578 astvarrundir=/var/run/asterisk
4582 ac_default_prefix=/usr
4583 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4584 if test ${sysconfdir} = '${prefix}/etc'; then
4587 if test ${mandir} = '${prefix}/man'; then
4588 mandir=/usr/share/man
4594 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4595 if test ${localstatedir} = '${prefix}/var'; then
4600 BUILD_PLATFORM=${build}
4601 BUILD_CPU=${build_cpu}
4602 BUILD_VENDOR=${build_vendor}
4603 BUILD_OS=${build_os}
4610 HOST_PLATFORM=${host}
4611 HOST_CPU=${host_cpu}
4612 HOST_VENDOR=${host_vendor}
4622 case "${host_os}" in
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}uname; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_path_UNAME+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4668 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 UNAME=$ac_cv_path_UNAME
4690 if test -n "$UNAME"; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
4692 $as_echo "$UNAME" >&6; }
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4700 if test -z "$ac_cv_path_UNAME"; then
4702 # Extract the first word of "uname", so it can be a program name with args.
4703 set dummy uname; ac_word=$2
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then :
4707 $as_echo_n "(cached) " >&6
4709 case $ac_pt_UNAME in
4711 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do