2 # From configure.ac Revision: 369346 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for asterisk trunk.
6 # Report bugs to <https://issues.asterisk.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
18 ## -------------------- ##
19 ## M4sh Initialization. ##
20 ## -------------------- ##
22 # Be more Bourne compatible
23 DUALCASE=1; export DUALCASE # for MKS sh
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
32 case `(set -o) 2>/dev/null` in #(
44 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 # Prefer a ksh shell builtin over an external printf program on Solaris,
49 # but without wasting forks for bash or zsh.
50 if test -z "$BASH_VERSION$ZSH_VERSION" \
51 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo_n='print -rn --'
54 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
58 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
60 as_echo_n='/usr/ucb/echo -n'
62 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
67 expr "X$arg" : "X\\(.*\\)$as_nl";
68 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73 as_echo_n='sh -c $as_echo_n_body as_echo'
76 as_echo='sh -c $as_echo_body as_echo'
79 # The user is always right.
80 if test "${PATH_SEPARATOR+set}" != set; then
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
99 *[\\/]* ) as_myself=$0 ;;
100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 test -z "$as_dir" && as_dir=.
105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
111 # We did not find ourselves, most probably we were run as `sh COMMAND'
112 # in which case we are not to be found in the path.
113 if test "x$as_myself" = x; then
116 if test ! -f "$as_myself"; then
117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 # Unset variables that we do not need and which cause bugs (e.g. in
122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
123 # suppresses any "Segmentation fault" message there. '((' could
124 # trigger a bug in pdksh 5.2.14.
125 for as_var in BASH_ENV ENV MAIL MAILPATH
126 do eval test x\${$as_var+set} = xset \
127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
173 exitcode=1; echo positional parameters were not saved.
175 test x\$exitcode = x0 || exit 1"
176 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
177 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
178 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
179 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 # Preserve -v and -x to the replacement shell.
226 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229 *v*x* | *x*v* ) as_opts=-vx ;;
234 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
237 if test x$as_have_required = xno; then :
238 $as_echo "$0: This script requires a shell more modern than all"
239 $as_echo "$0: the shells that I found on your system."
240 if test x${ZSH_VERSION+set} = xset ; then
241 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
242 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
244 $as_echo "$0: Please tell bug-autoconf@gnu.org and
245 $0: https://issues.asterisk.org about your system,
246 $0: including any error possibly output before this
247 $0: message. Then install a modern shell, or manually run
248 $0: the script under such a shell if you do have one."
254 SHELL=${CONFIG_SHELL-/bin/sh}
256 # Unset more variables known to interfere with behavior of common tools.
257 CLICOLOR_FORCE= GREP_OPTIONS=
258 unset CLICOLOR_FORCE GREP_OPTIONS
260 ## --------------------- ##
261 ## M4sh Shell Functions. ##
262 ## --------------------- ##
265 # Portably unset VAR.
268 { eval $1=; unset $1;}
272 # as_fn_set_status STATUS
273 # -----------------------
274 # Set $? to STATUS, without forking.
282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
292 # Create "$as_dir" as a directory, including parents if necessary.
297 -*) as_dir=./$as_dir;;
299 test -d "$as_dir" || eval $as_mkdir_p || {
303 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 as_dirs="'$as_qdir' $as_dirs"
307 as_dir=`$as_dirname -- "$as_dir" ||
308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
309 X"$as_dir" : 'X\(//\)[^/]' \| \
310 X"$as_dir" : 'X\(//\)$' \| \
311 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
312 $as_echo X"$as_dir" |
313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
330 test -d "$as_dir" && break
332 test -z "$as_dirs" || eval "mkdir $as_dirs"
333 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
337 # as_fn_append VAR VALUE
338 # ----------------------
339 # Append the text in VALUE to the end of the definition contained in VAR. Take
340 # advantage of any shell optimizations that allow amortized linear growth over
341 # repeated appends, instead of the typical quadratic growth present in naive
343 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
344 eval 'as_fn_append ()
357 # Perform arithmetic evaluation on the ARGs, and store the result in the
358 # global $as_val. Take advantage of shells that can avoid forks. The arguments
359 # must be portable across $(()) and expr.
360 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
368 as_val=`expr "$@" || test $? -eq 1`
373 # as_fn_error STATUS ERROR [LINENO LOG_FD]
374 # ----------------------------------------
375 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
376 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
377 # script with STATUS, using 1 if that was 0.
380 as_status=$1; test $as_status -eq 0 && as_status=1
382 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
383 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
385 $as_echo "$as_me: error: $2" >&2
386 as_fn_exit $as_status
389 if expr a : '\(a\)' >/dev/null 2>&1 &&
390 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_me=`$as_basename -- "$0" ||
409 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
410 X"$0" : 'X\(//\)$' \| \
411 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
413 sed '/^.*\/\([^/][^/]*\)\/*$/{
427 # Avoid depending upon Character Ranges.
428 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
429 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
430 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
431 as_cr_digits='0123456789'
432 as_cr_alnum=$as_cr_Letters$as_cr_digits
435 as_lineno_1=$LINENO as_lineno_1a=$LINENO
436 as_lineno_2=$LINENO as_lineno_2a=$LINENO
437 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
438 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
439 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in #(((((
469 case `echo 'xy\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
472 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 rm -f conf$$ conf$$.exe conf$$.file
480 if test -d conf$$.dir; then
481 rm -f conf$$.dir/conf$$.file
484 mkdir conf$$.dir 2>/dev/null
486 if (echo >conf$$.file) 2>/dev/null; then
487 if ln -s conf$$.file conf$$ 2>/dev/null; then
489 # ... but there are two gotchas:
490 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
491 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
492 # In both cases, we have to default to `cp -p'.
493 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
495 elif ln conf$$.file conf$$ 2>/dev/null; then
503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
504 rmdir conf$$.dir 2>/dev/null
506 if mkdir -p . 2>/dev/null; then
507 as_mkdir_p='mkdir -p "$as_dir"'
509 test -d ./-p && rmdir ./-p
513 if test -x / >/dev/null 2>&1; then
516 if ls -dL / >/dev/null 2>&1; then
523 if test -d "$1"; then
529 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
530 ???[sx]*):;;*)false;;esac;fi
534 as_executable_p=$as_test_x
536 # Sed expression to map a string onto a valid CPP name.
537 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
539 # Sed expression to map a string onto a valid variable name.
540 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543 test -n "$DJDIR" || exec 7<&0 </dev/null
547 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
548 # so uname gets run too.
549 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554 ac_default_prefix=/usr/local
556 ac_config_libobj_dir=.
563 # Identity of this package.
564 PACKAGE_NAME='asterisk'
565 PACKAGE_TARNAME='asterisk'
566 PACKAGE_VERSION='trunk'
567 PACKAGE_STRING='asterisk trunk'
568 PACKAGE_BUGREPORT='https://issues.asterisk.org'
571 ac_unique_file="main/asterisk.c"
572 # Factoring default headers for most tests.
573 ac_includes_default="\
575 #ifdef HAVE_SYS_TYPES_H
576 # include <sys/types.h>
578 #ifdef HAVE_SYS_STAT_H
579 # include <sys/stat.h>
585 # ifdef HAVE_STDLIB_H
590 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #ifdef HAVE_STRINGS_H
596 # include <strings.h>
598 #ifdef HAVE_INTTYPES_H
599 # include <inttypes.h>
609 ac_subst_vars='LTLIBOBJS
611 PBX_SYSLOG_FACILITY_LOG_UUCP
612 PBX_SYSLOG_FACILITY_LOG_SYSLOG
613 PBX_SYSLOG_FACILITY_LOG_NEWS
614 PBX_SYSLOG_FACILITY_LOG_MAIL
615 PBX_SYSLOG_FACILITY_LOG_LPR
616 PBX_SYSLOG_FACILITY_LOG_KERN
617 PBX_SYSLOG_FACILITY_LOG_FTP
618 PBX_SYSLOG_FACILITY_LOG_DAEMON
619 PBX_SYSLOG_FACILITY_LOG_CRON
620 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
621 PBX_SYSLOG_FACILITY_LOG_AUTH
666 AST_NO_STRICT_OVERFLOW
669 AST_DECLARATION_AFTER_STATEMENT
673 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
674 PBX_PTHREAD_RWLOCK_INITIALIZER
750 SPEEX_PREPROCESS_INCLUDE
785 PBX_PRI_REVERSE_CHARGE
786 PRI_REVERSE_CHARGE_DIR
787 PRI_REVERSE_CHARGE_INCLUDE
788 PRI_REVERSE_CHARGE_LIB
789 PBX_PRI_SERVICE_MESSAGES
790 PRI_SERVICE_MESSAGES_DIR
791 PRI_SERVICE_MESSAGES_INCLUDE
792 PRI_SERVICE_MESSAGES_LIB
795 PRI_PROG_W_CAUSE_INCLUDE
797 PBX_PRI_INBANDDISCONNECT
798 PRI_INBANDDISCONNECT_DIR
799 PRI_INBANDDISCONNECT_INCLUDE
800 PRI_INBANDDISCONNECT_LIB
803 PRI_SETUP_KEYPAD_INCLUDE
805 PBX_PRI_CALL_REROUTING
806 PRI_CALL_REROUTING_DIR
807 PRI_CALL_REROUTING_INCLUDE
808 PRI_CALL_REROUTING_LIB
811 PRI_CALL_HOLD_INCLUDE
819 PRI_HANGUP_FIX_INCLUDE
831 PRI_AOC_EVENTS_INCLUDE
835 PRI_CALL_WAITING_INCLUDE
847 PRI_DISPLAY_TEXT_INCLUDE
853 PBX_PRI_DATETIME_SEND
854 PRI_DATETIME_SEND_DIR
855 PRI_DATETIME_SEND_INCLUDE
856 PRI_DATETIME_SEND_LIB
857 PBX_PRI_L2_PERSISTENCE
858 PRI_L2_PERSISTENCE_DIR
859 PRI_L2_PERSISTENCE_INCLUDE
860 PRI_L2_PERSISTENCE_LIB
1021 PBX_COROSYNC_CFG_STATE_TRACK
1022 COROSYNC_CFG_STATE_TRACK_DIR
1023 COROSYNC_CFG_STATE_TRACK_INCLUDE
1024 COROSYNC_CFG_STATE_TRACK_LIB
1173 program_transform_name
1186 enable_option_checking
1263 enable_internal_poll
1266 ac_precious_vars='build_alias
1290 # Initialize some variables set by options.
1292 ac_init_version=false
1293 ac_unrecognized_opts=
1294 ac_unrecognized_sep=
1295 # The variables have the same names as the options, with
1296 # dashes changed to underlines.
1297 cache_file=/dev/null
1304 program_transform_name=s,x,x,
1312 # Installation directory options.
1313 # These are left unexpanded so users can "make install exec_prefix=/foo"
1314 # and all the variables that are supposed to be based on exec_prefix
1315 # by default will actually change.
1316 # Use braces instead of parens because sh, perl, etc. also accept them.
1317 # (The list follows the same order as the GNU Coding Standards.)
1318 bindir='${exec_prefix}/bin'
1319 sbindir='${exec_prefix}/sbin'
1320 libexecdir='${exec_prefix}/libexec'
1321 datarootdir='${prefix}/share'
1322 datadir='${datarootdir}'
1323 sysconfdir='${prefix}/etc'
1324 sharedstatedir='${prefix}/com'
1325 localstatedir='${prefix}/var'
1326 includedir='${prefix}/include'
1327 oldincludedir='/usr/include'
1328 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1329 infodir='${datarootdir}/info'
1334 libdir='${exec_prefix}/lib'
1335 localedir='${datarootdir}/locale'
1336 mandir='${datarootdir}/man'
1342 # If the previous option needs an argument, assign it.
1343 if test -n "$ac_prev"; then
1344 eval $ac_prev=\$ac_option
1350 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1355 # Accept the important Cygnus configure options, so we can diagnose typos.
1357 case $ac_dashdash$ac_option in
1361 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1363 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1364 bindir=$ac_optarg ;;
1366 -build | --build | --buil | --bui | --bu)
1367 ac_prev=build_alias ;;
1368 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1369 build_alias=$ac_optarg ;;
1371 -cache-file | --cache-file | --cache-fil | --cache-fi \
1372 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1373 ac_prev=cache_file ;;
1374 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1375 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1376 cache_file=$ac_optarg ;;
1378 --config-cache | -C)
1379 cache_file=config.cache ;;
1381 -datadir | --datadir | --datadi | --datad)
1383 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1384 datadir=$ac_optarg ;;
1386 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1387 | --dataroo | --dataro | --datar)
1388 ac_prev=datarootdir ;;
1389 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1390 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1391 datarootdir=$ac_optarg ;;
1393 -disable-* | --disable-*)
1394 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1395 # Reject names that are not valid shell variable names.
1396 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1397 as_fn_error $? "invalid feature name: $ac_useropt"
1398 ac_useropt_orig=$ac_useropt
1399 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1400 case $ac_user_opts in
1402 "enable_$ac_useropt"
1404 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1405 ac_unrecognized_sep=', ';;
1407 eval enable_$ac_useropt=no ;;
1409 -docdir | --docdir | --docdi | --doc | --do)
1411 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1412 docdir=$ac_optarg ;;
1414 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1416 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1417 dvidir=$ac_optarg ;;
1419 -enable-* | --enable-*)
1420 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1421 # Reject names that are not valid shell variable names.
1422 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1423 as_fn_error $? "invalid feature name: $ac_useropt"
1424 ac_useropt_orig=$ac_useropt
1425 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1426 case $ac_user_opts in
1428 "enable_$ac_useropt"
1430 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1431 ac_unrecognized_sep=', ';;
1433 eval enable_$ac_useropt=\$ac_optarg ;;
1435 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1436 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1437 | --exec | --exe | --ex)
1438 ac_prev=exec_prefix ;;
1439 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1440 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1441 | --exec=* | --exe=* | --ex=*)
1442 exec_prefix=$ac_optarg ;;
1444 -gas | --gas | --ga | --g)
1445 # Obsolete; use --with-gas.
1448 -help | --help | --hel | --he | -h)
1449 ac_init_help=long ;;
1450 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1451 ac_init_help=recursive ;;
1452 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1453 ac_init_help=short ;;
1455 -host | --host | --hos | --ho)
1456 ac_prev=host_alias ;;
1457 -host=* | --host=* | --hos=* | --ho=*)
1458 host_alias=$ac_optarg ;;
1460 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1462 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1464 htmldir=$ac_optarg ;;
1466 -includedir | --includedir | --includedi | --included | --include \
1467 | --includ | --inclu | --incl | --inc)
1468 ac_prev=includedir ;;
1469 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1470 | --includ=* | --inclu=* | --incl=* | --inc=*)
1471 includedir=$ac_optarg ;;
1473 -infodir | --infodir | --infodi | --infod | --info | --inf)
1475 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1476 infodir=$ac_optarg ;;
1478 -libdir | --libdir | --libdi | --libd)
1480 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1481 libdir=$ac_optarg ;;
1483 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1484 | --libexe | --libex | --libe)
1485 ac_prev=libexecdir ;;
1486 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1487 | --libexe=* | --libex=* | --libe=*)
1488 libexecdir=$ac_optarg ;;
1490 -localedir | --localedir | --localedi | --localed | --locale)
1491 ac_prev=localedir ;;
1492 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1493 localedir=$ac_optarg ;;
1495 -localstatedir | --localstatedir | --localstatedi | --localstated \
1496 | --localstate | --localstat | --localsta | --localst | --locals)
1497 ac_prev=localstatedir ;;
1498 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1499 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1500 localstatedir=$ac_optarg ;;
1502 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1504 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1505 mandir=$ac_optarg ;;
1507 -nfp | --nfp | --nf)
1508 # Obsolete; use --without-fp.
1511 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1512 | --no-cr | --no-c | -n)
1515 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1516 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1519 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1520 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1521 | --oldin | --oldi | --old | --ol | --o)
1522 ac_prev=oldincludedir ;;
1523 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1524 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1525 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1526 oldincludedir=$ac_optarg ;;
1528 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1530 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1531 prefix=$ac_optarg ;;
1533 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1534 | --program-pre | --program-pr | --program-p)
1535 ac_prev=program_prefix ;;
1536 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1537 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1538 program_prefix=$ac_optarg ;;
1540 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1541 | --program-suf | --program-su | --program-s)
1542 ac_prev=program_suffix ;;
1543 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1544 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1545 program_suffix=$ac_optarg ;;
1547 -program-transform-name | --program-transform-name \
1548 | --program-transform-nam | --program-transform-na \
1549 | --program-transform-n | --program-transform- \
1550 | --program-transform | --program-transfor \
1551 | --program-transfo | --program-transf \
1552 | --program-trans | --program-tran \
1553 | --progr-tra | --program-tr | --program-t)
1554 ac_prev=program_transform_name ;;
1555 -program-transform-name=* | --program-transform-name=* \
1556 | --program-transform-nam=* | --program-transform-na=* \
1557 | --program-transform-n=* | --program-transform-=* \
1558 | --program-transform=* | --program-transfor=* \
1559 | --program-transfo=* | --program-transf=* \
1560 | --program-trans=* | --program-tran=* \
1561 | --progr-tra=* | --program-tr=* | --program-t=*)
1562 program_transform_name=$ac_optarg ;;
1564 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1566 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1567 pdfdir=$ac_optarg ;;
1569 -psdir | --psdir | --psdi | --psd | --ps)
1571 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1575 | -silent | --silent | --silen | --sile | --sil)
1578 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1580 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1582 sbindir=$ac_optarg ;;
1584 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1585 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1586 | --sharedst | --shareds | --shared | --share | --shar \
1588 ac_prev=sharedstatedir ;;
1589 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1590 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1591 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1593 sharedstatedir=$ac_optarg ;;
1595 -site | --site | --sit)
1597 -site=* | --site=* | --sit=*)
1600 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1602 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1603 srcdir=$ac_optarg ;;
1605 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1606 | --syscon | --sysco | --sysc | --sys | --sy)
1607 ac_prev=sysconfdir ;;
1608 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1609 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1610 sysconfdir=$ac_optarg ;;
1612 -target | --target | --targe | --targ | --tar | --ta | --t)
1613 ac_prev=target_alias ;;
1614 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1615 target_alias=$ac_optarg ;;
1617 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1620 -version | --version | --versio | --versi | --vers | -V)
1621 ac_init_version=: ;;
1624 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1625 # Reject names that are not valid shell variable names.
1626 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1627 as_fn_error $? "invalid package name: $ac_useropt"
1628 ac_useropt_orig=$ac_useropt
1629 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1630 case $ac_user_opts in
1634 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1635 ac_unrecognized_sep=', ';;
1637 eval with_$ac_useropt=\$ac_optarg ;;
1639 -without-* | --without-*)
1640 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1641 # Reject names that are not valid shell variable names.
1642 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1643 as_fn_error $? "invalid package name: $ac_useropt"
1644 ac_useropt_orig=$ac_useropt
1645 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1646 case $ac_user_opts in
1650 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1651 ac_unrecognized_sep=', ';;
1653 eval with_$ac_useropt=no ;;
1656 # Obsolete; use --with-x.
1659 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1660 | --x-incl | --x-inc | --x-in | --x-i)
1661 ac_prev=x_includes ;;
1662 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1663 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1664 x_includes=$ac_optarg ;;
1666 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1667 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1668 ac_prev=x_libraries ;;
1669 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1670 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1671 x_libraries=$ac_optarg ;;
1673 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1674 Try \`$0 --help' for more information"
1678 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1679 # Reject names that are not valid shell variable names.
1680 case $ac_envvar in #(
1681 '' | [0-9]* | *[!_$as_cr_alnum]* )
1682 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1684 eval $ac_envvar=\$ac_optarg
1685 export $ac_envvar ;;
1688 # FIXME: should be removed in autoconf 3.0.
1689 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1690 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1691 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1692 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1698 if test -n "$ac_prev"; then
1699 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1700 as_fn_error $? "missing argument to $ac_option"
1703 if test -n "$ac_unrecognized_opts"; then
1704 case $enable_option_checking in
1706 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1707 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1711 # Check all directory arguments for consistency.
1712 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1713 datadir sysconfdir sharedstatedir localstatedir includedir \
1714 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1715 libdir localedir mandir
1717 eval ac_val=\$$ac_var
1718 # Remove trailing slashes.
1721 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1722 eval $ac_var=\$ac_val;;
1724 # Be sure to have absolute directory names.
1726 [\\/$]* | ?:[\\/]* ) continue;;
1727 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1729 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1732 # There might be people who depend on the old broken behavior: `$host'
1733 # used to hold the argument of --host etc.
1734 # FIXME: To remove some day.
1737 target=$target_alias
1739 # FIXME: To remove some day.
1740 if test "x$host_alias" != x; then
1741 if test "x$build_alias" = x; then
1742 cross_compiling=maybe
1743 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1744 If a cross compiler is detected then cross compile mode will be used" >&2
1745 elif test "x$build_alias" != "x$host_alias"; then
1751 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1753 test "$silent" = yes && exec 6>/dev/null
1756 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1757 ac_ls_di=`ls -di .` &&
1758 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1759 as_fn_error $? "working directory cannot be determined"
1760 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1761 as_fn_error $? "pwd does not report name of working directory"
1764 # Find the source files, if location was not specified.
1765 if test -z "$srcdir"; then
1766 ac_srcdir_defaulted=yes
1767 # Try the directory containing this script, then the parent directory.
1768 ac_confdir=`$as_dirname -- "$as_myself" ||
1769 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1770 X"$as_myself" : 'X\(//\)[^/]' \| \
1771 X"$as_myself" : 'X\(//\)$' \| \
1772 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1773 $as_echo X"$as_myself" |
1774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1792 if test ! -r "$srcdir/$ac_unique_file"; then
1796 ac_srcdir_defaulted=no
1798 if test ! -r "$srcdir/$ac_unique_file"; then
1799 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1800 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1802 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1804 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1806 # When building in place, set srcdir=.
1807 if test "$ac_abs_confdir" = "$ac_pwd"; then
1810 # Remove unnecessary trailing slashes from srcdir.
1811 # Double slashes in file names in object file debugging info
1812 # mess up M-x gdb in Emacs.
1814 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1816 for ac_var in $ac_precious_vars; do
1817 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1818 eval ac_env_${ac_var}_value=\$${ac_var}
1819 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1820 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1824 # Report the --help message.
1826 if test "$ac_init_help" = "long"; then
1827 # Omit some internal or obsolete options to make the list less imposing.
1828 # This message is too long to be a string in the A/UX 3.1 sh.
1830 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1832 Usage: $0 [OPTION]... [VAR=VALUE]...
1834 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1835 VAR=VALUE. See below for descriptions of some of the useful variables.
1837 Defaults for the options are specified in brackets.
1840 -h, --help display this help and exit
1841 --help=short display options specific to this package
1842 --help=recursive display the short help of all the included packages
1843 -V, --version display version information and exit
1844 -q, --quiet, --silent do not print \`checking ...' messages
1845 --cache-file=FILE cache test results in FILE [disabled]
1846 -C, --config-cache alias for \`--cache-file=config.cache'
1847 -n, --no-create do not create output files
1848 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1850 Installation directories:
1851 --prefix=PREFIX install architecture-independent files in PREFIX
1852 [$ac_default_prefix]
1853 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1856 By default, \`make install' will install all the files in
1857 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1858 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1859 for instance \`--prefix=\$HOME'.
1861 For better control, use the options below.
1863 Fine tuning of the installation directories:
1864 --bindir=DIR user executables [EPREFIX/bin]
1865 --sbindir=DIR system admin executables [EPREFIX/sbin]
1866 --libexecdir=DIR program executables [EPREFIX/libexec]
1867 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1868 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1869 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1870 --libdir=DIR object code libraries [EPREFIX/lib]
1871 --includedir=DIR C header files [PREFIX/include]
1872 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1873 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1874 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1875 --infodir=DIR info documentation [DATAROOTDIR/info]
1876 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1877 --mandir=DIR man documentation [DATAROOTDIR/man]
1878 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1879 --htmldir=DIR html documentation [DOCDIR]
1880 --dvidir=DIR dvi documentation [DOCDIR]
1881 --pdfdir=DIR pdf documentation [DOCDIR]
1882 --psdir=DIR ps documentation [DOCDIR]
1888 --build=BUILD configure for building on BUILD [guessed]
1889 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1893 if test -n "$ac_init_help"; then
1894 case $ac_init_help in
1895 short | recursive ) echo "Configuration of asterisk trunk:";;
1900 --disable-option-checking ignore unrecognized --enable/--with options
1901 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1902 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1903 --enable-dev-mode Turn on developer mode
1904 --enable-coverage Turn on code coverage tracking (for gcov)
1905 --disable-xmldoc Explicitly disable XML documentation
1906 --disable-largefile omit support for large files
1907 --enable-internal-poll Use Asterisk's poll implementation
1908 --disable-asteriskssl Disable Asterisk's SSL wrapper library
1911 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1912 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1913 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1914 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1915 --with-bfd=PATH use Debug symbol decoding files in PATH
1916 --with-execinfo=PATH use Stack Backtrace files in PATH
1917 --with-bluetooth=PATH use Bluetooth files in PATH
1918 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1919 --with-cpg=PATH use Corosync files in PATH
1920 --with-curses=PATH use curses files in PATH
1921 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1922 --with-dahdi=PATH use DAHDI files in PATH
1923 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1924 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1926 --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
1928 --with-gtk2=PATH use gtk2 files in PATH
1929 --with-gmime=PATH use GMime files in PATH
1930 --with-h323=PATH use OpenH323 files in PATH
1931 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1932 --with-ical=PATH use iCal files in PATH
1933 --with-iconv=PATH use Iconv files in PATH
1934 --with-iksemel=PATH use Iksemel Jabber files in PATH
1935 --with-imap=PATH use UW IMAP Toolkit files in PATH
1936 --with-inotify=PATH use inotify support files in PATH
1937 --with-iodbc=PATH use iODBC files in PATH
1938 --with-isdnnet=PATH use ISDN4Linux files in PATH
1939 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1940 --with-kqueue=PATH use kqueue support files in PATH
1941 --with-ldap=PATH use OpenLDAP files in PATH
1942 --with-libcurl=DIR look for the curl library in DIR
1943 --with-libxml2=PATH use LibXML2 files in PATH
1944 --with-ltdl=PATH use libtool files in PATH
1945 --with-lua=PATH use Lua files in PATH
1946 --with-misdn=PATH use mISDN user files in PATH
1947 --with-mysqlclient=PATH use MySQL client files in PATH
1948 --with-nbs=PATH use Network Broadcast Sound files in PATH
1949 --with-ncurses=PATH use ncurses files in PATH
1950 --with-neon=PATH use neon files in PATH
1951 --with-neon29=PATH use neon29 files in PATH
1952 --with-netsnmp=PATH use Net-SNMP files in PATH
1953 --with-newt=PATH use newt files in PATH
1954 --with-ogg=PATH use OGG files in PATH
1955 --with-openr2=PATH use MFR2 files in PATH
1956 --with-osptk=PATH use OSP Toolkit files in PATH
1957 --with-oss=PATH use Open Sound System files in PATH
1958 --with-postgres=PATH use PostgreSQL files in PATH
1959 --with-popt=PATH use popt files in PATH
1960 --with-portaudio=PATH use PortAudio files in PATH
1961 --with-pri=PATH use ISDN PRI files in PATH
1962 --with-pwlib=PATH use PWlib files in PATH
1963 --with-radius=PATH use Radius Client files in PATH
1964 --with-resample=PATH use LIBRESAMPLE files in PATH
1965 --with-sdl=PATH use Sdl files in PATH
1966 --with-SDL_image=PATH use Sdl Image files in PATH
1967 --with-sounds-cache=PATH
1968 use cached sound tarfiles in PATH
1969 --with-spandsp=PATH use SPANDSP files in PATH
1970 --with-ss7=PATH use ISDN SS7 files in PATH
1971 --with-speex=PATH use Speex files in PATH
1972 --with-speex=PATH use Speex preprocess routines files in PATH
1973 --with-speexdsp=PATH use SpeexDSP files in PATH
1974 --with-sqlite=PATH use SQLite files in PATH
1975 --with-sqlite3=PATH use SQLite files in PATH
1976 --with-srtp=PATH use Secure RTP files in PATH
1977 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1978 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1979 --with-tds=PATH use FreeTDS files in PATH
1980 --with-termcap=PATH use Termcap files in PATH
1981 --with-timerfd=PATH use timerfd files in PATH
1982 --with-tinfo=PATH use Term Info files in PATH
1983 --with-tonezone=PATH use tonezone files in PATH
1984 --with-unixodbc=PATH use unixODBC files in PATH
1985 --with-vorbis=PATH use Vorbis files in PATH
1986 --with-vpb=PATH use Voicetronix API files in PATH
1987 --with-x11=PATH use X11 files in PATH
1988 --with-z=PATH use zlib compression files in PATH
1990 Some influential environment variables:
1991 CC C compiler command
1992 CFLAGS C compiler flags
1993 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1994 nonstandard directory <lib dir>
1995 LIBS libraries to pass to the linker, e.g. -l<library>
1996 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1997 you have headers in a nonstandard directory <include dir>
1999 CXX C++ compiler command
2000 CXXFLAGS C++ compiler flags
2001 CXXCPP C++ preprocessor
2002 PKG_CONFIG path to pkg-config utility
2004 directories to add to pkg-config's search path
2006 path overriding pkg-config's built-in search path
2007 ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
2008 ILBC_LIBS linker flags for ILBC, overriding pkg-config
2010 C compiler flags for GMIME, overriding pkg-config
2011 GMIME_LIBS linker flags for GMIME, overriding pkg-config
2012 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2013 GTK2_LIBS linker flags for GTK2, overriding pkg-config
2015 Use these variables to override the choices made by `configure' or to help
2016 it to find libraries and programs with nonstandard names/locations.
2018 Report bugs to <https://issues.asterisk.org>.
2023 if test "$ac_init_help" = "recursive"; then
2024 # If there are subdirs, report their specific --help.
2025 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2026 test -d "$ac_dir" ||
2027 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2035 # A ".." for each directory in $ac_dir_suffix.
2036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2037 case $ac_top_builddir_sub in
2038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2042 ac_abs_top_builddir=$ac_pwd
2043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2044 # for backward compatibility:
2045 ac_top_builddir=$ac_top_build_prefix
2048 .) # We are building in place.
2050 ac_top_srcdir=$ac_top_builddir_sub
2051 ac_abs_top_srcdir=$ac_pwd ;;
2052 [\\/]* | ?:[\\/]* ) # Absolute name.
2053 ac_srcdir=$srcdir$ac_dir_suffix;
2054 ac_top_srcdir=$srcdir
2055 ac_abs_top_srcdir=$srcdir ;;
2057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2058 ac_top_srcdir=$ac_top_build_prefix$srcdir
2059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2063 cd "$ac_dir" || { ac_status=$?; continue; }
2064 # Check for guested configure.
2065 if test -f "$ac_srcdir/configure.gnu"; then
2067 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2068 elif test -f "$ac_srcdir/configure"; then
2070 $SHELL "$ac_srcdir/configure" --help=recursive
2072 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2074 cd "$ac_pwd" || { ac_status=$?; break; }
2078 test -n "$ac_init_help" && exit $ac_status
2079 if $ac_init_version; then
2081 asterisk configure trunk
2082 generated by GNU Autoconf 2.68
2084 Copyright (C) 2010 Free Software Foundation, Inc.
2085 This configure script is free software; the Free Software Foundation
2086 gives unlimited permission to copy, distribute and modify it.
2093 ## ------------------------ ##
2094 ## Autoconf initialization. ##
2095 ## ------------------------ ##
2097 # ac_fn_c_try_compile LINENO
2098 # --------------------------
2099 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_c_try_compile ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 rm -f conftest.$ac_objext
2104 if { { ac_try="$ac_compile"
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 $as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_compile") 2>conftest.err
2113 if test -s conftest.err; then
2114 grep -v '^ *+' conftest.err >conftest.er1
2115 cat conftest.er1 >&5
2116 mv -f conftest.er1 conftest.err
2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119 test $ac_status = 0; } && {
2120 test -z "$ac_c_werror_flag" ||
2121 test ! -s conftest.err
2122 } && test -s conftest.$ac_objext; then :
2125 $as_echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 as_fn_set_status $ac_retval
2133 } # ac_fn_c_try_compile
2135 # ac_fn_c_try_cpp LINENO
2136 # ----------------------
2137 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 if { { ac_try="$ac_cpp conftest.$ac_ext"
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } > conftest.i && {
2157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2158 test ! -s conftest.err
2162 $as_echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 as_fn_set_status $ac_retval
2172 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2173 # -------------------------------------------------------
2174 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2175 # the include files in INCLUDES and setting the cache variable VAR
2177 ac_fn_c_check_header_mongrel ()
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 if eval \${$3+:} false; then :
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182 $as_echo_n "checking for $2... " >&6; }
2183 if eval \${$3+:} false; then :
2184 $as_echo_n "(cached) " >&6
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2190 # Is the header compilable?
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2192 $as_echo_n "checking $2 usability... " >&6; }
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199 ac_header_compiler=yes
2201 ac_header_compiler=no
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2205 $as_echo "$ac_header_compiler" >&6; }
2207 # Is the header present?
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2209 $as_echo_n "checking $2 presence... " >&6; }
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2214 if ac_fn_c_try_cpp "$LINENO"; then :
2215 ac_header_preproc=yes
2217 ac_header_preproc=no
2219 rm -f conftest.err conftest.i conftest.$ac_ext
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2221 $as_echo "$ac_header_preproc" >&6; }
2223 # So? What about this header?
2224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2227 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2229 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2233 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2235 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2237 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2239 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2241 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2242 ( $as_echo "## ------------------------------------------ ##
2243 ## Report this to https://issues.asterisk.org ##
2244 ## ------------------------------------------ ##"
2245 ) | sed "s/^/$as_me: WARNING: /" >&2
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if eval \${$3+:} false; then :
2251 $as_echo_n "(cached) " >&6
2253 eval "$3=\$ac_header_compiler"
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261 } # ac_fn_c_check_header_mongrel
2263 # ac_fn_c_try_run LINENO
2264 # ----------------------
2265 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2266 # that executables *can* be run.
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 if { { ac_try="$ac_link"
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_link") 2>&5
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2281 { { case "(($ac_try" in
2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283 *) ac_try_echo=$ac_try;;
2285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286 $as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_try") 2>&5
2289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2290 test $ac_status = 0; }; }; then :
2293 $as_echo "$as_me: program exited with status $ac_status" >&5
2294 $as_echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2297 ac_retval=$ac_status
2299 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301 as_fn_set_status $ac_retval
2305 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2306 # -------------------------------------------------------
2307 # Tests whether HEADER exists and can be compiled using the include files in
2308 # INCLUDES, setting the cache variable VAR accordingly.
2309 ac_fn_c_check_header_compile ()
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313 $as_echo_n "checking for $2... " >&6; }
2314 if eval \${$3+:} false; then :
2315 $as_echo_n "(cached) " >&6
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2322 if ac_fn_c_try_compile "$LINENO"; then :
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2334 } # ac_fn_c_check_header_compile
2336 # ac_fn_cxx_try_compile LINENO
2337 # ----------------------------
2338 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2339 ac_fn_cxx_try_compile ()
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 rm -f conftest.$ac_objext
2343 if { { ac_try="$ac_compile"
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2349 $as_echo "$ac_try_echo"; } >&5
2350 (eval "$ac_compile") 2>conftest.err
2352 if test -s conftest.err; then
2353 grep -v '^ *+' conftest.err >conftest.er1
2354 cat conftest.er1 >&5
2355 mv -f conftest.er1 conftest.err
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; } && {
2359 test -z "$ac_cxx_werror_flag" ||
2360 test ! -s conftest.err
2361 } && test -s conftest.$ac_objext; then :
2364 $as_echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370 as_fn_set_status $ac_retval
2372 } # ac_fn_cxx_try_compile
2374 # ac_fn_cxx_try_cpp LINENO
2375 # ------------------------
2376 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2377 ac_fn_cxx_try_cpp ()
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 if { { ac_try="$ac_cpp conftest.$ac_ext"
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2386 $as_echo "$ac_try_echo"; } >&5
2387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2389 if test -s conftest.err; then
2390 grep -v '^ *+' conftest.err >conftest.er1
2391 cat conftest.er1 >&5
2392 mv -f conftest.er1 conftest.err
2394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2395 test $ac_status = 0; } > conftest.i && {
2396 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2397 test ! -s conftest.err
2401 $as_echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2406 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407 as_fn_set_status $ac_retval
2409 } # ac_fn_cxx_try_cpp
2411 # ac_fn_c_try_link LINENO
2412 # -----------------------
2413 # Try to link conftest.$ac_ext, and return whether this succeeded.
2416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417 rm -f conftest.$ac_objext conftest$ac_exeext
2418 if { { ac_try="$ac_link"
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2424 $as_echo "$ac_try_echo"; } >&5
2425 (eval "$ac_link") 2>conftest.err
2427 if test -s conftest.err; then
2428 grep -v '^ *+' conftest.err >conftest.er1
2429 cat conftest.er1 >&5
2430 mv -f conftest.er1 conftest.err
2432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2433 test $ac_status = 0; } && {
2434 test -z "$ac_c_werror_flag" ||
2435 test ! -s conftest.err
2436 } && test -s conftest$ac_exeext && {
2437 test "$cross_compiling" = yes ||
2438 $as_test_x conftest$ac_exeext
2442 $as_echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2447 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2448 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2449 # interfere with the next link command; also delete a directory that is
2450 # left behind by Apple's compiler. We do this before executing the actions.
2451 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2452 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2453 as_fn_set_status $ac_retval
2455 } # ac_fn_c_try_link
2457 # ac_fn_c_check_func LINENO FUNC VAR
2458 # ----------------------------------
2459 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2460 ac_fn_c_check_func ()
2462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2464 $as_echo_n "checking for $2... " >&6; }
2465 if eval \${$3+:} false; then :
2466 $as_echo_n "(cached) " >&6
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2470 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2472 #define $2 innocuous_$2
2474 /* System header to define __stub macros and hopefully few prototypes,
2475 which can conflict with char $2 (); below.
2476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2477 <limits.h> exists even on freestanding compilers. */
2480 # include <limits.h>
2482 # include <assert.h>
2487 /* Override any GCC internal prototype to avoid an error.
2488 Use char because int might match the return type of a GCC
2489 builtin and then its argument prototype would still apply. */
2494 /* The GNU C library defines this for functions which it implements
2495 to always fail with ENOSYS. Some functions are actually named
2496 something starting with __ and the normal name is an alias. */
2497 #if defined __stub_$2 || defined __stub___$2
2509 if ac_fn_c_try_link "$LINENO"; then :
2514 rm -f core conftest.err conftest.$ac_objext \
2515 conftest$ac_exeext conftest.$ac_ext
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2519 $as_echo "$ac_res" >&6; }
2520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2522 } # ac_fn_c_check_func
2524 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2525 # -------------------------------------------
2526 # Tests whether TYPE exists after having included INCLUDES, setting cache
2527 # variable VAR accordingly.
2528 ac_fn_c_check_type ()
2530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2532 $as_echo_n "checking for $2... " >&6; }
2533 if eval \${$3+:} false; then :
2534 $as_echo_n "(cached) " >&6
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2549 if ac_fn_c_try_compile "$LINENO"; then :
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2562 if ac_fn_c_try_compile "$LINENO"; then :
2567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2573 $as_echo "$ac_res" >&6; }
2574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576 } # ac_fn_c_check_type
2578 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2579 # ----------------------------------------------------
2580 # Tries to find if the field MEMBER exists in type AGGR, after including
2581 # INCLUDES, setting cache variable VAR accordingly.
2582 ac_fn_c_check_member ()
2584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2586 $as_echo_n "checking for $2.$3... " >&6; }
2587 if eval \${$4+:} false; then :
2588 $as_echo_n "(cached) " >&6
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2603 if ac_fn_c_try_compile "$LINENO"; then :
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2613 if (sizeof ac_aggr.$3)
2619 if ac_fn_c_try_compile "$LINENO"; then :
2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 } # ac_fn_c_check_member
2635 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2636 # --------------------------------------------
2637 # Tries to find the compile-time value of EXPR in a program that includes
2638 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2640 ac_fn_c_compute_int ()
2642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643 if test "$cross_compiling" = yes; then
2644 # Depending upon the size, compute the lo and hi bounds.
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646 /* end confdefs.h. */
2651 static int test_array [1 - 2 * !(($2) >= 0)];
2658 if ac_fn_c_try_compile "$LINENO"; then :
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2667 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2674 if ac_fn_c_try_compile "$LINENO"; then :
2675 ac_hi=$ac_mid; break
2677 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2678 if test $ac_lo -le $ac_mid; then
2682 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2693 static int test_array [1 - 2 * !(($2) < 0)];
2700 if ac_fn_c_try_compile "$LINENO"; then :
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2709 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2716 if ac_fn_c_try_compile "$LINENO"; then :
2717 ac_lo=$ac_mid; break
2719 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2720 if test $ac_mid -le $ac_hi; then
2724 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 # Binary search between lo and hi bounds.
2735 while test "x$ac_lo" != "x$ac_hi"; do
2736 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2743 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2750 if ac_fn_c_try_compile "$LINENO"; then :
2753 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2758 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2765 static long int longval () { return $2; }
2766 static unsigned long int ulongval () { return $2; }
2773 FILE *f = fopen ("conftest.val", "w");
2778 long int i = longval ();
2781 fprintf (f, "%ld", i);
2785 unsigned long int i = ulongval ();
2788 fprintf (f, "%lu", i);
2790 /* Do not output a trailing newline, as this causes \r\n confusion
2791 on some platforms. */
2792 return ferror (f) || fclose (f) != 0;
2798 if ac_fn_c_try_run "$LINENO"; then :
2799 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2804 conftest.$ac_objext conftest.beam conftest.$ac_ext
2808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2809 as_fn_set_status $ac_retval
2811 } # ac_fn_c_compute_int
2813 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2814 # ---------------------------------------------------------
2815 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2816 # the include files in INCLUDES and setting the cache variable VAR
2818 ac_fn_cxx_check_header_mongrel ()
2820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2821 if eval \${$3+:} false; then :
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2823 $as_echo_n "checking for $2... " >&6; }
2824 if eval \${$3+:} false; then :
2825 $as_echo_n "(cached) " >&6
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2831 # Is the header compilable?
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2833 $as_echo_n "checking $2 usability... " >&6; }
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2839 if ac_fn_cxx_try_compile "$LINENO"; then :
2840 ac_header_compiler=yes
2842 ac_header_compiler=no
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2846 $as_echo "$ac_header_compiler" >&6; }
2848 # Is the header present?
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2850 $as_echo_n "checking $2 presence... " >&6; }
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2855 if ac_fn_cxx_try_cpp "$LINENO"; then :
2856 ac_header_preproc=yes
2858 ac_header_preproc=no
2860 rm -f conftest.err conftest.i conftest.$ac_ext
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2862 $as_echo "$ac_header_preproc" >&6; }
2864 # So? What about this header?
2865 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2868 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2874 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2876 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2878 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2880 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2883 ( $as_echo "## ------------------------------------------ ##
2884 ## Report this to https://issues.asterisk.org ##
2885 ## ------------------------------------------ ##"
2886 ) | sed "s/^/$as_me: WARNING: /" >&2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2890 $as_echo_n "checking for $2... " >&6; }
2891 if eval \${$3+:} false; then :
2892 $as_echo_n "(cached) " >&6
2894 eval "$3=\$ac_header_compiler"
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2898 $as_echo "$ac_res" >&6; }
2900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2902 } # ac_fn_cxx_check_header_mongrel
2904 # ac_fn_cxx_try_link LINENO
2905 # -------------------------
2906 # Try to link conftest.$ac_ext, and return whether this succeeded.
2907 ac_fn_cxx_try_link ()
2909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2910 rm -f conftest.$ac_objext conftest$ac_exeext
2911 if { { ac_try="$ac_link"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2917 $as_echo "$ac_try_echo"; } >&5
2918 (eval "$ac_link") 2>conftest.err
2920 if test -s conftest.err; then
2921 grep -v '^ *+' conftest.err >conftest.er1
2922 cat conftest.er1 >&5
2923 mv -f conftest.er1 conftest.err
2925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2926 test $ac_status = 0; } && {
2927 test -z "$ac_cxx_werror_flag" ||
2928 test ! -s conftest.err
2929 } && test -s conftest$ac_exeext && {
2930 test "$cross_compiling" = yes ||
2931 $as_test_x conftest$ac_exeext
2935 $as_echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2940 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2941 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2942 # interfere with the next link command; also delete a directory that is
2943 # left behind by Apple's compiler. We do this before executing the actions.
2944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2946 as_fn_set_status $ac_retval
2948 } # ac_fn_cxx_try_link
2950 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2951 # ---------------------------------------------------------
2952 # Tests whether HEADER exists and can be compiled using the include files in
2953 # INCLUDES, setting the cache variable VAR accordingly.
2954 ac_fn_cxx_check_header_compile ()
2956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2958 $as_echo_n "checking for $2... " >&6; }
2959 if eval \${$3+:} false; then :
2960 $as_echo_n "(cached) " >&6
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963 /* end confdefs.h. */
2967 if ac_fn_cxx_try_compile "$LINENO"; then :
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2976 $as_echo "$ac_res" >&6; }
2977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979 } # ac_fn_cxx_check_header_compile
2980 cat >config.log <<_ACEOF
2981 This file contains any messages produced by compilers while
2982 running configure, to aid debugging if configure makes a mistake.
2984 It was created by asterisk $as_me trunk, which was
2985 generated by GNU Autoconf 2.68. Invocation command line was
2997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 $as_echo "PATH: $as_dir"
3037 # Keep a trace of the command line.
3038 # Strip out --no-create and --no-recursion so they do not pile up.
3039 # Strip out --silent because we don't want to record it for future runs.
3040 # Also quote any args containing shell meta-characters.
3041 # Make two passes to allow for proper duplicate-argument suppression.
3045 ac_must_keep_next=false
3051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3053 | -silent | --silent | --silen | --sile | --sil)
3056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3061 as_fn_append ac_configure_args1 " '$ac_arg'"
3062 if test $ac_must_keep_next = true; then
3063 ac_must_keep_next=false # Got value, back to normal.
3066 *=* | --config-cache | -C | -disable-* | --disable-* \
3067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3069 | -with-* | --with-* | -without-* | --without-* | --x)
3070 case "$ac_configure_args0 " in
3071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3074 -* ) ac_must_keep_next=true ;;
3077 as_fn_append ac_configure_args " '$ac_arg'"
3082 { ac_configure_args0=; unset ac_configure_args0;}
3083 { ac_configure_args1=; unset ac_configure_args1;}
3085 # When interrupted or exit'd, cleanup temporary files, and complete
3086 # config.log. We remove comments because anyway the quotes in there
3087 # would cause problems or look ugly.
3088 # WARNING: Use '\'' to represent an apostrophe within the trap.
3089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3090 trap 'exit_status=$?
3091 # Save into config.log some information that might help in debugging.
3095 $as_echo "## ---------------- ##
3096 ## Cache variables. ##
3097 ## ---------------- ##"
3099 # The following way of writing the cache mishandles newlines in values,
3101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3102 eval ac_val=\$$ac_var
3106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3110 _ | IFS | as_nl) ;; #(
3111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3112 *) { eval $ac_var=; unset $ac_var;} ;;
3117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3118 *${as_nl}ac_space=\ *)
3120 "s/'\''/'\''\\\\'\'''\''/g;
3121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3131 $as_echo "## ----------------- ##
3132 ## Output variables. ##
3133 ## ----------------- ##"
3135 for ac_var in $ac_subst_vars
3137 eval ac_val=\$$ac_var
3139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3141 $as_echo "$ac_var='\''$ac_val'\''"
3145 if test -n "$ac_subst_files"; then
3146 $as_echo "## ------------------- ##
3147 ## File substitutions. ##
3148 ## ------------------- ##"
3150 for ac_var in $ac_subst_files
3152 eval ac_val=\$$ac_var
3154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3156 $as_echo "$ac_var='\''$ac_val'\''"
3161 if test -s confdefs.h; then
3162 $as_echo "## ----------- ##
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3177 for ac_signal in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3183 rm -f -r conftest* confdefs.h
3185 $as_echo "/* confdefs.h */" > confdefs.h
3187 # Predefined preprocessor variables.
3189 cat >>confdefs.h <<_ACEOF
3190 #define PACKAGE_NAME "$PACKAGE_NAME"
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_STRING "$PACKAGE_STRING"
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_URL "$PACKAGE_URL"
3214 # Let the site file select an alternate cache file if it wants to.
3215 # Prefer an explicitly selected file to automatically selected ones.
3218 if test -n "$CONFIG_SITE"; then
3219 # We do not want a PATH search for config.site.
3220 case $CONFIG_SITE in #((
3221 -*) ac_site_file1=./$CONFIG_SITE;;
3222 */*) ac_site_file1=$CONFIG_SITE;;
3223 *) ac_site_file1=./$CONFIG_SITE;;
3225 elif test "x$prefix" != xNONE; then
3226 ac_site_file1=$prefix/share/config.site
3227 ac_site_file2=$prefix/etc/config.site
3229 ac_site_file1=$ac_default_prefix/share/config.site
3230 ac_site_file2=$ac_default_prefix/etc/config.site
3232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3234 test "x$ac_site_file" = xNONE && continue
3235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3238 sed 's/^/| /' "$ac_site_file" >&5
3240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "failed to load site script $ac_site_file
3243 See \`config.log' for more details" "$LINENO" 5; }
3247 if test -r "$cache_file"; then
3248 # Some versions of bash will fail to source /dev/null (special files
3249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3252 $as_echo "$as_me: loading cache $cache_file" >&6;}
3254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3255 *) . "./$cache_file";;
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3260 $as_echo "$as_me: creating cache $cache_file" >&6;}
3264 as_fn_append ac_header_list " stdlib.h"
3265 as_fn_append ac_header_list " unistd.h"
3266 as_fn_append ac_header_list " sys/param.h"
3267 as_fn_append ac_header_list " utime.h"
3268 # Check that the precious variables saved in the cache have kept the same
3270 ac_cache_corrupted=false
3271 for ac_var in $ac_precious_vars; do
3272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3273 eval ac_new_set=\$ac_env_${ac_var}_set
3274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3275 eval ac_new_val=\$ac_env_${ac_var}_value
3276 case $ac_old_set,$ac_new_set in
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3279 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3283 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3284 ac_cache_corrupted=: ;;
3287 if test "x$ac_old_val" != "x$ac_new_val"; then
3288 # differences in whitespace do not lead to failure.
3289 ac_old_val_w=`echo x $ac_old_val`
3290 ac_new_val_w=`echo x $ac_new_val`
3291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3294 ac_cache_corrupted=:
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3298 eval $ac_var=\$ac_old_val
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3301 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3306 # Pass precious variables to config.status.
3307 if test "$ac_new_set" = set; then
3309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3310 *) ac_arg=$ac_var=$ac_new_val ;;
3312 case " $ac_configure_args " in
3313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3318 if $ac_cache_corrupted; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3323 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3325 ## -------------------- ##
3326 ## Main body of script. ##
3327 ## -------------------- ##
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337 # cross-compile macros
3339 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3340 if test -f "$ac_dir/install-sh"; then
3342 ac_install_sh="$ac_aux_dir/install-sh -c"
3344 elif test -f "$ac_dir/install.sh"; then
3346 ac_install_sh="$ac_aux_dir/install.sh -c"
3348 elif test -f "$ac_dir/shtool"; then
3350 ac_install_sh="$ac_aux_dir/shtool install -c"
3354 if test -z "$ac_aux_dir"; then
3355 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3358 # These three variables are undocumented and unsupported,
3359 # and are intended to be withdrawn in a future Autoconf release.
3360 # They can cause serious problems if a builder's source tree is in a directory
3361 # whose full name contains unusual characters.
3362 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3363 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3364 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3367 # Make sure we can run config.sub.
3368 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3369 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3372 $as_echo_n "checking build system type... " >&6; }
3373 if ${ac_cv_build+:} false; then :
3374 $as_echo_n "(cached) " >&6
3376 ac_build_alias=$build_alias
3377 test "x$ac_build_alias" = x &&
3378 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3379 test "x$ac_build_alias" = x &&
3380 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3381 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3382 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3386 $as_echo "$ac_cv_build" >&6; }
3387 case $ac_cv_build in
3389 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3392 ac_save_IFS=$IFS; IFS='-'
3398 # Remember, the first character of IFS is used to create $*,
3399 # except with old shells:
3402 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3406 $as_echo_n "checking host system type... " >&6; }
3407 if ${ac_cv_host+:} false; then :
3408 $as_echo_n "(cached) " >&6
3410 if test "x$host_alias" = x; then
3411 ac_cv_host=$ac_cv_build
3413 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3419 $as_echo "$ac_cv_host" >&6; }
3422 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3425 ac_save_IFS=$IFS; IFS='-'
3431 # Remember, the first character of IFS is used to create $*,
3432 # except with old shells:
3435 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3439 # check existence of the package
3443 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3444 if test -f "$ac_dir/install-sh"; then
3446 ac_install_sh="$ac_aux_dir/install-sh -c"
3448 elif test -f "$ac_dir/install.sh"; then
3450 ac_install_sh="$ac_aux_dir/install.sh -c"
3452 elif test -f "$ac_dir/shtool"; then
3454 ac_install_sh="$ac_aux_dir/shtool install -c"
3458 if test -z "$ac_aux_dir"; then
3459 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3462 # These three variables are undocumented and unsupported,
3463 # and are intended to be withdrawn in a future Autoconf release.
3464 # They can cause serious problems if a builder's source tree is in a directory
3465 # whose full name contains unusual characters.
3466 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3467 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3468 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3475 # preserve any CFLAGS or LDFLAGS that may be set
3476 # NOTE: This must be done before calling any macros that end up
3477 # calling AC_PROG_CC or the like, since they will set a default
3478 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3479 # we don't want those default flags to be carried over into the
3480 # rest of the build system since we have other means of controlling
3481 # debugging symbol generation and optimization.
3482 CONFIG_CFLAGS="${CFLAGS}"
3483 CONFIG_LDFLAGS="${LDFLAGS}"
3487 # specify output header file
3488 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3491 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3492 # other macro that uses the C compiler, or the default order will be used.
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 if test -n "$ac_tool_prefix"; then
3499 for ac_prog in gcc cc
3501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC="$CC" # Let the user override the test.
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 if test -n "$CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3538 test -n "$CC" && break
3541 if test -z "$CC"; then
3543 for ac_prog in gcc cc
3545 # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy $ac_prog; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$ac_ct_CC"; then
3553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_ac_ct_CC="$ac_prog"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3573 if test -n "$ac_ct_CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3575 $as_echo "$ac_ct_CC" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3582 test -n "$ac_ct_CC" && break
3585 if test "x$ac_ct_CC" = x; then
3588 case $cross_compiling:$ac_tool_warned in
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned=yes ;;
3599 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "no acceptable C compiler found in \$PATH
3602 See \`config.log' for more details" "$LINENO" 5; }
3604 # Provide some information about the compiler.
3605 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3608 for ac_option in --version -v -V -qversion; do
3609 { { ac_try="$ac_compiler $ac_option >&5"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3618 if test -s conftest.err; then
3620 ... rest of stderr output deleted ...
3621 10q' conftest.err >conftest.er1
3622 cat conftest.er1 >&5
3624 rm -f conftest.er1 conftest.err
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3640 ac_clean_files_save=$ac_clean_files
3641 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3642 # Try to create an executable without -o first, disregard a.out.
3643 # It will help us diagnose broken compilers, and finding out an intuition
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3646 $as_echo_n "checking whether the C compiler works... " >&6; }
3647 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3649 # The possible output files:
3650 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3653 for ac_file in $ac_files
3656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3662 if { { ac_try="$ac_link_default"
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_link_default") 2>&5
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; then :
3673 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3674 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3675 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3676 # so that the user can short-circuit this test for compilers unknown to
3678 for ac_file in $ac_files ''
3680 test -f "$ac_file" || continue
3682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3685 # We found the default executable, but exeext='' is most
3689 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3691 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3693 # We set ac_cv_exeext here because the later test for it is not
3694 # safe: cross compilers may not add the suffix if given an `-o'
3695 # argument, so we may need to know it at that point already.
3696 # Even if this section looks crufty: it has the advantage of
3703 test "$ac_cv_exeext" = no && ac_cv_exeext=
3708 if test -z "$ac_file"; then :
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3711 $as_echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error 77 "C compiler cannot create executables
3717 See \`config.log' for more details" "$LINENO" 5; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3720 $as_echo "yes" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3723 $as_echo_n "checking for C compiler default output file name... " >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3725 $as_echo "$ac_file" >&6; }
3726 ac_exeext=$ac_cv_exeext
3728 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3729 ac_clean_files=$ac_clean_files_save
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3731 $as_echo_n "checking for suffix of executables... " >&6; }
3732 if { { ac_try="$ac_link"
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739 (eval "$ac_link") 2>&5
3741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742 test $ac_status = 0; }; then :
3743 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3744 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3745 # work properly (i.e., refer to `conftest.exe'), while it won't with
3747 for ac_file in conftest.exe conftest conftest.*; do
3748 test -f "$ac_file" || continue
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3751 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3760 See \`config.log' for more details" "$LINENO" 5; }
3762 rm -f conftest conftest$ac_cv_exeext
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3764 $as_echo "$ac_cv_exeext" >&6; }
3766 rm -f conftest.$ac_ext
3767 EXEEXT=$ac_cv_exeext
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3775 FILE *f = fopen ("conftest.out", "w");
3776 return ferror (f) || fclose (f) != 0;
3782 ac_clean_files="$ac_clean_files conftest.out"
3783 # Check that the compiler produces executables we can run. If not, either
3784 # the compiler is broken, or we cross compile.
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3786 $as_echo_n "checking whether we are cross compiling... " >&6; }
3787 if test "$cross_compiling" != yes; then
3788 { { ac_try="$ac_link"
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_link") 2>&5
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }
3799 if { ac_try='./conftest$ac_cv_exeext'
3800 { { case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_try") 2>&5
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }; }; then
3812 if test "$cross_compiling" = maybe; then
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error $? "cannot run C compiled programs.
3818 If you meant to cross compile, use \`--host'.
3819 See \`config.log' for more details" "$LINENO" 5; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3824 $as_echo "$cross_compiling" >&6; }
3826 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3827 ac_clean_files=$ac_clean_files_save
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3829 $as_echo_n "checking for suffix of object files... " >&6; }
3830 if ${ac_cv_objext+:} false; then :
3831 $as_echo_n "(cached) " >&6
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3844 rm -f conftest.o conftest.obj
3845 if { { ac_try="$ac_compile"
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_compile") 2>&5
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }; then :
3856 for ac_file in conftest.o conftest.obj conftest.*; do
3857 test -f "$ac_file" || continue;
3859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3860 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3865 $as_echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870 as_fn_error $? "cannot compute suffix of object files: cannot compile
3871 See \`config.log' for more details" "$LINENO" 5; }
3873 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3876 $as_echo "$ac_cv_objext" >&6; }
3877 OBJEXT=$ac_cv_objext
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3880 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3881 if ${ac_cv_c_compiler_gnu+:} false; then :
3882 $as_echo_n "(cached) " >&6
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3898 if ac_fn_c_try_compile "$LINENO"; then :
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3908 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3909 if test $ac_compiler_gnu = yes; then
3914 ac_test_CFLAGS=${CFLAGS+set}
3915 ac_save_CFLAGS=$CFLAGS
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3917 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3918 if ${ac_cv_prog_cc_g+:} false; then :
3919 $as_echo_n "(cached) " >&6
3921 ac_save_c_werror_flag=$ac_c_werror_flag
3922 ac_c_werror_flag=yes
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3936 if ac_fn_c_try_compile "$LINENO"; then :
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3951 if ac_fn_c_try_compile "$LINENO"; then :
3954 ac_c_werror_flag=$ac_save_c_werror_flag
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3967 if ac_fn_c_try_compile "$LINENO"; then :
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 ac_c_werror_flag=$ac_save_c_werror_flag
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3978 $as_echo "$ac_cv_prog_cc_g" >&6; }
3979 if test "$ac_test_CFLAGS" = set; then
3980 CFLAGS=$ac_save_CFLAGS
3981 elif test $ac_cv_prog_cc_g = yes; then
3982 if test "$GCC" = yes; then
3988 if test "$GCC" = yes; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3995 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3996 if ${ac_cv_prog_cc_c89+:} false; then :
3997 $as_echo_n "(cached) " >&6
3999 ac_cv_prog_cc_c89=no
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4005 #include <sys/types.h>
4006 #include <sys/stat.h>
4007 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4008 struct buf { int x; };
4009 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4010 static char *e (p, i)
4016 static char *f (char * (*g) (char **, int), char **p, ...)
4021 s = g (p, va_arg (v,int));
4026 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4027 function prototypes and stuff, but not '\xHH' hex character constants.
4028 These don't provoke an error unfortunately, instead are silently treated
4029 as 'x'. The following induces an error, until -std is added to get
4030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4031 array size at least. It's necessary to write '\x00'==0 to get something
4032 that's true only with -std. */
4033 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4035 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4036 inside strings and character constants. */
4038 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4040 int test (int i, double x);
4041 struct s1 {int (*f) (int a);};
4042 struct s2 {int (*f) (double a);};
4043 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4049 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4054 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4055 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4057 CC="$ac_save_CC $ac_arg"
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_prog_cc_c89=$ac_arg
4061 rm -f core conftest.err conftest.$ac_objext
4062 test "x$ac_cv_prog_cc_c89" != "xno" && break
4064 rm -f conftest.$ac_ext
4069 case "x$ac_cv_prog_cc_c89" in
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4072 $as_echo "none needed" >&6; } ;;
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4075 $as_echo "unsupported" >&6; } ;;
4077 CC="$CC $ac_cv_prog_cc_c89"
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4079 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4081 if test "x$ac_cv_prog_cc_c89" != xno; then :
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4099 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4100 # On Suns, sometimes $CPP names a directory.
4101 if test -n "$CPP" && test -d "$CPP"; then
4104 if test -z "$CPP"; then
4105 if ${ac_cv_prog_CPP+:} false; then :
4106 $as_echo_n "(cached) " >&6
4108 # Double quotes because CPP needs to be expanded
4109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4112 for ac_c_preproc_warn_flag in '' yes
4114 # Use a header file that comes with gcc, so configuring glibc
4115 # with a fresh cross-compiler works.
4116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4117 # <limits.h> exists even on freestanding compilers.
4118 # On the NeXT, cc -E runs the code through the compiler's parser,
4119 # not just through cpp. "Syntax error" is here to catch this case.
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4123 # include <limits.h>
4125 # include <assert.h>
4129 if ac_fn_c_try_cpp "$LINENO"; then :
4132 # Broken: fails on valid input.
4135 rm -f conftest.err conftest.i conftest.$ac_ext
4137 # OK, works on sane cases. Now check whether nonexistent headers
4138 # can be detected and how.
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #include <ac_nonexistent.h>
4143 if ac_fn_c_try_cpp "$LINENO"; then :
4144 # Broken: success on invalid input.
4147 # Passes both tests.
4151 rm -f conftest.err conftest.i conftest.$ac_ext
4154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4155 rm -f conftest.i conftest.err conftest.$ac_ext
4156 if $ac_preproc_ok; then :
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4169 $as_echo "$CPP" >&6; }
4171 for ac_c_preproc_warn_flag in '' yes
4173 # Use a header file that comes with gcc, so configuring glibc
4174 # with a fresh cross-compiler works.
4175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176 # <limits.h> exists even on freestanding compilers.
4177 # On the NeXT, cc -E runs the code through the compiler's parser,
4178 # not just through cpp. "Syntax error" is here to catch this case.
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4182 # include <limits.h>
4184 # include <assert.h>
4188 if ac_fn_c_try_cpp "$LINENO"; then :
4191 # Broken: fails on valid input.
4194 rm -f conftest.err conftest.i conftest.$ac_ext
4196 # OK, works on sane cases. Now check whether nonexistent headers
4197 # can be detected and how.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #include <ac_nonexistent.h>
4202 if ac_fn_c_try_cpp "$LINENO"; then :
4203 # Broken: success on invalid input.
4206 # Passes both tests.
4210 rm -f conftest.err conftest.i conftest.$ac_ext
4213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4214 rm -f conftest.i conftest.err conftest.$ac_ext
4215 if $ac_preproc_ok; then :
4218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4221 See \`config.log' for more details" "$LINENO" 5; }
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4232 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4233 if ${ac_cv_path_GREP+:} false; then :
4234 $as_echo_n "(cached) " >&6
4236 if test -z "$GREP"; then
4237 ac_path_GREP_found=false
4238 # Loop through the user's path and test for each of PROGNAME-LIST
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4243 test -z "$as_dir" && as_dir=.
4244 for ac_prog in grep ggrep; do
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4247 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4248 # Check for GNU ac_path_GREP and select it if it is found.
4249 # Check for GNU $ac_path_GREP
4250 case `"$ac_path_GREP" --version 2>&1` in
4252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4255 $as_echo_n 0123456789 >"conftest.in"
4258 cat "conftest.in" "conftest.in" >"conftest.tmp"
4259 mv "conftest.tmp" "conftest.in"
4260 cp "conftest.in" "conftest.nl"
4261 $as_echo 'GREP' >> "conftest.nl"
4262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4264 as_fn_arith $ac_count + 1 && ac_count=$as_val
4265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4266 # Best one so far, save it but keep looking for a better one
4267 ac_cv_path_GREP="$ac_path_GREP"
4268 ac_path_GREP_max=$ac_count
4270 # 10*(2^10) chars as input seems more than enough
4271 test $ac_count -gt 10 && break
4273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4276 $ac_path_GREP_found && break 3
4281 if test -z "$ac_cv_path_GREP"; then
4282 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4285 ac_cv_path_GREP=$GREP
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4290 $as_echo "$ac_cv_path_GREP" >&6; }
4291 GREP="$ac_cv_path_GREP"
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4295 $as_echo_n "checking for egrep... " >&6; }
4296 if ${ac_cv_path_EGREP+:} false; then :
4297 $as_echo_n "(cached) " >&6
4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4300 then ac_cv_path_EGREP="$GREP -E"
4302 if test -z "$EGREP"; then
4303 ac_path_EGREP_found=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in egrep; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4314 # Check for GNU ac_path_EGREP and select it if it is found.
4315 # Check for GNU $ac_path_EGREP
4316 case `"$ac_path_EGREP" --version 2>&1` in
4318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4321 $as_echo_n 0123456789 >"conftest.in"
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'EGREP' >> "conftest.nl"
4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4330 as_fn_arith $ac_count + 1 && ac_count=$as_val
4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_EGREP="$ac_path_EGREP"
4334 ac_path_EGREP_max=$ac_count
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4342 $ac_path_EGREP_found && break 3
4347 if test -z "$ac_cv_path_EGREP"; then
4348 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4351 ac_cv_path_EGREP=$EGREP
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4357 $as_echo "$ac_cv_path_EGREP" >&6; }
4358 EGREP="$ac_cv_path_EGREP"
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4362 $as_echo_n "checking for ANSI C header files... " >&6; }
4363 if ${ac_cv_header_stdc+:} false; then :
4364 $as_echo_n "(cached) " >&6
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4381 if ac_fn_c_try_compile "$LINENO"; then :
4382 ac_cv_header_stdc=yes
4384 ac_cv_header_stdc=no
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 if test $ac_cv_header_stdc = yes; then
4389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4396 $EGREP "memchr" >/dev/null 2>&1; then :
4399 ac_cv_header_stdc=no
4405 if test $ac_cv_header_stdc = yes; then
4406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413 $EGREP "free" >/dev/null 2>&1; then :
4416 ac_cv_header_stdc=no
4422 if test $ac_cv_header_stdc = yes; then
4423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4424 if test "$cross_compiling" = yes; then :
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4431 #if ((' ' & 0x0FF) == 0x020)
4432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4435 # define ISLOWER(c) \
4436 (('a' <= (c) && (c) <= 'i') \
4437 || ('j' <= (c) && (c) <= 'r') \
4438 || ('s' <= (c) && (c) <= 'z'))
4439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4447 for (i = 0; i < 256; i++)
4448 if (XOR (islower (i), ISLOWER (i))
4449 || toupper (i) != TOUPPER (i))
4454 if ac_fn_c_try_run "$LINENO"; then :
4457 ac_cv_header_stdc=no
4459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4460 conftest.$ac_objext conftest.beam conftest.$ac_ext
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4466 $as_echo "$ac_cv_header_stdc" >&6; }
4467 if test $ac_cv_header_stdc = yes; then
4469 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4474 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4475 inttypes.h stdint.h unistd.h
4477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4478 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4480 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4481 cat >>confdefs.h <<_ACEOF
4482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4491 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4492 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4499 if test "$MINIX" = yes; then
4501 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4504 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4507 $as_echo "#define _MINIX 1" >>confdefs.h
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4513 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4514 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4515 $as_echo_n "(cached) " >&6
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4520 # define __EXTENSIONS__ 1
4521 $ac_includes_default
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531 ac_cv_safe_to_define___extensions__=yes
4533 ac_cv_safe_to_define___extensions__=no
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4538 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4539 test $ac_cv_safe_to_define___extensions__ = yes &&
4540 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4542 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4544 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4546 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4548 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4551 # System default paths
4552 astsbindir='${sbindir}'
4553 astetcdir='${sysconfdir}/asterisk'
4554 astheaderdir='${includedir}/asterisk'
4555 astlibdir='${libdir}'
4556 astmoddir='${libdir}/asterisk/modules'
4557 astmandir='${mandir}'
4558 astvarlibdir='${localstatedir}/lib/asterisk'
4559 astdatadir='${astvarlibdir}'
4560 astdbdir='${astvarlibdir}'
4561 astkeydir='${astvarlibdir}'
4562 astspooldir='${localstatedir}/spool/asterisk'
4563 astlogdir='${localstatedir}/log/asterisk'
4564 astvarrundir='${localstatedir}/run/asterisk'
4566 case "${host_os}" in
4568 if test ${prefix} = 'NONE'; then
4569 astvarlibdir='${prefix}/share/asterisk'
4570 astdbdir='${localstatedir}/db/asterisk'
4574 if test ${prefix} = 'NONE'; then
4575 astvarrundir='/Library/Application Support/Asterisk/Run'
4580 case "${host_os}" in
4582 ac_default_prefix=/usr/local
4583 CPPFLAGS=-I/usr/local/include
4584 LDFLAGS=-L/usr/local/lib
4587 ac_default_prefix=/usr/local
4588 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4589 if test ${sysconfdir} = '${prefix}/etc'; then
4590 astetcdir=/etc/asterisk
4592 if test ${mandir} = '${prefix}/man'; then
4593 astmandir=/usr/share/man
4596 CPPFLAGS=-I/usr/local/include
4597 LDFLAGS=-L/usr/local/lib
4600 ac_default_prefix=/usr/local
4601 if test ${prefix} = 'NONE'; then
4602 astmoddir='/Library/Application Support/Asterisk/Modules'
4603 astvarlibdir='/Library/Application Support/Asterisk'
4604 astlogdir=/Library/Logs/Asterisk
4605 astvarrundir='/Library/Application Support/Asterisk/Run'
4608 $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
4611 $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
4615 if test ${prefix} = 'NONE'; then
4616 astetcdir=/var/etc/asterisk
4617 astsbindir=/opt/asterisk/sbin
4618 astlibdir=/opt/asterisk/lib
4619 astmoddir=/opt/asterisk/lib/modules
4620 astheaderdir=/opt/asterisk/include
4621 astmandir=/opt/asterisk/man
4622 astvarlibdir=/var/opt/asterisk
4623 astspooldir=/var/spool/asterisk
4624 astlogdir=/var/log/asterisk
4625 astvarrundir=/var/run/asterisk
4629 ac_default_prefix=/usr
4630 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4631 if test ${sysconfdir} = '${prefix}/etc'; then
4634 if test ${mandir} = '${prefix}/man'; then
4635 mandir=/usr/share/man
4641 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4642 if test ${localstatedir} = '${prefix}/var'; then
4647 BUILD_PLATFORM=${build}
4648 BUILD_CPU=${build_cpu}
4649 BUILD_VENDOR=${build_vendor}
4650 BUILD_OS=${build_os}
4657 HOST_PLATFORM=${host}
4658 HOST_CPU=${host_cpu}
4659 HOST_VENDOR=${host_vendor}
4669 case "${host_os}" in