2 # From configure.ac Revision: 375192 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for asterisk trunk.
6 # Report bugs to <https://issues.asterisk.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
18 ## -------------------- ##
19 ## M4sh Initialization. ##
20 ## -------------------- ##
22 # Be more Bourne compatible
23 DUALCASE=1; export DUALCASE # for MKS sh
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
32 case `(set -o) 2>/dev/null` in #(
44 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 # Prefer a ksh shell builtin over an external printf program on Solaris,
49 # but without wasting forks for bash or zsh.
50 if test -z "$BASH_VERSION$ZSH_VERSION" \
51 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo_n='print -rn --'
54 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
58 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
60 as_echo_n='/usr/ucb/echo -n'
62 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
67 expr "X$arg" : "X\\(.*\\)$as_nl";
68 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73 as_echo_n='sh -c $as_echo_n_body as_echo'
76 as_echo='sh -c $as_echo_body as_echo'
79 # The user is always right.
80 if test "${PATH_SEPARATOR+set}" != set; then
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 # Unset variables that we do not need and which cause bugs (e.g. in
121 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122 # suppresses any "Segmentation fault" message there. '((' could
123 # trigger a bug in pdksh 5.2.14.
124 for as_var in BASH_ENV ENV MAIL MAILPATH
125 do eval test x\${$as_var+set} = xset \
126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 case \`(set -o) 2>/dev/null\` in #(
158 as_required="as_fn_return () { (exit \$1); }
159 as_fn_success () { as_fn_return 0; }
160 as_fn_failure () { as_fn_return 1; }
161 as_fn_ret_success () { return 0; }
162 as_fn_ret_failure () { return 1; }
165 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
172 exitcode=1; echo positional parameters were not saved.
174 test x\$exitcode = x0 || exit 1"
175 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179 test \$(( 1 + 1 )) = 2 || exit 1"
180 if (eval "$as_required") 2>/dev/null; then :
185 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 test -z "$as_dir" && as_dir=.
197 for as_base in sh bash ksh sh5; do
198 # Try only shells that exist, to save several forks.
199 as_shell=$as_dir/$as_base
200 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
201 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 CONFIG_SHELL=$as_shell as_have_required=yes
203 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
212 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
213 CONFIG_SHELL=$SHELL as_have_required=yes
218 if test "x$CONFIG_SHELL" != x; then :
219 # We cannot yet assume a decent shell, so we have to provide a
220 # neutralization value for shells without unset; and this also
221 # works around shells that cannot unset nonexistent variables.
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
229 if test x$as_have_required = xno; then :
230 $as_echo "$0: This script requires a shell more modern than all"
231 $as_echo "$0: the shells that I found on your system."
232 if test x${ZSH_VERSION+set} = xset ; then
233 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
234 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 $as_echo "$0: Please tell bug-autoconf@gnu.org and
237 $0: https://issues.asterisk.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535 test -n "$DJDIR" || exec 7<&0 </dev/null
539 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
540 # so uname gets run too.
541 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 ac_default_prefix=/usr/local
548 ac_config_libobj_dir=.
555 # Identity of this package.
556 PACKAGE_NAME='asterisk'
557 PACKAGE_TARNAME='asterisk'
558 PACKAGE_VERSION='trunk'
559 PACKAGE_STRING='asterisk trunk'
560 PACKAGE_BUGREPORT='https://issues.asterisk.org'
563 ac_unique_file="main/asterisk.c"
564 # Factoring default headers for most tests.
565 ac_includes_default="\
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
577 # ifdef HAVE_STDLIB_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
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
660 AST_NO_STRICT_OVERFLOW
663 AST_DECLARATION_AFTER_STATEMENT
667 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
668 PBX_PTHREAD_RWLOCK_INITIALIZER
744 SPEEX_PREPROCESS_INCLUDE
779 PBX_PRI_REVERSE_CHARGE
780 PRI_REVERSE_CHARGE_DIR
781 PRI_REVERSE_CHARGE_INCLUDE
782 PRI_REVERSE_CHARGE_LIB
783 PBX_PRI_SERVICE_MESSAGES
784 PRI_SERVICE_MESSAGES_DIR
785 PRI_SERVICE_MESSAGES_INCLUDE
786 PRI_SERVICE_MESSAGES_LIB
789 PRI_PROG_W_CAUSE_INCLUDE
791 PBX_PRI_INBANDDISCONNECT
792 PRI_INBANDDISCONNECT_DIR
793 PRI_INBANDDISCONNECT_INCLUDE
794 PRI_INBANDDISCONNECT_LIB
797 PRI_SETUP_KEYPAD_INCLUDE
799 PBX_PRI_CALL_REROUTING
800 PRI_CALL_REROUTING_DIR
801 PRI_CALL_REROUTING_INCLUDE
802 PRI_CALL_REROUTING_LIB
805 PRI_CALL_HOLD_INCLUDE
813 PRI_HANGUP_FIX_INCLUDE
825 PRI_AOC_EVENTS_INCLUDE
829 PRI_CALL_WAITING_INCLUDE
841 PRI_DISPLAY_TEXT_INCLUDE
847 PBX_PRI_DATETIME_SEND
848 PRI_DATETIME_SEND_DIR
849 PRI_DATETIME_SEND_INCLUDE
850 PRI_DATETIME_SEND_LIB
851 PBX_PRI_L2_PERSISTENCE
852 PRI_L2_PERSISTENCE_DIR
853 PRI_L2_PERSISTENCE_INCLUDE
854 PRI_L2_PERSISTENCE_LIB
1013 OPENSSL_SRTP_INCLUDE
1023 PBX_COROSYNC_CFG_STATE_TRACK
1024 COROSYNC_CFG_STATE_TRACK_DIR
1025 COROSYNC_CFG_STATE_TRACK_INCLUDE
1026 COROSYNC_CFG_STATE_TRACK_LIB
1177 program_transform_name
1190 enable_option_checking
1268 enable_internal_poll
1271 ac_precious_vars='build_alias
1295 # Initialize some variables set by options.
1297 ac_init_version=false
1298 ac_unrecognized_opts=
1299 ac_unrecognized_sep=
1300 # The variables have the same names as the options, with
1301 # dashes changed to underlines.
1302 cache_file=/dev/null
1309 program_transform_name=s,x,x,
1317 # Installation directory options.
1318 # These are left unexpanded so users can "make install exec_prefix=/foo"
1319 # and all the variables that are supposed to be based on exec_prefix
1320 # by default will actually change.
1321 # Use braces instead of parens because sh, perl, etc. also accept them.
1322 # (The list follows the same order as the GNU Coding Standards.)
1323 bindir='${exec_prefix}/bin'
1324 sbindir='${exec_prefix}/sbin'
1325 libexecdir='${exec_prefix}/libexec'
1326 datarootdir='${prefix}/share'
1327 datadir='${datarootdir}'
1328 sysconfdir='${prefix}/etc'
1329 sharedstatedir='${prefix}/com'
1330 localstatedir='${prefix}/var'
1331 includedir='${prefix}/include'
1332 oldincludedir='/usr/include'
1333 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1334 infodir='${datarootdir}/info'
1339 libdir='${exec_prefix}/lib'
1340 localedir='${datarootdir}/locale'
1341 mandir='${datarootdir}/man'
1347 # If the previous option needs an argument, assign it.
1348 if test -n "$ac_prev"; then
1349 eval $ac_prev=\$ac_option
1355 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1359 # Accept the important Cygnus configure options, so we can diagnose typos.
1361 case $ac_dashdash$ac_option in
1365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1368 bindir=$ac_optarg ;;
1370 -build | --build | --buil | --bui | --bu)
1371 ac_prev=build_alias ;;
1372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1373 build_alias=$ac_optarg ;;
1375 -cache-file | --cache-file | --cache-fil | --cache-fi \
1376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1377 ac_prev=cache_file ;;
1378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1380 cache_file=$ac_optarg ;;
1382 --config-cache | -C)
1383 cache_file=config.cache ;;
1385 -datadir | --datadir | --datadi | --datad)
1387 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1388 datadir=$ac_optarg ;;
1390 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1391 | --dataroo | --dataro | --datar)
1392 ac_prev=datarootdir ;;
1393 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1394 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1395 datarootdir=$ac_optarg ;;
1397 -disable-* | --disable-*)
1398 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1399 # Reject names that are not valid shell variable names.
1400 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1401 as_fn_error "invalid feature name: $ac_useropt"
1402 ac_useropt_orig=$ac_useropt
1403 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1404 case $ac_user_opts in
1406 "enable_$ac_useropt"
1408 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1409 ac_unrecognized_sep=', ';;
1411 eval enable_$ac_useropt=no ;;
1413 -docdir | --docdir | --docdi | --doc | --do)
1415 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1416 docdir=$ac_optarg ;;
1418 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1420 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1421 dvidir=$ac_optarg ;;
1423 -enable-* | --enable-*)
1424 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1425 # Reject names that are not valid shell variable names.
1426 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1427 as_fn_error "invalid feature name: $ac_useropt"
1428 ac_useropt_orig=$ac_useropt
1429 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430 case $ac_user_opts in
1432 "enable_$ac_useropt"
1434 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1435 ac_unrecognized_sep=', ';;
1437 eval enable_$ac_useropt=\$ac_optarg ;;
1439 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1440 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1441 | --exec | --exe | --ex)
1442 ac_prev=exec_prefix ;;
1443 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1444 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1445 | --exec=* | --exe=* | --ex=*)
1446 exec_prefix=$ac_optarg ;;
1448 -gas | --gas | --ga | --g)
1449 # Obsolete; use --with-gas.
1452 -help | --help | --hel | --he | -h)
1453 ac_init_help=long ;;
1454 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1455 ac_init_help=recursive ;;
1456 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1457 ac_init_help=short ;;
1459 -host | --host | --hos | --ho)
1460 ac_prev=host_alias ;;
1461 -host=* | --host=* | --hos=* | --ho=*)
1462 host_alias=$ac_optarg ;;
1464 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1466 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1468 htmldir=$ac_optarg ;;
1470 -includedir | --includedir | --includedi | --included | --include \
1471 | --includ | --inclu | --incl | --inc)
1472 ac_prev=includedir ;;
1473 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1474 | --includ=* | --inclu=* | --incl=* | --inc=*)
1475 includedir=$ac_optarg ;;
1477 -infodir | --infodir | --infodi | --infod | --info | --inf)
1479 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1480 infodir=$ac_optarg ;;
1482 -libdir | --libdir | --libdi | --libd)
1484 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1485 libdir=$ac_optarg ;;
1487 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1488 | --libexe | --libex | --libe)
1489 ac_prev=libexecdir ;;
1490 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1491 | --libexe=* | --libex=* | --libe=*)
1492 libexecdir=$ac_optarg ;;
1494 -localedir | --localedir | --localedi | --localed | --locale)
1495 ac_prev=localedir ;;
1496 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1497 localedir=$ac_optarg ;;
1499 -localstatedir | --localstatedir | --localstatedi | --localstated \
1500 | --localstate | --localstat | --localsta | --localst | --locals)
1501 ac_prev=localstatedir ;;
1502 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1503 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1504 localstatedir=$ac_optarg ;;
1506 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1508 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1509 mandir=$ac_optarg ;;
1511 -nfp | --nfp | --nf)
1512 # Obsolete; use --without-fp.
1515 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1516 | --no-cr | --no-c | -n)
1519 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1520 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1523 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1524 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1525 | --oldin | --oldi | --old | --ol | --o)
1526 ac_prev=oldincludedir ;;
1527 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1528 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1529 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1530 oldincludedir=$ac_optarg ;;
1532 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1534 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1535 prefix=$ac_optarg ;;
1537 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1538 | --program-pre | --program-pr | --program-p)
1539 ac_prev=program_prefix ;;
1540 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1541 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1542 program_prefix=$ac_optarg ;;
1544 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1545 | --program-suf | --program-su | --program-s)
1546 ac_prev=program_suffix ;;
1547 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1548 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1549 program_suffix=$ac_optarg ;;
1551 -program-transform-name | --program-transform-name \
1552 | --program-transform-nam | --program-transform-na \
1553 | --program-transform-n | --program-transform- \
1554 | --program-transform | --program-transfor \
1555 | --program-transfo | --program-transf \
1556 | --program-trans | --program-tran \
1557 | --progr-tra | --program-tr | --program-t)
1558 ac_prev=program_transform_name ;;
1559 -program-transform-name=* | --program-transform-name=* \
1560 | --program-transform-nam=* | --program-transform-na=* \
1561 | --program-transform-n=* | --program-transform-=* \
1562 | --program-transform=* | --program-transfor=* \
1563 | --program-transfo=* | --program-transf=* \
1564 | --program-trans=* | --program-tran=* \
1565 | --progr-tra=* | --program-tr=* | --program-t=*)
1566 program_transform_name=$ac_optarg ;;
1568 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1570 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1571 pdfdir=$ac_optarg ;;
1573 -psdir | --psdir | --psdi | --psd | --ps)
1575 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1579 | -silent | --silent | --silen | --sile | --sil)
1582 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1584 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1586 sbindir=$ac_optarg ;;
1588 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1589 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1590 | --sharedst | --shareds | --shared | --share | --shar \
1592 ac_prev=sharedstatedir ;;
1593 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1594 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1595 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1597 sharedstatedir=$ac_optarg ;;
1599 -site | --site | --sit)
1601 -site=* | --site=* | --sit=*)
1604 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1606 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1607 srcdir=$ac_optarg ;;
1609 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1610 | --syscon | --sysco | --sysc | --sys | --sy)
1611 ac_prev=sysconfdir ;;
1612 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1613 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1614 sysconfdir=$ac_optarg ;;
1616 -target | --target | --targe | --targ | --tar | --ta | --t)
1617 ac_prev=target_alias ;;
1618 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1619 target_alias=$ac_optarg ;;
1621 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1624 -version | --version | --versio | --versi | --vers | -V)
1625 ac_init_version=: ;;
1628 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1629 # Reject names that are not valid shell variable names.
1630 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1631 as_fn_error "invalid package name: $ac_useropt"
1632 ac_useropt_orig=$ac_useropt
1633 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1634 case $ac_user_opts in
1638 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1639 ac_unrecognized_sep=', ';;
1641 eval with_$ac_useropt=\$ac_optarg ;;
1643 -without-* | --without-*)
1644 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1645 # Reject names that are not valid shell variable names.
1646 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1647 as_fn_error "invalid package name: $ac_useropt"
1648 ac_useropt_orig=$ac_useropt
1649 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1650 case $ac_user_opts in
1654 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1655 ac_unrecognized_sep=', ';;
1657 eval with_$ac_useropt=no ;;
1660 # Obsolete; use --with-x.
1663 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1664 | --x-incl | --x-inc | --x-in | --x-i)
1665 ac_prev=x_includes ;;
1666 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1667 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1668 x_includes=$ac_optarg ;;
1670 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1671 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1672 ac_prev=x_libraries ;;
1673 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1674 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1675 x_libraries=$ac_optarg ;;
1677 -*) as_fn_error "unrecognized option: \`$ac_option'
1678 Try \`$0 --help' for more information."
1682 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1683 # Reject names that are not valid shell variable names.
1684 case $ac_envvar in #(
1685 '' | [0-9]* | *[!_$as_cr_alnum]* )
1686 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1688 eval $ac_envvar=\$ac_optarg
1689 export $ac_envvar ;;
1692 # FIXME: should be removed in autoconf 3.0.
1693 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1694 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1695 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1696 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1702 if test -n "$ac_prev"; then
1703 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1704 as_fn_error "missing argument to $ac_option"
1707 if test -n "$ac_unrecognized_opts"; then
1708 case $enable_option_checking in
1710 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1711 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1715 # Check all directory arguments for consistency.
1716 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1717 datadir sysconfdir sharedstatedir localstatedir includedir \
1718 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1719 libdir localedir mandir
1721 eval ac_val=\$$ac_var
1722 # Remove trailing slashes.
1725 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1726 eval $ac_var=\$ac_val;;
1728 # Be sure to have absolute directory names.
1730 [\\/$]* | ?:[\\/]* ) continue;;
1731 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1733 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1736 # There might be people who depend on the old broken behavior: `$host'
1737 # used to hold the argument of --host etc.
1738 # FIXME: To remove some day.
1741 target=$target_alias
1743 # FIXME: To remove some day.
1744 if test "x$host_alias" != x; then
1745 if test "x$build_alias" = x; then
1746 cross_compiling=maybe
1747 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1748 If a cross compiler is detected then cross compile mode will be used." >&2
1749 elif test "x$build_alias" != "x$host_alias"; then
1755 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1757 test "$silent" = yes && exec 6>/dev/null
1760 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1761 ac_ls_di=`ls -di .` &&
1762 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1763 as_fn_error "working directory cannot be determined"
1764 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1765 as_fn_error "pwd does not report name of working directory"
1768 # Find the source files, if location was not specified.
1769 if test -z "$srcdir"; then
1770 ac_srcdir_defaulted=yes
1771 # Try the directory containing this script, then the parent directory.
1772 ac_confdir=`$as_dirname -- "$as_myself" ||
1773 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1774 X"$as_myself" : 'X\(//\)[^/]' \| \
1775 X"$as_myself" : 'X\(//\)$' \| \
1776 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1777 $as_echo X"$as_myself" |
1778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1796 if test ! -r "$srcdir/$ac_unique_file"; then
1800 ac_srcdir_defaulted=no
1802 if test ! -r "$srcdir/$ac_unique_file"; then
1803 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1804 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1806 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1808 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1810 # When building in place, set srcdir=.
1811 if test "$ac_abs_confdir" = "$ac_pwd"; then
1814 # Remove unnecessary trailing slashes from srcdir.
1815 # Double slashes in file names in object file debugging info
1816 # mess up M-x gdb in Emacs.
1818 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1820 for ac_var in $ac_precious_vars; do
1821 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1822 eval ac_env_${ac_var}_value=\$${ac_var}
1823 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1824 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1828 # Report the --help message.
1830 if test "$ac_init_help" = "long"; then
1831 # Omit some internal or obsolete options to make the list less imposing.
1832 # This message is too long to be a string in the A/UX 3.1 sh.
1834 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1836 Usage: $0 [OPTION]... [VAR=VALUE]...
1838 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1839 VAR=VALUE. See below for descriptions of some of the useful variables.
1841 Defaults for the options are specified in brackets.
1844 -h, --help display this help and exit
1845 --help=short display options specific to this package
1846 --help=recursive display the short help of all the included packages
1847 -V, --version display version information and exit
1848 -q, --quiet, --silent do not print \`checking...' messages
1849 --cache-file=FILE cache test results in FILE [disabled]
1850 -C, --config-cache alias for \`--cache-file=config.cache'
1851 -n, --no-create do not create output files
1852 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1854 Installation directories:
1855 --prefix=PREFIX install architecture-independent files in PREFIX
1856 [$ac_default_prefix]
1857 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1860 By default, \`make install' will install all the files in
1861 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1862 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1863 for instance \`--prefix=\$HOME'.
1865 For better control, use the options below.
1867 Fine tuning of the installation directories:
1868 --bindir=DIR user executables [EPREFIX/bin]
1869 --sbindir=DIR system admin executables [EPREFIX/sbin]
1870 --libexecdir=DIR program executables [EPREFIX/libexec]
1871 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1872 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1873 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1874 --libdir=DIR object code libraries [EPREFIX/lib]
1875 --includedir=DIR C header files [PREFIX/include]
1876 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1877 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1878 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1879 --infodir=DIR info documentation [DATAROOTDIR/info]
1880 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1881 --mandir=DIR man documentation [DATAROOTDIR/man]
1882 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1883 --htmldir=DIR html documentation [DOCDIR]
1884 --dvidir=DIR dvi documentation [DOCDIR]
1885 --pdfdir=DIR pdf documentation [DOCDIR]
1886 --psdir=DIR ps documentation [DOCDIR]
1892 --build=BUILD configure for building on BUILD [guessed]
1893 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1897 if test -n "$ac_init_help"; then
1898 case $ac_init_help in
1899 short | recursive ) echo "Configuration of asterisk trunk:";;
1904 --disable-option-checking ignore unrecognized --enable/--with options
1905 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1906 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1907 --enable-dev-mode Turn on developer mode
1908 --enable-coverage Turn on code coverage tracking (for gcov)
1909 --disable-xmldoc Explicitly disable XML documentation
1910 --disable-largefile omit support for large files
1911 --enable-internal-poll Use Asterisk's poll implementation
1912 --disable-asteriskssl Disable Asterisk's SSL wrapper library
1915 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1916 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1917 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1918 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1919 --with-bfd=PATH use Debug symbol decoding files in PATH
1920 --with-execinfo=PATH use Stack Backtrace files in PATH
1921 --with-bluetooth=PATH use Bluetooth files in PATH
1922 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1923 --with-cpg=PATH use Corosync files in PATH
1924 --with-curses=PATH use curses files in PATH
1925 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1926 --with-dahdi=PATH use DAHDI files in PATH
1927 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1928 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1930 --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
1932 --with-gtk2=PATH use gtk2 files in PATH
1933 --with-gmime=PATH use GMime files in PATH
1934 --with-h323=PATH use OpenH323 files in PATH
1935 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1936 --with-ical=PATH use iCal files in PATH
1937 --with-iconv=PATH use Iconv files in PATH
1938 --with-iksemel=PATH use Iksemel Jabber files in PATH
1939 --with-imap=PATH use UW IMAP Toolkit files in PATH
1940 --with-inotify=PATH use inotify support files in PATH
1941 --with-iodbc=PATH use iODBC files in PATH
1942 --with-isdnnet=PATH use ISDN4Linux files in PATH
1943 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1944 --with-kqueue=PATH use kqueue support files in PATH
1945 --with-ldap=PATH use OpenLDAP files in PATH
1946 --with-libcurl=DIR look for the curl library in DIR
1947 --with-libedit=PATH use NetBSD Editline library files in PATH, use
1948 'internal' Editline otherwise
1949 --with-libxml2=PATH use LibXML2 files in PATH
1950 --with-ltdl=PATH use libtool files in PATH
1951 --with-lua=PATH use Lua files in PATH
1952 --with-misdn=PATH use mISDN user files in PATH
1953 --with-mysqlclient=PATH use MySQL client files in PATH
1954 --with-nbs=PATH use Network Broadcast Sound files in PATH
1955 --with-ncurses=PATH use ncurses files in PATH
1956 --with-neon=PATH use neon files in PATH
1957 --with-neon29=PATH use neon29 files in PATH
1958 --with-netsnmp=PATH use Net-SNMP files in PATH
1959 --with-newt=PATH use newt files in PATH
1960 --with-ogg=PATH use OGG files in PATH
1961 --with-openr2=PATH use MFR2 files in PATH
1962 --with-osptk=PATH use OSP Toolkit files in PATH
1963 --with-oss=PATH use Open Sound System files in PATH
1964 --with-postgres=PATH use PostgreSQL files in PATH
1965 --with-popt=PATH use popt files in PATH
1966 --with-portaudio=PATH use PortAudio files in PATH
1967 --with-pri=PATH use ISDN PRI files in PATH
1968 --with-pwlib=PATH use PWlib files in PATH
1969 --with-radius=PATH use Radius Client files in PATH
1970 --with-resample=PATH use LIBRESAMPLE files in PATH
1971 --with-sdl=PATH use Sdl files in PATH
1972 --with-SDL_image=PATH use Sdl Image files in PATH
1973 --with-sounds-cache=PATH
1974 use cached sound tarfiles in PATH
1975 --with-spandsp=PATH use SPANDSP files in PATH
1976 --with-ss7=PATH use ISDN SS7 files in PATH
1977 --with-speex=PATH use Speex files in PATH
1978 --with-speex=PATH use Speex preprocess routines files in PATH
1979 --with-speexdsp=PATH use SpeexDSP files in PATH
1980 --with-sqlite=PATH use SQLite files in PATH
1981 --with-sqlite3=PATH use SQLite files in PATH
1982 --with-srtp=PATH use Secure RTP files in PATH
1983 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1984 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1985 --with-tds=PATH use FreeTDS files in PATH
1986 --with-termcap=PATH use Termcap files in PATH
1987 --with-timerfd=PATH use timerfd files in PATH
1988 --with-tinfo=PATH use Term Info files in PATH
1989 --with-tonezone=PATH use tonezone files in PATH
1990 --with-unixodbc=PATH use unixODBC files in PATH
1991 --with-vorbis=PATH use Vorbis files in PATH
1992 --with-vpb=PATH use Voicetronix API files in PATH
1993 --with-x11=PATH use X11 files in PATH
1994 --with-z=PATH use zlib compression files in PATH
1996 Some influential environment variables:
1997 CC C compiler command
1998 CFLAGS C compiler flags
1999 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2000 nonstandard directory <lib dir>
2001 LIBS libraries to pass to the linker, e.g. -l<library>
2002 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2003 you have headers in a nonstandard directory <include dir>
2005 CXX C++ compiler command
2006 CXXFLAGS C++ compiler flags
2007 CXXCPP C++ preprocessor
2008 PKG_CONFIG path to pkg-config utility
2009 ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
2010 ILBC_LIBS linker flags for ILBC, overriding pkg-config
2012 C compiler flags for LIBEDIT, overriding pkg-config
2014 linker flags for LIBEDIT, overriding pkg-config
2016 C compiler flags for GMIME, overriding pkg-config
2017 GMIME_LIBS linker flags for GMIME, overriding pkg-config
2018 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2019 GTK2_LIBS linker flags for GTK2, overriding pkg-config
2021 Use these variables to override the choices made by `configure' or to help
2022 it to find libraries and programs with nonstandard names/locations.
2024 Report bugs to <https://issues.asterisk.org>.
2029 if test "$ac_init_help" = "recursive"; then
2030 # If there are subdirs, report their specific --help.
2031 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2032 test -d "$ac_dir" ||
2033 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2038 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2040 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2041 # A ".." for each directory in $ac_dir_suffix.
2042 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2043 case $ac_top_builddir_sub in
2044 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2045 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2048 ac_abs_top_builddir=$ac_pwd
2049 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2050 # for backward compatibility:
2051 ac_top_builddir=$ac_top_build_prefix
2054 .) # We are building in place.
2056 ac_top_srcdir=$ac_top_builddir_sub
2057 ac_abs_top_srcdir=$ac_pwd ;;
2058 [\\/]* | ?:[\\/]* ) # Absolute name.
2059 ac_srcdir=$srcdir$ac_dir_suffix;
2060 ac_top_srcdir=$srcdir
2061 ac_abs_top_srcdir=$srcdir ;;
2063 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2064 ac_top_srcdir=$ac_top_build_prefix$srcdir
2065 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2067 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2069 cd "$ac_dir" || { ac_status=$?; continue; }
2070 # Check for guested configure.
2071 if test -f "$ac_srcdir/configure.gnu"; then
2073 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2074 elif test -f "$ac_srcdir/configure"; then
2076 $SHELL "$ac_srcdir/configure" --help=recursive
2078 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2080 cd "$ac_pwd" || { ac_status=$?; break; }
2084 test -n "$ac_init_help" && exit $ac_status
2085 if $ac_init_version; then
2087 asterisk configure trunk
2088 generated by GNU Autoconf 2.65
2090 Copyright (C) 2009 Free Software Foundation, Inc.
2091 This configure script is free software; the Free Software Foundation
2092 gives unlimited permission to copy, distribute and modify it.
2099 ## ------------------------ ##
2100 ## Autoconf initialization. ##
2101 ## ------------------------ ##
2103 # ac_fn_c_try_compile LINENO
2104 # --------------------------
2105 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2106 ac_fn_c_try_compile ()
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 rm -f conftest.$ac_objext
2110 if { { ac_try="$ac_compile"
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116 $as_echo "$ac_try_echo"; } >&5
2117 (eval "$ac_compile") 2>conftest.err
2119 if test -s conftest.err; then
2120 grep -v '^ *+' conftest.err >conftest.er1
2121 cat conftest.er1 >&5
2122 mv -f conftest.er1 conftest.err
2124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; } && {
2126 test -z "$ac_c_werror_flag" ||
2127 test ! -s conftest.err
2128 } && test -s conftest.$ac_objext; then :
2131 $as_echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2136 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137 as_fn_set_status $ac_retval
2139 } # ac_fn_c_try_compile
2141 # ac_fn_c_try_cpp LINENO
2142 # ----------------------
2143 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 if { { ac_try="$ac_cpp conftest.$ac_ext"
2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150 *) ac_try_echo=$ac_try;;
2152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153 $as_echo "$ac_try_echo"; } >&5
2154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2156 if test -s conftest.err; then
2157 grep -v '^ *+' conftest.err >conftest.er1
2158 cat conftest.er1 >&5
2159 mv -f conftest.er1 conftest.err
2161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162 test $ac_status = 0; } >/dev/null && {
2163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2164 test ! -s conftest.err
2168 $as_echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 as_fn_set_status $ac_retval
2178 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2179 # -------------------------------------------------------
2180 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2181 # the include files in INCLUDES and setting the cache variable VAR
2183 ac_fn_c_check_header_mongrel ()
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 $as_echo_n "checking for $2... " >&6; }
2189 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2190 $as_echo_n "(cached) " >&6
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2196 # Is the header compilable?
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2198 $as_echo_n "checking $2 usability... " >&6; }
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 ac_header_compiler=yes
2207 ac_header_compiler=no
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2211 $as_echo "$ac_header_compiler" >&6; }
2213 # Is the header present?
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2215 $as_echo_n "checking $2 presence... " >&6; }
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2220 if ac_fn_c_try_cpp "$LINENO"; then :
2221 ac_header_preproc=yes
2223 ac_header_preproc=no
2225 rm -f conftest.err conftest.$ac_ext
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2227 $as_echo "$ac_header_preproc" >&6; }
2229 # So? What about this header?
2230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2233 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2235 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2239 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2241 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2243 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2245 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2247 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2249 ## ------------------------------------------ ##
2250 ## Report this to https://issues.asterisk.org ##
2251 ## ------------------------------------------ ##
2253 ) | sed "s/^/$as_me: WARNING: /" >&2
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257 $as_echo_n "checking for $2... " >&6; }
2258 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 $as_echo_n "(cached) " >&6
2261 eval "$3=\$ac_header_compiler"
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2269 } # ac_fn_c_check_header_mongrel
2271 # ac_fn_c_try_run LINENO
2272 # ----------------------
2273 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2274 # that executables *can* be run.
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 if { { ac_try="$ac_link"
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2284 $as_echo "$ac_try_echo"; } >&5
2285 (eval "$ac_link") 2>&5
2287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2288 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2289 { { case "(($ac_try" in
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2294 $as_echo "$ac_try_echo"; } >&5
2295 (eval "$ac_try") 2>&5
2297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2298 test $ac_status = 0; }; }; then :
2301 $as_echo "$as_me: program exited with status $ac_status" >&5
2302 $as_echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2305 ac_retval=$ac_status
2307 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2308 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2309 as_fn_set_status $ac_retval
2313 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2314 # -------------------------------------------------------
2315 # Tests whether HEADER exists and can be compiled using the include files in
2316 # INCLUDES, setting the cache variable VAR accordingly.
2317 ac_fn_c_check_header_compile ()
2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321 $as_echo_n "checking for $2... " >&6; }
2322 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2323 $as_echo_n "(cached) " >&6
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2330 if ac_fn_c_try_compile "$LINENO"; then :
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2340 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342 } # ac_fn_c_check_header_compile
2344 # ac_fn_cxx_try_compile LINENO
2345 # ----------------------------
2346 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2347 ac_fn_cxx_try_compile ()
2349 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350 rm -f conftest.$ac_objext
2351 if { { ac_try="$ac_compile"
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2357 $as_echo "$ac_try_echo"; } >&5
2358 (eval "$ac_compile") 2>conftest.err
2360 if test -s conftest.err; then
2361 grep -v '^ *+' conftest.err >conftest.er1
2362 cat conftest.er1 >&5
2363 mv -f conftest.er1 conftest.err
2365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2366 test $ac_status = 0; } && {
2367 test -z "$ac_cxx_werror_flag" ||
2368 test ! -s conftest.err
2369 } && test -s conftest.$ac_objext; then :
2372 $as_echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2377 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2378 as_fn_set_status $ac_retval
2380 } # ac_fn_cxx_try_compile
2382 # ac_fn_cxx_try_cpp LINENO
2383 # ------------------------
2384 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2385 ac_fn_cxx_try_cpp ()
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 if { { ac_try="$ac_cpp conftest.$ac_ext"
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2394 $as_echo "$ac_try_echo"; } >&5
2395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2397 if test -s conftest.err; then
2398 grep -v '^ *+' conftest.err >conftest.er1
2399 cat conftest.er1 >&5
2400 mv -f conftest.er1 conftest.err
2402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2403 test $ac_status = 0; } >/dev/null && {
2404 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2405 test ! -s conftest.err
2409 $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2414 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415 as_fn_set_status $ac_retval
2417 } # ac_fn_cxx_try_cpp
2419 # ac_fn_c_try_link LINENO
2420 # -----------------------
2421 # Try to link conftest.$ac_ext, and return whether this succeeded.
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 rm -f conftest.$ac_objext conftest$ac_exeext
2426 if { { ac_try="$ac_link"
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2432 $as_echo "$ac_try_echo"; } >&5
2433 (eval "$ac_link") 2>conftest.err
2435 if test -s conftest.err; then
2436 grep -v '^ *+' conftest.err >conftest.er1
2437 cat conftest.er1 >&5
2438 mv -f conftest.er1 conftest.err
2440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441 test $ac_status = 0; } && {
2442 test -z "$ac_c_werror_flag" ||
2443 test ! -s conftest.err
2444 } && test -s conftest$ac_exeext && {
2445 test "$cross_compiling" = yes ||
2446 $as_test_x conftest$ac_exeext
2450 $as_echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2455 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2456 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2457 # interfere with the next link command; also delete a directory that is
2458 # left behind by Apple's compiler. We do this before executing the actions.
2459 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461 as_fn_set_status $ac_retval
2463 } # ac_fn_c_try_link
2465 # ac_fn_c_check_func LINENO FUNC VAR
2466 # ----------------------------------
2467 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2468 ac_fn_c_check_func ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2478 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2480 #define $2 innocuous_$2
2482 /* System header to define __stub macros and hopefully few prototypes,
2483 which can conflict with char $2 (); below.
2484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2485 <limits.h> exists even on freestanding compilers. */
2488 # include <limits.h>
2490 # include <assert.h>
2495 /* Override any GCC internal prototype to avoid an error.
2496 Use char because int might match the return type of a GCC
2497 builtin and then its argument prototype would still apply. */
2502 /* The GNU C library defines this for functions which it implements
2503 to always fail with ENOSYS. Some functions are actually named
2504 something starting with __ and the normal name is an alias. */
2505 #if defined __stub_$2 || defined __stub___$2
2517 if ac_fn_c_try_link "$LINENO"; then :
2522 rm -f core conftest.err conftest.$ac_objext \
2523 conftest$ac_exeext conftest.$ac_ext
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2530 } # ac_fn_c_check_func
2532 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2533 # -------------------------------------------
2534 # Tests whether TYPE exists after having included INCLUDES, setting cache
2535 # variable VAR accordingly.
2536 ac_fn_c_check_type ()
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2540 $as_echo_n "checking for $2... " >&6; }
2541 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2542 $as_echo_n "(cached) " >&6
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h. */
2557 if ac_fn_c_try_compile "$LINENO"; then :
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2570 if ac_fn_c_try_compile "$LINENO"; then :
2575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581 $as_echo "$ac_res" >&6; }
2582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2584 } # ac_fn_c_check_type
2586 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2587 # ----------------------------------------------------
2588 # Tries to find if the field MEMBER exists in type AGGR, after including
2589 # INCLUDES, setting cache variable VAR accordingly.
2590 ac_fn_c_check_member ()
2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2594 $as_echo_n "checking for $2.$3... " >&6; }
2595 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2596 $as_echo_n "(cached) " >&6
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2611 if ac_fn_c_try_compile "$LINENO"; then :
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2621 if (sizeof ac_aggr.$3)
2627 if ac_fn_c_try_compile "$LINENO"; then :
2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 $as_echo "$ac_res" >&6; }
2639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2641 } # ac_fn_c_check_member
2643 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2644 # --------------------------------------------
2645 # Tries to find the compile-time value of EXPR in a program that includes
2646 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2648 ac_fn_c_compute_int ()
2650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2651 if test "$cross_compiling" = yes; then
2652 # Depending upon the size, compute the lo and hi bounds.
2653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2654 /* end confdefs.h. */
2659 static int test_array [1 - 2 * !(($2) >= 0)];
2666 if ac_fn_c_try_compile "$LINENO"; then :
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2675 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2682 if ac_fn_c_try_compile "$LINENO"; then :
2683 ac_hi=$ac_mid; break
2685 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2686 if test $ac_lo -le $ac_mid; then
2690 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2701 static int test_array [1 - 2 * !(($2) < 0)];
2708 if ac_fn_c_try_compile "$LINENO"; then :
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2717 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2724 if ac_fn_c_try_compile "$LINENO"; then :
2725 ac_lo=$ac_mid; break
2727 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2728 if test $ac_mid -le $ac_hi; then
2732 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 # Binary search between lo and hi bounds.
2743 while test "x$ac_lo" != "x$ac_hi"; do
2744 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2751 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2758 if ac_fn_c_try_compile "$LINENO"; then :
2761 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2773 static long int longval () { return $2; }
2774 static unsigned long int ulongval () { return $2; }
2781 FILE *f = fopen ("conftest.val", "w");
2786 long int i = longval ();
2789 fprintf (f, "%ld", i);
2793 unsigned long int i = ulongval ();
2796 fprintf (f, "%lu", i);
2798 /* Do not output a trailing newline, as this causes \r\n confusion
2799 on some platforms. */
2800 return ferror (f) || fclose (f) != 0;
2806 if ac_fn_c_try_run "$LINENO"; then :
2807 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2812 conftest.$ac_objext conftest.beam conftest.$ac_ext
2816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2817 as_fn_set_status $ac_retval
2819 } # ac_fn_c_compute_int
2821 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2822 # ---------------------------------------------------------
2823 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2824 # the include files in INCLUDES and setting the cache variable VAR
2826 ac_fn_cxx_check_header_mongrel ()
2828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2831 $as_echo_n "checking for $2... " >&6; }
2832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2833 $as_echo_n "(cached) " >&6
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2837 $as_echo "$ac_res" >&6; }
2839 # Is the header compilable?
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2841 $as_echo_n "checking $2 usability... " >&6; }
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2847 if ac_fn_cxx_try_compile "$LINENO"; then :
2848 ac_header_compiler=yes
2850 ac_header_compiler=no
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2854 $as_echo "$ac_header_compiler" >&6; }
2856 # Is the header present?
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2858 $as_echo_n "checking $2 presence... " >&6; }
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h. */
2863 if ac_fn_cxx_try_cpp "$LINENO"; then :
2864 ac_header_preproc=yes
2866 ac_header_preproc=no
2868 rm -f conftest.err conftest.$ac_ext
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2870 $as_echo "$ac_header_preproc" >&6; }
2872 # So? What about this header?
2873 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2876 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2882 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2884 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2886 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2888 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2890 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2892 ## ------------------------------------------ ##
2893 ## Report this to https://issues.asterisk.org ##
2894 ## ------------------------------------------ ##
2896 ) | sed "s/^/$as_me: WARNING: /" >&2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2900 $as_echo_n "checking for $2... " >&6; }
2901 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2902 $as_echo_n "(cached) " >&6
2904 eval "$3=\$ac_header_compiler"
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2908 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2912 } # ac_fn_cxx_check_header_mongrel
2914 # ac_fn_cxx_try_link LINENO
2915 # -------------------------
2916 # Try to link conftest.$ac_ext, and return whether this succeeded.
2917 ac_fn_cxx_try_link ()
2919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920 rm -f conftest.$ac_objext conftest$ac_exeext
2921 if { { ac_try="$ac_link"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_link") 2>conftest.err
2930 if test -s conftest.err; then
2931 grep -v '^ *+' conftest.err >conftest.er1
2932 cat conftest.er1 >&5
2933 mv -f conftest.er1 conftest.err
2935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936 test $ac_status = 0; } && {
2937 test -z "$ac_cxx_werror_flag" ||
2938 test ! -s conftest.err
2939 } && test -s conftest$ac_exeext && {
2940 test "$cross_compiling" = yes ||
2941 $as_test_x conftest$ac_exeext
2945 $as_echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2950 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2951 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2952 # interfere with the next link command; also delete a directory that is
2953 # left behind by Apple's compiler. We do this before executing the actions.
2954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2956 as_fn_set_status $ac_retval
2958 } # ac_fn_cxx_try_link
2960 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2961 # ---------------------------------------------------------
2962 # Tests whether HEADER exists and can be compiled using the include files in
2963 # INCLUDES, setting the cache variable VAR accordingly.
2964 ac_fn_cxx_check_header_compile ()
2966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2968 $as_echo_n "checking for $2... " >&6; }
2969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2970 $as_echo_n "(cached) " >&6
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973 /* end confdefs.h. */
2977 if ac_fn_cxx_try_compile "$LINENO"; then :
2982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2986 $as_echo "$ac_res" >&6; }
2987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2989 } # ac_fn_cxx_check_header_compile
2990 cat >config.log <<_ACEOF
2991 This file contains any messages produced by compilers while
2992 running configure, to aid debugging if configure makes a mistake.
2994 It was created by asterisk $as_me trunk, which was
2995 generated by GNU Autoconf 2.65. Invocation command line was
3007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3019 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir=.
3031 $as_echo "PATH: $as_dir"
3047 # Keep a trace of the command line.
3048 # Strip out --no-create and --no-recursion so they do not pile up.
3049 # Strip out --silent because we don't want to record it for future runs.
3050 # Also quote any args containing shell meta-characters.
3051 # Make two passes to allow for proper duplicate-argument suppression.
3055 ac_must_keep_next=false
3061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3063 | -silent | --silent | --silen | --sile | --sil)
3066 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3069 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3071 as_fn_append ac_configure_args1 " '$ac_arg'"
3072 if test $ac_must_keep_next = true; then
3073 ac_must_keep_next=false # Got value, back to normal.
3076 *=* | --config-cache | -C | -disable-* | --disable-* \
3077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3079 | -with-* | --with-* | -without-* | --without-* | --x)
3080 case "$ac_configure_args0 " in
3081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3084 -* ) ac_must_keep_next=true ;;
3087 as_fn_append ac_configure_args " '$ac_arg'"
3092 { ac_configure_args0=; unset ac_configure_args0;}
3093 { ac_configure_args1=; unset ac_configure_args1;}
3095 # When interrupted or exit'd, cleanup temporary files, and complete
3096 # config.log. We remove comments because anyway the quotes in there
3097 # would cause problems or look ugly.
3098 # WARNING: Use '\'' to represent an apostrophe within the trap.
3099 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3100 trap 'exit_status=$?
3101 # Save into config.log some information that might help in debugging.
3106 ## ---------------- ##
3107 ## Cache variables. ##
3108 ## ---------------- ##
3111 # The following way of writing the cache mishandles newlines in values,
3113 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3114 eval ac_val=\$$ac_var
3118 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3119 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3122 _ | IFS | as_nl) ;; #(
3123 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3124 *) { eval $ac_var=; unset $ac_var;} ;;
3129 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3130 *${as_nl}ac_space=\ *)
3132 "s/'\''/'\''\\\\'\'''\''/g;
3133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3144 ## ----------------- ##
3145 ## Output variables. ##
3146 ## ----------------- ##
3149 for ac_var in $ac_subst_vars
3151 eval ac_val=\$$ac_var
3153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3155 $as_echo "$ac_var='\''$ac_val'\''"
3159 if test -n "$ac_subst_files"; then
3161 ## ------------------- ##
3162 ## File substitutions. ##
3163 ## ------------------- ##
3166 for ac_var in $ac_subst_files
3168 eval ac_val=\$$ac_var
3170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3172 $as_echo "$ac_var='\''$ac_val'\''"
3177 if test -s confdefs.h; then
3187 test "$ac_signal" != 0 &&
3188 $as_echo "$as_me: caught signal $ac_signal"
3189 $as_echo "$as_me: exit $exit_status"
3191 rm -f core *.core core.conftest.* &&
3192 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3195 for ac_signal in 1 2 13 15; do
3196 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3201 rm -f -r conftest* confdefs.h
3203 $as_echo "/* confdefs.h */" > confdefs.h
3205 # Predefined preprocessor variables.
3207 cat >>confdefs.h <<_ACEOF
3208 #define PACKAGE_NAME "$PACKAGE_NAME"
3211 cat >>confdefs.h <<_ACEOF
3212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3215 cat >>confdefs.h <<_ACEOF
3216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3219 cat >>confdefs.h <<_ACEOF
3220 #define PACKAGE_STRING "$PACKAGE_STRING"
3223 cat >>confdefs.h <<_ACEOF
3224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3227 cat >>confdefs.h <<_ACEOF
3228 #define PACKAGE_URL "$PACKAGE_URL"
3232 # Let the site file select an alternate cache file if it wants to.
3233 # Prefer an explicitly selected file to automatically selected ones.
3236 if test -n "$CONFIG_SITE"; then
3237 ac_site_file1=$CONFIG_SITE
3238 elif test "x$prefix" != xNONE; then
3239 ac_site_file1=$prefix/share/config.site
3240 ac_site_file2=$prefix/etc/config.site
3242 ac_site_file1=$ac_default_prefix/share/config.site
3243 ac_site_file2=$ac_default_prefix/etc/config.site
3245 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3247 test "x$ac_site_file" = xNONE && continue
3248 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3250 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3251 sed 's/^/| /' "$ac_site_file" >&5
3256 if test -r "$cache_file"; then
3257 # Some versions of bash will fail to source /dev/null (special files
3258 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3259 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3261 $as_echo "$as_me: loading cache $cache_file" >&6;}
3263 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3264 *) . "./$cache_file";;
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3269 $as_echo "$as_me: creating cache $cache_file" >&6;}
3273 as_fn_append ac_header_list " stdlib.h"
3274 as_fn_append ac_header_list " unistd.h"
3275 as_fn_append ac_header_list " sys/param.h"
3276 as_fn_append ac_header_list " utime.h"
3277 # Check that the precious variables saved in the cache have kept the same
3279 ac_cache_corrupted=false
3280 for ac_var in $ac_precious_vars; do
3281 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3282 eval ac_new_set=\$ac_env_${ac_var}_set
3283 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3284 eval ac_new_val=\$ac_env_${ac_var}_value
3285 case $ac_old_set,$ac_new_set in
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3288 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3289 ac_cache_corrupted=: ;;
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3292 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3293 ac_cache_corrupted=: ;;
3296 if test "x$ac_old_val" != "x$ac_new_val"; then
3297 # differences in whitespace do not lead to failure.
3298 ac_old_val_w=`echo x $ac_old_val`
3299 ac_new_val_w=`echo x $ac_new_val`
3300 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3302 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3303 ac_cache_corrupted=:
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3306 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3307 eval $ac_var=\$ac_old_val
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3310 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3312 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3315 # Pass precious variables to config.status.
3316 if test "$ac_new_set" = set; then
3318 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3319 *) ac_arg=$ac_var=$ac_new_val ;;
3321 case " $ac_configure_args " in
3322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3323 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3327 if $ac_cache_corrupted; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3331 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3332 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3334 ## -------------------- ##
3335 ## Main body of script. ##
3336 ## -------------------- ##
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346 # cross-compile macros
3348 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3349 for ac_t in install-sh install.sh shtool; do
3350 if test -f "$ac_dir/$ac_t"; then
3352 ac_install_sh="$ac_aux_dir/$ac_t -c"
3357 if test -z "$ac_aux_dir"; then
3358 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3361 # These three variables are undocumented and unsupported,
3362 # and are intended to be withdrawn in a future Autoconf release.
3363 # They can cause serious problems if a builder's source tree is in a directory
3364 # whose full name contains unusual characters.
3365 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3366 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3367 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3370 # Make sure we can run config.sub.
3371 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3372 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3375 $as_echo_n "checking build system type... " >&6; }
3376 if test "${ac_cv_build+set}" = set; then :
3377 $as_echo_n "(cached) " >&6
3379 ac_build_alias=$build_alias
3380 test "x$ac_build_alias" = x &&
3381 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3382 test "x$ac_build_alias" = x &&
3383 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3384 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3385 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3389 $as_echo "$ac_cv_build" >&6; }
3390 case $ac_cv_build in
3392 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3395 ac_save_IFS=$IFS; IFS='-'
3401 # Remember, the first character of IFS is used to create $*,
3402 # except with old shells:
3405 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3409 $as_echo_n "checking host system type... " >&6; }
3410 if test "${ac_cv_host+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3413 if test "x$host_alias" = x; then
3414 ac_cv_host=$ac_cv_build
3416 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3417 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3422 $as_echo "$ac_cv_host" >&6; }
3425 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3428 ac_save_IFS=$IFS; IFS='-'
3434 # Remember, the first character of IFS is used to create $*,
3435 # except with old shells:
3438 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3442 # check existence of the package
3446 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3447 for ac_t in install-sh install.sh shtool; do
3448 if test -f "$ac_dir/$ac_t"; then
3450 ac_install_sh="$ac_aux_dir/$ac_t -c"
3455 if test -z "$ac_aux_dir"; then
3456 as_fn_error "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3459 # These three variables are undocumented and unsupported,
3460 # and are intended to be withdrawn in a future Autoconf release.
3461 # They can cause serious problems if a builder's source tree is in a directory
3462 # whose full name contains unusual characters.
3463 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3464 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3465 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3472 # preserve any CFLAGS or LDFLAGS that may be set
3473 # NOTE: This must be done before calling any macros that end up
3474 # calling AC_PROG_CC or the like, since they will set a default
3475 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3476 # we don't want those default flags to be carried over into the
3477 # rest of the build system since we have other means of controlling
3478 # debugging symbol generation and optimization.
3479 CONFIG_CFLAGS="${CFLAGS}"
3480 CONFIG_LDFLAGS="${LDFLAGS}"
3484 # specify output header file
3485 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3488 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3489 # other macro that uses the C compiler, or the default order will be used.
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 if test -n "$ac_tool_prefix"; then
3496 for ac_prog in gcc cc
3498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3535 test -n "$CC" && break
3538 if test -z "$CC"; then
3540 for ac_prog in gcc cc
3542 # Extract the first word of "$ac_prog", so it can be a program name with args.
3543 set dummy $ac_prog; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3549 if test -n "$ac_ct_CC"; then
3550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559 ac_cv_prog_ac_ct_CC="$ac_prog"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3570 if test -n "$ac_ct_CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3572 $as_echo "$ac_ct_CC" >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3579 test -n "$ac_ct_CC" && break
3582 if test "x$ac_ct_CC" = x; then
3585 case $cross_compiling:$ac_tool_warned in
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned=yes ;;
3596 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error "no acceptable C compiler found in \$PATH
3599 See \`config.log' for more details." "$LINENO" 5; }
3601 # Provide some information about the compiler.
3602 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3605 for ac_option in --version -v -V -qversion; do
3606 { { ac_try="$ac_compiler $ac_option >&5"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3615 if test -s conftest.err; then
3617 ... rest of stderr output deleted ...
3618 10q' conftest.err >conftest.er1
3619 cat conftest.er1 >&5
3621 rm -f conftest.er1 conftest.err
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3637 ac_clean_files_save=$ac_clean_files
3638 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3639 # Try to create an executable without -o first, disregard a.out.
3640 # It will help us diagnose broken compilers, and finding out an intuition
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3643 $as_echo_n "checking whether the C compiler works... " >&6; }
3644 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3646 # The possible output files:
3647 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3650 for ac_file in $ac_files
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3654 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3659 if { { ac_try="$ac_link_default"
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_link_default") 2>&5
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3671 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3672 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3673 # so that the user can short-circuit this test for compilers unknown to
3675 for ac_file in $ac_files ''
3677 test -f "$ac_file" || continue
3679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3682 # We found the default executable, but exeext='' is most
3686 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3688 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 # We set ac_cv_exeext here because the later test for it is not
3691 # safe: cross compilers may not add the suffix if given an `-o'
3692 # argument, so we may need to know it at that point already.
3693 # Even if this section looks crufty: it has the advantage of
3700 test "$ac_cv_exeext" = no && ac_cv_exeext=
3705 if test -z "$ac_file"; then :
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708 $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 { as_fn_set_status 77
3714 as_fn_error "C compiler cannot create executables
3715 See \`config.log' for more details." "$LINENO" 5; }; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3718 $as_echo "yes" >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3721 $as_echo_n "checking for C compiler default output file name... " >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3723 $as_echo "$ac_file" >&6; }
3724 ac_exeext=$ac_cv_exeext
3726 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3727 ac_clean_files=$ac_clean_files_save
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3729 $as_echo_n "checking for suffix of executables... " >&6; }
3730 if { { ac_try="$ac_link"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_link") 2>&5
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }; then :
3741 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3742 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3743 # work properly (i.e., refer to `conftest.exe'), while it won't with
3745 for ac_file in conftest.exe conftest conftest.*; do
3746 test -f "$ac_file" || continue
3748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3749 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757 as_fn_error "cannot compute suffix of executables: cannot compile and link
3758 See \`config.log' for more details." "$LINENO" 5; }
3760 rm -f conftest conftest$ac_cv_exeext
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3762 $as_echo "$ac_cv_exeext" >&6; }
3764 rm -f conftest.$ac_ext
3765 EXEEXT=$ac_cv_exeext
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3773 FILE *f = fopen ("conftest.out", "w");
3774 return ferror (f) || fclose (f) != 0;
3780 ac_clean_files="$ac_clean_files conftest.out"
3781 # Check that the compiler produces executables we can run. If not, either
3782 # the compiler is broken, or we cross compile.
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3784 $as_echo_n "checking whether we are cross compiling... " >&6; }
3785 if test "$cross_compiling" != yes; then
3786 { { ac_try="$ac_link"
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793 (eval "$ac_link") 2>&5
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }
3797 if { ac_try='./conftest$ac_cv_exeext'
3798 { { case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_try") 2>&5
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }; }; then
3810 if test "$cross_compiling" = maybe; then
3813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815 as_fn_error "cannot run C compiled programs.
3816 If you meant to cross compile, use \`--host'.
3817 See \`config.log' for more details." "$LINENO" 5; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3822 $as_echo "$cross_compiling" >&6; }
3824 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3825 ac_clean_files=$ac_clean_files_save
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3827 $as_echo_n "checking for suffix of object files... " >&6; }
3828 if test "${ac_cv_objext+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3842 rm -f conftest.o conftest.obj
3843 if { { ac_try="$ac_compile"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_compile") 2>&5
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }; then :
3854 for ac_file in conftest.o conftest.obj conftest.*; do
3855 test -f "$ac_file" || continue;
3857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3858 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error "cannot compute suffix of object files: cannot compile
3869 See \`config.log' for more details." "$LINENO" 5; }
3871 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3874 $as_echo "$ac_cv_objext" >&6; }
3875 OBJEXT=$ac_cv_objext
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3878 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3879 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3896 if ac_fn_c_try_compile "$LINENO"; then :
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3906 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3907 if test $ac_compiler_gnu = yes; then
3912 ac_test_CFLAGS=${CFLAGS+set}
3913 ac_save_CFLAGS=$CFLAGS
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3915 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3916 if test "${ac_cv_prog_cc_g+set}" = set; then :
3917 $as_echo_n "(cached) " >&6
3919 ac_save_c_werror_flag=$ac_c_werror_flag
3920 ac_c_werror_flag=yes
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3934 if ac_fn_c_try_compile "$LINENO"; then :
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3949 if ac_fn_c_try_compile "$LINENO"; then :
3952 ac_c_werror_flag=$ac_save_c_werror_flag
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3965 if ac_fn_c_try_compile "$LINENO"; then :
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 ac_c_werror_flag=$ac_save_c_werror_flag
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3976 $as_echo "$ac_cv_prog_cc_g" >&6; }
3977 if test "$ac_test_CFLAGS" = set; then
3978 CFLAGS=$ac_save_CFLAGS
3979 elif test $ac_cv_prog_cc_g = yes; then
3980 if test "$GCC" = yes; then
3986 if test "$GCC" = yes; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3993 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3994 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3997 ac_cv_prog_cc_c89=no
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4003 #include <sys/types.h>
4004 #include <sys/stat.h>
4005 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4006 struct buf { int x; };
4007 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4008 static char *e (p, i)
4014 static char *f (char * (*g) (char **, int), char **p, ...)
4019 s = g (p, va_arg (v,int));
4024 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4025 function prototypes and stuff, but not '\xHH' hex character constants.
4026 These don't provoke an error unfortunately, instead are silently treated
4027 as 'x'. The following induces an error, until -std is added to get
4028 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4029 array size at least. It's necessary to write '\x00'==0 to get something
4030 that's true only with -std. */
4031 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4033 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4034 inside strings and character constants. */
4036 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4038 int test (int i, double x);
4039 struct s1 {int (*f) (int a);};
4040 struct s2 {int (*f) (double a);};
4041 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4047 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4052 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4053 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4055 CC="$ac_save_CC $ac_arg"
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_prog_cc_c89=$ac_arg
4059 rm -f core conftest.err conftest.$ac_objext
4060 test "x$ac_cv_prog_cc_c89" != "xno" && break
4062 rm -f conftest.$ac_ext
4067 case "x$ac_cv_prog_cc_c89" in
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4070 $as_echo "none needed" >&6; } ;;
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4073 $as_echo "unsupported" >&6; } ;;
4075 CC="$CC $ac_cv_prog_cc_c89"
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4077 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4079 if test "x$ac_cv_prog_cc_c89" != xno; then :
4084 ac_cpp='$CPP $CPPFLAGS'
4085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 ac_cpp='$CPP $CPPFLAGS'
4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4097 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4098 # On Suns, sometimes $CPP names a directory.
4099 if test -n "$CPP" && test -d "$CPP"; then
4102 if test -z "$CPP"; then
4103 if test "${ac_cv_prog_CPP+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4106 # Double quotes because CPP needs to be expanded
4107 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4110 for ac_c_preproc_warn_flag in '' yes
4112 # Use a header file that comes with gcc, so configuring glibc
4113 # with a fresh cross-compiler works.
4114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4115 # <limits.h> exists even on freestanding compilers.
4116 # On the NeXT, cc -E runs the code through the compiler's parser,
4117 # not just through cpp. "Syntax error" is here to catch this case.
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4121 # include <limits.h>
4123 # include <assert.h>
4127 if ac_fn_c_try_cpp "$LINENO"; then :
4130 # Broken: fails on valid input.
4133 rm -f conftest.err conftest.$ac_ext
4135 # OK, works on sane cases. Now check whether nonexistent headers
4136 # can be detected and how.
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139 #include <ac_nonexistent.h>
4141 if ac_fn_c_try_cpp "$LINENO"; then :
4142 # Broken: success on invalid input.
4145 # Passes both tests.
4149 rm -f conftest.err conftest.$ac_ext
4152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4153 rm -f conftest.err conftest.$ac_ext
4154 if $ac_preproc_ok; then :
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4167 $as_echo "$CPP" >&6; }
4169 for ac_c_preproc_warn_flag in '' yes
4171 # Use a header file that comes with gcc, so configuring glibc
4172 # with a fresh cross-compiler works.
4173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4174 # <limits.h> exists even on freestanding compilers.
4175 # On the NeXT, cc -E runs the code through the compiler's parser,
4176 # not just through cpp. "Syntax error" is here to catch this case.
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4180 # include <limits.h>
4182 # include <assert.h>
4186 if ac_fn_c_try_cpp "$LINENO"; then :
4189 # Broken: fails on valid input.
4192 rm -f conftest.err conftest.$ac_ext
4194 # OK, works on sane cases. Now check whether nonexistent headers
4195 # can be detected and how.
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #include <ac_nonexistent.h>
4200 if ac_fn_c_try_cpp "$LINENO"; then :
4201 # Broken: success on invalid input.
4204 # Passes both tests.
4208 rm -f conftest.err conftest.$ac_ext
4211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212 rm -f conftest.err conftest.$ac_ext
4213 if $ac_preproc_ok; then :
4216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4218 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4219 See \`config.log' for more details." "$LINENO" 5; }
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4231 if test "${ac_cv_path_GREP+set}" = set; then :
4232 $as_echo_n "(cached) " >&6
4234 if test -z "$GREP"; then
4235 ac_path_GREP_found=false
4236 # Loop through the user's path and test for each of PROGNAME-LIST
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4241 test -z "$as_dir" && as_dir=.
4242 for ac_prog in grep ggrep; do
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4245 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4246 # Check for GNU ac_path_GREP and select it if it is found.
4247 # Check for GNU $ac_path_GREP
4248 case `"$ac_path_GREP" --version 2>&1` in
4250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4253 $as_echo_n 0123456789 >"conftest.in"
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo 'GREP' >> "conftest.nl"
4260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4262 as_fn_arith $ac_count + 1 && ac_count=$as_val
4263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_GREP="$ac_path_GREP"
4266 ac_path_GREP_max=$ac_count
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4274 $ac_path_GREP_found && break 3
4279 if test -z "$ac_cv_path_GREP"; then
4280 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4283 ac_cv_path_GREP=$GREP
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4288 $as_echo "$ac_cv_path_GREP" >&6; }
4289 GREP="$ac_cv_path_GREP"
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4293 $as_echo_n "checking for egrep... " >&6; }
4294 if test "${ac_cv_path_EGREP+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
4297 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4298 then ac_cv_path_EGREP="$GREP -E"
4300 if test -z "$EGREP"; then
4301 ac_path_EGREP_found=false
4302 # Loop through the user's path and test for each of PROGNAME-LIST
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4307 test -z "$as_dir" && as_dir=.
4308 for ac_prog in egrep; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4311 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4312 # Check for GNU ac_path_EGREP and select it if it is found.
4313 # Check for GNU $ac_path_EGREP
4314 case `"$ac_path_EGREP" --version 2>&1` in
4316 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4319 $as_echo_n 0123456789 >"conftest.in"
4322 cat "conftest.in" "conftest.in" >"conftest.tmp"
4323 mv "conftest.tmp" "conftest.in"
4324 cp "conftest.in" "conftest.nl"
4325 $as_echo 'EGREP' >> "conftest.nl"
4326 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4328 as_fn_arith $ac_count + 1 && ac_count=$as_val
4329 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4330 # Best one so far, save it but keep looking for a better one
4331 ac_cv_path_EGREP="$ac_path_EGREP"
4332 ac_path_EGREP_max=$ac_count
4334 # 10*(2^10) chars as input seems more than enough
4335 test $ac_count -gt 10 && break
4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340 $ac_path_EGREP_found && break 3
4345 if test -z "$ac_cv_path_EGREP"; then
4346 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4349 ac_cv_path_EGREP=$EGREP
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4355 $as_echo "$ac_cv_path_EGREP" >&6; }
4356 EGREP="$ac_cv_path_EGREP"
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4360 $as_echo_n "checking for ANSI C header files... " >&6; }
4361 if test "${ac_cv_header_stdc+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4379 if ac_fn_c_try_compile "$LINENO"; then :
4380 ac_cv_header_stdc=yes
4382 ac_cv_header_stdc=no
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 if test $ac_cv_header_stdc = yes; then
4387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 $EGREP "memchr" >/dev/null 2>&1; then :
4397 ac_cv_header_stdc=no
4403 if test $ac_cv_header_stdc = yes; then
4404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4411 $EGREP "free" >/dev/null 2>&1; then :
4414 ac_cv_header_stdc=no
4420 if test $ac_cv_header_stdc = yes; then
4421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4422 if test "$cross_compiling" = yes; then :
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4429 #if ((' ' & 0x0FF) == 0x020)
4430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4433 # define ISLOWER(c) \
4434 (('a' <= (c) && (c) <= 'i') \
4435 || ('j' <= (c) && (c) <= 'r') \
4436 || ('s' <= (c) && (c) <= 'z'))
4437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4445 for (i = 0; i < 256; i++)
4446 if (XOR (islower (i), ISLOWER (i))
4447 || toupper (i) != TOUPPER (i))
4452 if ac_fn_c_try_run "$LINENO"; then :
4455 ac_cv_header_stdc=no
4457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4458 conftest.$ac_objext conftest.beam conftest.$ac_ext
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4464 $as_echo "$ac_cv_header_stdc" >&6; }
4465 if test $ac_cv_header_stdc = yes; then
4467 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4471 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4472 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4473 inttypes.h stdint.h unistd.h
4475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4478 eval as_val=\$$as_ac_Header
4479 if test "x$as_val" = x""yes; then :
4480 cat >>confdefs.h <<_ACEOF
4481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4491 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4498 if test "$MINIX" = yes; then
4500 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4503 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4506 $as_echo "#define _MINIX 1" >>confdefs.h
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4512 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4513 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4519 # define __EXTENSIONS__ 1
4520 $ac_includes_default
4529 if ac_fn_c_try_compile "$LINENO"; then :
4530 ac_cv_safe_to_define___extensions__=yes
4532 ac_cv_safe_to_define___extensions__=no
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4537 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4538 test $ac_cv_safe_to_define___extensions__ = yes &&
4539 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4541 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4543 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4545 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4547 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4550 # System default paths
4551 astsbindir='${sbindir}'
4552 astetcdir='${sysconfdir}/asterisk'
4553 astheaderdir='${includedir}/asterisk'
4554 astlibdir='${libdir}'
4555 astmoddir='${libdir}/asterisk/modules'
4556 astmandir='${mandir}'
4557 astvarlibdir='${localstatedir}/lib/asterisk'
4558 astdatadir='${astvarlibdir}'
4559 astdbdir='${astvarlibdir}'
4560 astkeydir='${astvarlibdir}'
4561 astspooldir='${localstatedir}/spool/asterisk'
4562 astlogdir='${localstatedir}/log/asterisk'
4563 astvarrundir='${localstatedir}/run/asterisk'
4565 case "${host_os}" in
4567 if test ${prefix} = 'NONE'; then
4568 astvarlibdir='${prefix}/share/asterisk'
4569 astdbdir='${localstatedir}/db/asterisk'
4573 if test ${prefix} = 'NONE'; then
4574 astvarrundir='/Library/Application Support/Asterisk/Run'
4579 case "${host_os}" in
4581 ac_default_prefix=/usr/local
4582 CPPFLAGS=-I/usr/local/include
4583 LDFLAGS=-L/usr/local/lib
4586 ac_default_prefix=/usr/local
4587 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4588 if test ${sysconfdir} = '${prefix}/etc'; then
4589 astetcdir=/etc/asterisk
4591 if test ${mandir} = '${prefix}/man'; then
4592 astmandir=/usr/share/man
4595 CPPFLAGS=-I/usr/local/include
4596 LDFLAGS=-L/usr/local/lib
4599 ac_default_prefix=/usr/local
4600 if test ${prefix} = 'NONE'; then
4601 astmoddir='/Library/Application Support/Asterisk/Modules'
4602 astvarlibdir='/Library/Application Support/Asterisk'
4603 astlogdir=/Library/Logs/Asterisk
4604 astvarrundir='/Library/Application Support/Asterisk/Run'
4607 $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
4610 $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
4614 if test ${prefix} = 'NONE'; then
4615 astetcdir=/var/etc/asterisk
4616 astsbindir=/opt/asterisk/sbin
4617 astlibdir=/opt/asterisk/lib
4618 astmoddir=/opt/asterisk/lib/modules
4619 astheaderdir=/opt/asterisk/include
4620 astmandir=/opt/asterisk/man
4621 astvarlibdir=/var/opt/asterisk
4622 astspooldir=/var/spool/asterisk
4623 astlogdir=/var/log/asterisk
4624 astvarrundir=/var/run/asterisk
4628 ac_default_prefix=/usr
4629 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4630 if test ${sysconfdir} = '${prefix}/etc'; then
4633 if test ${mandir} = '${prefix}/man'; then
4634 mandir=/usr/share/man
4640 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4641 if test ${localstatedir} = '${prefix}/var'; then
4646 BUILD_PLATFORM=${build}
4647 BUILD_CPU=${build_cpu}
4648 BUILD_VENDOR=${build_vendor}
4649 BUILD_OS=${build_os}
4656 HOST_PLATFORM=${host}
4657 HOST_CPU=${host_cpu}
4658 HOST_VENDOR=${host_vendor}
4668 case "${host_os}" in