2 # From configure.ac Revision: 421230 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for asterisk trunk.
6 # Report bugs to <https://issues.asterisk.org>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 # Use a proper internal environment variable to ensure we don't fall
141 # into an infinite loop, continuously re-executing ourselves.
142 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
143 _as_can_reexec=no; export _as_can_reexec;
144 # We cannot yet assume a decent shell, so we have to provide a
145 # neutralization value for shells without unset; and this also
146 # works around shells that cannot unset nonexistent variables.
147 # Preserve -v and -x to the replacement shell.
150 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
152 *v*x* | *x*v* ) as_opts=-vx ;;
157 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
158 # Admittedly, this is quite paranoid, since all the known shells bail
159 # out after a failed `exec'.
160 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
163 # We don't want this to propagate to other subprocesses.
164 { _as_can_reexec=; unset _as_can_reexec;}
165 if test "x$CONFIG_SHELL" = x; then
166 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
169 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
170 # is contrary to our usage. Disable this feature.
171 alias -g '\${1+\"\$@\"}'='\"\$@\"'
174 case \`(set -o) 2>/dev/null\` in #(
182 as_required="as_fn_return () { (exit \$1); }
183 as_fn_success () { as_fn_return 0; }
184 as_fn_failure () { as_fn_return 1; }
185 as_fn_ret_success () { return 0; }
186 as_fn_ret_failure () { return 1; }
189 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
190 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
191 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
192 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
193 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
196 exitcode=1; echo positional parameters were not saved.
198 test x\$exitcode = x0 || exit 1
200 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
201 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
202 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
203 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
204 test \$(( 1 + 1 )) = 2 || exit 1"
205 if (eval "$as_required") 2>/dev/null; then :
210 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
215 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
218 test -z "$as_dir" && as_dir=.
222 for as_base in sh bash ksh sh5; do
223 # Try only shells that exist, to save several forks.
224 as_shell=$as_dir/$as_base
225 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
226 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 CONFIG_SHELL=$as_shell as_have_required=yes
228 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
238 CONFIG_SHELL=$SHELL as_have_required=yes
243 if test "x$CONFIG_SHELL" != x; then :
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
253 *v*x* | *x*v* ) as_opts=-vx ;;
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed `exec'.
261 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 if test x$as_have_required = xno; then :
266 $as_echo "$0: This script requires a shell more modern than all"
267 $as_echo "$0: the shells that I found on your system."
268 if test x${ZSH_VERSION+set} = xset ; then
269 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
272 $as_echo "$0: Please tell bug-autoconf@gnu.org and
273 $0: https://issues.asterisk.org about your system,
274 $0: including any error possibly output before this
275 $0: message. Then install a modern shell, or manually run
276 $0: the script under such a shell if you do have one."
282 SHELL=${CONFIG_SHELL-/bin/sh}
284 # Unset more variables known to interfere with behavior of common tools.
285 CLICOLOR_FORCE= GREP_OPTIONS=
286 unset CLICOLOR_FORCE GREP_OPTIONS
288 ## --------------------- ##
289 ## M4sh Shell Functions. ##
290 ## --------------------- ##
293 # Portably unset VAR.
296 { eval $1=; unset $1;}
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
320 # Create "$as_dir" as a directory, including parents if necessary.
325 -*) as_dir=./$as_dir;;
327 test -d "$as_dir" || eval $as_mkdir_p || {
331 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 as_dirs="'$as_qdir' $as_dirs"
335 as_dir=`$as_dirname -- "$as_dir" ||
336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
337 X"$as_dir" : 'X\(//\)[^/]' \| \
338 X"$as_dir" : 'X\(//\)$' \| \
339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
340 $as_echo X"$as_dir" |
341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 test -d "$as_dir" && break
360 test -z "$as_dirs" || eval "mkdir $as_dirs"
361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 # as_fn_executable_p FILE
367 # -----------------------
368 # Test if FILE is an executable regular file.
369 as_fn_executable_p ()
371 test -f "$1" && test -x "$1"
372 } # as_fn_executable_p
373 # as_fn_append VAR VALUE
374 # ----------------------
375 # Append the text in VALUE to the end of the definition contained in VAR. Take
376 # advantage of any shell optimizations that allow amortized linear growth over
377 # repeated appends, instead of the typical quadratic growth present in naive
379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
380 eval 'as_fn_append ()
393 # Perform arithmetic evaluation on the ARGs, and store the result in the
394 # global $as_val. Take advantage of shells that can avoid forks. The arguments
395 # must be portable across $(()) and expr.
396 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 as_val=`expr "$@" || test $? -eq 1`
409 # as_fn_error STATUS ERROR [LINENO LOG_FD]
410 # ----------------------------------------
411 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
412 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
413 # script with STATUS, using 1 if that was 0.
416 as_status=$1; test $as_status -eq 0 && as_status=1
418 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
419 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
421 $as_echo "$as_me: error: $2" >&2
422 as_fn_exit $as_status
425 if expr a : '\(a\)' >/dev/null 2>&1 &&
426 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_me=`$as_basename -- "$0" ||
445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
446 X"$0" : 'X\(//\)$' \| \
447 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
449 sed '/^.*\/\([^/][^/]*\)\/*$/{
463 # Avoid depending upon Character Ranges.
464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
467 as_cr_digits='0123456789'
468 as_cr_alnum=$as_cr_Letters$as_cr_digits
471 as_lineno_1=$LINENO as_lineno_1a=$LINENO
472 as_lineno_2=$LINENO as_lineno_2a=$LINENO
473 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
474 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
475 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
487 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
491 chmod +x "$as_me.lineno" ||
492 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
494 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
495 # already done that, so ensure we don't try to do so again and fall
496 # in an infinite loop. This has already happened in practice.
497 _as_can_reexec=no; export _as_can_reexec
498 # Don't try to exec as it changes $[0], causing all sort of problems
499 # (the dirname of $[0] is not the place where we might find the
500 # original and so on. Autoconf is especially sensitive to this).
502 # Exit status is that of the last command.
506 ECHO_C= ECHO_N= ECHO_T=
507 case `echo -n x` in #(((((
509 case `echo 'xy\c'` in
510 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
512 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 rm -f conf$$ conf$$.exe conf$$.file
520 if test -d conf$$.dir; then
521 rm -f conf$$.dir/conf$$.file
524 mkdir conf$$.dir 2>/dev/null
526 if (echo >conf$$.file) 2>/dev/null; then
527 if ln -s conf$$.file conf$$ 2>/dev/null; then
529 # ... but there are two gotchas:
530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
532 # In both cases, we have to default to `cp -pR'.
533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
535 elif ln conf$$.file conf$$ 2>/dev/null; then
543 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
544 rmdir conf$$.dir 2>/dev/null
546 if mkdir -p . 2>/dev/null; then
547 as_mkdir_p='mkdir -p "$as_dir"'
549 test -d ./-p && rmdir ./-p
554 as_executable_p=as_fn_executable_p
556 # Sed expression to map a string onto a valid CPP name.
557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
559 # Sed expression to map a string onto a valid variable name.
560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563 test -n "$DJDIR" || exec 7<&0 </dev/null
567 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
568 # so uname gets run too.
569 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574 ac_default_prefix=/usr/local
576 ac_config_libobj_dir=.
583 # Identity of this package.
584 PACKAGE_NAME='asterisk'
585 PACKAGE_TARNAME='asterisk'
586 PACKAGE_VERSION='trunk'
587 PACKAGE_STRING='asterisk trunk'
588 PACKAGE_BUGREPORT='https://issues.asterisk.org'
591 ac_unique_file="main/asterisk.c"
592 # Factoring default headers for most tests.
593 ac_includes_default="\
595 #ifdef HAVE_SYS_TYPES_H
596 # include <sys/types.h>
598 #ifdef HAVE_SYS_STAT_H
599 # include <sys/stat.h>
605 # ifdef HAVE_STDLIB_H
610 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
618 #ifdef HAVE_INTTYPES_H
619 # include <inttypes.h>
629 ac_subst_vars='LTLIBOBJS
631 PBX_SYSLOG_FACILITY_LOG_UUCP
632 PBX_SYSLOG_FACILITY_LOG_SYSLOG
633 PBX_SYSLOG_FACILITY_LOG_NEWS
634 PBX_SYSLOG_FACILITY_LOG_MAIL
635 PBX_SYSLOG_FACILITY_LOG_LPR
636 PBX_SYSLOG_FACILITY_LOG_KERN
637 PBX_SYSLOG_FACILITY_LOG_FTP
638 PBX_SYSLOG_FACILITY_LOG_DAEMON
639 PBX_SYSLOG_FACILITY_LOG_CRON
640 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
641 PBX_SYSLOG_FACILITY_LOG_AUTH
693 AST_NO_STRICT_OVERFLOW
696 AST_DECLARATION_AFTER_STATEMENT
699 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
700 PBX_PTHREAD_RWLOCK_INITIALIZER
762 SRTP_SHUTDOWN_INCLUDE
782 SPEEX_PREPROCESS_INCLUDE
817 PBX_PRI_REVERSE_CHARGE
818 PRI_REVERSE_CHARGE_DIR
819 PRI_REVERSE_CHARGE_INCLUDE
820 PRI_REVERSE_CHARGE_LIB
821 PBX_PRI_SERVICE_MESSAGES
822 PRI_SERVICE_MESSAGES_DIR
823 PRI_SERVICE_MESSAGES_INCLUDE
824 PRI_SERVICE_MESSAGES_LIB
827 PRI_PROG_W_CAUSE_INCLUDE
829 PBX_PRI_INBANDDISCONNECT
830 PRI_INBANDDISCONNECT_DIR
831 PRI_INBANDDISCONNECT_INCLUDE
832 PRI_INBANDDISCONNECT_LIB
835 PRI_SETUP_KEYPAD_INCLUDE
837 PBX_PRI_CALL_REROUTING
838 PRI_CALL_REROUTING_DIR
839 PRI_CALL_REROUTING_INCLUDE
840 PRI_CALL_REROUTING_LIB
843 PRI_CALL_HOLD_INCLUDE
851 PRI_HANGUP_FIX_INCLUDE
863 PRI_AOC_EVENTS_INCLUDE
867 PRI_CALL_WAITING_INCLUDE
879 PRI_DISPLAY_TEXT_INCLUDE
885 PBX_PRI_DATETIME_SEND
886 PRI_DATETIME_SEND_DIR
887 PRI_DATETIME_SEND_INCLUDE
888 PRI_DATETIME_SEND_LIB
889 PBX_PRI_L2_PERSISTENCE
890 PRI_L2_PERSISTENCE_DIR
891 PRI_L2_PERSISTENCE_INCLUDE
892 PRI_L2_PERSISTENCE_LIB
893 PBX_PRI_SETUP_ACK_INBAND
894 PRI_SETUP_ACK_INBAND_DIR
895 PRI_SETUP_ACK_INBAND_INCLUDE
896 PRI_SETUP_ACK_INBAND_LIB
905 PBX_PJSIP_REPLACE_MEDIA_STREAM
906 PJSIP_REPLACE_MEDIA_STREAM_DIR
907 PJSIP_REPLACE_MEDIA_STREAM_INCLUDE
908 PJSIP_REPLACE_MEDIA_STREAM_LIB
909 PBX_PJ_TRANSACTION_GRP_LOCK
910 PJ_TRANSACTION_GRP_LOCK_DIR
911 PJ_TRANSACTION_GRP_LOCK_INCLUDE
912 PJ_TRANSACTION_GRP_LOCK_LIB
983 LIBXSLT_CLEANUP_INCLUDE
1087 OPENSSL_SRTP_INCLUDE
1101 PBX_COROSYNC_CFG_STATE_TRACK
1102 COROSYNC_CFG_STATE_TRACK_DIR
1103 COROSYNC_CFG_STATE_TRACK_INCLUDE
1104 COROSYNC_CFG_STATE_TRACK_LIB
1256 program_transform_name
1269 enable_option_checking
1352 enable_internal_poll
1356 ac_precious_vars='build_alias
1384 # Initialize some variables set by options.
1386 ac_init_version=false
1387 ac_unrecognized_opts=
1388 ac_unrecognized_sep=
1389 # The variables have the same names as the options, with
1390 # dashes changed to underlines.
1391 cache_file=/dev/null
1398 program_transform_name=s,x,x,
1406 # Installation directory options.
1407 # These are left unexpanded so users can "make install exec_prefix=/foo"
1408 # and all the variables that are supposed to be based on exec_prefix
1409 # by default will actually change.
1410 # Use braces instead of parens because sh, perl, etc. also accept them.
1411 # (The list follows the same order as the GNU Coding Standards.)
1412 bindir='${exec_prefix}/bin'
1413 sbindir='${exec_prefix}/sbin'
1414 libexecdir='${exec_prefix}/libexec'
1415 datarootdir='${prefix}/share'
1416 datadir='${datarootdir}'
1417 sysconfdir='${prefix}/etc'
1418 sharedstatedir='${prefix}/com'
1419 localstatedir='${prefix}/var'
1420 includedir='${prefix}/include'
1421 oldincludedir='/usr/include'
1422 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1423 infodir='${datarootdir}/info'
1428 libdir='${exec_prefix}/lib'
1429 localedir='${datarootdir}/locale'
1430 mandir='${datarootdir}/man'
1436 # If the previous option needs an argument, assign it.
1437 if test -n "$ac_prev"; then
1438 eval $ac_prev=\$ac_option
1444 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1449 # Accept the important Cygnus configure options, so we can diagnose typos.
1451 case $ac_dashdash$ac_option in
1455 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1457 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1458 bindir=$ac_optarg ;;
1460 -build | --build | --buil | --bui | --bu)
1461 ac_prev=build_alias ;;
1462 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1463 build_alias=$ac_optarg ;;
1465 -cache-file | --cache-file | --cache-fil | --cache-fi \
1466 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1467 ac_prev=cache_file ;;
1468 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1469 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1470 cache_file=$ac_optarg ;;
1472 --config-cache | -C)
1473 cache_file=config.cache ;;
1475 -datadir | --datadir | --datadi | --datad)
1477 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1478 datadir=$ac_optarg ;;
1480 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1481 | --dataroo | --dataro | --datar)
1482 ac_prev=datarootdir ;;
1483 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1484 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1485 datarootdir=$ac_optarg ;;
1487 -disable-* | --disable-*)
1488 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1489 # Reject names that are not valid shell variable names.
1490 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1491 as_fn_error $? "invalid feature name: $ac_useropt"
1492 ac_useropt_orig=$ac_useropt
1493 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1494 case $ac_user_opts in
1496 "enable_$ac_useropt"
1498 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1499 ac_unrecognized_sep=', ';;
1501 eval enable_$ac_useropt=no ;;
1503 -docdir | --docdir | --docdi | --doc | --do)
1505 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1506 docdir=$ac_optarg ;;
1508 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1510 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1511 dvidir=$ac_optarg ;;
1513 -enable-* | --enable-*)
1514 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1515 # Reject names that are not valid shell variable names.
1516 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1517 as_fn_error $? "invalid feature name: $ac_useropt"
1518 ac_useropt_orig=$ac_useropt
1519 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1520 case $ac_user_opts in
1522 "enable_$ac_useropt"
1524 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1525 ac_unrecognized_sep=', ';;
1527 eval enable_$ac_useropt=\$ac_optarg ;;
1529 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1530 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1531 | --exec | --exe | --ex)
1532 ac_prev=exec_prefix ;;
1533 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1534 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1535 | --exec=* | --exe=* | --ex=*)
1536 exec_prefix=$ac_optarg ;;
1538 -gas | --gas | --ga | --g)
1539 # Obsolete; use --with-gas.
1542 -help | --help | --hel | --he | -h)
1543 ac_init_help=long ;;
1544 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1545 ac_init_help=recursive ;;
1546 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1547 ac_init_help=short ;;
1549 -host | --host | --hos | --ho)
1550 ac_prev=host_alias ;;
1551 -host=* | --host=* | --hos=* | --ho=*)
1552 host_alias=$ac_optarg ;;
1554 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1556 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1558 htmldir=$ac_optarg ;;
1560 -includedir | --includedir | --includedi | --included | --include \
1561 | --includ | --inclu | --incl | --inc)
1562 ac_prev=includedir ;;
1563 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1564 | --includ=* | --inclu=* | --incl=* | --inc=*)
1565 includedir=$ac_optarg ;;
1567 -infodir | --infodir | --infodi | --infod | --info | --inf)
1569 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1570 infodir=$ac_optarg ;;
1572 -libdir | --libdir | --libdi | --libd)
1574 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1575 libdir=$ac_optarg ;;
1577 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1578 | --libexe | --libex | --libe)
1579 ac_prev=libexecdir ;;
1580 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1581 | --libexe=* | --libex=* | --libe=*)
1582 libexecdir=$ac_optarg ;;
1584 -localedir | --localedir | --localedi | --localed | --locale)
1585 ac_prev=localedir ;;
1586 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1587 localedir=$ac_optarg ;;
1589 -localstatedir | --localstatedir | --localstatedi | --localstated \
1590 | --localstate | --localstat | --localsta | --localst | --locals)
1591 ac_prev=localstatedir ;;
1592 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1593 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1594 localstatedir=$ac_optarg ;;
1596 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1598 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1599 mandir=$ac_optarg ;;
1601 -nfp | --nfp | --nf)
1602 # Obsolete; use --without-fp.
1605 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1606 | --no-cr | --no-c | -n)
1609 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1610 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1613 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1614 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1615 | --oldin | --oldi | --old | --ol | --o)
1616 ac_prev=oldincludedir ;;
1617 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1618 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1619 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1620 oldincludedir=$ac_optarg ;;
1622 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1624 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1625 prefix=$ac_optarg ;;
1627 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1628 | --program-pre | --program-pr | --program-p)
1629 ac_prev=program_prefix ;;
1630 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1631 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1632 program_prefix=$ac_optarg ;;
1634 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1635 | --program-suf | --program-su | --program-s)
1636 ac_prev=program_suffix ;;
1637 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1638 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1639 program_suffix=$ac_optarg ;;
1641 -program-transform-name | --program-transform-name \
1642 | --program-transform-nam | --program-transform-na \
1643 | --program-transform-n | --program-transform- \
1644 | --program-transform | --program-transfor \
1645 | --program-transfo | --program-transf \
1646 | --program-trans | --program-tran \
1647 | --progr-tra | --program-tr | --program-t)
1648 ac_prev=program_transform_name ;;
1649 -program-transform-name=* | --program-transform-name=* \
1650 | --program-transform-nam=* | --program-transform-na=* \
1651 | --program-transform-n=* | --program-transform-=* \
1652 | --program-transform=* | --program-transfor=* \
1653 | --program-transfo=* | --program-transf=* \
1654 | --program-trans=* | --program-tran=* \
1655 | --progr-tra=* | --program-tr=* | --program-t=*)
1656 program_transform_name=$ac_optarg ;;
1658 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1660 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1661 pdfdir=$ac_optarg ;;
1663 -psdir | --psdir | --psdi | --psd | --ps)
1665 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669 | -silent | --silent | --silen | --sile | --sil)
1672 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1674 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1676 sbindir=$ac_optarg ;;
1678 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1679 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1680 | --sharedst | --shareds | --shared | --share | --shar \
1682 ac_prev=sharedstatedir ;;
1683 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1684 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1685 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1687 sharedstatedir=$ac_optarg ;;
1689 -site | --site | --sit)
1691 -site=* | --site=* | --sit=*)
1694 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1696 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1697 srcdir=$ac_optarg ;;
1699 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1700 | --syscon | --sysco | --sysc | --sys | --sy)
1701 ac_prev=sysconfdir ;;
1702 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1703 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1704 sysconfdir=$ac_optarg ;;
1706 -target | --target | --targe | --targ | --tar | --ta | --t)
1707 ac_prev=target_alias ;;
1708 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1709 target_alias=$ac_optarg ;;
1711 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1714 -version | --version | --versio | --versi | --vers | -V)
1715 ac_init_version=: ;;
1718 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1719 # Reject names that are not valid shell variable names.
1720 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1721 as_fn_error $? "invalid package name: $ac_useropt"
1722 ac_useropt_orig=$ac_useropt
1723 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1724 case $ac_user_opts in
1728 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1729 ac_unrecognized_sep=', ';;
1731 eval with_$ac_useropt=\$ac_optarg ;;
1733 -without-* | --without-*)
1734 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1735 # Reject names that are not valid shell variable names.
1736 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1737 as_fn_error $? "invalid package name: $ac_useropt"
1738 ac_useropt_orig=$ac_useropt
1739 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1740 case $ac_user_opts in
1744 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1745 ac_unrecognized_sep=', ';;
1747 eval with_$ac_useropt=no ;;
1750 # Obsolete; use --with-x.
1753 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1754 | --x-incl | --x-inc | --x-in | --x-i)
1755 ac_prev=x_includes ;;
1756 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1757 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1758 x_includes=$ac_optarg ;;
1760 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1761 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1762 ac_prev=x_libraries ;;
1763 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1764 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1765 x_libraries=$ac_optarg ;;
1767 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1768 Try \`$0 --help' for more information"
1772 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1773 # Reject names that are not valid shell variable names.
1774 case $ac_envvar in #(
1775 '' | [0-9]* | *[!_$as_cr_alnum]* )
1776 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1778 eval $ac_envvar=\$ac_optarg
1779 export $ac_envvar ;;
1782 # FIXME: should be removed in autoconf 3.0.
1783 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1784 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1785 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1786 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1792 if test -n "$ac_prev"; then
1793 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1794 as_fn_error $? "missing argument to $ac_option"
1797 if test -n "$ac_unrecognized_opts"; then
1798 case $enable_option_checking in
1800 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1801 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1805 # Check all directory arguments for consistency.
1806 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1807 datadir sysconfdir sharedstatedir localstatedir includedir \
1808 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1809 libdir localedir mandir
1811 eval ac_val=\$$ac_var
1812 # Remove trailing slashes.
1815 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1816 eval $ac_var=\$ac_val;;
1818 # Be sure to have absolute directory names.
1820 [\\/$]* | ?:[\\/]* ) continue;;
1821 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1823 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1826 # There might be people who depend on the old broken behavior: `$host'
1827 # used to hold the argument of --host etc.
1828 # FIXME: To remove some day.
1831 target=$target_alias
1833 # FIXME: To remove some day.
1834 if test "x$host_alias" != x; then
1835 if test "x$build_alias" = x; then
1836 cross_compiling=maybe
1837 elif test "x$build_alias" != "x$host_alias"; then
1843 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1845 test "$silent" = yes && exec 6>/dev/null
1848 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1849 ac_ls_di=`ls -di .` &&
1850 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1851 as_fn_error $? "working directory cannot be determined"
1852 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1853 as_fn_error $? "pwd does not report name of working directory"
1856 # Find the source files, if location was not specified.
1857 if test -z "$srcdir"; then
1858 ac_srcdir_defaulted=yes
1859 # Try the directory containing this script, then the parent directory.
1860 ac_confdir=`$as_dirname -- "$as_myself" ||
1861 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1862 X"$as_myself" : 'X\(//\)[^/]' \| \
1863 X"$as_myself" : 'X\(//\)$' \| \
1864 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1865 $as_echo X"$as_myself" |
1866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1884 if test ! -r "$srcdir/$ac_unique_file"; then
1888 ac_srcdir_defaulted=no
1890 if test ! -r "$srcdir/$ac_unique_file"; then
1891 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1892 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1894 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1896 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1898 # When building in place, set srcdir=.
1899 if test "$ac_abs_confdir" = "$ac_pwd"; then
1902 # Remove unnecessary trailing slashes from srcdir.
1903 # Double slashes in file names in object file debugging info
1904 # mess up M-x gdb in Emacs.
1906 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1908 for ac_var in $ac_precious_vars; do
1909 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1910 eval ac_env_${ac_var}_value=\$${ac_var}
1911 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1912 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1916 # Report the --help message.
1918 if test "$ac_init_help" = "long"; then
1919 # Omit some internal or obsolete options to make the list less imposing.
1920 # This message is too long to be a string in the A/UX 3.1 sh.
1922 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1924 Usage: $0 [OPTION]... [VAR=VALUE]...
1926 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1927 VAR=VALUE. See below for descriptions of some of the useful variables.
1929 Defaults for the options are specified in brackets.
1932 -h, --help display this help and exit
1933 --help=short display options specific to this package
1934 --help=recursive display the short help of all the included packages
1935 -V, --version display version information and exit
1936 -q, --quiet, --silent do not print \`checking ...' messages
1937 --cache-file=FILE cache test results in FILE [disabled]
1938 -C, --config-cache alias for \`--cache-file=config.cache'
1939 -n, --no-create do not create output files
1940 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1942 Installation directories:
1943 --prefix=PREFIX install architecture-independent files in PREFIX
1944 [$ac_default_prefix]
1945 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1948 By default, \`make install' will install all the files in
1949 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1950 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1951 for instance \`--prefix=\$HOME'.
1953 For better control, use the options below.
1955 Fine tuning of the installation directories:
1956 --bindir=DIR user executables [EPREFIX/bin]
1957 --sbindir=DIR system admin executables [EPREFIX/sbin]
1958 --libexecdir=DIR program executables [EPREFIX/libexec]
1959 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1960 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1961 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1962 --libdir=DIR object code libraries [EPREFIX/lib]
1963 --includedir=DIR C header files [PREFIX/include]
1964 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1965 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1966 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1967 --infodir=DIR info documentation [DATAROOTDIR/info]
1968 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1969 --mandir=DIR man documentation [DATAROOTDIR/man]
1970 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1971 --htmldir=DIR html documentation [DOCDIR]
1972 --dvidir=DIR dvi documentation [DOCDIR]
1973 --pdfdir=DIR pdf documentation [DOCDIR]
1974 --psdir=DIR ps documentation [DOCDIR]
1980 --build=BUILD configure for building on BUILD [guessed]
1981 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1985 if test -n "$ac_init_help"; then
1986 case $ac_init_help in
1987 short | recursive ) echo "Configuration of asterisk trunk:";;
1992 --disable-option-checking ignore unrecognized --enable/--with options
1993 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1994 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1995 --enable-dev-mode Turn on developer mode
1996 --enable-coverage Turn on code coverage tracking (for gcov)
1997 --disable-xmldoc Explicitly disable XML documentation
1998 --disable-largefile omit support for large files
1999 --enable-internal-poll Use Asterisk's poll implementation
2000 --disable-asteriskssl Disable Asterisk's SSL wrapper library
2001 --disable-rpath Disables rpath linker option checking
2004 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2005 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2006 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2007 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
2008 --with-bfd=PATH use Debug symbol decoding files in PATH
2009 --with-execinfo=PATH use Stack Backtrace files in PATH
2010 --with-bluetooth=PATH use Bluetooth files in PATH
2011 --with-cap=PATH use POSIX 1.e capabilities files in PATH
2012 --with-cpg=PATH use Corosync files in PATH
2013 --with-curses=PATH use curses files in PATH
2014 --with-crypt=PATH use password and data encryption files in PATH
2015 --with-crypto=PATH use OpenSSL Cryptography files in PATH
2016 --with-dahdi=PATH use DAHDI files in PATH
2017 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
2018 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
2020 --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
2022 --with-gtk2=PATH use gtk2 files in PATH
2023 --with-gmime=PATH use GMime files in PATH
2024 --with-h323=PATH use OpenH323 files in PATH
2025 --with-hoard=PATH use Hoard Memory Allocator files in PATH
2026 --with-ical=PATH use iCal files in PATH
2027 --with-iconv=PATH use Iconv files in PATH
2028 --with-iksemel=PATH use Iksemel Jabber files in PATH
2029 --with-imap=PATH use UW IMAP Toolkit files in PATH
2030 --with-inotify=PATH use inotify support files in PATH
2031 --with-iodbc=PATH use iODBC files in PATH
2032 --with-isdnnet=PATH use ISDN4Linux files in PATH
2033 --with-jack=PATH use Jack Audio Connection Kit files in PATH
2034 --with-jansson=PATH use Jansson JSON library files in PATH
2035 --with-uriparser=PATH use uriparser library files in PATH
2036 --with-kqueue=PATH use kqueue support files in PATH
2037 --with-ldap=PATH use OpenLDAP files in PATH
2038 --with-libcurl=DIR look for the curl library in DIR
2039 --with-libedit=PATH use NetBSD Editline library files in PATH, use
2040 'internal' Editline otherwise
2041 --with-libxml2=PATH use LibXML2 files in PATH
2042 --with-libxslt=PATH use LibXSLT files in PATH
2043 --with-ltdl=PATH use libtool files in PATH
2044 --with-lua=PATH use Lua files in PATH
2045 --with-misdn=PATH use mISDN user files in PATH
2046 --with-mysqlclient=PATH use MySQL client files in PATH
2047 --with-nbs=PATH use Network Broadcast Sound files in PATH
2048 --with-ncurses=PATH use ncurses files in PATH
2049 --with-neon=PATH use neon files in PATH
2050 --with-neon29=PATH use neon29 files in PATH
2051 --with-netsnmp=PATH use Net-SNMP files in PATH
2052 --with-newt=PATH use newt files in PATH
2053 --with-ogg=PATH use OGG files in PATH
2054 --with-openr2=PATH use MFR2 files in PATH
2055 --with-osptk=PATH use OSP Toolkit files in PATH
2056 --with-oss=PATH use Open Sound System files in PATH
2057 --with-postgres=PATH use PostgreSQL files in PATH
2058 --with-pjproject=PATH use PJPROJECT files in PATH
2059 --with-popt=PATH use popt files in PATH
2060 --with-portaudio=PATH use PortAudio files in PATH
2061 --with-pri=PATH use ISDN PRI files in PATH
2062 --with-pwlib=PATH use PWlib files in PATH
2063 --with-radius=PATH use Radius Client files in PATH
2064 --with-resample=PATH use LIBRESAMPLE files in PATH
2065 --with-sdl=PATH use Sdl files in PATH
2066 --with-SDL_image=PATH use Sdl Image files in PATH
2067 --with-sounds-cache=PATH
2068 use cached sound tarfiles in PATH
2069 --with-spandsp=PATH use SPANDSP files in PATH
2070 --with-ss7=PATH use ISDN SS7 files in PATH
2071 --with-speex=PATH use Speex files in PATH
2072 --with-speex=PATH use Speex preprocess routines files in PATH
2073 --with-speexdsp=PATH use SpeexDSP files in PATH
2074 --with-sqlite=PATH use SQLite files in PATH
2075 --with-sqlite3=PATH use SQLite files in PATH
2076 --with-srtp=PATH use Secure RTP files in PATH
2077 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
2078 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
2079 --with-tds=PATH use FreeTDS files in PATH
2080 --with-termcap=PATH use Termcap files in PATH
2081 --with-timerfd=PATH use timerfd files in PATH
2082 --with-tinfo=PATH use Term Info files in PATH
2083 --with-tonezone=PATH use tonezone files in PATH
2084 --with-unixodbc=PATH use unixODBC files in PATH
2085 --with-vorbis=PATH use Vorbis files in PATH
2086 --with-vpb=PATH use Voicetronix API files in PATH
2087 --with-x11=PATH use X11 files in PATH
2088 --with-z=PATH use zlib compression files in PATH
2090 Some influential environment variables:
2091 CC C compiler command
2092 CFLAGS C compiler flags
2093 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2094 nonstandard directory <lib dir>
2095 LIBS libraries to pass to the linker, e.g. -l<library>
2096 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2097 you have headers in a nonstandard directory <include dir>
2099 CXX C++ compiler command
2100 CXXFLAGS C++ compiler flags
2101 CXXCPP C++ preprocessor
2102 PKG_CONFIG path to pkg-config utility
2104 directories to add to pkg-config's search path
2106 path overriding pkg-config's built-in search path
2107 ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
2108 ILBC_LIBS linker flags for ILBC, overriding pkg-config
2110 C compiler flags for LIBEDIT, overriding pkg-config
2112 linker flags for LIBEDIT, overriding pkg-config
2114 C compiler flags for PJPROJECT, overriding pkg-config
2116 linker flags for PJPROJECT, overriding pkg-config
2118 C compiler flags for GMIME, overriding pkg-config
2119 GMIME_LIBS linker flags for GMIME, overriding pkg-config
2120 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2121 GTK2_LIBS linker flags for GTK2, overriding pkg-config
2123 Use these variables to override the choices made by `configure' or to help
2124 it to find libraries and programs with nonstandard names/locations.
2126 Report bugs to <https://issues.asterisk.org>.
2131 if test "$ac_init_help" = "recursive"; then
2132 # If there are subdirs, report their specific --help.
2133 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2134 test -d "$ac_dir" ||
2135 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2140 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2142 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2143 # A ".." for each directory in $ac_dir_suffix.
2144 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2145 case $ac_top_builddir_sub in
2146 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2147 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2150 ac_abs_top_builddir=$ac_pwd
2151 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2152 # for backward compatibility:
2153 ac_top_builddir=$ac_top_build_prefix
2156 .) # We are building in place.
2158 ac_top_srcdir=$ac_top_builddir_sub
2159 ac_abs_top_srcdir=$ac_pwd ;;
2160 [\\/]* | ?:[\\/]* ) # Absolute name.
2161 ac_srcdir=$srcdir$ac_dir_suffix;
2162 ac_top_srcdir=$srcdir
2163 ac_abs_top_srcdir=$srcdir ;;
2165 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2166 ac_top_srcdir=$ac_top_build_prefix$srcdir
2167 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2169 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2171 cd "$ac_dir" || { ac_status=$?; continue; }
2172 # Check for guested configure.
2173 if test -f "$ac_srcdir/configure.gnu"; then
2175 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2176 elif test -f "$ac_srcdir/configure"; then
2178 $SHELL "$ac_srcdir/configure" --help=recursive
2180 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2182 cd "$ac_pwd" || { ac_status=$?; break; }
2186 test -n "$ac_init_help" && exit $ac_status
2187 if $ac_init_version; then
2189 asterisk configure trunk
2190 generated by GNU Autoconf 2.69
2192 Copyright (C) 2012 Free Software Foundation, Inc.
2193 This configure script is free software; the Free Software Foundation
2194 gives unlimited permission to copy, distribute and modify it.
2201 ## ------------------------ ##
2202 ## Autoconf initialization. ##
2203 ## ------------------------ ##
2205 # ac_fn_c_try_compile LINENO
2206 # --------------------------
2207 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2208 ac_fn_c_try_compile ()
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 rm -f conftest.$ac_objext
2212 if { { ac_try="$ac_compile"
2214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215 *) ac_try_echo=$ac_try;;
2217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2218 $as_echo "$ac_try_echo"; } >&5
2219 (eval "$ac_compile") 2>conftest.err
2221 if test -s conftest.err; then
2222 grep -v '^ *+' conftest.err >conftest.er1
2223 cat conftest.er1 >&5
2224 mv -f conftest.er1 conftest.err
2226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; } && {
2228 test -z "$ac_c_werror_flag" ||
2229 test ! -s conftest.err
2230 } && test -s conftest.$ac_objext; then :
2233 $as_echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 as_fn_set_status $ac_retval
2241 } # ac_fn_c_try_compile
2243 # ac_fn_c_try_cpp LINENO
2244 # ----------------------
2245 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 if { { ac_try="$ac_cpp conftest.$ac_ext"
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2255 $as_echo "$ac_try_echo"; } >&5
2256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2258 if test -s conftest.err; then
2259 grep -v '^ *+' conftest.err >conftest.er1
2260 cat conftest.er1 >&5
2261 mv -f conftest.er1 conftest.err
2263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2264 test $ac_status = 0; } > conftest.i && {
2265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2266 test ! -s conftest.err
2270 $as_echo "$as_me: failed program was:" >&5
2271 sed 's/^/| /' conftest.$ac_ext >&5
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276 as_fn_set_status $ac_retval
2280 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2281 # -------------------------------------------------------
2282 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2283 # the include files in INCLUDES and setting the cache variable VAR
2285 ac_fn_c_check_header_mongrel ()
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 if eval \${$3+:} false; then :
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2290 $as_echo_n "checking for $2... " >&6; }
2291 if eval \${$3+:} false; then :
2292 $as_echo_n "(cached) " >&6
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2296 $as_echo "$ac_res" >&6; }
2298 # Is the header compilable?
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2300 $as_echo_n "checking $2 usability... " >&6; }
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307 ac_header_compiler=yes
2309 ac_header_compiler=no
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2313 $as_echo "$ac_header_compiler" >&6; }
2315 # Is the header present?
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2317 $as_echo_n "checking $2 presence... " >&6; }
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2322 if ac_fn_c_try_cpp "$LINENO"; then :
2323 ac_header_preproc=yes
2325 ac_header_preproc=no
2327 rm -f conftest.err conftest.i conftest.$ac_ext
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2329 $as_echo "$ac_header_preproc" >&6; }
2331 # So? What about this header?
2332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2335 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2337 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2341 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2343 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2345 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2347 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2349 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2350 ( $as_echo "## ------------------------------------------ ##
2351 ## Report this to https://issues.asterisk.org ##
2352 ## ------------------------------------------ ##"
2353 ) | sed "s/^/$as_me: WARNING: /" >&2
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2357 $as_echo_n "checking for $2... " >&6; }
2358 if eval \${$3+:} false; then :
2359 $as_echo_n "(cached) " >&6
2361 eval "$3=\$ac_header_compiler"
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2369 } # ac_fn_c_check_header_mongrel
2371 # ac_fn_c_try_run LINENO
2372 # ----------------------
2373 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2374 # that executables *can* be run.
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 if { { ac_try="$ac_link"
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2384 $as_echo "$ac_try_echo"; } >&5
2385 (eval "$ac_link") 2>&5
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2389 { { case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2394 $as_echo "$ac_try_echo"; } >&5
2395 (eval "$ac_try") 2>&5
2397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; }; }; then :
2401 $as_echo "$as_me: program exited with status $ac_status" >&5
2402 $as_echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2405 ac_retval=$ac_status
2407 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 as_fn_set_status $ac_retval
2413 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2414 # -------------------------------------------------------
2415 # Tests whether HEADER exists and can be compiled using the include files in
2416 # INCLUDES, setting the cache variable VAR accordingly.
2417 ac_fn_c_check_header_compile ()
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2421 $as_echo_n "checking for $2... " >&6; }
2422 if eval \${$3+:} false; then :
2423 $as_echo_n "(cached) " >&6
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2430 if ac_fn_c_try_compile "$LINENO"; then :
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442 } # ac_fn_c_check_header_compile
2444 # ac_fn_cxx_try_compile LINENO
2445 # ----------------------------
2446 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2447 ac_fn_cxx_try_compile ()
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 rm -f conftest.$ac_objext
2451 if { { ac_try="$ac_compile"
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 $as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_compile") 2>conftest.err
2460 if test -s conftest.err; then
2461 grep -v '^ *+' conftest.err >conftest.er1
2462 cat conftest.er1 >&5
2463 mv -f conftest.er1 conftest.err
2465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466 test $ac_status = 0; } && {
2467 test -z "$ac_cxx_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest.$ac_objext; then :
2472 $as_echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2478 as_fn_set_status $ac_retval
2480 } # ac_fn_cxx_try_compile
2482 # ac_fn_cxx_try_cpp LINENO
2483 # ------------------------
2484 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2485 ac_fn_cxx_try_cpp ()
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 if { { ac_try="$ac_cpp conftest.$ac_ext"
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2494 $as_echo "$ac_try_echo"; } >&5
2495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2497 if test -s conftest.err; then
2498 grep -v '^ *+' conftest.err >conftest.er1
2499 cat conftest.er1 >&5
2500 mv -f conftest.er1 conftest.err
2502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2503 test $ac_status = 0; } > conftest.i && {
2504 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2505 test ! -s conftest.err
2509 $as_echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2515 as_fn_set_status $ac_retval
2517 } # ac_fn_cxx_try_cpp
2519 # ac_fn_c_try_link LINENO
2520 # -----------------------
2521 # Try to link conftest.$ac_ext, and return whether this succeeded.
2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525 rm -f conftest.$ac_objext conftest$ac_exeext
2526 if { { ac_try="$ac_link"
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_link") 2>conftest.err
2535 if test -s conftest.err; then
2536 grep -v '^ *+' conftest.err >conftest.er1
2537 cat conftest.er1 >&5
2538 mv -f conftest.er1 conftest.err
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; } && {
2542 test -z "$ac_c_werror_flag" ||
2543 test ! -s conftest.err
2544 } && test -s conftest$ac_exeext && {
2545 test "$cross_compiling" = yes ||
2546 test -x conftest$ac_exeext
2550 $as_echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2555 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2556 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2557 # interfere with the next link command; also delete a directory that is
2558 # left behind by Apple's compiler. We do this before executing the actions.
2559 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2561 as_fn_set_status $ac_retval
2563 } # ac_fn_c_try_link
2565 # ac_fn_c_check_func LINENO FUNC VAR
2566 # ----------------------------------
2567 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2568 ac_fn_c_check_func ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2572 $as_echo_n "checking for $2... " >&6; }
2573 if eval \${$3+:} false; then :
2574 $as_echo_n "(cached) " >&6
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h. */
2578 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2580 #define $2 innocuous_$2
2582 /* System header to define __stub macros and hopefully few prototypes,
2583 which can conflict with char $2 (); below.
2584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2585 <limits.h> exists even on freestanding compilers. */
2588 # include <limits.h>
2590 # include <assert.h>
2595 /* Override any GCC internal prototype to avoid an error.
2596 Use char because int might match the return type of a GCC
2597 builtin and then its argument prototype would still apply. */
2602 /* The GNU C library defines this for functions which it implements
2603 to always fail with ENOSYS. Some functions are actually named
2604 something starting with __ and the normal name is an alias. */
2605 #if defined __stub_$2 || defined __stub___$2
2617 if ac_fn_c_try_link "$LINENO"; then :
2622 rm -f core conftest.err conftest.$ac_objext \
2623 conftest$ac_exeext conftest.$ac_ext
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2627 $as_echo "$ac_res" >&6; }
2628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2630 } # ac_fn_c_check_func
2632 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2633 # -------------------------------------------
2634 # Tests whether TYPE exists after having included INCLUDES, setting cache
2635 # variable VAR accordingly.
2636 ac_fn_c_check_type ()
2638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2640 $as_echo_n "checking for $2... " >&6; }
2641 if eval \${$3+:} false; then :
2642 $as_echo_n "(cached) " >&6
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646 /* end confdefs.h. */
2657 if ac_fn_c_try_compile "$LINENO"; then :
2658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659 /* end confdefs.h. */
2670 if ac_fn_c_try_compile "$LINENO"; then :
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2681 $as_echo "$ac_res" >&6; }
2682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2684 } # ac_fn_c_check_type
2686 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2687 # ----------------------------------------------------
2688 # Tries to find if the field MEMBER exists in type AGGR, after including
2689 # INCLUDES, setting cache variable VAR accordingly.
2690 ac_fn_c_check_member ()
2692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2694 $as_echo_n "checking for $2.$3... " >&6; }
2695 if eval \${$4+:} false; then :
2696 $as_echo_n "(cached) " >&6
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2711 if ac_fn_c_try_compile "$LINENO"; then :
2714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715 /* end confdefs.h. */
2721 if (sizeof ac_aggr.$3)
2727 if ac_fn_c_try_compile "$LINENO"; then :
2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2738 $as_echo "$ac_res" >&6; }
2739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2741 } # ac_fn_c_check_member
2743 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2744 # --------------------------------------------
2745 # Tries to find the compile-time value of EXPR in a program that includes
2746 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2748 ac_fn_c_compute_int ()
2750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2751 if test "$cross_compiling" = yes; then
2752 # Depending upon the size, compute the lo and hi bounds.
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2759 static int test_array [1 - 2 * !(($2) >= 0)];
2761 return test_array [0];
2767 if ac_fn_c_try_compile "$LINENO"; then :
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2776 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2778 return test_array [0];
2784 if ac_fn_c_try_compile "$LINENO"; then :
2785 ac_hi=$ac_mid; break
2787 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2788 if test $ac_lo -le $ac_mid; then
2792 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2798 /* end confdefs.h. */
2803 static int test_array [1 - 2 * !(($2) < 0)];
2805 return test_array [0];
2811 if ac_fn_c_try_compile "$LINENO"; then :
2814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815 /* end confdefs.h. */
2820 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2822 return test_array [0];
2828 if ac_fn_c_try_compile "$LINENO"; then :
2829 ac_lo=$ac_mid; break
2831 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2832 if test $ac_mid -le $ac_hi; then
2836 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846 # Binary search between lo and hi bounds.
2847 while test "x$ac_lo" != "x$ac_hi"; do
2848 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h. */
2855 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2857 return test_array [0];
2863 if ac_fn_c_try_compile "$LINENO"; then :
2866 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2878 static long int longval () { return $2; }
2879 static unsigned long int ulongval () { return $2; }
2886 FILE *f = fopen ("conftest.val", "w");
2891 long int i = longval ();
2894 fprintf (f, "%ld", i);
2898 unsigned long int i = ulongval ();
2901 fprintf (f, "%lu", i);
2903 /* Do not output a trailing newline, as this causes \r\n confusion
2904 on some platforms. */
2905 return ferror (f) || fclose (f) != 0;
2911 if ac_fn_c_try_run "$LINENO"; then :
2912 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2917 conftest.$ac_objext conftest.beam conftest.$ac_ext
2921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2922 as_fn_set_status $ac_retval
2924 } # ac_fn_c_compute_int
2926 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2927 # ---------------------------------------------------------
2928 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2929 # the include files in INCLUDES and setting the cache variable VAR
2931 ac_fn_cxx_check_header_mongrel ()
2933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2934 if eval \${$3+:} false; then :
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2936 $as_echo_n "checking for $2... " >&6; }
2937 if eval \${$3+:} false; then :
2938 $as_echo_n "(cached) " >&6
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2942 $as_echo "$ac_res" >&6; }
2944 # Is the header compilable?
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2946 $as_echo_n "checking $2 usability... " >&6; }
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2952 if ac_fn_cxx_try_compile "$LINENO"; then :
2953 ac_header_compiler=yes
2955 ac_header_compiler=no
2957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2959 $as_echo "$ac_header_compiler" >&6; }
2961 # Is the header present?
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2963 $as_echo_n "checking $2 presence... " >&6; }
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965 /* end confdefs.h. */
2968 if ac_fn_cxx_try_cpp "$LINENO"; then :
2969 ac_header_preproc=yes
2971 ac_header_preproc=no
2973 rm -f conftest.err conftest.i conftest.$ac_ext
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2975 $as_echo "$ac_header_preproc" >&6; }
2977 # So? What about this header?
2978 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2981 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2987 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2989 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2991 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2993 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2996 ( $as_echo "## ------------------------------------------ ##
2997 ## Report this to https://issues.asterisk.org ##
2998 ## ------------------------------------------ ##"
2999 ) | sed "s/^/$as_me: WARNING: /" >&2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3003 $as_echo_n "checking for $2... " >&6; }
3004 if eval \${$3+:} false; then :
3005 $as_echo_n "(cached) " >&6
3007 eval "$3=\$ac_header_compiler"
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3011 $as_echo "$ac_res" >&6; }
3013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3015 } # ac_fn_cxx_check_header_mongrel
3017 # ac_fn_cxx_try_link LINENO
3018 # -------------------------
3019 # Try to link conftest.$ac_ext, and return whether this succeeded.
3020 ac_fn_cxx_try_link ()
3022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3023 rm -f conftest.$ac_objext conftest$ac_exeext
3024 if { { ac_try="$ac_link"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030 $as_echo "$ac_try_echo"; } >&5
3031 (eval "$ac_link") 2>conftest.err
3033 if test -s conftest.err; then
3034 grep -v '^ *+' conftest.err >conftest.er1
3035 cat conftest.er1 >&5
3036 mv -f conftest.er1 conftest.err
3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; } && {
3040 test -z "$ac_cxx_werror_flag" ||
3041 test ! -s conftest.err
3042 } && test -s conftest$ac_exeext && {
3043 test "$cross_compiling" = yes ||
3044 test -x conftest$ac_exeext
3048 $as_echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3055 # interfere with the next link command; also delete a directory that is
3056 # left behind by Apple's compiler. We do this before executing the actions.
3057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3059 as_fn_set_status $ac_retval
3061 } # ac_fn_cxx_try_link
3063 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
3064 # ---------------------------------------------------------
3065 # Tests whether HEADER exists and can be compiled using the include files in
3066 # INCLUDES, setting the cache variable VAR accordingly.
3067 ac_fn_cxx_check_header_compile ()
3069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3071 $as_echo_n "checking for $2... " >&6; }
3072 if eval \${$3+:} false; then :
3073 $as_echo_n "(cached) " >&6
3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h. */
3080 if ac_fn_cxx_try_compile "$LINENO"; then :
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3089 $as_echo "$ac_res" >&6; }
3090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3092 } # ac_fn_cxx_check_header_compile
3093 cat >config.log <<_ACEOF
3094 This file contains any messages produced by compilers while
3095 running configure, to aid debugging if configure makes a mistake.
3097 It was created by asterisk $as_me trunk, which was
3098 generated by GNU Autoconf 2.69. Invocation command line was
3110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3122 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 $as_echo "PATH: $as_dir"
3150 # Keep a trace of the command line.
3151 # Strip out --no-create and --no-recursion so they do not pile up.
3152 # Strip out --silent because we don't want to record it for future runs.
3153 # Also quote any args containing shell meta-characters.
3154 # Make two passes to allow for proper duplicate-argument suppression.
3158 ac_must_keep_next=false
3164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3166 | -silent | --silent | --silen | --sile | --sil)
3169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3174 as_fn_append ac_configure_args1 " '$ac_arg'"
3175 if test $ac_must_keep_next = true; then
3176 ac_must_keep_next=false # Got value, back to normal.
3179 *=* | --config-cache | -C | -disable-* | --disable-* \
3180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3182 | -with-* | --with-* | -without-* | --without-* | --x)
3183 case "$ac_configure_args0 " in
3184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3187 -* ) ac_must_keep_next=true ;;
3190 as_fn_append ac_configure_args " '$ac_arg'"
3195 { ac_configure_args0=; unset ac_configure_args0;}
3196 { ac_configure_args1=; unset ac_configure_args1;}
3198 # When interrupted or exit'd, cleanup temporary files, and complete
3199 # config.log. We remove comments because anyway the quotes in there
3200 # would cause problems or look ugly.
3201 # WARNING: Use '\'' to represent an apostrophe within the trap.
3202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3203 trap 'exit_status=$?
3204 # Save into config.log some information that might help in debugging.
3208 $as_echo "## ---------------- ##
3209 ## Cache variables. ##
3210 ## ---------------- ##"
3212 # The following way of writing the cache mishandles newlines in values,
3214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3215 eval ac_val=\$$ac_var
3219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3223 _ | IFS | as_nl) ;; #(
3224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3225 *) { eval $ac_var=; unset $ac_var;} ;;
3230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3231 *${as_nl}ac_space=\ *)
3233 "s/'\''/'\''\\\\'\'''\''/g;
3234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3244 $as_echo "## ----------------- ##
3245 ## Output variables. ##
3246 ## ----------------- ##"
3248 for ac_var in $ac_subst_vars
3250 eval ac_val=\$$ac_var
3252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3254 $as_echo "$ac_var='\''$ac_val'\''"
3258 if test -n "$ac_subst_files"; then
3259 $as_echo "## ------------------- ##
3260 ## File substitutions. ##
3261 ## ------------------- ##"
3263 for ac_var in $ac_subst_files
3265 eval ac_val=\$$ac_var
3267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3269 $as_echo "$ac_var='\''$ac_val'\''"
3274 if test -s confdefs.h; then
3275 $as_echo "## ----------- ##
3282 test "$ac_signal" != 0 &&
3283 $as_echo "$as_me: caught signal $ac_signal"
3284 $as_echo "$as_me: exit $exit_status"
3286 rm -f core *.core core.conftest.* &&
3287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3290 for ac_signal in 1 2 13 15; do
3291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3296 rm -f -r conftest* confdefs.h
3298 $as_echo "/* confdefs.h */" > confdefs.h
3300 # Predefined preprocessor variables.
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE_NAME "$PACKAGE_NAME"
3306 cat >>confdefs.h <<_ACEOF
3307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3310 cat >>confdefs.h <<_ACEOF
3311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3314 cat >>confdefs.h <<_ACEOF
3315 #define PACKAGE_STRING "$PACKAGE_STRING"
3318 cat >>confdefs.h <<_ACEOF
3319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3322 cat >>confdefs.h <<_ACEOF
3323 #define PACKAGE_URL "$PACKAGE_URL"
3327 # Let the site file select an alternate cache file if it wants to.
3328 # Prefer an explicitly selected file to automatically selected ones.
3331 if test -n "$CONFIG_SITE"; then
3332 # We do not want a PATH search for config.site.
3333 case $CONFIG_SITE in #((
3334 -*) ac_site_file1=./$CONFIG_SITE;;
3335 */*) ac_site_file1=$CONFIG_SITE;;
3336 *) ac_site_file1=./$CONFIG_SITE;;
3338 elif test "x$prefix" != xNONE; then
3339 ac_site_file1=$prefix/share/config.site
3340 ac_site_file2=$prefix/etc/config.site
3342 ac_site_file1=$ac_default_prefix/share/config.site
3343 ac_site_file2=$ac_default_prefix/etc/config.site
3345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3347 test "x$ac_site_file" = xNONE && continue
3348 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3351 sed 's/^/| /' "$ac_site_file" >&5
3353 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "failed to load site script $ac_site_file
3356 See \`config.log' for more details" "$LINENO" 5; }
3360 if test -r "$cache_file"; then
3361 # Some versions of bash will fail to source /dev/null (special files
3362 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3363 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3365 $as_echo "$as_me: loading cache $cache_file" >&6;}
3367 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3368 *) . "./$cache_file";;
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3373 $as_echo "$as_me: creating cache $cache_file" >&6;}
3377 as_fn_append ac_header_list " stdlib.h"
3378 as_fn_append ac_header_list " unistd.h"
3379 as_fn_append ac_header_list " sys/param.h"
3380 as_fn_append ac_header_list " utime.h"
3381 # Check that the precious variables saved in the cache have kept the same
3383 ac_cache_corrupted=false
3384 for ac_var in $ac_precious_vars; do
3385 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3386 eval ac_new_set=\$ac_env_${ac_var}_set
3387 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3388 eval ac_new_val=\$ac_env_${ac_var}_value
3389 case $ac_old_set,$ac_new_set in
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3392 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3393 ac_cache_corrupted=: ;;
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3396 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3397 ac_cache_corrupted=: ;;
3400 if test "x$ac_old_val" != "x$ac_new_val"; then
3401 # differences in whitespace do not lead to failure.
3402 ac_old_val_w=`echo x $ac_old_val`
3403 ac_new_val_w=`echo x $ac_new_val`
3404 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3406 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3407 ac_cache_corrupted=:
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3410 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3411 eval $ac_var=\$ac_old_val
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3414 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3416 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3419 # Pass precious variables to config.status.
3420 if test "$ac_new_set" = set; then
3422 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3423 *) ac_arg=$ac_var=$ac_new_val ;;
3425 case " $ac_configure_args " in
3426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3427 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3431 if $ac_cache_corrupted; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3435 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3436 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3438 ## -------------------- ##
3439 ## Main body of script. ##
3440 ## -------------------- ##
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450 # cross-compile macros
3452 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3453 if test -f "$ac_dir/install-sh"; then
3455 ac_install_sh="$ac_aux_dir/install-sh -c"
3457 elif test -f "$ac_dir/install.sh"; then
3459 ac_install_sh="$ac_aux_dir/install.sh -c"
3461 elif test -f "$ac_dir/shtool"; then
3463 ac_install_sh="$ac_aux_dir/shtool install -c"
3467 if test -z "$ac_aux_dir"; then
3468 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3471 # These three variables are undocumented and unsupported,
3472 # and are intended to be withdrawn in a future Autoconf release.
3473 # They can cause serious problems if a builder's source tree is in a directory
3474 # whose full name contains unusual characters.
3475 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3476 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3477 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3480 # Make sure we can run config.sub.
3481 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3482 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3485 $as_echo_n "checking build system type... " >&6; }
3486 if ${ac_cv_build+:} false; then :
3487 $as_echo_n "(cached) " >&6
3489 ac_build_alias=$build_alias
3490 test "x$ac_build_alias" = x &&
3491 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3492 test "x$ac_build_alias" = x &&
3493 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3494 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3495 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3499 $as_echo "$ac_cv_build" >&6; }
3500 case $ac_cv_build in
3502 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3505 ac_save_IFS=$IFS; IFS='-'
3511 # Remember, the first character of IFS is used to create $*,
3512 # except with old shells:
3515 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3519 $as_echo_n "checking host system type... " >&6; }
3520 if ${ac_cv_host+:} false; then :
3521 $as_echo_n "(cached) " >&6
3523 if test "x$host_alias" = x; then
3524 ac_cv_host=$ac_cv_build
3526 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3527 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3532 $as_echo "$ac_cv_host" >&6; }
3535 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3538 ac_save_IFS=$IFS; IFS='-'
3544 # Remember, the first character of IFS is used to create $*,
3545 # except with old shells:
3548 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3552 # check existence of the package
3556 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3557 if test -f "$ac_dir/install-sh"; then
3559 ac_install_sh="$ac_aux_dir/install-sh -c"
3561 elif test -f "$ac_dir/install.sh"; then
3563 ac_install_sh="$ac_aux_dir/install.sh -c"
3565 elif test -f "$ac_dir/shtool"; then
3567 ac_install_sh="$ac_aux_dir/shtool install -c"
3571 if test -z "$ac_aux_dir"; then
3572 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3575 # These three variables are undocumented and unsupported,
3576 # and are intended to be withdrawn in a future Autoconf release.
3577 # They can cause serious problems if a builder's source tree is in a directory
3578 # whose full name contains unusual characters.
3579 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3580 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3581 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3588 # preserve any CFLAGS or LDFLAGS that may be set
3589 # NOTE: This must be done before calling any macros that end up
3590 # calling AC_PROG_CC or the like, since they will set a default
3591 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3592 # we don't want those default flags to be carried over into the
3593 # rest of the build system since we have other means of controlling
3594 # debugging symbol generation and optimization.
3595 CONFIG_CFLAGS="${CFLAGS}"
3596 CONFIG_LDFLAGS="${LDFLAGS}"
3600 # specify output header file
3601 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3604 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3605 # other macro that uses the C compiler, or the default order will be used.
3607 ac_cpp='$CPP $CPPFLAGS'
3608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611 if test -n "$ac_tool_prefix"; then
3612 for ac_prog in gcc cc
3614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if ${ac_cv_prog_CC+:} false; then :
3619 $as_echo_n "(cached) " >&6
3621 if test -n "$CC"; then
3622 ac_cv_prog_CC="$CC" # Let the user override the test.
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 if test -n "$CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3644 $as_echo "$CC" >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3651 test -n "$CC" && break
3654 if test -z "$CC"; then
3656 for ac_prog in gcc cc
3658 # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3663 $as_echo_n "(cached) " >&6
3665 if test -n "$ac_ct_CC"; then
3666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 ac_cv_prog_ac_ct_CC="$ac_prog"
3676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3686 if test -n "$ac_ct_CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3688 $as_echo "$ac_ct_CC" >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3695 test -n "$ac_ct_CC" && break
3698 if test "x$ac_ct_CC" = x; then
3701 case $cross_compiling:$ac_tool_warned in
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3705 ac_tool_warned=yes ;;
3712 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "no acceptable C compiler found in \$PATH
3715 See \`config.log' for more details" "$LINENO" 5; }
3717 # Provide some information about the compiler.
3718 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3721 for ac_option in --version -v -V -qversion; do
3722 { { ac_try="$ac_compiler $ac_option >&5"
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3731 if test -s conftest.err; then
3733 ... rest of stderr output deleted ...
3734 10q' conftest.err >conftest.er1
3735 cat conftest.er1 >&5
3737 rm -f conftest.er1 conftest.err
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3753 ac_clean_files_save=$ac_clean_files
3754 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3755 # Try to create an executable without -o first, disregard a.out.
3756 # It will help us diagnose broken compilers, and finding out an intuition
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3759 $as_echo_n "checking whether the C compiler works... " >&6; }
3760 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3762 # The possible output files:
3763 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3766 for ac_file in $ac_files
3769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3775 if { { ac_try="$ac_link_default"
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_link_default") 2>&5
3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785 test $ac_status = 0; }; then :
3786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3787 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3788 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3789 # so that the user can short-circuit this test for compilers unknown to
3791 for ac_file in $ac_files ''
3793 test -f "$ac_file" || continue
3795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3798 # We found the default executable, but exeext='' is most
3802 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3806 # We set ac_cv_exeext here because the later test for it is not
3807 # safe: cross compilers may not add the suffix if given an `-o'
3808 # argument, so we may need to know it at that point already.
3809 # Even if this section looks crufty: it has the advantage of
3816 test "$ac_cv_exeext" = no && ac_cv_exeext=
3821 if test -z "$ac_file"; then :
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error 77 "C compiler cannot create executables
3830 See \`config.log' for more details" "$LINENO" 5; }
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3833 $as_echo "yes" >&6; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3836 $as_echo_n "checking for C compiler default output file name... " >&6; }
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3838 $as_echo "$ac_file" >&6; }
3839 ac_exeext=$ac_cv_exeext
3841 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3842 ac_clean_files=$ac_clean_files_save
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3844 $as_echo_n "checking for suffix of executables... " >&6; }
3845 if { { ac_try="$ac_link"
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_link") 2>&5
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }; then :
3856 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3857 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3858 # work properly (i.e., refer to `conftest.exe'), while it won't with
3860 for ac_file in conftest.exe conftest conftest.*; do
3861 test -f "$ac_file" || continue
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3873 See \`config.log' for more details" "$LINENO" 5; }
3875 rm -f conftest conftest$ac_cv_exeext
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3877 $as_echo "$ac_cv_exeext" >&6; }
3879 rm -f conftest.$ac_ext
3880 EXEEXT=$ac_cv_exeext
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3888 FILE *f = fopen ("conftest.out", "w");
3889 return ferror (f) || fclose (f) != 0;
3895 ac_clean_files="$ac_clean_files conftest.out"
3896 # Check that the compiler produces executables we can run. If not, either
3897 # the compiler is broken, or we cross compile.
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3899 $as_echo_n "checking whether we are cross compiling... " >&6; }
3900 if test "$cross_compiling" != yes; then
3901 { { ac_try="$ac_link"
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_link") 2>&5
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }
3912 if { ac_try='./conftest$ac_cv_exeext'
3913 { { case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_try") 2>&5
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; }; then
3925 if test "$cross_compiling" = maybe; then
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error $? "cannot run C compiled programs.
3931 If you meant to cross compile, use \`--host'.
3932 See \`config.log' for more details" "$LINENO" 5; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3937 $as_echo "$cross_compiling" >&6; }
3939 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3940 ac_clean_files=$ac_clean_files_save
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3942 $as_echo_n "checking for suffix of object files... " >&6; }
3943 if ${ac_cv_objext+:} false; then :
3944 $as_echo_n "(cached) " >&6
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3957 rm -f conftest.o conftest.obj
3958 if { { ac_try="$ac_compile"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_compile") 2>&5
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; then :
3969 for ac_file in conftest.o conftest.obj conftest.*; do
3970 test -f "$ac_file" || continue;
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error $? "cannot compute suffix of object files: cannot compile
3984 See \`config.log' for more details" "$LINENO" 5; }
3986 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3989 $as_echo "$ac_cv_objext" >&6; }
3990 OBJEXT=$ac_cv_objext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3993 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3994 if ${ac_cv_c_compiler_gnu+:} false; then :
3995 $as_echo_n "(cached) " >&6
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4011 if ac_fn_c_try_compile "$LINENO"; then :
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4021 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4022 if test $ac_compiler_gnu = yes; then
4027 ac_test_CFLAGS=${CFLAGS+set}
4028 ac_save_CFLAGS=$CFLAGS
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4030 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4031 if ${ac_cv_prog_cc_g+:} false; then :
4032 $as_echo_n "(cached) " >&6
4034 ac_save_c_werror_flag=$ac_c_werror_flag
4035 ac_c_werror_flag=yes
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4049 if ac_fn_c_try_compile "$LINENO"; then :
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4064 if ac_fn_c_try_compile "$LINENO"; then :
4067 ac_c_werror_flag=$ac_save_c_werror_flag
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4080 if ac_fn_c_try_compile "$LINENO"; then :
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4091 $as_echo "$ac_cv_prog_cc_g" >&6; }
4092 if test "$ac_test_CFLAGS" = set; then
4093 CFLAGS=$ac_save_CFLAGS
4094 elif test $ac_cv_prog_cc_g = yes; then
4095 if test "$GCC" = yes; then
4101 if test "$GCC" = yes; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4108 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4109 if ${ac_cv_prog_cc_c89+:} false; then :
4110 $as_echo_n "(cached) " >&6
4112 ac_cv_prog_cc_c89=no
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4119 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4120 struct buf { int x; };
4121 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4122 static char *e (p, i)
4128 static char *f (char * (*g) (char **, int), char **p, ...)
4133 s = g (p, va_arg (v,int));
4138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4139 function prototypes and stuff, but not '\xHH' hex character constants.
4140 These don't provoke an error unfortunately, instead are silently treated
4141 as 'x'. The following induces an error, until -std is added to get
4142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4143 array size at least. It's necessary to write '\x00'==0 to get something
4144 that's true only with -std. */
4145 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4147 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4148 inside strings and character constants. */
4150 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4152 int test (int i, double x);
4153 struct s1 {int (*f) (int a);};
4154 struct s2 {int (*f) (double a);};
4155 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4161 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4166 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4167 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4169 CC="$ac_save_CC $ac_arg"
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_prog_cc_c89=$ac_arg
4173 rm -f core conftest.err conftest.$ac_objext
4174 test "x$ac_cv_prog_cc_c89" != "xno" && break
4176 rm -f conftest.$ac_ext
4181 case "x$ac_cv_prog_cc_c89" in
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4184 $as_echo "none needed" >&6; } ;;
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4187 $as_echo "unsupported" >&6; } ;;
4189 CC="$CC $ac_cv_prog_cc_c89"
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4191 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4193 if test "x$ac_cv_prog_cc_c89" != xno; then :
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4211 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4212 # On Suns, sometimes $CPP names a directory.
4213 if test -n "$CPP" && test -d "$CPP"; then
4216 if test -z "$CPP"; then
4217 if ${ac_cv_prog_CPP+:} false; then :
4218 $as_echo_n "(cached) " >&6
4220 # Double quotes because CPP needs to be expanded
4221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4224 for ac_c_preproc_warn_flag in '' yes
4226 # Use a header file that comes with gcc, so configuring glibc
4227 # with a fresh cross-compiler works.
4228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 # <limits.h> exists even on freestanding compilers.
4230 # On the NeXT, cc -E runs the code through the compiler's parser,
4231 # not just through cpp. "Syntax error" is here to catch this case.
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4235 # include <limits.h>
4237 # include <assert.h>
4241 if ac_fn_c_try_cpp "$LINENO"; then :
4244 # Broken: fails on valid input.
4247 rm -f conftest.err conftest.i conftest.$ac_ext
4249 # OK, works on sane cases. Now check whether nonexistent headers
4250 # can be detected and how.
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 #include <ac_nonexistent.h>
4255 if ac_fn_c_try_cpp "$LINENO"; then :
4256 # Broken: success on invalid input.
4259 # Passes both tests.
4263 rm -f conftest.err conftest.i conftest.$ac_ext
4266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4267 rm -f conftest.i conftest.err conftest.$ac_ext
4268 if $ac_preproc_ok; then :
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4281 $as_echo "$CPP" >&6; }
4283 for ac_c_preproc_warn_flag in '' yes
4285 # Use a header file that comes with gcc, so configuring glibc
4286 # with a fresh cross-compiler works.
4287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 # <limits.h> exists even on freestanding compilers.
4289 # On the NeXT, cc -E runs the code through the compiler's parser,
4290 # not just through cpp. "Syntax error" is here to catch this case.
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4294 # include <limits.h>
4296 # include <assert.h>
4300 if ac_fn_c_try_cpp "$LINENO"; then :
4303 # Broken: fails on valid input.
4306 rm -f conftest.err conftest.i conftest.$ac_ext
4308 # OK, works on sane cases. Now check whether nonexistent headers
4309 # can be detected and how.
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312 #include <ac_nonexistent.h>
4314 if ac_fn_c_try_cpp "$LINENO"; then :
4315 # Broken: success on invalid input.
4318 # Passes both tests.
4322 rm -f conftest.err conftest.i conftest.$ac_ext
4325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4326 rm -f conftest.i conftest.err conftest.$ac_ext
4327 if $ac_preproc_ok; then :
4330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4332 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4333 See \`config.log' for more details" "$LINENO" 5; }
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4344 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4345 if ${ac_cv_path_GREP+:} false; then :
4346 $as_echo_n "(cached) " >&6
4348 if test -z "$GREP"; then
4349 ac_path_GREP_found=false
4350 # Loop through the user's path and test for each of PROGNAME-LIST
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 test -z "$as_dir" && as_dir=.
4356 for ac_prog in grep ggrep; do
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4359 as_fn_executable_p "$ac_path_GREP" || continue
4360 # Check for GNU ac_path_GREP and select it if it is found.
4361 # Check for GNU $ac_path_GREP
4362 case `"$ac_path_GREP" --version 2>&1` in
4364 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4367 $as_echo_n 0123456789 >"conftest.in"
4370 cat "conftest.in" "conftest.in" >"conftest.tmp"
4371 mv "conftest.tmp" "conftest.in"
4372 cp "conftest.in" "conftest.nl"
4373 $as_echo 'GREP' >> "conftest.nl"
4374 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4376 as_fn_arith $ac_count + 1 && ac_count=$as_val
4377 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4378 # Best one so far, save it but keep looking for a better one
4379 ac_cv_path_GREP="$ac_path_GREP"
4380 ac_path_GREP_max=$ac_count
4382 # 10*(2^10) chars as input seems more than enough
4383 test $ac_count -gt 10 && break
4385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388 $ac_path_GREP_found && break 3
4393 if test -z "$ac_cv_path_GREP"; then
4394 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397 ac_cv_path_GREP=$GREP
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4402 $as_echo "$ac_cv_path_GREP" >&6; }
4403 GREP="$ac_cv_path_GREP"
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4407 $as_echo_n "checking for egrep... " >&6; }
4408 if ${ac_cv_path_EGREP+:} false; then :
4409 $as_echo_n "(cached) " >&6
4411 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4412 then ac_cv_path_EGREP="$GREP -E"
4414 if test -z "$EGREP"; then
4415 ac_path_EGREP_found=false
4416 # Loop through the user's path and test for each of PROGNAME-LIST
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421 test -z "$as_dir" && as_dir=.
4422 for ac_prog in egrep; do
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4425 as_fn_executable_p "$ac_path_EGREP" || continue
4426 # Check for GNU ac_path_EGREP and select it if it is found.
4427 # Check for GNU $ac_path_EGREP
4428 case `"$ac_path_EGREP" --version 2>&1` in
4430 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4433 $as_echo_n 0123456789 >"conftest.in"
4436 cat "conftest.in" "conftest.in" >"conftest.tmp"
4437 mv "conftest.tmp" "conftest.in"
4438 cp "conftest.in" "conftest.nl"
4439 $as_echo 'EGREP' >> "conftest.nl"
4440 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4442 as_fn_arith $ac_count + 1 && ac_count=$as_val
4443 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4444 # Best one so far, save it but keep looking for a better one
4445 ac_cv_path_EGREP="$ac_path_EGREP"
4446 ac_path_EGREP_max=$ac_count
4448 # 10*(2^10) chars as input seems more than enough
4449 test $ac_count -gt 10 && break
4451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 $ac_path_EGREP_found && break 3
4459 if test -z "$ac_cv_path_EGREP"; then
4460 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4463 ac_cv_path_EGREP=$EGREP
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4469 $as_echo "$ac_cv_path_EGREP" >&6; }
4470 EGREP="$ac_cv_path_EGREP"
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4474 $as_echo_n "checking for ANSI C header files... " >&6; }
4475 if ${ac_cv_header_stdc+:} false; then :
4476 $as_echo_n "(cached) " >&6
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4493 if ac_fn_c_try_compile "$LINENO"; then :
4494 ac_cv_header_stdc=yes
4496 ac_cv_header_stdc=no
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 if test $ac_cv_header_stdc = yes; then
4501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4508 $EGREP "memchr" >/dev/null 2>&1; then :
4511 ac_cv_header_stdc=no
4517 if test $ac_cv_header_stdc = yes; then
4518 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4525 $EGREP "free" >/dev/null 2>&1; then :
4528 ac_cv_header_stdc=no
4534 if test $ac_cv_header_stdc = yes; then
4535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4536 if test "$cross_compiling" = yes; then :
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4543 #if ((' ' & 0x0FF) == 0x020)
4544 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4545 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4547 # define ISLOWER(c) \
4548 (('a' <= (c) && (c) <= 'i') \
4549 || ('j' <= (c) && (c) <= 'r') \
4550 || ('s' <= (c) && (c) <= 'z'))
4551 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4554 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4559 for (i = 0; i < 256; i++)
4560 if (XOR (islower (i), ISLOWER (i))
4561 || toupper (i) != TOUPPER (i))
4566 if ac_fn_c_try_run "$LINENO"; then :
4569 ac_cv_header_stdc=no
4571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4572 conftest.$ac_objext conftest.beam conftest.$ac_ext
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4578 $as_echo "$ac_cv_header_stdc" >&6; }
4579 if test $ac_cv_header_stdc = yes; then
4581 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4585 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4586 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4587 inttypes.h stdint.h unistd.h
4589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4590 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4593 cat >>confdefs.h <<_ACEOF
4594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4603 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4604 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4611 if test "$MINIX" = yes; then
4613 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4616 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4619 $as_echo "#define _MINIX 1" >>confdefs.h
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4625 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4626 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4627 $as_echo_n "(cached) " >&6
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4632 # define __EXTENSIONS__ 1
4633 $ac_includes_default
4642 if ac_fn_c_try_compile "$LINENO"; then :
4643 ac_cv_safe_to_define___extensions__=yes
4645 ac_cv_safe_to_define___extensions__=no
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4650 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4651 test $ac_cv_safe_to_define___extensions__ = yes &&
4652 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4654 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4656 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4658 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4660 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4663 # System default paths
4664 astsbindir='${sbindir}'
4665 astetcdir='${sysconfdir}/asterisk'
4666 astheaderdir='${includedir}/asterisk'
4667 astlibdir='${libdir}'
4668 astmoddir='${libdir}/asterisk/modules'
4669 astmandir='${mandir}'
4670 astvarlibdir='${localstatedir}/lib/asterisk'
4671 astdatadir='${astvarlibdir}'
4672 astdbdir='${astvarlibdir}'
4673 astkeydir='${astvarlibdir}'
4674 astspooldir='${localstatedir}/spool/asterisk'
4675 astlogdir='${localstatedir}/log/asterisk'
4676 astvarrundir='${localstatedir}/run/asterisk'
4678 case "${host_os}" in
4680 if test ${prefix} = 'NONE'; then
4681 astvarlibdir='${prefix}/share/asterisk'
4682 astdbdir='${localstatedir}/db/asterisk'
4686 if test ${prefix} = 'NONE'; then
4687 astvarrundir='/Library/Application Support/Asterisk/Run'
4692 case "${host_os}" in
4694 ac_default_prefix=/usr/local
4695 CPPFLAGS=-I/usr/local/include
4696 LDFLAGS=-L/usr/local/lib
4699 ac_default_prefix=/usr/local
4700 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4701 if test ${sysconfdir} = '${prefix}/etc'; then
4702 astetcdir=/etc/asterisk
4704 if test ${mandir} = '${prefix}/man'; then
4705 astmandir=/usr/share/man