2 # From configure.ac Revision: 338139 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for asterisk trunk.
6 # Report bugs to <https://issues.asterisk.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
18 ## -------------------- ##
19 ## M4sh Initialization. ##
20 ## -------------------- ##
22 # Be more Bourne compatible
23 DUALCASE=1; export DUALCASE # for MKS sh
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
32 case `(set -o) 2>/dev/null` in #(
44 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 # Prefer a ksh shell builtin over an external printf program on Solaris,
49 # but without wasting forks for bash or zsh.
50 if test -z "$BASH_VERSION$ZSH_VERSION" \
51 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo_n='print -rn --'
54 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
58 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
60 as_echo_n='/usr/ucb/echo -n'
62 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
67 expr "X$arg" : "X\\(.*\\)$as_nl";
68 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73 as_echo_n='sh -c $as_echo_n_body as_echo'
76 as_echo='sh -c $as_echo_body as_echo'
79 # The user is always right.
80 if test "${PATH_SEPARATOR+set}" != set; then
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
99 *[\\/]* ) as_myself=$0 ;;
100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 test -z "$as_dir" && as_dir=.
105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
111 # We did not find ourselves, most probably we were run as `sh COMMAND'
112 # in which case we are not to be found in the path.
113 if test "x$as_myself" = x; then
116 if test ! -f "$as_myself"; then
117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 # Unset variables that we do not need and which cause bugs (e.g. in
122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
123 # suppresses any "Segmentation fault" message there. '((' could
124 # trigger a bug in pdksh 5.2.14.
125 for as_var in BASH_ENV ENV MAIL MAILPATH
126 do eval test x\${$as_var+set} = xset \
127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
173 exitcode=1; echo positional parameters were not saved.
175 test x\$exitcode = x0 || exit 1"
176 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
177 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
178 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
179 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 # Preserve -v and -x to the replacement shell.
226 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229 *v*x* | *x*v* ) as_opts=-vx ;;
234 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
237 if test x$as_have_required = xno; then :
238 $as_echo "$0: This script requires a shell more modern than all"
239 $as_echo "$0: the shells that I found on your system."
240 if test x${ZSH_VERSION+set} = xset ; then
241 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
242 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
244 $as_echo "$0: Please tell bug-autoconf@gnu.org and
245 $0: https://issues.asterisk.org about your system,
246 $0: including any error possibly output before this
247 $0: message. Then install a modern shell, or manually run
248 $0: the script under such a shell if you do have one."
254 SHELL=${CONFIG_SHELL-/bin/sh}
256 # Unset more variables known to interfere with behavior of common tools.
257 CLICOLOR_FORCE= GREP_OPTIONS=
258 unset CLICOLOR_FORCE GREP_OPTIONS
260 ## --------------------- ##
261 ## M4sh Shell Functions. ##
262 ## --------------------- ##
265 # Portably unset VAR.
268 { eval $1=; unset $1;}
272 # as_fn_set_status STATUS
273 # -----------------------
274 # Set $? to STATUS, without forking.
282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
292 # Create "$as_dir" as a directory, including parents if necessary.
297 -*) as_dir=./$as_dir;;
299 test -d "$as_dir" || eval $as_mkdir_p || {
303 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 as_dirs="'$as_qdir' $as_dirs"
307 as_dir=`$as_dirname -- "$as_dir" ||
308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
309 X"$as_dir" : 'X\(//\)[^/]' \| \
310 X"$as_dir" : 'X\(//\)$' \| \
311 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
312 $as_echo X"$as_dir" |
313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
330 test -d "$as_dir" && break
332 test -z "$as_dirs" || eval "mkdir $as_dirs"
333 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
337 # as_fn_append VAR VALUE
338 # ----------------------
339 # Append the text in VALUE to the end of the definition contained in VAR. Take
340 # advantage of any shell optimizations that allow amortized linear growth over
341 # repeated appends, instead of the typical quadratic growth present in naive
343 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
344 eval 'as_fn_append ()
357 # Perform arithmetic evaluation on the ARGs, and store the result in the
358 # global $as_val. Take advantage of shells that can avoid forks. The arguments
359 # must be portable across $(()) and expr.
360 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
368 as_val=`expr "$@" || test $? -eq 1`
373 # as_fn_error STATUS ERROR [LINENO LOG_FD]
374 # ----------------------------------------
375 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
376 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
377 # script with STATUS, using 1 if that was 0.
380 as_status=$1; test $as_status -eq 0 && as_status=1
382 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
383 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
385 $as_echo "$as_me: error: $2" >&2
386 as_fn_exit $as_status
389 if expr a : '\(a\)' >/dev/null 2>&1 &&
390 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_me=`$as_basename -- "$0" ||
409 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
410 X"$0" : 'X\(//\)$' \| \
411 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
413 sed '/^.*\/\([^/][^/]*\)\/*$/{
427 # Avoid depending upon Character Ranges.
428 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
429 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
430 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
431 as_cr_digits='0123456789'
432 as_cr_alnum=$as_cr_Letters$as_cr_digits
435 as_lineno_1=$LINENO as_lineno_1a=$LINENO
436 as_lineno_2=$LINENO as_lineno_2a=$LINENO
437 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
438 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
439 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in #(((((
469 case `echo 'xy\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
472 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 rm -f conf$$ conf$$.exe conf$$.file
480 if test -d conf$$.dir; then
481 rm -f conf$$.dir/conf$$.file
484 mkdir conf$$.dir 2>/dev/null
486 if (echo >conf$$.file) 2>/dev/null; then
487 if ln -s conf$$.file conf$$ 2>/dev/null; then
489 # ... but there are two gotchas:
490 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
491 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
492 # In both cases, we have to default to `cp -p'.
493 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
495 elif ln conf$$.file conf$$ 2>/dev/null; then
503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
504 rmdir conf$$.dir 2>/dev/null
506 if mkdir -p . 2>/dev/null; then
507 as_mkdir_p='mkdir -p "$as_dir"'
509 test -d ./-p && rmdir ./-p
513 if test -x / >/dev/null 2>&1; then
516 if ls -dL / >/dev/null 2>&1; then
523 if test -d "$1"; then
529 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
530 ???[sx]*):;;*)false;;esac;fi
534 as_executable_p=$as_test_x
536 # Sed expression to map a string onto a valid CPP name.
537 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
539 # Sed expression to map a string onto a valid variable name.
540 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543 test -n "$DJDIR" || exec 7<&0 </dev/null
547 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
548 # so uname gets run too.
549 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554 ac_default_prefix=/usr/local
556 ac_config_libobj_dir=.
563 # Identity of this package.
564 PACKAGE_NAME='asterisk'
565 PACKAGE_TARNAME='asterisk'
566 PACKAGE_VERSION='trunk'
567 PACKAGE_STRING='asterisk trunk'
568 PACKAGE_BUGREPORT='https://issues.asterisk.org'
571 ac_unique_file="main/asterisk.c"
572 # Factoring default headers for most tests.
573 ac_includes_default="\
575 #ifdef HAVE_SYS_TYPES_H
576 # include <sys/types.h>
578 #ifdef HAVE_SYS_STAT_H
579 # include <sys/stat.h>
585 # ifdef HAVE_STDLIB_H
590 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #ifdef HAVE_STRINGS_H
596 # include <strings.h>
598 #ifdef HAVE_INTTYPES_H
599 # include <inttypes.h>
609 ac_subst_vars='LTLIBOBJS
611 PBX_SYSLOG_FACILITY_LOG_UUCP
612 PBX_SYSLOG_FACILITY_LOG_SYSLOG
613 PBX_SYSLOG_FACILITY_LOG_NEWS
614 PBX_SYSLOG_FACILITY_LOG_MAIL
615 PBX_SYSLOG_FACILITY_LOG_LPR
616 PBX_SYSLOG_FACILITY_LOG_KERN
617 PBX_SYSLOG_FACILITY_LOG_FTP
618 PBX_SYSLOG_FACILITY_LOG_DAEMON
619 PBX_SYSLOG_FACILITY_LOG_CRON
620 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
621 PBX_SYSLOG_FACILITY_LOG_AUTH
661 AST_NO_STRICT_OVERFLOW
663 AST_DECLARATION_AFTER_STATEMENT
667 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
668 PBX_PTHREAD_RWLOCK_INITIALIZER
747 SPEEX_PREPROCESS_INCLUDE
1084 program_transform_name
1097 enable_option_checking
1174 enable_internal_poll
1176 ac_precious_vars='build_alias
1191 # Initialize some variables set by options.
1193 ac_init_version=false
1194 ac_unrecognized_opts=
1195 ac_unrecognized_sep=
1196 # The variables have the same names as the options, with
1197 # dashes changed to underlines.
1198 cache_file=/dev/null
1205 program_transform_name=s,x,x,
1213 # Installation directory options.
1214 # These are left unexpanded so users can "make install exec_prefix=/foo"
1215 # and all the variables that are supposed to be based on exec_prefix
1216 # by default will actually change.
1217 # Use braces instead of parens because sh, perl, etc. also accept them.
1218 # (The list follows the same order as the GNU Coding Standards.)
1219 bindir='${exec_prefix}/bin'
1220 sbindir='${exec_prefix}/sbin'
1221 libexecdir='${exec_prefix}/libexec'
1222 datarootdir='${prefix}/share'
1223 datadir='${datarootdir}'
1224 sysconfdir='${prefix}/etc'
1225 sharedstatedir='${prefix}/com'
1226 localstatedir='${prefix}/var'
1227 includedir='${prefix}/include'
1228 oldincludedir='/usr/include'
1229 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1230 infodir='${datarootdir}/info'
1235 libdir='${exec_prefix}/lib'
1236 localedir='${datarootdir}/locale'
1237 mandir='${datarootdir}/man'
1243 # If the previous option needs an argument, assign it.
1244 if test -n "$ac_prev"; then
1245 eval $ac_prev=\$ac_option
1251 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1256 # Accept the important Cygnus configure options, so we can diagnose typos.
1258 case $ac_dashdash$ac_option in
1262 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1264 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1265 bindir=$ac_optarg ;;
1267 -build | --build | --buil | --bui | --bu)
1268 ac_prev=build_alias ;;
1269 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1270 build_alias=$ac_optarg ;;
1272 -cache-file | --cache-file | --cache-fil | --cache-fi \
1273 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1274 ac_prev=cache_file ;;
1275 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1276 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1277 cache_file=$ac_optarg ;;
1279 --config-cache | -C)
1280 cache_file=config.cache ;;
1282 -datadir | --datadir | --datadi | --datad)
1284 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1285 datadir=$ac_optarg ;;
1287 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1288 | --dataroo | --dataro | --datar)
1289 ac_prev=datarootdir ;;
1290 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1291 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1292 datarootdir=$ac_optarg ;;
1294 -disable-* | --disable-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid feature name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1303 "enable_$ac_useropt"
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1308 eval enable_$ac_useropt=no ;;
1310 -docdir | --docdir | --docdi | --doc | --do)
1312 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1313 docdir=$ac_optarg ;;
1315 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1317 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1318 dvidir=$ac_optarg ;;
1320 -enable-* | --enable-*)
1321 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324 as_fn_error $? "invalid feature name: $ac_useropt"
1325 ac_useropt_orig=$ac_useropt
1326 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1327 case $ac_user_opts in
1329 "enable_$ac_useropt"
1331 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1332 ac_unrecognized_sep=', ';;
1334 eval enable_$ac_useropt=\$ac_optarg ;;
1336 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1337 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1338 | --exec | --exe | --ex)
1339 ac_prev=exec_prefix ;;
1340 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1341 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1342 | --exec=* | --exe=* | --ex=*)
1343 exec_prefix=$ac_optarg ;;
1345 -gas | --gas | --ga | --g)
1346 # Obsolete; use --with-gas.
1349 -help | --help | --hel | --he | -h)
1350 ac_init_help=long ;;
1351 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1352 ac_init_help=recursive ;;
1353 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1354 ac_init_help=short ;;
1356 -host | --host | --hos | --ho)
1357 ac_prev=host_alias ;;
1358 -host=* | --host=* | --hos=* | --ho=*)
1359 host_alias=$ac_optarg ;;
1361 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1363 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1365 htmldir=$ac_optarg ;;
1367 -includedir | --includedir | --includedi | --included | --include \
1368 | --includ | --inclu | --incl | --inc)
1369 ac_prev=includedir ;;
1370 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1371 | --includ=* | --inclu=* | --incl=* | --inc=*)
1372 includedir=$ac_optarg ;;
1374 -infodir | --infodir | --infodi | --infod | --info | --inf)
1376 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1377 infodir=$ac_optarg ;;
1379 -libdir | --libdir | --libdi | --libd)
1381 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1382 libdir=$ac_optarg ;;
1384 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1385 | --libexe | --libex | --libe)
1386 ac_prev=libexecdir ;;
1387 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1388 | --libexe=* | --libex=* | --libe=*)
1389 libexecdir=$ac_optarg ;;
1391 -localedir | --localedir | --localedi | --localed | --locale)
1392 ac_prev=localedir ;;
1393 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1394 localedir=$ac_optarg ;;
1396 -localstatedir | --localstatedir | --localstatedi | --localstated \
1397 | --localstate | --localstat | --localsta | --localst | --locals)
1398 ac_prev=localstatedir ;;
1399 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1400 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1401 localstatedir=$ac_optarg ;;
1403 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1405 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1406 mandir=$ac_optarg ;;
1408 -nfp | --nfp | --nf)
1409 # Obsolete; use --without-fp.
1412 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1413 | --no-cr | --no-c | -n)
1416 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1417 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1420 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1421 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1422 | --oldin | --oldi | --old | --ol | --o)
1423 ac_prev=oldincludedir ;;
1424 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1425 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1426 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1427 oldincludedir=$ac_optarg ;;
1429 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1431 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1432 prefix=$ac_optarg ;;
1434 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1435 | --program-pre | --program-pr | --program-p)
1436 ac_prev=program_prefix ;;
1437 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1438 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1439 program_prefix=$ac_optarg ;;
1441 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1442 | --program-suf | --program-su | --program-s)
1443 ac_prev=program_suffix ;;
1444 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1445 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1446 program_suffix=$ac_optarg ;;
1448 -program-transform-name | --program-transform-name \
1449 | --program-transform-nam | --program-transform-na \
1450 | --program-transform-n | --program-transform- \
1451 | --program-transform | --program-transfor \
1452 | --program-transfo | --program-transf \
1453 | --program-trans | --program-tran \
1454 | --progr-tra | --program-tr | --program-t)
1455 ac_prev=program_transform_name ;;
1456 -program-transform-name=* | --program-transform-name=* \
1457 | --program-transform-nam=* | --program-transform-na=* \
1458 | --program-transform-n=* | --program-transform-=* \
1459 | --program-transform=* | --program-transfor=* \
1460 | --program-transfo=* | --program-transf=* \
1461 | --program-trans=* | --program-tran=* \
1462 | --progr-tra=* | --program-tr=* | --program-t=*)
1463 program_transform_name=$ac_optarg ;;
1465 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1467 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1468 pdfdir=$ac_optarg ;;
1470 -psdir | --psdir | --psdi | --psd | --ps)
1472 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1476 | -silent | --silent | --silen | --sile | --sil)
1479 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1481 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1483 sbindir=$ac_optarg ;;
1485 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1486 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1487 | --sharedst | --shareds | --shared | --share | --shar \
1489 ac_prev=sharedstatedir ;;
1490 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1491 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1492 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1494 sharedstatedir=$ac_optarg ;;
1496 -site | --site | --sit)
1498 -site=* | --site=* | --sit=*)
1501 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1503 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1504 srcdir=$ac_optarg ;;
1506 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1507 | --syscon | --sysco | --sysc | --sys | --sy)
1508 ac_prev=sysconfdir ;;
1509 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1510 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1511 sysconfdir=$ac_optarg ;;
1513 -target | --target | --targe | --targ | --tar | --ta | --t)
1514 ac_prev=target_alias ;;
1515 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1516 target_alias=$ac_optarg ;;
1518 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1521 -version | --version | --versio | --versi | --vers | -V)
1522 ac_init_version=: ;;
1525 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1526 # Reject names that are not valid shell variable names.
1527 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1528 as_fn_error $? "invalid package name: $ac_useropt"
1529 ac_useropt_orig=$ac_useropt
1530 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1531 case $ac_user_opts in
1535 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1536 ac_unrecognized_sep=', ';;
1538 eval with_$ac_useropt=\$ac_optarg ;;
1540 -without-* | --without-*)
1541 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1542 # Reject names that are not valid shell variable names.
1543 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1544 as_fn_error $? "invalid package name: $ac_useropt"
1545 ac_useropt_orig=$ac_useropt
1546 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1547 case $ac_user_opts in
1551 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1552 ac_unrecognized_sep=', ';;
1554 eval with_$ac_useropt=no ;;
1557 # Obsolete; use --with-x.
1560 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1561 | --x-incl | --x-inc | --x-in | --x-i)
1562 ac_prev=x_includes ;;
1563 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1564 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1565 x_includes=$ac_optarg ;;
1567 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1568 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1569 ac_prev=x_libraries ;;
1570 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1571 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1572 x_libraries=$ac_optarg ;;
1574 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1575 Try \`$0 --help' for more information"
1579 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1580 # Reject names that are not valid shell variable names.
1581 case $ac_envvar in #(
1582 '' | [0-9]* | *[!_$as_cr_alnum]* )
1583 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1585 eval $ac_envvar=\$ac_optarg
1586 export $ac_envvar ;;
1589 # FIXME: should be removed in autoconf 3.0.
1590 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1591 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1592 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1593 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1599 if test -n "$ac_prev"; then
1600 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1601 as_fn_error $? "missing argument to $ac_option"
1604 if test -n "$ac_unrecognized_opts"; then
1605 case $enable_option_checking in
1607 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1608 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1612 # Check all directory arguments for consistency.
1613 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1614 datadir sysconfdir sharedstatedir localstatedir includedir \
1615 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1616 libdir localedir mandir
1618 eval ac_val=\$$ac_var
1619 # Remove trailing slashes.
1622 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1623 eval $ac_var=\$ac_val;;
1625 # Be sure to have absolute directory names.
1627 [\\/$]* | ?:[\\/]* ) continue;;
1628 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1630 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1633 # There might be people who depend on the old broken behavior: `$host'
1634 # used to hold the argument of --host etc.
1635 # FIXME: To remove some day.
1638 target=$target_alias
1640 # FIXME: To remove some day.
1641 if test "x$host_alias" != x; then
1642 if test "x$build_alias" = x; then
1643 cross_compiling=maybe
1644 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1645 If a cross compiler is detected then cross compile mode will be used" >&2
1646 elif test "x$build_alias" != "x$host_alias"; then
1652 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1654 test "$silent" = yes && exec 6>/dev/null
1657 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1658 ac_ls_di=`ls -di .` &&
1659 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1660 as_fn_error $? "working directory cannot be determined"
1661 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1662 as_fn_error $? "pwd does not report name of working directory"
1665 # Find the source files, if location was not specified.
1666 if test -z "$srcdir"; then
1667 ac_srcdir_defaulted=yes
1668 # Try the directory containing this script, then the parent directory.
1669 ac_confdir=`$as_dirname -- "$as_myself" ||
1670 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1671 X"$as_myself" : 'X\(//\)[^/]' \| \
1672 X"$as_myself" : 'X\(//\)$' \| \
1673 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1674 $as_echo X"$as_myself" |
1675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1693 if test ! -r "$srcdir/$ac_unique_file"; then
1697 ac_srcdir_defaulted=no
1699 if test ! -r "$srcdir/$ac_unique_file"; then
1700 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1701 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1703 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1705 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1707 # When building in place, set srcdir=.
1708 if test "$ac_abs_confdir" = "$ac_pwd"; then
1711 # Remove unnecessary trailing slashes from srcdir.
1712 # Double slashes in file names in object file debugging info
1713 # mess up M-x gdb in Emacs.
1715 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1719 eval ac_env_${ac_var}_value=\$${ac_var}
1720 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1721 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1725 # Report the --help message.
1727 if test "$ac_init_help" = "long"; then
1728 # Omit some internal or obsolete options to make the list less imposing.
1729 # This message is too long to be a string in the A/UX 3.1 sh.
1731 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1733 Usage: $0 [OPTION]... [VAR=VALUE]...
1735 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1736 VAR=VALUE. See below for descriptions of some of the useful variables.
1738 Defaults for the options are specified in brackets.
1741 -h, --help display this help and exit
1742 --help=short display options specific to this package
1743 --help=recursive display the short help of all the included packages
1744 -V, --version display version information and exit
1745 -q, --quiet, --silent do not print \`checking ...' messages
1746 --cache-file=FILE cache test results in FILE [disabled]
1747 -C, --config-cache alias for \`--cache-file=config.cache'
1748 -n, --no-create do not create output files
1749 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1751 Installation directories:
1752 --prefix=PREFIX install architecture-independent files in PREFIX
1753 [$ac_default_prefix]
1754 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1757 By default, \`make install' will install all the files in
1758 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1759 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1760 for instance \`--prefix=\$HOME'.
1762 For better control, use the options below.
1764 Fine tuning of the installation directories:
1765 --bindir=DIR user executables [EPREFIX/bin]
1766 --sbindir=DIR system admin executables [EPREFIX/sbin]
1767 --libexecdir=DIR program executables [EPREFIX/libexec]
1768 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1769 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1770 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1771 --libdir=DIR object code libraries [EPREFIX/lib]
1772 --includedir=DIR C header files [PREFIX/include]
1773 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1774 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1775 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1776 --infodir=DIR info documentation [DATAROOTDIR/info]
1777 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1778 --mandir=DIR man documentation [DATAROOTDIR/man]
1779 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1780 --htmldir=DIR html documentation [DOCDIR]
1781 --dvidir=DIR dvi documentation [DOCDIR]
1782 --pdfdir=DIR pdf documentation [DOCDIR]
1783 --psdir=DIR ps documentation [DOCDIR]
1789 --build=BUILD configure for building on BUILD [guessed]
1790 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1794 if test -n "$ac_init_help"; then
1795 case $ac_init_help in
1796 short | recursive ) echo "Configuration of asterisk trunk:";;
1801 --disable-option-checking ignore unrecognized --enable/--with options
1802 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1803 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1804 --enable-dev-mode Turn on developer mode
1805 --enable-coverage Turn on code coverage tracking (for gcov)
1806 --disable-xmldoc Explicity disable XML documentation
1807 --disable-largefile omit support for large files
1808 --enable-internal-poll Use Asterisk's poll implementation
1811 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1812 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1813 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1814 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1815 --with-bfd=PATH use Debug symbol decoding files in PATH
1816 --with-execinfo=PATH use Stack Backtrace files in PATH
1817 --with-bluetooth=PATH use Bluetooth files in PATH
1818 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1819 --with-curses=PATH use curses files in PATH
1820 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1821 --with-dahdi=PATH use DAHDI files in PATH
1822 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1823 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1825 --with-gtk2=PATH use gtk2 files in PATH
1826 --with-gmime=PATH use GMime files in PATH
1827 --with-h323=PATH use OpenH323 files in PATH
1828 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1829 --with-ical=PATH use iCal files in PATH
1830 --with-iconv=PATH use Iconv files in PATH
1831 --with-iksemel=PATH use Iksemel Jabber files in PATH
1832 --with-imap=PATH use UW IMAP Toolkit files in PATH
1833 --with-inotify=PATH use inotify support files in PATH
1834 --with-iodbc=PATH use iODBC files in PATH
1835 --with-isdnnet=PATH use ISDN4Linux files in PATH
1836 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1837 --with-kqueue=PATH use kqueue support files in PATH
1838 --with-ldap=PATH use OpenLDAP files in PATH
1839 --with-libcurl=DIR look for the curl library in DIR
1840 --with-libxml2=PATH use LibXML2 files in PATH
1841 --with-ltdl=PATH use libtool files in PATH
1842 --with-lua=PATH use Lua files in PATH
1843 --with-misdn=PATH use mISDN user files in PATH
1844 --with-mysqlclient=PATH use MySQL client files in PATH
1845 --with-nbs=PATH use Network Broadcast Sound files in PATH
1846 --with-ncurses=PATH use ncurses files in PATH
1847 --with-neon=PATH use neon files in PATH
1848 --with-neon29=PATH use neon29 files in PATH
1849 --with-netsnmp=PATH use Net-SNMP files in PATH
1850 --with-newt=PATH use newt files in PATH
1851 --with-ogg=PATH use OGG files in PATH
1852 --with-openais=PATH use OpenAIS files in PATH
1853 --with-openr2=PATH use MFR2 files in PATH
1854 --with-osptk=PATH use OSP Toolkit files in PATH
1855 --with-oss=PATH use Open Sound System files in PATH
1856 --with-postgres=PATH use PostgreSQL files in PATH
1857 --with-popt=PATH use popt files in PATH
1858 --with-portaudio=PATH use PortAudio files in PATH
1859 --with-pri=PATH use ISDN PRI files in PATH
1860 --with-pwlib=PATH use PWlib files in PATH
1861 --with-radius=PATH use Radius Client files in PATH
1862 --with-resample=PATH use LIBRESAMPLE files in PATH
1863 --with-sdl=PATH use Sdl files in PATH
1864 --with-SDL_image=PATH use Sdl Image files in PATH
1865 --with-sounds-cache=PATH
1866 use cached sound tarfiles in PATH
1867 --with-spandsp=PATH use SPANDSP files in PATH
1868 --with-ss7=PATH use ISDN SS7 files in PATH
1869 --with-speex=PATH use Speex files in PATH
1870 --with-speex=PATH use Speex preprocess routines files in PATH
1871 --with-speexdsp=PATH use SpeexDSP files in PATH
1872 --with-sqlite=PATH use SQLite files in PATH
1873 --with-sqlite3=PATH use SQLite files in PATH
1874 --with-srtp=PATH use Secure RTP files in PATH
1875 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1876 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1877 --with-tds=PATH use FreeTDS files in PATH
1878 --with-termcap=PATH use Termcap files in PATH
1879 --with-timerfd=PATH use timerfd files in PATH
1880 --with-tinfo=PATH use Term Info files in PATH
1881 --with-tonezone=PATH use tonezone files in PATH
1882 --with-unixodbc=PATH use unixODBC files in PATH
1883 --with-usb=PATH use usb files in PATH
1884 --with-vorbis=PATH use Vorbis files in PATH
1885 --with-vpb=PATH use Voicetronix API files in PATH
1886 --with-x11=PATH use X11 files in PATH
1887 --with-z=PATH use zlib compression files in PATH
1889 Some influential environment variables:
1890 CC C compiler command
1891 CFLAGS C compiler flags
1892 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1893 nonstandard directory <lib dir>
1894 LIBS libraries to pass to the linker, e.g. -l<library>
1895 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1896 you have headers in a nonstandard directory <include dir>
1898 CXX C++ compiler command
1899 CXXFLAGS C++ compiler flags
1900 CXXCPP C++ preprocessor
1902 Use these variables to override the choices made by `configure' or to help
1903 it to find libraries and programs with nonstandard names/locations.
1905 Report bugs to <https://issues.asterisk.org>.
1910 if test "$ac_init_help" = "recursive"; then
1911 # If there are subdirs, report their specific --help.
1912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1913 test -d "$ac_dir" ||
1914 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1921 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1922 # A ".." for each directory in $ac_dir_suffix.
1923 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1924 case $ac_top_builddir_sub in
1925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1929 ac_abs_top_builddir=$ac_pwd
1930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1931 # for backward compatibility:
1932 ac_top_builddir=$ac_top_build_prefix
1935 .) # We are building in place.
1937 ac_top_srcdir=$ac_top_builddir_sub
1938 ac_abs_top_srcdir=$ac_pwd ;;
1939 [\\/]* | ?:[\\/]* ) # Absolute name.
1940 ac_srcdir=$srcdir$ac_dir_suffix;
1941 ac_top_srcdir=$srcdir
1942 ac_abs_top_srcdir=$srcdir ;;
1944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1945 ac_top_srcdir=$ac_top_build_prefix$srcdir
1946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1950 cd "$ac_dir" || { ac_status=$?; continue; }
1951 # Check for guested configure.
1952 if test -f "$ac_srcdir/configure.gnu"; then
1954 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1955 elif test -f "$ac_srcdir/configure"; then
1957 $SHELL "$ac_srcdir/configure" --help=recursive
1959 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1961 cd "$ac_pwd" || { ac_status=$?; break; }
1965 test -n "$ac_init_help" && exit $ac_status
1966 if $ac_init_version; then
1968 asterisk configure trunk
1969 generated by GNU Autoconf 2.68
1971 Copyright (C) 2010 Free Software Foundation, Inc.
1972 This configure script is free software; the Free Software Foundation
1973 gives unlimited permission to copy, distribute and modify it.
1980 ## ------------------------ ##
1981 ## Autoconf initialization. ##
1982 ## ------------------------ ##
1984 # ac_fn_c_try_compile LINENO
1985 # --------------------------
1986 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_c_try_compile ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 rm -f conftest.$ac_objext
1991 if { { ac_try="$ac_compile"
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_compile") 2>conftest.err
2000 if test -s conftest.err; then
2001 grep -v '^ *+' conftest.err >conftest.er1
2002 cat conftest.er1 >&5
2003 mv -f conftest.er1 conftest.err
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && {
2007 test -z "$ac_c_werror_flag" ||
2008 test ! -s conftest.err
2009 } && test -s conftest.$ac_objext; then :
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2020 } # ac_fn_c_try_compile
2022 # ac_fn_c_try_cpp LINENO
2023 # ----------------------
2024 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 if { { ac_try="$ac_cpp conftest.$ac_ext"
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2037 if test -s conftest.err; then
2038 grep -v '^ *+' conftest.err >conftest.er1
2039 cat conftest.er1 >&5
2040 mv -f conftest.er1 conftest.err
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; } > conftest.i && {
2044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2045 test ! -s conftest.err
2049 $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 as_fn_set_status $ac_retval
2059 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2060 # -------------------------------------------------------
2061 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2062 # the include files in INCLUDES and setting the cache variable VAR
2064 ac_fn_c_check_header_mongrel ()
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 if eval \${$3+:} false; then :
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval \${$3+:} false; then :
2071 $as_echo_n "(cached) " >&6
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2077 # Is the header compilable?
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2079 $as_echo_n "checking $2 usability... " >&6; }
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_header_compiler=yes
2088 ac_header_compiler=no
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2092 $as_echo "$ac_header_compiler" >&6; }
2094 # Is the header present?
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2096 $as_echo_n "checking $2 presence... " >&6; }
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2101 if ac_fn_c_try_cpp "$LINENO"; then :
2102 ac_header_preproc=yes
2104 ac_header_preproc=no
2106 rm -f conftest.err conftest.i conftest.$ac_ext
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2108 $as_echo "$ac_header_preproc" >&6; }
2110 # So? What about this header?
2111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2114 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2116 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2120 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2122 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2124 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2126 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2128 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2129 ( $as_echo "## ------------------------------------------ ##
2130 ## Report this to https://issues.asterisk.org ##
2131 ## ------------------------------------------ ##"
2132 ) | sed "s/^/$as_me: WARNING: /" >&2
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136 $as_echo_n "checking for $2... " >&6; }
2137 if eval \${$3+:} false; then :
2138 $as_echo_n "(cached) " >&6
2140 eval "$3=\$ac_header_compiler"
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 } # ac_fn_c_check_header_mongrel
2150 # ac_fn_c_try_run LINENO
2151 # ----------------------
2152 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2153 # that executables *can* be run.
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if { { ac_try="$ac_link"
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163 $as_echo "$ac_try_echo"; } >&5
2164 (eval "$ac_link") 2>&5
2166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2168 { { case "(($ac_try" in
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_try") 2>&5
2176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2177 test $ac_status = 0; }; }; then :
2180 $as_echo "$as_me: program exited with status $ac_status" >&5
2181 $as_echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2184 ac_retval=$ac_status
2186 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 as_fn_set_status $ac_retval
2192 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2193 # -------------------------------------------------------
2194 # Tests whether HEADER exists and can be compiled using the include files in
2195 # INCLUDES, setting the cache variable VAR accordingly.
2196 ac_fn_c_check_header_compile ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2200 $as_echo_n "checking for $2... " >&6; }
2201 if eval \${$3+:} false; then :
2202 $as_echo_n "(cached) " >&6
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2209 if ac_fn_c_try_compile "$LINENO"; then :
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218 $as_echo "$ac_res" >&6; }
2219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 } # ac_fn_c_check_header_compile
2223 # ac_fn_cxx_try_compile LINENO
2224 # ----------------------------
2225 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2226 ac_fn_cxx_try_compile ()
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 rm -f conftest.$ac_objext
2230 if { { ac_try="$ac_compile"
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236 $as_echo "$ac_try_echo"; } >&5
2237 (eval "$ac_compile") 2>conftest.err
2239 if test -s conftest.err; then
2240 grep -v '^ *+' conftest.err >conftest.er1
2241 cat conftest.er1 >&5
2242 mv -f conftest.er1 conftest.err
2244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2245 test $ac_status = 0; } && {
2246 test -z "$ac_cxx_werror_flag" ||
2247 test ! -s conftest.err
2248 } && test -s conftest.$ac_objext; then :
2251 $as_echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 as_fn_set_status $ac_retval
2259 } # ac_fn_cxx_try_compile
2261 # ac_fn_cxx_try_cpp LINENO
2262 # ------------------------
2263 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2264 ac_fn_cxx_try_cpp ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 if { { ac_try="$ac_cpp conftest.$ac_ext"
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2276 if test -s conftest.err; then
2277 grep -v '^ *+' conftest.err >conftest.er1
2278 cat conftest.er1 >&5
2279 mv -f conftest.er1 conftest.err
2281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282 test $ac_status = 0; } > conftest.i && {
2283 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2284 test ! -s conftest.err
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status $ac_retval
2296 } # ac_fn_cxx_try_cpp
2298 # ac_fn_c_try_link LINENO
2299 # -----------------------
2300 # Try to link conftest.$ac_ext, and return whether this succeeded.
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 rm -f conftest.$ac_objext conftest$ac_exeext
2305 if { { ac_try="$ac_link"
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2311 $as_echo "$ac_try_echo"; } >&5
2312 (eval "$ac_link") 2>conftest.err
2314 if test -s conftest.err; then
2315 grep -v '^ *+' conftest.err >conftest.er1
2316 cat conftest.er1 >&5
2317 mv -f conftest.er1 conftest.err
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; } && {
2321 test -z "$ac_c_werror_flag" ||
2322 test ! -s conftest.err
2323 } && test -s conftest$ac_exeext && {
2324 test "$cross_compiling" = yes ||
2325 $as_test_x conftest$ac_exeext
2329 $as_echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2334 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2335 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2336 # interfere with the next link command; also delete a directory that is
2337 # left behind by Apple's compiler. We do this before executing the actions.
2338 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340 as_fn_set_status $ac_retval
2342 } # ac_fn_c_try_link
2344 # ac_fn_c_check_func LINENO FUNC VAR
2345 # ----------------------------------
2346 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2347 ac_fn_c_check_func ()
2349 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2351 $as_echo_n "checking for $2... " >&6; }
2352 if eval \${$3+:} false; then :
2353 $as_echo_n "(cached) " >&6
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2357 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2359 #define $2 innocuous_$2
2361 /* System header to define __stub macros and hopefully few prototypes,
2362 which can conflict with char $2 (); below.
2363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2364 <limits.h> exists even on freestanding compilers. */
2367 # include <limits.h>
2369 # include <assert.h>
2374 /* Override any GCC internal prototype to avoid an error.
2375 Use char because int might match the return type of a GCC
2376 builtin and then its argument prototype would still apply. */
2381 /* The GNU C library defines this for functions which it implements
2382 to always fail with ENOSYS. Some functions are actually named
2383 something starting with __ and the normal name is an alias. */
2384 #if defined __stub_$2 || defined __stub___$2
2396 if ac_fn_c_try_link "$LINENO"; then :
2401 rm -f core conftest.err conftest.$ac_objext \
2402 conftest$ac_exeext conftest.$ac_ext
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 } # ac_fn_c_check_func
2411 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2412 # -------------------------------------------
2413 # Tests whether TYPE exists after having included INCLUDES, setting cache
2414 # variable VAR accordingly.
2415 ac_fn_c_check_type ()
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2419 $as_echo_n "checking for $2... " >&6; }
2420 if eval \${$3+:} false; then :
2421 $as_echo_n "(cached) " >&6
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2436 if ac_fn_c_try_compile "$LINENO"; then :
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2449 if ac_fn_c_try_compile "$LINENO"; then :
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 } # ac_fn_c_check_type
2465 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2466 # ----------------------------------------------------
2467 # Tries to find if the field MEMBER exists in type AGGR, after including
2468 # INCLUDES, setting cache variable VAR accordingly.
2469 ac_fn_c_check_member ()
2471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2473 $as_echo_n "checking for $2.$3... " >&6; }
2474 if eval \${$4+:} false; then :
2475 $as_echo_n "(cached) " >&6
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2490 if ac_fn_c_try_compile "$LINENO"; then :
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2500 if (sizeof ac_aggr.$3)
2506 if ac_fn_c_try_compile "$LINENO"; then :
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520 } # ac_fn_c_check_member
2522 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2523 # --------------------------------------------
2524 # Tries to find the compile-time value of EXPR in a program that includes
2525 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2527 ac_fn_c_compute_int ()
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 if test "$cross_compiling" = yes; then
2531 # Depending upon the size, compute the lo and hi bounds.
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2538 static int test_array [1 - 2 * !(($2) >= 0)];
2545 if ac_fn_c_try_compile "$LINENO"; then :
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2554 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2561 if ac_fn_c_try_compile "$LINENO"; then :
2562 ac_hi=$ac_mid; break
2564 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2565 if test $ac_lo -le $ac_mid; then
2569 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2580 static int test_array [1 - 2 * !(($2) < 0)];
2587 if ac_fn_c_try_compile "$LINENO"; then :
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2596 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2603 if ac_fn_c_try_compile "$LINENO"; then :
2604 ac_lo=$ac_mid; break
2606 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2607 if test $ac_mid -le $ac_hi; then
2611 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 # Binary search between lo and hi bounds.
2622 while test "x$ac_lo" != "x$ac_hi"; do
2623 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2630 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2637 if ac_fn_c_try_compile "$LINENO"; then :
2640 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2652 static long int longval () { return $2; }
2653 static unsigned long int ulongval () { return $2; }
2660 FILE *f = fopen ("conftest.val", "w");
2665 long int i = longval ();
2668 fprintf (f, "%ld", i);
2672 unsigned long int i = ulongval ();
2675 fprintf (f, "%lu", i);
2677 /* Do not output a trailing newline, as this causes \r\n confusion
2678 on some platforms. */
2679 return ferror (f) || fclose (f) != 0;
2685 if ac_fn_c_try_run "$LINENO"; then :
2686 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2691 conftest.$ac_objext conftest.beam conftest.$ac_ext
2695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2696 as_fn_set_status $ac_retval
2698 } # ac_fn_c_compute_int
2700 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2701 # ---------------------------------------------------------
2702 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2703 # the include files in INCLUDES and setting the cache variable VAR
2705 ac_fn_cxx_check_header_mongrel ()
2707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708 if eval \${$3+:} false; then :
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2710 $as_echo_n "checking for $2... " >&6; }
2711 if eval \${$3+:} false; then :
2712 $as_echo_n "(cached) " >&6
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2718 # Is the header compilable?
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2720 $as_echo_n "checking $2 usability... " >&6; }
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h. */
2726 if ac_fn_cxx_try_compile "$LINENO"; then :
2727 ac_header_compiler=yes
2729 ac_header_compiler=no
2731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2733 $as_echo "$ac_header_compiler" >&6; }
2735 # Is the header present?
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2737 $as_echo_n "checking $2 presence... " >&6; }
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2742 if ac_fn_cxx_try_cpp "$LINENO"; then :
2743 ac_header_preproc=yes
2745 ac_header_preproc=no
2747 rm -f conftest.err conftest.i conftest.$ac_ext
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2749 $as_echo "$ac_header_preproc" >&6; }
2751 # So? What about this header?
2752 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2755 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2757 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2761 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2763 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2765 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2767 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2769 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2770 ( $as_echo "## ------------------------------------------ ##
2771 ## Report this to https://issues.asterisk.org ##
2772 ## ------------------------------------------ ##"
2773 ) | sed "s/^/$as_me: WARNING: /" >&2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2777 $as_echo_n "checking for $2... " >&6; }
2778 if eval \${$3+:} false; then :
2779 $as_echo_n "(cached) " >&6
2781 eval "$3=\$ac_header_compiler"
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789 } # ac_fn_cxx_check_header_mongrel
2791 # ac_fn_cxx_try_link LINENO
2792 # -------------------------
2793 # Try to link conftest.$ac_ext, and return whether this succeeded.
2794 ac_fn_cxx_try_link ()
2796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2797 rm -f conftest.$ac_objext conftest$ac_exeext
2798 if { { ac_try="$ac_link"
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2804 $as_echo "$ac_try_echo"; } >&5
2805 (eval "$ac_link") 2>conftest.err
2807 if test -s conftest.err; then
2808 grep -v '^ *+' conftest.err >conftest.er1
2809 cat conftest.er1 >&5
2810 mv -f conftest.er1 conftest.err
2812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2813 test $ac_status = 0; } && {
2814 test -z "$ac_cxx_werror_flag" ||
2815 test ! -s conftest.err
2816 } && test -s conftest$ac_exeext && {
2817 test "$cross_compiling" = yes ||
2818 $as_test_x conftest$ac_exeext
2822 $as_echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2829 # interfere with the next link command; also delete a directory that is
2830 # left behind by Apple's compiler. We do this before executing the actions.
2831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2833 as_fn_set_status $ac_retval
2835 } # ac_fn_cxx_try_link
2837 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2838 # ---------------------------------------------------------
2839 # Tests whether HEADER exists and can be compiled using the include files in
2840 # INCLUDES, setting the cache variable VAR accordingly.
2841 ac_fn_cxx_check_header_compile ()
2843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2845 $as_echo_n "checking for $2... " >&6; }
2846 if eval \${$3+:} false; then :
2847 $as_echo_n "(cached) " >&6
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h. */
2854 if ac_fn_cxx_try_compile "$LINENO"; then :
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2863 $as_echo "$ac_res" >&6; }
2864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2866 } # ac_fn_cxx_check_header_compile
2867 cat >config.log <<_ACEOF
2868 This file contains any messages produced by compilers while
2869 running configure, to aid debugging if configure makes a mistake.
2871 It was created by asterisk $as_me trunk, which was
2872 generated by GNU Autoconf 2.68. Invocation command line was
2884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2896 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 test -z "$as_dir" && as_dir=.
2908 $as_echo "PATH: $as_dir"
2924 # Keep a trace of the command line.
2925 # Strip out --no-create and --no-recursion so they do not pile up.
2926 # Strip out --silent because we don't want to record it for future runs.
2927 # Also quote any args containing shell meta-characters.
2928 # Make two passes to allow for proper duplicate-argument suppression.
2932 ac_must_keep_next=false
2938 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2940 | -silent | --silent | --silen | --sile | --sil)
2943 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2946 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2948 as_fn_append ac_configure_args1 " '$ac_arg'"
2949 if test $ac_must_keep_next = true; then
2950 ac_must_keep_next=false # Got value, back to normal.
2953 *=* | --config-cache | -C | -disable-* | --disable-* \
2954 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2955 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2956 | -with-* | --with-* | -without-* | --without-* | --x)
2957 case "$ac_configure_args0 " in
2958 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2961 -* ) ac_must_keep_next=true ;;
2964 as_fn_append ac_configure_args " '$ac_arg'"
2969 { ac_configure_args0=; unset ac_configure_args0;}
2970 { ac_configure_args1=; unset ac_configure_args1;}
2972 # When interrupted or exit'd, cleanup temporary files, and complete
2973 # config.log. We remove comments because anyway the quotes in there
2974 # would cause problems or look ugly.
2975 # WARNING: Use '\'' to represent an apostrophe within the trap.
2976 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2977 trap 'exit_status=$?
2978 # Save into config.log some information that might help in debugging.
2982 $as_echo "## ---------------- ##
2983 ## Cache variables. ##
2984 ## ---------------- ##"
2986 # The following way of writing the cache mishandles newlines in values,
2988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2989 eval ac_val=\$$ac_var
2993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2997 _ | IFS | as_nl) ;; #(
2998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2999 *) { eval $ac_var=; unset $ac_var;} ;;
3004 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3005 *${as_nl}ac_space=\ *)
3007 "s/'\''/'\''\\\\'\'''\''/g;
3008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3018 $as_echo "## ----------------- ##
3019 ## Output variables. ##
3020 ## ----------------- ##"
3022 for ac_var in $ac_subst_vars
3024 eval ac_val=\$$ac_var
3026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3028 $as_echo "$ac_var='\''$ac_val'\''"
3032 if test -n "$ac_subst_files"; then
3033 $as_echo "## ------------------- ##
3034 ## File substitutions. ##
3035 ## ------------------- ##"
3037 for ac_var in $ac_subst_files
3039 eval ac_val=\$$ac_var
3041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3043 $as_echo "$ac_var='\''$ac_val'\''"
3048 if test -s confdefs.h; then
3049 $as_echo "## ----------- ##
3056 test "$ac_signal" != 0 &&
3057 $as_echo "$as_me: caught signal $ac_signal"
3058 $as_echo "$as_me: exit $exit_status"
3060 rm -f core *.core core.conftest.* &&
3061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3064 for ac_signal in 1 2 13 15; do
3065 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3070 rm -f -r conftest* confdefs.h
3072 $as_echo "/* confdefs.h */" > confdefs.h
3074 # Predefined preprocessor variables.
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE_NAME "$PACKAGE_NAME"
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3084 cat >>confdefs.h <<_ACEOF
3085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3088 cat >>confdefs.h <<_ACEOF
3089 #define PACKAGE_STRING "$PACKAGE_STRING"
3092 cat >>confdefs.h <<_ACEOF
3093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3096 cat >>confdefs.h <<_ACEOF
3097 #define PACKAGE_URL "$PACKAGE_URL"
3101 # Let the site file select an alternate cache file if it wants to.
3102 # Prefer an explicitly selected file to automatically selected ones.
3105 if test -n "$CONFIG_SITE"; then
3106 # We do not want a PATH search for config.site.
3107 case $CONFIG_SITE in #((
3108 -*) ac_site_file1=./$CONFIG_SITE;;
3109 */*) ac_site_file1=$CONFIG_SITE;;
3110 *) ac_site_file1=./$CONFIG_SITE;;
3112 elif test "x$prefix" != xNONE; then
3113 ac_site_file1=$prefix/share/config.site
3114 ac_site_file2=$prefix/etc/config.site
3116 ac_site_file1=$ac_default_prefix/share/config.site
3117 ac_site_file2=$ac_default_prefix/etc/config.site
3119 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3121 test "x$ac_site_file" = xNONE && continue
3122 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3124 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3125 sed 's/^/| /' "$ac_site_file" >&5
3127 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "failed to load site script $ac_site_file
3130 See \`config.log' for more details" "$LINENO" 5; }
3134 if test -r "$cache_file"; then
3135 # Some versions of bash will fail to source /dev/null (special files
3136 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3139 $as_echo "$as_me: loading cache $cache_file" >&6;}
3141 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3142 *) . "./$cache_file";;
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3147 $as_echo "$as_me: creating cache $cache_file" >&6;}
3151 as_fn_append ac_header_list " stdlib.h"
3152 as_fn_append ac_header_list " unistd.h"
3153 as_fn_append ac_header_list " sys/param.h"
3154 as_fn_append ac_header_list " utime.h"
3155 # Check that the precious variables saved in the cache have kept the same
3157 ac_cache_corrupted=false
3158 for ac_var in $ac_precious_vars; do
3159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3160 eval ac_new_set=\$ac_env_${ac_var}_set
3161 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3162 eval ac_new_val=\$ac_env_${ac_var}_value
3163 case $ac_old_set,$ac_new_set in
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3166 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3167 ac_cache_corrupted=: ;;
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3170 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3171 ac_cache_corrupted=: ;;
3174 if test "x$ac_old_val" != "x$ac_new_val"; then
3175 # differences in whitespace do not lead to failure.
3176 ac_old_val_w=`echo x $ac_old_val`
3177 ac_new_val_w=`echo x $ac_new_val`
3178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3180 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3181 ac_cache_corrupted=:
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3184 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3185 eval $ac_var=\$ac_old_val
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3188 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3190 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3193 # Pass precious variables to config.status.
3194 if test "$ac_new_set" = set; then
3196 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3197 *) ac_arg=$ac_var=$ac_new_val ;;
3199 case " $ac_configure_args " in
3200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3201 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3205 if $ac_cache_corrupted; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3209 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3210 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3212 ## -------------------- ##
3213 ## Main body of script. ##
3214 ## -------------------- ##
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224 # cross-compile macros
3226 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3227 if test -f "$ac_dir/install-sh"; then
3229 ac_install_sh="$ac_aux_dir/install-sh -c"
3231 elif test -f "$ac_dir/install.sh"; then
3233 ac_install_sh="$ac_aux_dir/install.sh -c"
3235 elif test -f "$ac_dir/shtool"; then
3237 ac_install_sh="$ac_aux_dir/shtool install -c"
3241 if test -z "$ac_aux_dir"; then
3242 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3245 # These three variables are undocumented and unsupported,
3246 # and are intended to be withdrawn in a future Autoconf release.
3247 # They can cause serious problems if a builder's source tree is in a directory
3248 # whose full name contains unusual characters.
3249 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3250 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3251 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3254 # Make sure we can run config.sub.
3255 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3256 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3259 $as_echo_n "checking build system type... " >&6; }
3260 if ${ac_cv_build+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 ac_build_alias=$build_alias
3264 test "x$ac_build_alias" = x &&
3265 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3266 test "x$ac_build_alias" = x &&
3267 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3268 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3269 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3273 $as_echo "$ac_cv_build" >&6; }
3274 case $ac_cv_build in
3276 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3279 ac_save_IFS=$IFS; IFS='-'
3285 # Remember, the first character of IFS is used to create $*,
3286 # except with old shells:
3289 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3293 $as_echo_n "checking host system type... " >&6; }
3294 if ${ac_cv_host+:} false; then :
3295 $as_echo_n "(cached) " >&6
3297 if test "x$host_alias" = x; then
3298 ac_cv_host=$ac_cv_build
3300 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3301 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3306 $as_echo "$ac_cv_host" >&6; }
3309 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3312 ac_save_IFS=$IFS; IFS='-'
3318 # Remember, the first character of IFS is used to create $*,
3319 # except with old shells:
3322 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3326 # check existence of the package
3330 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3331 if test -f "$ac_dir/install-sh"; then
3333 ac_install_sh="$ac_aux_dir/install-sh -c"
3335 elif test -f "$ac_dir/install.sh"; then
3337 ac_install_sh="$ac_aux_dir/install.sh -c"
3339 elif test -f "$ac_dir/shtool"; then
3341 ac_install_sh="$ac_aux_dir/shtool install -c"
3345 if test -z "$ac_aux_dir"; then
3346 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3349 # These three variables are undocumented and unsupported,
3350 # and are intended to be withdrawn in a future Autoconf release.
3351 # They can cause serious problems if a builder's source tree is in a directory
3352 # whose full name contains unusual characters.
3353 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3354 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3355 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3362 # preserve any CFLAGS or LDFLAGS that may be set
3363 # NOTE: This must be done before calling any macros that end up
3364 # calling AC_PROG_CC or the like, since they will set a default
3365 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3366 # we don't want those default flags to be carried over into the
3367 # rest of the build system since we have other means of controlling
3368 # debugging symbol generation and optimization.
3369 CONFIG_CFLAGS="${CFLAGS}"
3370 CONFIG_LDFLAGS="${LDFLAGS}"
3374 # specify output header file
3375 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3378 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3379 # other macro that uses the C compiler, or the default order will be used.
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 if test -n "$ac_tool_prefix"; then
3386 for ac_prog in gcc cc
3388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_CC+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3425 test -n "$CC" && break
3428 if test -z "$CC"; then
3430 for ac_prog in gcc cc
3432 # Extract the first word of "$ac_prog", so it can be a program name with args.
3433 set dummy $ac_prog; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3437 $as_echo_n "(cached) " >&6
3439 if test -n "$ac_ct_CC"; then
3440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449 ac_cv_prog_ac_ct_CC="$ac_prog"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3460 if test -n "$ac_ct_CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3462 $as_echo "$ac_ct_CC" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3469 test -n "$ac_ct_CC" && break
3472 if test "x$ac_ct_CC" = x; then
3475 case $cross_compiling:$ac_tool_warned in
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479 ac_tool_warned=yes ;;
3486 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error $? "no acceptable C compiler found in \$PATH
3489 See \`config.log' for more details" "$LINENO" 5; }
3491 # Provide some information about the compiler.
3492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3495 for ac_option in --version -v -V -qversion; do
3496 { { ac_try="$ac_compiler $ac_option >&5"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3505 if test -s conftest.err; then
3507 ... rest of stderr output deleted ...
3508 10q' conftest.err >conftest.er1
3509 cat conftest.er1 >&5
3511 rm -f conftest.er1 conftest.err
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3527 ac_clean_files_save=$ac_clean_files
3528 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3529 # Try to create an executable without -o first, disregard a.out.
3530 # It will help us diagnose broken compilers, and finding out an intuition
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3533 $as_echo_n "checking whether the C compiler works... " >&6; }
3534 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3536 # The possible output files:
3537 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3540 for ac_file in $ac_files
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3544 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3549 if { { ac_try="$ac_link_default"
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555 $as_echo "$ac_try_echo"; } >&5
3556 (eval "$ac_link_default") 2>&5
3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }; then :
3560 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3561 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3562 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3563 # so that the user can short-circuit this test for compilers unknown to
3565 for ac_file in $ac_files ''
3567 test -f "$ac_file" || continue
3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3572 # We found the default executable, but exeext='' is most
3576 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3578 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3580 # We set ac_cv_exeext here because the later test for it is not
3581 # safe: cross compilers may not add the suffix if given an `-o'
3582 # argument, so we may need to know it at that point already.
3583 # Even if this section looks crufty: it has the advantage of
3590 test "$ac_cv_exeext" = no && ac_cv_exeext=
3595 if test -z "$ac_file"; then :
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3598 $as_echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error 77 "C compiler cannot create executables
3604 See \`config.log' for more details" "$LINENO" 5; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3607 $as_echo "yes" >&6; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3610 $as_echo_n "checking for C compiler default output file name... " >&6; }
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3612 $as_echo "$ac_file" >&6; }
3613 ac_exeext=$ac_cv_exeext
3615 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3616 ac_clean_files=$ac_clean_files_save
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3618 $as_echo_n "checking for suffix of executables... " >&6; }
3619 if { { ac_try="$ac_link"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_link") 2>&5
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }; then :
3630 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3631 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3632 # work properly (i.e., refer to `conftest.exe'), while it won't with
3634 for ac_file in conftest.exe conftest conftest.*; do
3635 test -f "$ac_file" || continue
3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3638 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3647 See \`config.log' for more details" "$LINENO" 5; }
3649 rm -f conftest conftest$ac_cv_exeext
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3651 $as_echo "$ac_cv_exeext" >&6; }
3653 rm -f conftest.$ac_ext
3654 EXEEXT=$ac_cv_exeext
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3662 FILE *f = fopen ("conftest.out", "w");
3663 return ferror (f) || fclose (f) != 0;
3669 ac_clean_files="$ac_clean_files conftest.out"
3670 # Check that the compiler produces executables we can run. If not, either
3671 # the compiler is broken, or we cross compile.
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3673 $as_echo_n "checking whether we are cross compiling... " >&6; }
3674 if test "$cross_compiling" != yes; then
3675 { { ac_try="$ac_link"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682 (eval "$ac_link") 2>&5
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }
3686 if { ac_try='./conftest$ac_cv_exeext'
3687 { { case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692 $as_echo "$ac_try_echo"; } >&5
3693 (eval "$ac_try") 2>&5
3695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696 test $ac_status = 0; }; }; then
3699 if test "$cross_compiling" = maybe; then
3702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error $? "cannot run C compiled programs.
3705 If you meant to cross compile, use \`--host'.
3706 See \`config.log' for more details" "$LINENO" 5; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3711 $as_echo "$cross_compiling" >&6; }
3713 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3714 ac_clean_files=$ac_clean_files_save
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3716 $as_echo_n "checking for suffix of object files... " >&6; }
3717 if ${ac_cv_objext+:} false; then :
3718 $as_echo_n "(cached) " >&6
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3731 rm -f conftest.o conftest.obj
3732 if { { ac_try="$ac_compile"
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739 (eval "$ac_compile") 2>&5
3741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742 test $ac_status = 0; }; then :
3743 for ac_file in conftest.o conftest.obj conftest.*; do
3744 test -f "$ac_file" || continue;
3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3747 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3752 $as_echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757 as_fn_error $? "cannot compute suffix of object files: cannot compile
3758 See \`config.log' for more details" "$LINENO" 5; }
3760 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3763 $as_echo "$ac_cv_objext" >&6; }
3764 OBJEXT=$ac_cv_objext
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3767 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3768 if ${ac_cv_c_compiler_gnu+:} false; then :
3769 $as_echo_n "(cached) " >&6
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3785 if ac_fn_c_try_compile "$LINENO"; then :
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3795 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3796 if test $ac_compiler_gnu = yes; then
3801 ac_test_CFLAGS=${CFLAGS+set}
3802 ac_save_CFLAGS=$CFLAGS
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3804 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3805 if ${ac_cv_prog_cc_g+:} false; then :
3806 $as_echo_n "(cached) " >&6
3808 ac_save_c_werror_flag=$ac_c_werror_flag
3809 ac_c_werror_flag=yes
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3823 if ac_fn_c_try_compile "$LINENO"; then :
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3838 if ac_fn_c_try_compile "$LINENO"; then :
3841 ac_c_werror_flag=$ac_save_c_werror_flag
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3854 if ac_fn_c_try_compile "$LINENO"; then :
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 ac_c_werror_flag=$ac_save_c_werror_flag
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3865 $as_echo "$ac_cv_prog_cc_g" >&6; }
3866 if test "$ac_test_CFLAGS" = set; then
3867 CFLAGS=$ac_save_CFLAGS
3868 elif test $ac_cv_prog_cc_g = yes; then
3869 if test "$GCC" = yes; then
3875 if test "$GCC" = yes; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3882 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3883 if ${ac_cv_prog_cc_c89+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 ac_cv_prog_cc_c89=no
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3892 #include <sys/types.h>
3893 #include <sys/stat.h>
3894 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3895 struct buf { int x; };
3896 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3897 static char *e (p, i)
3903 static char *f (char * (*g) (char **, int), char **p, ...)
3908 s = g (p, va_arg (v,int));
3913 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3914 function prototypes and stuff, but not '\xHH' hex character constants.
3915 These don't provoke an error unfortunately, instead are silently treated
3916 as 'x'. The following induces an error, until -std is added to get
3917 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3918 array size at least. It's necessary to write '\x00'==0 to get something
3919 that's true only with -std. */
3920 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3922 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3923 inside strings and character constants. */