2 # From configure.ac Revision: 266289 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.64 for asterisk 1.6.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
227 if test x$as_have_required = xno; then :
228 $as_echo "$0: This script requires a shell more modern than all"
229 $as_echo "$0: the shells that I found on your system."
230 if test x${ZSH_VERSION+set} = xset ; then
231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234 $as_echo "$0: Please tell bug-autoconf@gnu.org and www.asterisk.org
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
244 SHELL=${CONFIG_SHELL-/bin/sh}
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
255 # Portably unset VAR.
258 { eval $1=; unset $1;}
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
282 # Create "$as_dir" as a directory, including parents if necessary.
287 -*) as_dir=./$as_dir;;
289 test -d "$as_dir" || eval $as_mkdir_p || {
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 test -d "$as_dir" && break
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 as_val=`expr "$@" || test $? -eq 1`
363 # as_fn_error ERROR [LINENO LOG_FD]
364 # ---------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with status $?, using 1 if that was 0.
370 as_status=$?; test $as_status -eq 0 && as_status=1
372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
375 $as_echo "$as_me: error: $1" >&2
376 as_fn_exit $as_status
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
452 # Exit status is that of the last command.
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
474 mkdir conf$$.dir 2>/dev/null
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485 elif ln conf$$.file conf$$ 2>/dev/null; then
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
499 test -d ./-p && rmdir ./-p
503 if test -x / >/dev/null 2>&1; then
506 if ls -dL / >/dev/null 2>&1; then
513 if test -d "$1"; then
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
524 as_executable_p=$as_test_x
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 exec 7<&0 </dev/null 6>&1
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
553 PACKAGE_NAME='asterisk'
554 PACKAGE_TARNAME='asterisk'
555 PACKAGE_VERSION='1.6'
556 PACKAGE_STRING='asterisk 1.6'
557 PACKAGE_BUGREPORT='www.asterisk.org'
560 ac_unique_file="main/asterisk.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
598 ac_subst_vars='LTLIBOBJS
600 PBX_SYSLOG_FACILITY_LOG_UUCP
601 PBX_SYSLOG_FACILITY_LOG_SYSLOG
602 PBX_SYSLOG_FACILITY_LOG_NEWS
603 PBX_SYSLOG_FACILITY_LOG_MAIL
604 PBX_SYSLOG_FACILITY_LOG_LPR
605 PBX_SYSLOG_FACILITY_LOG_KERN
606 PBX_SYSLOG_FACILITY_LOG_FTP
607 PBX_SYSLOG_FACILITY_LOG_DAEMON
608 PBX_SYSLOG_FACILITY_LOG_CRON
609 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
610 PBX_SYSLOG_FACILITY_LOG_AUTH
650 AST_NO_STRICT_OVERFLOW
652 AST_DECLARATION_AFTER_STATEMENT
655 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
656 PBX_PTHREAD_RWLOCK_INITIALIZER
728 SPEEX_PREPROCESS_INCLUDE
775 PBX_PRI_REVERSE_CHARGE
776 PRI_REVERSE_CHARGE_DIR
777 PRI_REVERSE_CHARGE_INCLUDE
778 PRI_REVERSE_CHARGE_LIB
779 PBX_PRI_SERVICE_MESSAGES
780 PRI_SERVICE_MESSAGES_DIR
781 PRI_SERVICE_MESSAGES_INCLUDE
782 PRI_SERVICE_MESSAGES_LIB
785 PRI_PROG_W_CAUSE_INCLUDE
787 PBX_PRI_INBANDDISCONNECT
788 PRI_INBANDDISCONNECT_DIR
789 PRI_INBANDDISCONNECT_INCLUDE
790 PRI_INBANDDISCONNECT_LIB
793 PRI_SETUP_KEYPAD_INCLUDE
795 PBX_PRI_CALL_REROUTING
796 PRI_CALL_REROUTING_DIR
797 PRI_CALL_REROUTING_INCLUDE
798 PRI_CALL_REROUTING_LIB
801 PRI_CALL_HOLD_INCLUDE
809 PRI_HANGUP_FIX_INCLUDE
1086 program_transform_name
1099 enable_option_checking
1172 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" : '[^=]*=\(.*\)'` ;;
1255 # Accept the important Cygnus configure options, so we can diagnose typos.
1257 case $ac_dashdash$ac_option in
1261 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1263 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1264 bindir=$ac_optarg ;;
1266 -build | --build | --buil | --bui | --bu)
1267 ac_prev=build_alias ;;
1268 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1269 build_alias=$ac_optarg ;;
1271 -cache-file | --cache-file | --cache-fil | --cache-fi \
1272 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1273 ac_prev=cache_file ;;
1274 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1275 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1276 cache_file=$ac_optarg ;;
1278 --config-cache | -C)
1279 cache_file=config.cache ;;
1281 -datadir | --datadir | --datadi | --datad)
1283 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1284 datadir=$ac_optarg ;;
1286 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1287 | --dataroo | --dataro | --datar)
1288 ac_prev=datarootdir ;;
1289 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1290 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1291 datarootdir=$ac_optarg ;;
1293 -disable-* | --disable-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error "invalid feature name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1302 "enable_$ac_useropt"
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1307 eval enable_$ac_useropt=no ;;
1309 -docdir | --docdir | --docdi | --doc | --do)
1311 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1312 docdir=$ac_optarg ;;
1314 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1316 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1317 dvidir=$ac_optarg ;;
1319 -enable-* | --enable-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error "invalid feature name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1328 "enable_$ac_useropt"
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1333 eval enable_$ac_useropt=\$ac_optarg ;;
1335 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1336 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1337 | --exec | --exe | --ex)
1338 ac_prev=exec_prefix ;;
1339 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1340 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1341 | --exec=* | --exe=* | --ex=*)
1342 exec_prefix=$ac_optarg ;;
1344 -gas | --gas | --ga | --g)
1345 # Obsolete; use --with-gas.
1348 -help | --help | --hel | --he | -h)
1349 ac_init_help=long ;;
1350 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1351 ac_init_help=recursive ;;
1352 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1353 ac_init_help=short ;;
1355 -host | --host | --hos | --ho)
1356 ac_prev=host_alias ;;
1357 -host=* | --host=* | --hos=* | --ho=*)
1358 host_alias=$ac_optarg ;;
1360 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1362 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1364 htmldir=$ac_optarg ;;
1366 -includedir | --includedir | --includedi | --included | --include \
1367 | --includ | --inclu | --incl | --inc)
1368 ac_prev=includedir ;;
1369 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1370 | --includ=* | --inclu=* | --incl=* | --inc=*)
1371 includedir=$ac_optarg ;;
1373 -infodir | --infodir | --infodi | --infod | --info | --inf)
1375 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1376 infodir=$ac_optarg ;;
1378 -libdir | --libdir | --libdi | --libd)
1380 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1381 libdir=$ac_optarg ;;
1383 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1384 | --libexe | --libex | --libe)
1385 ac_prev=libexecdir ;;
1386 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1387 | --libexe=* | --libex=* | --libe=*)
1388 libexecdir=$ac_optarg ;;
1390 -localedir | --localedir | --localedi | --localed | --locale)
1391 ac_prev=localedir ;;
1392 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1393 localedir=$ac_optarg ;;
1395 -localstatedir | --localstatedir | --localstatedi | --localstated \
1396 | --localstate | --localstat | --localsta | --localst | --locals)
1397 ac_prev=localstatedir ;;
1398 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1399 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1400 localstatedir=$ac_optarg ;;
1402 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1404 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1405 mandir=$ac_optarg ;;
1407 -nfp | --nfp | --nf)
1408 # Obsolete; use --without-fp.
1411 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1412 | --no-cr | --no-c | -n)
1415 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1416 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1419 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1420 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1421 | --oldin | --oldi | --old | --ol | --o)
1422 ac_prev=oldincludedir ;;
1423 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1424 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1425 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1426 oldincludedir=$ac_optarg ;;
1428 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1430 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1431 prefix=$ac_optarg ;;
1433 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1434 | --program-pre | --program-pr | --program-p)
1435 ac_prev=program_prefix ;;
1436 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1437 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1438 program_prefix=$ac_optarg ;;
1440 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1441 | --program-suf | --program-su | --program-s)
1442 ac_prev=program_suffix ;;
1443 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1444 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1445 program_suffix=$ac_optarg ;;
1447 -program-transform-name | --program-transform-name \
1448 | --program-transform-nam | --program-transform-na \
1449 | --program-transform-n | --program-transform- \
1450 | --program-transform | --program-transfor \
1451 | --program-transfo | --program-transf \
1452 | --program-trans | --program-tran \
1453 | --progr-tra | --program-tr | --program-t)
1454 ac_prev=program_transform_name ;;
1455 -program-transform-name=* | --program-transform-name=* \
1456 | --program-transform-nam=* | --program-transform-na=* \
1457 | --program-transform-n=* | --program-transform-=* \
1458 | --program-transform=* | --program-transfor=* \
1459 | --program-transfo=* | --program-transf=* \
1460 | --program-trans=* | --program-tran=* \
1461 | --progr-tra=* | --program-tr=* | --program-t=*)
1462 program_transform_name=$ac_optarg ;;
1464 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1466 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1467 pdfdir=$ac_optarg ;;
1469 -psdir | --psdir | --psdi | --psd | --ps)
1471 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475 | -silent | --silent | --silen | --sile | --sil)
1478 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1480 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1482 sbindir=$ac_optarg ;;
1484 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1485 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1486 | --sharedst | --shareds | --shared | --share | --shar \
1488 ac_prev=sharedstatedir ;;
1489 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1490 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1491 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1493 sharedstatedir=$ac_optarg ;;
1495 -site | --site | --sit)
1497 -site=* | --site=* | --sit=*)
1500 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1502 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1503 srcdir=$ac_optarg ;;
1505 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1506 | --syscon | --sysco | --sysc | --sys | --sy)
1507 ac_prev=sysconfdir ;;
1508 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1509 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1510 sysconfdir=$ac_optarg ;;
1512 -target | --target | --targe | --targ | --tar | --ta | --t)
1513 ac_prev=target_alias ;;
1514 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1515 target_alias=$ac_optarg ;;
1517 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1520 -version | --version | --versio | --versi | --vers | -V)
1521 ac_init_version=: ;;
1524 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1525 # Reject names that are not valid shell variable names.
1526 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1527 as_fn_error "invalid package name: $ac_useropt"
1528 ac_useropt_orig=$ac_useropt
1529 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1530 case $ac_user_opts in
1534 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1535 ac_unrecognized_sep=', ';;
1537 eval with_$ac_useropt=\$ac_optarg ;;
1539 -without-* | --without-*)
1540 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1541 # Reject names that are not valid shell variable names.
1542 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1543 as_fn_error "invalid package name: $ac_useropt"
1544 ac_useropt_orig=$ac_useropt
1545 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1546 case $ac_user_opts in
1550 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1551 ac_unrecognized_sep=', ';;
1553 eval with_$ac_useropt=no ;;
1556 # Obsolete; use --with-x.
1559 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1560 | --x-incl | --x-inc | --x-in | --x-i)
1561 ac_prev=x_includes ;;
1562 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1563 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1564 x_includes=$ac_optarg ;;
1566 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1567 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1568 ac_prev=x_libraries ;;
1569 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1570 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1571 x_libraries=$ac_optarg ;;
1573 -*) as_fn_error "unrecognized option: \`$ac_option'
1574 Try \`$0 --help' for more information."
1578 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1579 # Reject names that are not valid shell variable names.
1580 case $ac_envvar in #(
1581 '' | [0-9]* | *[!_$as_cr_alnum]* )
1582 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1584 eval $ac_envvar=\$ac_optarg
1585 export $ac_envvar ;;
1588 # FIXME: should be removed in autoconf 3.0.
1589 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1590 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1591 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1592 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1598 if test -n "$ac_prev"; then
1599 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1600 as_fn_error "missing argument to $ac_option"
1603 if test -n "$ac_unrecognized_opts"; then
1604 case $enable_option_checking in
1606 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1607 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1611 # Check all directory arguments for consistency.
1612 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1613 datadir sysconfdir sharedstatedir localstatedir includedir \
1614 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1615 libdir localedir mandir
1617 eval ac_val=\$$ac_var
1618 # Remove trailing slashes.
1621 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1622 eval $ac_var=\$ac_val;;
1624 # Be sure to have absolute directory names.
1626 [\\/$]* | ?:[\\/]* ) continue;;
1627 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1629 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1632 # There might be people who depend on the old broken behavior: `$host'
1633 # used to hold the argument of --host etc.
1634 # FIXME: To remove some day.
1637 target=$target_alias
1639 # FIXME: To remove some day.
1640 if test "x$host_alias" != x; then
1641 if test "x$build_alias" = x; then
1642 cross_compiling=maybe
1643 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1644 If a cross compiler is detected then cross compile mode will be used." >&2
1645 elif test "x$build_alias" != "x$host_alias"; then
1651 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1653 test "$silent" = yes && exec 6>/dev/null
1656 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1657 ac_ls_di=`ls -di .` &&
1658 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1659 as_fn_error "working directory cannot be determined"
1660 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1661 as_fn_error "pwd does not report name of working directory"
1664 # Find the source files, if location was not specified.
1665 if test -z "$srcdir"; then
1666 ac_srcdir_defaulted=yes
1667 # Try the directory containing this script, then the parent directory.
1668 ac_confdir=`$as_dirname -- "$as_myself" ||
1669 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1670 X"$as_myself" : 'X\(//\)[^/]' \| \
1671 X"$as_myself" : 'X\(//\)$' \| \
1672 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1673 $as_echo X"$as_myself" |
1674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1692 if test ! -r "$srcdir/$ac_unique_file"; then
1696 ac_srcdir_defaulted=no
1698 if test ! -r "$srcdir/$ac_unique_file"; then
1699 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1700 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1702 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1704 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1706 # When building in place, set srcdir=.
1707 if test "$ac_abs_confdir" = "$ac_pwd"; then
1710 # Remove unnecessary trailing slashes from srcdir.
1711 # Double slashes in file names in object file debugging info
1712 # mess up M-x gdb in Emacs.
1714 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1716 for ac_var in $ac_precious_vars; do
1717 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1718 eval ac_env_${ac_var}_value=\$${ac_var}
1719 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1720 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1724 # Report the --help message.
1726 if test "$ac_init_help" = "long"; then
1727 # Omit some internal or obsolete options to make the list less imposing.
1728 # This message is too long to be a string in the A/UX 3.1 sh.
1730 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1732 Usage: $0 [OPTION]... [VAR=VALUE]...
1734 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1735 VAR=VALUE. See below for descriptions of some of the useful variables.
1737 Defaults for the options are specified in brackets.
1740 -h, --help display this help and exit
1741 --help=short display options specific to this package
1742 --help=recursive display the short help of all the included packages
1743 -V, --version display version information and exit
1744 -q, --quiet, --silent do not print \`checking...' messages
1745 --cache-file=FILE cache test results in FILE [disabled]
1746 -C, --config-cache alias for \`--cache-file=config.cache'
1747 -n, --no-create do not create output files
1748 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1750 Installation directories:
1751 --prefix=PREFIX install architecture-independent files in PREFIX
1752 [$ac_default_prefix]
1753 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1756 By default, \`make install' will install all the files in
1757 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1758 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1759 for instance \`--prefix=\$HOME'.
1761 For better control, use the options below.
1763 Fine tuning of the installation directories:
1764 --bindir=DIR user executables [EPREFIX/bin]
1765 --sbindir=DIR system admin executables [EPREFIX/sbin]
1766 --libexecdir=DIR program executables [EPREFIX/libexec]
1767 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1768 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1769 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1770 --libdir=DIR object code libraries [EPREFIX/lib]
1771 --includedir=DIR C header files [PREFIX/include]
1772 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1773 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1774 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1775 --infodir=DIR info documentation [DATAROOTDIR/info]
1776 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1777 --mandir=DIR man documentation [DATAROOTDIR/man]
1778 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1779 --htmldir=DIR html documentation [DOCDIR]
1780 --dvidir=DIR dvi documentation [DOCDIR]
1781 --pdfdir=DIR pdf documentation [DOCDIR]
1782 --psdir=DIR ps documentation [DOCDIR]
1788 --build=BUILD configure for building on BUILD [guessed]
1789 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1793 if test -n "$ac_init_help"; then
1794 case $ac_init_help in
1795 short | recursive ) echo "Configuration of asterisk 1.6:";;
1800 --disable-option-checking ignore unrecognized --enable/--with options
1801 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1802 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1803 --enable-dev-mode Turn on developer mode
1804 --disable-largefile omit support for large files
1805 --enable-internal-poll Use Asterisk's poll implementation
1806 --disable-xmldoc Explicity disable XML documentation
1809 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1810 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1811 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1812 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1813 --with-execinfo=PATH use Stack Backtrace files in PATH
1814 --with-bluetooth=PATH use Bluetooth files in PATH
1815 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1816 --with-curl=PATH use cURL files in PATH
1817 --with-curses=PATH use curses files in PATH
1818 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1819 --with-dahdi=PATH use DAHDI files in PATH
1820 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1821 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1823 --with-gtk2=PATH use gtk2 files in PATH
1824 --with-gmime=PATH use GMime files in PATH
1825 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1826 --with-ical=PATH use iCal files in PATH
1827 --with-iconv=PATH use Iconv files in PATH
1828 --with-iksemel=PATH use Iksemel Jabber files in PATH
1829 --with-imap=PATH use UW IMAP Toolkit files in PATH
1830 --with-inotify=PATH use inotify support files in PATH
1831 --with-iodbc=PATH use iODBC files in PATH
1832 --with-isdnnet=PATH use ISDN4Linux files in PATH
1833 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1834 --with-kqueue=PATH use kqueue support files in PATH
1835 --with-ldap=PATH use OpenLDAP files in PATH
1836 --with-libxml2=PATH use LibXML2 files in PATH
1837 --with-ltdl=PATH use libtool files in PATH
1838 --with-lua=PATH use Lua files in PATH
1839 --with-misdn=PATH use mISDN user files in PATH
1840 --with-mysqlclient=PATH use MySQL client files in PATH
1841 --with-nbs=PATH use Network Broadcast Sound files in PATH
1842 --with-ncurses=PATH use ncurses files in PATH
1843 --with-neon=PATH use neon files in PATH
1844 --with-neon29=PATH use neon29 files in PATH
1845 --with-netsnmp=PATH use Net-SNMP files in PATH
1846 --with-newt=PATH use newt files in PATH
1847 --with-ogg=PATH use OGG files in PATH
1848 --with-osptk=PATH use OSP Toolkit files in PATH
1849 --with-oss=PATH use Open Sound System files in PATH
1850 --with-postgres=PATH use PostgreSQL files in PATH
1851 --with-popt=PATH use popt files in PATH
1852 --with-portaudio=PATH use PortAudio files in PATH
1853 --with-pri=PATH use ISDN PRI files in PATH
1854 --with-resample=PATH use LIBRESAMPLE files in PATH
1855 --with-sounds-cache=PATH
1856 use cached sound tarfiles in PATH
1857 --with-spandsp=PATH use SPANDSP files in PATH
1858 --with-ss7=PATH use ISDN SS7 files in PATH
1859 --with-openr2=PATH use MFR2 files in PATH
1860 --with-pwlib=PATH use PWlib files in PATH
1861 --with-h323=PATH use OpenH323 files in PATH
1862 --with-radius=PATH use Radius Client 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-openais=PATH use OpenAIS files in PATH
1866 --with-speex=PATH use Speex files in PATH
1867 --with-speex=PATH use Speex preprocess routines files in PATH
1868 --with-speexdsp=PATH use SpeexDSP files in PATH
1869 --with-sqlite=PATH use SQLite files in PATH
1870 --with-sqlite3=PATH use SQLite files in PATH
1871 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1872 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1873 --with-tds=PATH use FreeTDS files in PATH
1874 --with-termcap=PATH use Termcap files in PATH
1875 --with-tinfo=PATH use Term Info files in PATH
1876 --with-tonezone=PATH use tonezone files in PATH
1877 --with-unixodbc=PATH use unixODBC files in PATH
1878 --with-usb=PATH use usb files in PATH
1879 --with-vorbis=PATH use Vorbis files in PATH
1880 --with-vpb=PATH use Voicetronix API files in PATH
1881 --with-x11=PATH use X11 files in PATH
1882 --with-z=PATH use zlib compression files in PATH
1883 --with-timerfd=PATH use timerfd files in PATH
1884 --with-libcurl=DIR look for the curl library in DIR
1886 Some influential environment variables:
1887 CC C compiler command
1888 CFLAGS C compiler flags
1889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1890 nonstandard directory <lib dir>
1891 LIBS libraries to pass to the linker, e.g. -l<library>
1892 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1893 you have headers in a nonstandard directory <include dir>
1895 CXX C++ compiler command
1896 CXXFLAGS C++ compiler flags
1897 CXXCPP C++ preprocessor
1899 Use these variables to override the choices made by `configure' or to help
1900 it to find libraries and programs with nonstandard names/locations.
1902 Report bugs to <www.asterisk.org>.
1907 if test "$ac_init_help" = "recursive"; then
1908 # If there are subdirs, report their specific --help.
1909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1910 test -d "$ac_dir" ||
1911 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1919 # A ".." for each directory in $ac_dir_suffix.
1920 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1921 case $ac_top_builddir_sub in
1922 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1923 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1926 ac_abs_top_builddir=$ac_pwd
1927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1928 # for backward compatibility:
1929 ac_top_builddir=$ac_top_build_prefix
1932 .) # We are building in place.
1934 ac_top_srcdir=$ac_top_builddir_sub
1935 ac_abs_top_srcdir=$ac_pwd ;;
1936 [\\/]* | ?:[\\/]* ) # Absolute name.
1937 ac_srcdir=$srcdir$ac_dir_suffix;
1938 ac_top_srcdir=$srcdir
1939 ac_abs_top_srcdir=$srcdir ;;
1941 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1942 ac_top_srcdir=$ac_top_build_prefix$srcdir
1943 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1947 cd "$ac_dir" || { ac_status=$?; continue; }
1948 # Check for guested configure.
1949 if test -f "$ac_srcdir/configure.gnu"; then
1951 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1952 elif test -f "$ac_srcdir/configure"; then
1954 $SHELL "$ac_srcdir/configure" --help=recursive
1956 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1958 cd "$ac_pwd" || { ac_status=$?; break; }
1962 test -n "$ac_init_help" && exit $ac_status
1963 if $ac_init_version; then
1965 asterisk configure 1.6
1966 generated by GNU Autoconf 2.64
1968 Copyright (C) 2009 Free Software Foundation, Inc.
1969 This configure script is free software; the Free Software Foundation
1970 gives unlimited permission to copy, distribute and modify it.
1977 ## ------------------------ ##
1978 ## Autoconf initialization. ##
1979 ## ------------------------ ##
1981 # ac_fn_c_try_compile LINENO
1982 # --------------------------
1983 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1984 ac_fn_c_try_compile ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext
1988 if { { ac_try="$ac_compile"
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_compile") 2>conftest.err
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_c_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest.$ac_objext; then :
2009 $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2014 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017 } # ac_fn_c_try_compile
2019 # ac_fn_c_try_cpp LINENO
2020 # ----------------------
2021 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 if { { ac_try="$ac_cpp conftest.$ac_ext"
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2034 if test -s conftest.err; then
2035 grep -v '^ *+' conftest.err >conftest.er1
2036 cat conftest.er1 >&5
2037 mv -f conftest.er1 conftest.err
2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 test $ac_status = 0; } >/dev/null && {
2041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2042 test ! -s conftest.err
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2057 # -------------------------------------------------------
2058 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2059 # the include files in INCLUDES and setting the cache variable VAR
2061 ac_fn_c_check_header_mongrel ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2068 $as_echo_n "(cached) " >&6
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2074 # Is the header compilable?
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2076 $as_echo_n "checking $2 usability... " >&6; }
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083 ac_header_compiler=yes
2085 ac_header_compiler=no
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2089 $as_echo "$ac_header_compiler" >&6; }
2091 # Is the header present?
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2093 $as_echo_n "checking $2 presence... " >&6; }
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2098 if ac_fn_c_try_cpp "$LINENO"; then :
2099 ac_header_preproc=yes
2101 ac_header_preproc=no
2103 rm -f conftest.err conftest.$ac_ext
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2105 $as_echo "$ac_header_preproc" >&6; }
2107 # So? What about this header?
2108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2111 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2113 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2117 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2119 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2121 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2123 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2125 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127 ## ------------------------------- ##
2128 ## Report this to www.asterisk.org ##
2129 ## ------------------------------- ##
2131 ) | sed "s/^/$as_me: WARNING: /" >&2
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2135 $as_echo_n "checking for $2... " >&6; }
2136 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2137 $as_echo_n "(cached) " >&6
2139 eval "$3=\$ac_header_compiler"
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143 $as_echo "$ac_res" >&6; }
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2147 } # ac_fn_c_check_header_mongrel
2149 # ac_fn_c_try_run LINENO
2150 # ----------------------
2151 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2152 # that executables *can* be run.
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 if { { ac_try="$ac_link"
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_link") 2>&5
2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2167 { { case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172 $as_echo "$ac_try_echo"; } >&5
2173 (eval "$ac_try") 2>&5
2175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2176 test $ac_status = 0; }; }; then :
2179 $as_echo "$as_me: program exited with status $ac_status" >&5
2180 $as_echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.$ac_ext >&5
2183 ac_retval=$ac_status
2185 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2186 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2191 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2192 # -------------------------------------------------------
2193 # Tests whether HEADER exists and can be compiled using the include files in
2194 # INCLUDES, setting the cache variable VAR accordingly.
2195 ac_fn_c_check_header_compile ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199 $as_echo_n "checking for $2... " >&6; }
2200 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2201 $as_echo_n "(cached) " >&6
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2208 if ac_fn_c_try_compile "$LINENO"; then :
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220 } # ac_fn_c_check_header_compile
2222 # ac_fn_cxx_try_compile LINENO
2223 # ----------------------------
2224 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2225 ac_fn_cxx_try_compile ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 rm -f conftest.$ac_objext
2229 if { { ac_try="$ac_compile"
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2235 $as_echo "$ac_try_echo"; } >&5
2236 (eval "$ac_compile") 2>conftest.err
2238 if test -s conftest.err; then
2239 grep -v '^ *+' conftest.err >conftest.er1
2240 cat conftest.er1 >&5
2241 mv -f conftest.er1 conftest.err
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; } && {
2245 test -z "$ac_cxx_werror_flag" ||
2246 test ! -s conftest.err
2247 } && test -s conftest.$ac_objext; then :
2250 $as_echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2255 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258 } # ac_fn_cxx_try_compile
2260 # ac_fn_cxx_try_cpp LINENO
2261 # ------------------------
2262 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2263 ac_fn_cxx_try_cpp ()
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 if { { ac_try="$ac_cpp conftest.$ac_ext"
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2272 $as_echo "$ac_try_echo"; } >&5
2273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2275 if test -s conftest.err; then
2276 grep -v '^ *+' conftest.err >conftest.er1
2277 cat conftest.er1 >&5
2278 mv -f conftest.er1 conftest.err
2280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2281 test $ac_status = 0; } >/dev/null && {
2282 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2283 test ! -s conftest.err
2287 $as_echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2292 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2295 } # ac_fn_cxx_try_cpp
2297 # ac_fn_c_try_link LINENO
2298 # -----------------------
2299 # Try to link conftest.$ac_ext, and return whether this succeeded.
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 rm -f conftest.$ac_objext conftest$ac_exeext
2304 if { { ac_try="$ac_link"
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2310 $as_echo "$ac_try_echo"; } >&5
2311 (eval "$ac_link") 2>conftest.err
2313 if test -s conftest.err; then
2314 grep -v '^ *+' conftest.err >conftest.er1
2315 cat conftest.er1 >&5
2316 mv -f conftest.er1 conftest.err
2318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319 test $ac_status = 0; } && {
2320 test -z "$ac_c_werror_flag" ||
2321 test ! -s conftest.err
2322 } && test -s conftest$ac_exeext && {
2323 test "$cross_compiling" = yes ||
2324 $as_test_x conftest$ac_exeext
2328 $as_echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2333 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2334 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2335 # interfere with the next link command; also delete a directory that is
2336 # left behind by Apple's compiler. We do this before executing the actions.
2337 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2338 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2341 } # ac_fn_c_try_link
2343 # ac_fn_c_check_func LINENO FUNC VAR
2344 # ----------------------------------
2345 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2346 ac_fn_c_check_func ()
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2350 $as_echo_n "checking for $2... " >&6; }
2351 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2352 $as_echo_n "(cached) " >&6
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2356 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2358 #define $2 innocuous_$2
2360 /* System header to define __stub macros and hopefully few prototypes,
2361 which can conflict with char $2 (); below.
2362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2363 <limits.h> exists even on freestanding compilers. */
2366 # include <limits.h>
2368 # include <assert.h>
2373 /* Override any GCC internal prototype to avoid an error.
2374 Use char because int might match the return type of a GCC
2375 builtin and then its argument prototype would still apply. */
2380 /* The GNU C library defines this for functions which it implements
2381 to always fail with ENOSYS. Some functions are actually named
2382 something starting with __ and the normal name is an alias. */
2383 #if defined __stub_$2 || defined __stub___$2
2395 if ac_fn_c_try_link "$LINENO"; then :
2400 rm -f core conftest.err conftest.$ac_objext \
2401 conftest$ac_exeext conftest.$ac_ext
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2408 } # ac_fn_c_check_func
2410 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2411 # -------------------------------------------
2412 # Tests whether TYPE exists after having included INCLUDES, setting cache
2413 # variable VAR accordingly.
2414 ac_fn_c_check_type ()
2416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2418 $as_echo_n "checking for $2... " >&6; }
2419 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2420 $as_echo_n "(cached) " >&6
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2435 if ac_fn_c_try_compile "$LINENO"; then :
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2448 if ac_fn_c_try_compile "$LINENO"; then :
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462 } # ac_fn_c_check_type
2464 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2465 # ----------------------------------------------------
2466 # Tries to find if the field MEMBER exists in type AGGR, after including
2467 # INCLUDES, setting cache variable VAR accordingly.
2468 ac_fn_c_check_member ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2472 $as_echo_n "checking for $2.$3... " >&6; }
2473 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2489 if ac_fn_c_try_compile "$LINENO"; then :
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2499 if (sizeof ac_aggr.$3)
2505 if ac_fn_c_try_compile "$LINENO"; then :
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2519 } # ac_fn_c_check_member
2521 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2522 # --------------------------------------------
2523 # Tries to find the compile-time value of EXPR in a program that includes
2524 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2526 ac_fn_c_compute_int ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 if test "$cross_compiling" = yes; then
2530 # Depending upon the size, compute the lo and hi bounds.
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2537 static int test_array [1 - 2 * !(($2) >= 0)];
2544 if ac_fn_c_try_compile "$LINENO"; then :
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2553 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2560 if ac_fn_c_try_compile "$LINENO"; then :
2561 ac_hi=$ac_mid; break
2563 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2564 if test $ac_lo -le $ac_mid; then
2568 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2579 static int test_array [1 - 2 * !(($2) < 0)];
2586 if ac_fn_c_try_compile "$LINENO"; then :
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2595 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603 ac_lo=$ac_mid; break
2605 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2606 if test $ac_mid -le $ac_hi; then
2610 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 # Binary search between lo and hi bounds.
2621 while test "x$ac_lo" != "x$ac_hi"; do
2622 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2629 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2636 if ac_fn_c_try_compile "$LINENO"; then :
2639 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2651 static long int longval () { return $2; }
2652 static unsigned long int ulongval () { return $2; }
2659 FILE *f = fopen ("conftest.val", "w");
2664 long int i = longval ();
2667 fprintf (f, "%ld", i);
2671 unsigned long int i = ulongval ();
2674 fprintf (f, "%lu", i);
2676 /* Do not output a trailing newline, as this causes \r\n confusion
2677 on some platforms. */
2678 return ferror (f) || fclose (f) != 0;
2684 if ac_fn_c_try_run "$LINENO"; then :
2685 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2690 conftest.$ac_objext conftest.beam conftest.$ac_ext
2694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2697 } # ac_fn_c_compute_int
2699 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2700 # ---------------------------------------------------------
2701 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2702 # the include files in INCLUDES and setting the cache variable VAR
2704 ac_fn_cxx_check_header_mongrel ()
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2709 $as_echo_n "checking for $2... " >&6; }
2710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2711 $as_echo_n "(cached) " >&6
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2715 $as_echo "$ac_res" >&6; }
2717 # Is the header compilable?
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2719 $as_echo_n "checking $2 usability... " >&6; }
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h. */
2725 if ac_fn_cxx_try_compile "$LINENO"; then :
2726 ac_header_compiler=yes
2728 ac_header_compiler=no
2730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2732 $as_echo "$ac_header_compiler" >&6; }
2734 # Is the header present?
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2736 $as_echo_n "checking $2 presence... " >&6; }
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2741 if ac_fn_cxx_try_cpp "$LINENO"; then :
2742 ac_header_preproc=yes
2744 ac_header_preproc=no
2746 rm -f conftest.err conftest.$ac_ext
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2748 $as_echo "$ac_header_preproc" >&6; }
2750 # So? What about this header?
2751 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2754 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2756 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2760 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2762 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2764 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2766 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2770 ## ------------------------------- ##
2771 ## Report this to www.asterisk.org ##
2772 ## ------------------------------- ##
2774 ) | sed "s/^/$as_me: WARNING: /" >&2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2778 $as_echo_n "checking for $2... " >&6; }
2779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2780 $as_echo_n "(cached) " >&6
2782 eval "$3=\$ac_header_compiler"
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2786 $as_echo "$ac_res" >&6; }
2788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2790 } # ac_fn_cxx_check_header_mongrel
2792 # ac_fn_cxx_try_link LINENO
2793 # -------------------------
2794 # Try to link conftest.$ac_ext, and return whether this succeeded.
2795 ac_fn_cxx_try_link ()
2797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2798 rm -f conftest.$ac_objext conftest$ac_exeext
2799 if { { ac_try="$ac_link"
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2805 $as_echo "$ac_try_echo"; } >&5
2806 (eval "$ac_link") 2>conftest.err
2808 if test -s conftest.err; then
2809 grep -v '^ *+' conftest.err >conftest.er1
2810 cat conftest.er1 >&5
2811 mv -f conftest.er1 conftest.err
2813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2814 test $ac_status = 0; } && {
2815 test -z "$ac_cxx_werror_flag" ||
2816 test ! -s conftest.err
2817 } && test -s conftest$ac_exeext && {
2818 test "$cross_compiling" = yes ||
2819 $as_test_x conftest$ac_exeext
2823 $as_echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2830 # interfere with the next link command; also delete a directory that is
2831 # left behind by Apple's compiler. We do this before executing the actions.
2832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2836 } # ac_fn_cxx_try_link
2838 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2839 # ---------------------------------------------------------
2840 # Tests whether HEADER exists and can be compiled using the include files in
2841 # INCLUDES, setting the cache variable VAR accordingly.
2842 ac_fn_cxx_check_header_compile ()
2844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2846 $as_echo_n "checking for $2... " >&6; }
2847 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2848 $as_echo_n "(cached) " >&6
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h. */
2855 if ac_fn_cxx_try_compile "$LINENO"; then :
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2864 $as_echo "$ac_res" >&6; }
2865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2867 } # ac_fn_cxx_check_header_compile
2868 cat >config.log <<_ACEOF
2869 This file contains any messages produced by compilers while
2870 running configure, to aid debugging if configure makes a mistake.
2872 It was created by asterisk $as_me 1.6, which was
2873 generated by GNU Autoconf 2.64. Invocation command line was
2885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2897 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 test -z "$as_dir" && as_dir=.
2909 $as_echo "PATH: $as_dir"
2925 # Keep a trace of the command line.
2926 # Strip out --no-create and --no-recursion so they do not pile up.
2927 # Strip out --silent because we don't want to record it for future runs.
2928 # Also quote any args containing shell meta-characters.
2929 # Make two passes to allow for proper duplicate-argument suppression.
2933 ac_must_keep_next=false
2939 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2941 | -silent | --silent | --silen | --sile | --sil)
2944 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2947 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2949 as_fn_append ac_configure_args1 " '$ac_arg'"
2950 if test $ac_must_keep_next = true; then
2951 ac_must_keep_next=false # Got value, back to normal.
2954 *=* | --config-cache | -C | -disable-* | --disable-* \
2955 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2956 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2957 | -with-* | --with-* | -without-* | --without-* | --x)
2958 case "$ac_configure_args0 " in
2959 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2962 -* ) ac_must_keep_next=true ;;
2965 as_fn_append ac_configure_args " '$ac_arg'"
2970 { ac_configure_args0=; unset ac_configure_args0;}
2971 { ac_configure_args1=; unset ac_configure_args1;}
2973 # When interrupted or exit'd, cleanup temporary files, and complete
2974 # config.log. We remove comments because anyway the quotes in there
2975 # would cause problems or look ugly.
2976 # WARNING: Use '\'' to represent an apostrophe within the trap.
2977 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2978 trap 'exit_status=$?
2979 # Save into config.log some information that might help in debugging.
2984 ## ---------------- ##
2985 ## Cache variables. ##
2986 ## ---------------- ##
2989 # The following way of writing the cache mishandles newlines in values,
2991 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2992 eval ac_val=\$$ac_var
2996 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2997 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3000 _ | IFS | as_nl) ;; #(
3001 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3002 *) { eval $ac_var=; unset $ac_var;} ;;
3007 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3008 *${as_nl}ac_space=\ *)
3010 "s/'\''/'\''\\\\'\'''\''/g;
3011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3022 ## ----------------- ##
3023 ## Output variables. ##
3024 ## ----------------- ##
3027 for ac_var in $ac_subst_vars
3029 eval ac_val=\$$ac_var
3031 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3033 $as_echo "$ac_var='\''$ac_val'\''"
3037 if test -n "$ac_subst_files"; then
3039 ## ------------------- ##
3040 ## File substitutions. ##
3041 ## ------------------- ##
3044 for ac_var in $ac_subst_files
3046 eval ac_val=\$$ac_var
3048 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3050 $as_echo "$ac_var='\''$ac_val'\''"
3055 if test -s confdefs.h; then
3065 test "$ac_signal" != 0 &&
3066 $as_echo "$as_me: caught signal $ac_signal"
3067 $as_echo "$as_me: exit $exit_status"
3069 rm -f core *.core core.conftest.* &&
3070 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3073 for ac_signal in 1 2 13 15; do
3074 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3079 rm -f -r conftest* confdefs.h
3081 $as_echo "/* confdefs.h */" > confdefs.h
3083 # Predefined preprocessor variables.
3085 cat >>confdefs.h <<_ACEOF
3086 #define PACKAGE_NAME "$PACKAGE_NAME"
3089 cat >>confdefs.h <<_ACEOF
3090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3093 cat >>confdefs.h <<_ACEOF
3094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3097 cat >>confdefs.h <<_ACEOF
3098 #define PACKAGE_STRING "$PACKAGE_STRING"
3101 cat >>confdefs.h <<_ACEOF
3102 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3105 cat >>confdefs.h <<_ACEOF
3106 #define PACKAGE_URL "$PACKAGE_URL"
3110 # Let the site file select an alternate cache file if it wants to.
3111 # Prefer an explicitly selected file to automatically selected ones.
3114 if test -n "$CONFIG_SITE"; then
3115 ac_site_file1=$CONFIG_SITE
3116 elif test "x$prefix" != xNONE; then
3117 ac_site_file1=$prefix/share/config.site
3118 ac_site_file2=$prefix/etc/config.site
3120 ac_site_file1=$ac_default_prefix/share/config.site
3121 ac_site_file2=$ac_default_prefix/etc/config.site
3123 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3125 test "x$ac_site_file" = xNONE && continue
3126 if test -r "$ac_site_file"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3128 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3129 sed 's/^/| /' "$ac_site_file" >&5
3134 if test -r "$cache_file"; then
3135 # Some versions of bash will fail to source /dev/null (special
3136 # files actually), so we avoid doing that.
3137 if 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 " utime.h"
3152 # Check that the precious variables saved in the cache have kept the same
3154 ac_cache_corrupted=false
3155 for ac_var in $ac_precious_vars; do
3156 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3157 eval ac_new_set=\$ac_env_${ac_var}_set
3158 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3159 eval ac_new_val=\$ac_env_${ac_var}_value
3160 case $ac_old_set,$ac_new_set in
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3163 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3164 ac_cache_corrupted=: ;;
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3167 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3168 ac_cache_corrupted=: ;;
3171 if test "x$ac_old_val" != "x$ac_new_val"; then
3172 # differences in whitespace do not lead to failure.
3173 ac_old_val_w=`echo x $ac_old_val`
3174 ac_new_val_w=`echo x $ac_new_val`
3175 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3177 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3178 ac_cache_corrupted=:
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3181 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3182 eval $ac_var=\$ac_old_val
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3185 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3187 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3190 # Pass precious variables to config.status.
3191 if test "$ac_new_set" = set; then
3193 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3194 *) ac_arg=$ac_var=$ac_new_val ;;
3196 case " $ac_configure_args " in
3197 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3198 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3202 if $ac_cache_corrupted; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3206 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3207 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3209 ## -------------------- ##
3210 ## Main body of script. ##
3211 ## -------------------- ##
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221 # cross-compile macros
3223 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3224 for ac_t in install-sh install.sh shtool; do
3225 if test -f "$ac_dir/$ac_t"; then
3227 ac_install_sh="$ac_aux_dir/$ac_t -c"
3232 if test -z "$ac_aux_dir"; then
3233 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3236 # These three variables are undocumented and unsupported,
3237 # and are intended to be withdrawn in a future Autoconf release.
3238 # They can cause serious problems if a builder's source tree is in a directory
3239 # whose full name contains unusual characters.
3240 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3241 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3242 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3245 # Make sure we can run config.sub.
3246 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3247 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3250 $as_echo_n "checking build system type... " >&6; }
3251 if test "${ac_cv_build+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3254 ac_build_alias=$build_alias
3255 test "x$ac_build_alias" = x &&
3256 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3257 test "x$ac_build_alias" = x &&
3258 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3260 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3264 $as_echo "$ac_cv_build" >&6; }
3265 case $ac_cv_build in
3267 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3270 ac_save_IFS=$IFS; IFS='-'
3276 # Remember, the first character of IFS is used to create $*,
3277 # except with old shells:
3280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3284 $as_echo_n "checking host system type... " >&6; }
3285 if test "${ac_cv_host+set}" = set; then :
3286 $as_echo_n "(cached) " >&6
3288 if test "x$host_alias" = x; then
3289 ac_cv_host=$ac_cv_build
3291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3292 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3297 $as_echo "$ac_cv_host" >&6; }
3300 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3303 ac_save_IFS=$IFS; IFS='-'
3309 # Remember, the first character of IFS is used to create $*,
3310 # except with old shells:
3313 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3317 # check existence of the package
3321 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3322 for ac_t in install-sh install.sh shtool; do
3323 if test -f "$ac_dir/$ac_t"; then
3325 ac_install_sh="$ac_aux_dir/$ac_t -c"
3330 if test -z "$ac_aux_dir"; then
3331 as_fn_error "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3334 # These three variables are undocumented and unsupported,
3335 # and are intended to be withdrawn in a future Autoconf release.
3336 # They can cause serious problems if a builder's source tree is in a directory
3337 # whose full name contains unusual characters.
3338 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3339 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3340 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3347 # preserve any CFLAGS or LDFLAGS that may be set
3348 # NOTE: This must be done before calling any macros that end up
3349 # calling AC_PROG_CC or the like, since they will set a default
3350 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3351 # we don't want those default flags to be carried over into the
3352 # rest of the build system since we have other means of controlling
3353 # debugging symbol generation and optimization.
3354 CONFIG_CFLAGS="${CFLAGS}"
3355 CONFIG_LDFLAGS="${LDFLAGS}"
3359 # specify output header file
3360 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 if test -n "$ac_tool_prefix"; then
3369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if test "${ac_cv_prog_CC+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
3376 if test -n "$CC"; then
3377 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 if test -n "$CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399 $as_echo "$CC" >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3407 if test -z "$ac_cv_prog_CC"; then
3409 # Extract the first word of "gcc", so it can be a program name with args.
3410 set dummy gcc; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
3416 if test -n "$ac_ct_CC"; then
3417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_prog_ac_ct_CC="gcc"
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3437 if test -n "$ac_ct_CC"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3439 $as_echo "$ac_ct_CC" >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3445 if test "x$ac_ct_CC" = x; then
3448 case $cross_compiling:$ac_tool_warned in
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3452 ac_tool_warned=yes ;;
3460 if test -z "$CC"; then
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}cc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if test "${ac_cv_prog_CC+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3469 if test -n "$CC"; then
3470 ac_cv_prog_CC="$CC" # Let the user override the test.
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_CC="${ac_tool_prefix}cc"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 if test -n "$CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3492 $as_echo "$CC" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3501 if test -z "$CC"; then
3502 # Extract the first word of "cc", so it can be a program name with args.
3503 set dummy cc; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if test "${ac_cv_prog_CC+set}" = set; then :
3507 $as_echo_n "(cached) " >&6
3509 if test -n "$CC"; then
3510 ac_cv_prog_CC="$CC" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3521 ac_prog_rejected=yes
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 if test $ac_prog_rejected = yes; then
3533 # We found a bogon in the path, so make sure we never use it.
3534 set dummy $ac_cv_prog_CC
3536 if test $# != 0; then
3537 # We chose a different compiler from the bogus one.
3538 # However, it has the same basename, so the bogon will be chosen
3539 # first if we set CC to just the basename; use the full file name.
3541 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3557 if test -z "$CC"; then
3558 if test -n "$ac_tool_prefix"; then
3559 for ac_prog in cl.exe
3561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if test "${ac_cv_prog_CC+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3578 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 if test -n "$CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 $as_echo "$CC" >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3598 test -n "$CC" && break
3601 if test -z "$CC"; then
3603 for ac_prog in cl.exe
3605 # Extract the first word of "$ac_prog", so it can be a program name with args.
3606 set dummy $ac_prog; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3612 if test -n "$ac_ct_CC"; then
3613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_ac_ct_CC="$ac_prog"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3633 if test -n "$ac_ct_CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3635 $as_echo "$ac_ct_CC" >&6; }
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3642 test -n "$ac_ct_CC" && break
3645 if test "x$ac_ct_CC" = x; then
3648 case $cross_compiling:$ac_tool_warned in
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3652 ac_tool_warned=yes ;;
3661 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error "no acceptable C compiler found in \$PATH
3664 See \`config.log' for more details." "$LINENO" 5; }
3666 # Provide some information about the compiler.
3667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3670 for ac_option in --version -v -V -qversion; do
3671 { { ac_try="$ac_compiler $ac_option >&5"
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677 $as_echo "$ac_try_echo"; } >&5
3678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3680 if test -s conftest.err; then
3682 ... rest of stderr output deleted ...
3683 10q' conftest.err >conftest.er1
3684 cat conftest.er1 >&5
3685 rm -f conftest.er1 conftest.err
3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3697 FILE *f = fopen ("conftest.out", "w");
3698 return ferror (f) || fclose (f) != 0;
3704 ac_clean_files_save=$ac_clean_files
3705 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3706 # Try to create an executable without -o first, disregard a.out.
3707 # It will help us diagnose broken compilers, and finding out an intuition
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3710 $as_echo_n "checking for C compiler default output file name... " >&6; }
3711 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3713 # The possible output files:
3714 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3717 for ac_file in $ac_files
3720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3721 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3726 if { { ac_try="$ac_link_default"
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_link_default") 2>&5
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }; then :
3737 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3738 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3739 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3740 # so that the user can short-circuit this test for compilers unknown to
3742 for ac_file in $ac_files ''
3744 test -f "$ac_file" || continue
3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3749 # We found the default executable, but exeext='' is most
3753 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3757 # We set ac_cv_exeext here because the later test for it is not
3758 # safe: cross compilers may not add the suffix if given an `-o'
3759 # argument, so we may need to know it at that point already.
3760 # Even if this section looks crufty: it has the advantage of
3767 test "$ac_cv_exeext" = no && ac_cv_exeext=
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3773 $as_echo "$ac_file" >&6; }
3774 if test -z "$ac_file"; then :
3775 $as_echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780 { as_fn_set_status 77
3781 as_fn_error "C compiler cannot create executables
3782 See \`config.log' for more details." "$LINENO" 5; }; }
3784 ac_exeext=$ac_cv_exeext
3786 # Check that the compiler produces executables we can run. If not, either
3787 # the compiler is broken, or we cross compile.
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3789 $as_echo_n "checking whether the C compiler works... " >&6; }
3790 # If not cross compiling, check that we can run a simple program.
3791 if test "$cross_compiling" != yes; then
3792 if { ac_try='./$ac_file'
3793 { { case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799 (eval "$ac_try") 2>&5
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }; }; then
3805 if test "$cross_compiling" = maybe; then
3808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3810 as_fn_error "cannot run C compiled programs.
3811 If you meant to cross compile, use \`--host'.
3812 See \`config.log' for more details." "$LINENO" 5; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3817 $as_echo "yes" >&6; }
3819 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3820 ac_clean_files=$ac_clean_files_save
3821 # Check that the compiler produces executables we can run. If not, either
3822 # the compiler is broken, or we cross compile.
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3824 $as_echo_n "checking whether we are cross compiling... " >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3826 $as_echo "$cross_compiling" >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3829 $as_echo_n "checking for suffix of executables... " >&6; }
3830 if { { ac_try="$ac_link"
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_link") 2>&5
3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840 test $ac_status = 0; }; then :
3841 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3842 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3843 # work properly (i.e., refer to `conftest.exe'), while it won't with
3845 for ac_file in conftest.exe conftest conftest.*; do
3846 test -f "$ac_file" || continue
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3849 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3857 as_fn_error "cannot compute suffix of executables: cannot compile and link
3858 See \`config.log' for more details." "$LINENO" 5; }
3860 rm -f conftest$ac_cv_exeext
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3862 $as_echo "$ac_cv_exeext" >&6; }
3864 rm -f conftest.$ac_ext
3865 EXEEXT=$ac_cv_exeext
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3868 $as_echo_n "checking for suffix of object files... " >&6; }
3869 if test "${ac_cv_objext+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3883 rm -f conftest.o conftest.obj
3884 if { { ac_try="$ac_compile"
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_compile") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 for ac_file in conftest.o conftest.obj conftest.*; do
3896 test -f "$ac_file" || continue;
3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3899 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3904 $as_echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error "cannot compute suffix of object files: cannot compile
3910 See \`config.log' for more details." "$LINENO" 5; }
3912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3915 $as_echo "$ac_cv_objext" >&6; }
3916 OBJEXT=$ac_cv_objext
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3919 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3920 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3921 $as_echo_n "(cached) " >&6
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3937 if ac_fn_c_try_compile "$LINENO"; then :
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3947 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3948 if test $ac_compiler_gnu = yes; then
3953 ac_test_CFLAGS=${CFLAGS+set}
3954 ac_save_CFLAGS=$CFLAGS
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3956 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3957 if test "${ac_cv_prog_cc_g+set}" = set; then :
3958 $as_echo_n "(cached) " >&6
3960 ac_save_c_werror_flag=$ac_c_werror_flag
3961 ac_c_werror_flag=yes
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3975 if ac_fn_c_try_compile "$LINENO"; then :
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3990 if ac_fn_c_try_compile "$LINENO"; then :
3993 ac_c_werror_flag=$ac_save_c_werror_flag
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4006 if ac_fn_c_try_compile "$LINENO"; then :
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 ac_c_werror_flag=$ac_save_c_werror_flag
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4017 $as_echo "$ac_cv_prog_cc_g" >&6; }
4018 if test "$ac_test_CFLAGS" = set; then
4019 CFLAGS=$ac_save_CFLAGS
4020 elif test $ac_cv_prog_cc_g = yes; then
4021 if test "$GCC" = yes; then
4027 if test "$GCC" = yes; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4034 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4035 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4038 ac_cv_prog_cc_c89=no
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4044 #include <sys/types.h>
4045 #include <sys/stat.h>
4046 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4047 struct buf { int x; };
4048 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4049 static char *e (p, i)
4055 static char *f (char * (*g) (char **, int), char **p, ...)
4060 s = g (p, va_arg (v,int));
4065 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4066 function prototypes and stuff, but not '\xHH' hex character constants.
4067 These don't provoke an error unfortunately, instead are silently treated
4068 as 'x'. The following induces an error, until -std is added to get
4069 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4070 array size at least. It's necessary to write '\x00'==0 to get something
4071 that's true only with -std. */
4072 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4074 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4075 inside strings and character constants. */
4077 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4079 int test (int i, double x);
4080 struct s1 {int (*f) (int a);};
4081 struct s2 {int (*f) (double a);};
4082 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4088 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4093 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4094 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4096 CC="$ac_save_CC $ac_arg"
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_prog_cc_c89=$ac_arg
4100 rm -f core conftest.err conftest.$ac_objext
4101 test "x$ac_cv_prog_cc_c89" != "xno" && break
4103 rm -f conftest.$ac_ext
4108 case "x$ac_cv_prog_cc_c89" in
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4111 $as_echo "none needed" >&6; } ;;
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114 $as_echo "unsupported" >&6; } ;;
4116 CC="$CC $ac_cv_prog_cc_c89"
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4118 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4120 if test "x$ac_cv_prog_cc_c89" != xno; then :
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4137 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4138 # On Suns, sometimes $CPP names a directory.
4139 if test -n "$CPP" && test -d "$CPP"; then
4142 if test -z "$CPP"; then
4143 if test "${ac_cv_prog_CPP+set}" = set; then :
4144 $as_echo_n "(cached) " >&6
4146 # Double quotes because CPP needs to be expanded
4147 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4150 for ac_c_preproc_warn_flag in '' yes
4152 # Use a header file that comes with gcc, so configuring glibc
4153 # with a fresh cross-compiler works.
4154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4155 # <limits.h> exists even on freestanding compilers.
4156 # On the NeXT, cc -E runs the code through the compiler's parser,
4157 # not just through cpp. "Syntax error" is here to catch this case.
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4161 # include <limits.h>
4163 # include <assert.h>
4167 if ac_fn_c_try_cpp "$LINENO"; then :
4170 # Broken: fails on valid input.
4173 rm -f conftest.err conftest.$ac_ext
4175 # OK, works on sane cases. Now check whether nonexistent headers
4176 # can be detected and how.
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179 #include <ac_nonexistent.h>
4181 if ac_fn_c_try_cpp "$LINENO"; then :
4182 # Broken: success on invalid input.
4185 # Passes both tests.
4189 rm -f conftest.err conftest.$ac_ext
4192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4193 rm -f conftest.err conftest.$ac_ext
4194 if $ac_preproc_ok; then :
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4207 $as_echo "$CPP" >&6; }
4209 for ac_c_preproc_warn_flag in '' yes
4211 # Use a header file that comes with gcc, so configuring glibc
4212 # with a fresh cross-compiler works.
4213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4214 # <limits.h> exists even on freestanding compilers.
4215 # On the NeXT, cc -E runs the code through the compiler's parser,
4216 # not just through cpp. "Syntax error" is here to catch this case.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4220 # include <limits.h>
4222 # include <assert.h>
4226 if ac_fn_c_try_cpp "$LINENO"; then :
4229 # Broken: fails on valid input.
4232 rm -f conftest.err conftest.$ac_ext
4234 # OK, works on sane cases. Now check whether nonexistent headers
4235 # can be detected and how.
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #include <ac_nonexistent.h>
4240 if ac_fn_c_try_cpp "$LINENO"; then :
4241 # Broken: success on invalid input.
4244 # Passes both tests.
4248 rm -f conftest.err conftest.$ac_ext
4251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4252 rm -f conftest.err conftest.$ac_ext
4253 if $ac_preproc_ok; then :
4256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4258 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4259 See \`config.log' for more details." "$LINENO" 5; }
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4270 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4271 if test "${ac_cv_path_GREP+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
4274 if test -z "$GREP"; then
4275 ac_path_GREP_found=false
4276 # Loop through the user's path and test for each of PROGNAME-LIST
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4281 test -z "$as_dir" && as_dir=.
4282 for ac_prog in grep ggrep; do
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4285 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4286 # Check for GNU ac_path_GREP and select it if it is found.
4287 # Check for GNU $ac_path_GREP
4288 case `"$ac_path_GREP" --version 2>&1` in
4290 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4293 $as_echo_n 0123456789 >"conftest.in"
4296 cat "conftest.in" "conftest.in" >"conftest.tmp"
4297 mv "conftest.tmp" "conftest.in"
4298 cp "conftest.in" "conftest.nl"
4299 $as_echo 'GREP' >> "conftest.nl"
4300 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4302 as_fn_arith $ac_count + 1 && ac_count=$as_val
4303 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4304 # Best one so far, save it but keep looking for a better one
4305 ac_cv_path_GREP="$ac_path_GREP"
4306 ac_path_GREP_max=$ac_count
4308 # 10*(2^10) chars as input seems more than enough
4309 test $ac_count -gt 10 && break
4311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4314 $ac_path_GREP_found && break 3
4319 if test -z "$ac_cv_path_GREP"; then
4320 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4323 ac_cv_path_GREP=$GREP
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4328 $as_echo "$ac_cv_path_GREP" >&6; }
4329 GREP="$ac_cv_path_GREP"
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4333 $as_echo_n "checking for egrep... " >&6; }
4334 if test "${ac_cv_path_EGREP+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4337 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4338 then ac_cv_path_EGREP="$GREP -E"
4340 if test -z "$EGREP"; then
4341 ac_path_EGREP_found=false
4342 # Loop through the user's path and test for each of PROGNAME-LIST
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347 test -z "$as_dir" && as_dir=.
4348 for ac_prog in egrep; do
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4351 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4352 # Check for GNU ac_path_EGREP and select it if it is found.
4353 # Check for GNU $ac_path_EGREP
4354 case `"$ac_path_EGREP" --version 2>&1` in
4356 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4359 $as_echo_n 0123456789 >"conftest.in"
4362 cat "conftest.in" "conftest.in" >"conftest.tmp"
4363 mv "conftest.tmp" "conftest.in"
4364 cp "conftest.in" "conftest.nl"
4365 $as_echo 'EGREP' >> "conftest.nl"
4366 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4368 as_fn_arith $ac_count + 1 && ac_count=$as_val
4369 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4370 # Best one so far, save it but keep looking for a better one
4371 ac_cv_path_EGREP="$ac_path_EGREP"
4372 ac_path_EGREP_max=$ac_count
4374 # 10*(2^10) chars as input seems more than enough
4375 test $ac_count -gt 10 && break
4377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380 $ac_path_EGREP_found && break 3
4385 if test -z "$ac_cv_path_EGREP"; then
4386 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4389 ac_cv_path_EGREP=$EGREP
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4395 $as_echo "$ac_cv_path_EGREP" >&6; }
4396 EGREP="$ac_cv_path_EGREP"
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4400 $as_echo_n "checking for ANSI C header files... " >&6; }
4401 if test "${ac_cv_header_stdc+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4419 if ac_fn_c_try_compile "$LINENO"; then :
4420 ac_cv_header_stdc=yes
4422 ac_cv_header_stdc=no
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 if test $ac_cv_header_stdc = yes; then
4427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4434 $EGREP "memchr" >/dev/null 2>&1; then :
4437 ac_cv_header_stdc=no
4443 if test $ac_cv_header_stdc = yes; then
4444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4451 $EGREP "free" >/dev/null 2>&1; then :
4454 ac_cv_header_stdc=no
4460 if test $ac_cv_header_stdc = yes; then
4461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4462 if test "$cross_compiling" = yes; then :
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4469 #if ((' ' & 0x0FF) == 0x020)
4470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4473 # define ISLOWER(c) \
4474 (('a' <= (c) && (c) <= 'i') \
4475 || ('j' <= (c) && (c) <= 'r') \
4476 || ('s' <= (c) && (c) <= 'z'))
4477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4485 for (i = 0; i < 256; i++)
4486 if (XOR (islower (i), ISLOWER (i))
4487 || toupper (i) != TOUPPER (i))
4492 if ac_fn_c_try_run "$LINENO"; then :
4495 ac_cv_header_stdc=no
4497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4498 conftest.$ac_objext conftest.beam conftest.$ac_ext
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4504 $as_echo "$ac_cv_header_stdc" >&6; }
4505 if test $ac_cv_header_stdc = yes; then
4507 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4511 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4513 inttypes.h stdint.h unistd.h
4515 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4516 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4518 eval as_val=\$$as_ac_Header
4519 if test "x$as_val" = x""yes; then :
4520 cat >>confdefs.h <<_ACEOF
4521 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4530 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4531 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4538 if test "$MINIX" = yes; then
4540 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4543 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4546 $as_echo "#define _MINIX 1" >>confdefs.h
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4552 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4553 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4559 # define __EXTENSIONS__ 1
4560 $ac_includes_default
4569 if ac_fn_c_try_compile "$LINENO"; then :
4570 ac_cv_safe_to_define___extensions__=yes
4572 ac_cv_safe_to_define___extensions__=no
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4577 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4578 test $ac_cv_safe_to_define___extensions__ = yes &&
4579 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4581 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4583 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4585 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4587 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4589 # note- does not work on FreeBSD
4591 case "${host_os}" in
4593 ac_default_prefix=/usr/local
4594 CPPFLAGS=-I/usr/local/include
4595 LDFLAGS=-L/usr/local/lib
4598 ac_default_prefix=/usr/local
4599 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4600 if test ${sysconfdir} = '${prefix}/etc'; then
4603 if test ${mandir} = '${prefix}/man'; then
4604 mandir=/usr/share/man
4607 CPPFLAGS=-I/usr/local/include
4608 LDFLAGS=-L/usr/local/lib
4612 $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
4616 ac_default_prefix=/usr
4617 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4618 if test ${sysconfdir} = '${prefix}/etc'; then
4621 if test ${mandir} = '${prefix}/man'; then
4622 mandir=/usr/share/man
4628 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4629 if test ${localstatedir} = '${prefix}/var'; then
4634 BUILD_PLATFORM=${build}
4635 BUILD_CPU=${build_cpu}
4636 BUILD_VENDOR=${build_vendor}
4637 BUILD_OS=${build_os}
4644 HOST_PLATFORM=${host}
4645 HOST_CPU=${host_cpu}
4646 HOST_VENDOR=${host_vendor}
4656 case "${host_os}" in