2 # From configure.ac Revision: 97643 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.4.
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 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in
29 *posix*) set -o posix ;;
38 # Avoid depending upon Character Ranges.
39 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits='0123456789'
43 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # The user is always right.
46 if test "${PATH_SEPARATOR+set}" != set; then
47 echo "#! /bin/sh" >conf$$.sh
48 echo "exit 0" >>conf$$.sh
50 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
58 # Support unset when possible.
59 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
67 # We need space, tab and new line, in precisely that order. Quoting is
68 # there to prevent editors from complaining about space-tab.
69 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 # splitting by setting IFS to empty value.)
75 # Find who we are. Look in the path if we contain no directory separator.
77 *[\\/]* ) as_myself=$0 ;;
78 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
82 test -z "$as_dir" && as_dir=.
83 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
89 # We did not find ourselves, most probably we were run as `sh COMMAND'
90 # in which case we are not to be found in the path.
91 if test "x$as_myself" = x; then
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
99 # Work around bugs in pre-3.0 UWIN ksh.
100 for as_var in ENV MAIL MAILPATH
101 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C; export $as_var
116 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
120 # Required to use basename.
121 if expr a : '\(a\)' >/dev/null 2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
135 # Name of the executable.
136 as_me=`$as_basename -- "$0" ||
137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 X"$0" : 'X\(//\)$' \| \
139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 if test "x$CONFIG_SHELL" = x; then
160 if (eval ":") 2>/dev/null; then
166 if test $as_have_required = yes && (eval ":
176 as_func_ret_success () {
179 as_func_ret_failure () {
184 if as_func_success; then
188 echo as_func_success failed.
191 if as_func_failure; then
193 echo as_func_failure succeeded.
196 if as_func_ret_success; then
200 echo as_func_ret_success failed.
203 if as_func_ret_failure; then
205 echo as_func_ret_failure succeeded.
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
212 echo positional parameters were not saved.
215 test \$exitcode = 0) || { (exit 1); exit 1; }
220 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 ") 2> /dev/null; then
226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
230 test -z "$as_dir" && as_dir=.
233 for as_base in sh bash ksh sh5; do
234 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
241 for as_shell in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev/null <<\_ASEOF
245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 # is contrary to our usage. Disable this feature.
250 alias -g '${1+"$@"}'='"$@"'
253 case `(set -o) 2>/dev/null` in
254 *posix*) set -o posix ;;
263 CONFIG_SHELL=$as_shell
265 if { "$as_shell" 2> /dev/null <<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
274 case `(set -o) 2>/dev/null` in
275 *posix*) set -o posix ;;
291 as_func_ret_success () {
294 as_func_ret_failure () {
299 if as_func_success; then
303 echo as_func_success failed.
306 if as_func_failure; then
308 echo as_func_failure succeeded.
311 if as_func_ret_success; then
315 echo as_func_ret_success failed.
318 if as_func_ret_failure; then
320 echo as_func_ret_failure succeeded.
323 if ( set x; as_func_ret_success y && test x = "$1" ); then
327 echo positional parameters were not saved.
330 test $exitcode = 0) || { (exit 1); exit 1; }
335 test "x$as_lineno_1" != "x$as_lineno_2" &&
336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
347 if test "x$CONFIG_SHELL" != x; then
348 for as_var in BASH_ENV ENV
349 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
352 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
356 if test $as_have_required = no; then
357 echo This script requires a shell more modern than all the
358 echo shells that I found on your system. Please install a
359 echo modern shell, or manually run the script under such a
360 echo shell if you do have one.
361 { (exit 1); exit 1; }
371 (eval "as_func_return () {
380 as_func_ret_success () {
383 as_func_ret_failure () {
388 if as_func_success; then
392 echo as_func_success failed.
395 if as_func_failure; then
397 echo as_func_failure succeeded.
400 if as_func_ret_success; then
404 echo as_func_ret_success failed.
407 if as_func_ret_failure; then
409 echo as_func_ret_failure succeeded.
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
416 echo positional parameters were not saved.
419 test \$exitcode = 0") || {
420 echo No shell found that supports shell functions.
421 echo Please tell autoconf@gnu.org about your system,
422 echo including any error possibly output before this
430 test "x$as_lineno_1" != "x$as_lineno_2" &&
431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 # uniformly replaced by the line number. The first 'sed' inserts a
435 # line-number line after each line using $LINENO; the second 'sed'
436 # does the real work. The second script uses 'N' to pair each
437 # line-number line with the line containing $LINENO, and appends
438 # trailing '-' during substitution so that $LINENO is not a special
440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 # scripts with optimization help from Paolo Bonzini. Blame Lee
442 # E. McMahon (1931-1989) for sed's syntax. :-)
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 chmod +x "$as_me.lineno" ||
459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 { (exit 1); exit 1; }; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
466 # Exit status is that of the last command.
471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
477 ECHO_C= ECHO_N= ECHO_T=
481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
488 if expr a : '\(a\)' >/dev/null 2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
495 rm -f conf$$ conf$$.exe conf$$.file
496 if test -d conf$$.dir; then
497 rm -f conf$$.dir/conf$$.file
503 if ln -s conf$$.file conf$$ 2>/dev/null; then
505 # ... but there are two gotchas:
506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 # In both cases, we have to default to `cp -p'.
509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
511 elif ln conf$$.file conf$$ 2>/dev/null; then
516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
517 rmdir conf$$.dir 2>/dev/null
519 if mkdir -p . 2>/dev/null; then
522 test -d ./-p && rmdir ./-p
526 if test -x / >/dev/null 2>&1; then
529 if ls -dL / >/dev/null 2>&1; then
536 if test -d "$1"; then
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
547 as_executable_p=$as_test_x
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 exec 7<&0 </dev/null 6>&1
560 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567 ac_default_prefix=/usr/local
569 ac_config_libobj_dir=.
575 SHELL=${CONFIG_SHELL-/bin/sh}
577 # Identity of this package.
578 PACKAGE_NAME='asterisk'
579 PACKAGE_TARNAME='asterisk'
580 PACKAGE_VERSION='1.4'
581 PACKAGE_STRING='asterisk 1.4'
582 PACKAGE_BUGREPORT='www.asterisk.org'
584 ac_unique_file="main/asterisk.c"
585 # Factoring default headers for most tests.
586 ac_includes_default="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
632 program_transform_name
920 ZAPTEL_TRANSCODE_INCLUDE
924 ZAPTEL_VLDTMF_INCLUDE
928 ZAPTEL_HWGAIN_INCLUDE
931 ZAPTEL_ECHOCANPARAMS_LIB
932 ZAPTEL_ECHOCANPARAMS_INCLUDE
933 ZAPTEL_ECHOCANPARAMS_DIR
934 PBX_ZAPTEL_ECHOCANPARAMS
935 ZAPTEL_CHANALARMS_LIB
936 ZAPTEL_CHANALARMS_INCLUDE
937 ZAPTEL_CHANALARMS_DIR
938 PBX_ZAPTEL_CHANALARMS
957 AST_DECLARATION_AFTER_STATEMENT
983 ac_precious_vars='build_alias
998 # Initialize some variables set by options.
1000 ac_init_version=false
1001 # The variables have the same names as the options, with
1002 # dashes changed to underlines.
1003 cache_file=/dev/null
1010 program_transform_name=s,x,x,
1018 # Installation directory options.
1019 # These are left unexpanded so users can "make install exec_prefix=/foo"
1020 # and all the variables that are supposed to be based on exec_prefix
1021 # by default will actually change.
1022 # Use braces instead of parens because sh, perl, etc. also accept them.
1023 # (The list follows the same order as the GNU Coding Standards.)
1024 bindir='${exec_prefix}/bin'
1025 sbindir='${exec_prefix}/sbin'
1026 libexecdir='${exec_prefix}/libexec'
1027 datarootdir='${prefix}/share'
1028 datadir='${datarootdir}'
1029 sysconfdir='${prefix}/etc'
1030 sharedstatedir='${prefix}/com'
1031 localstatedir='${prefix}/var'
1032 includedir='${prefix}/include'
1033 oldincludedir='/usr/include'
1034 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1035 infodir='${datarootdir}/info'
1040 libdir='${exec_prefix}/lib'
1041 localedir='${datarootdir}/locale'
1042 mandir='${datarootdir}/man'
1048 # If the previous option needs an argument, assign it.
1049 if test -n "$ac_prev"; then
1050 eval $ac_prev=\$ac_option
1056 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1060 # Accept the important Cygnus configure options, so we can diagnose typos.
1062 case $ac_dashdash$ac_option in
1066 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1068 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1069 bindir=$ac_optarg ;;
1071 -build | --build | --buil | --bui | --bu)
1072 ac_prev=build_alias ;;
1073 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1074 build_alias=$ac_optarg ;;
1076 -cache-file | --cache-file | --cache-fil | --cache-fi \
1077 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1078 ac_prev=cache_file ;;
1079 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1080 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1081 cache_file=$ac_optarg ;;
1083 --config-cache | -C)
1084 cache_file=config.cache ;;
1086 -datadir | --datadir | --datadi | --datad)
1088 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1089 datadir=$ac_optarg ;;
1091 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1092 | --dataroo | --dataro | --datar)
1093 ac_prev=datarootdir ;;
1094 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1095 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1096 datarootdir=$ac_optarg ;;
1098 -disable-* | --disable-*)
1099 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1103 { (exit 1); exit 1; }; }
1104 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1105 eval enable_$ac_feature=no ;;
1107 -docdir | --docdir | --docdi | --doc | --do)
1109 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1110 docdir=$ac_optarg ;;
1112 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1114 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1115 dvidir=$ac_optarg ;;
1117 -enable-* | --enable-*)
1118 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1124 eval enable_$ac_feature=\$ac_optarg ;;
1126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1128 | --exec | --exe | --ex)
1129 ac_prev=exec_prefix ;;
1130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1132 | --exec=* | --exe=* | --ex=*)
1133 exec_prefix=$ac_optarg ;;
1135 -gas | --gas | --ga | --g)
1136 # Obsolete; use --with-gas.
1139 -help | --help | --hel | --he | -h)
1140 ac_init_help=long ;;
1141 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1142 ac_init_help=recursive ;;
1143 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1144 ac_init_help=short ;;
1146 -host | --host | --hos | --ho)
1147 ac_prev=host_alias ;;
1148 -host=* | --host=* | --hos=* | --ho=*)
1149 host_alias=$ac_optarg ;;
1151 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1153 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1155 htmldir=$ac_optarg ;;
1157 -includedir | --includedir | --includedi | --included | --include \
1158 | --includ | --inclu | --incl | --inc)
1159 ac_prev=includedir ;;
1160 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1161 | --includ=* | --inclu=* | --incl=* | --inc=*)
1162 includedir=$ac_optarg ;;
1164 -infodir | --infodir | --infodi | --infod | --info | --inf)
1166 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1167 infodir=$ac_optarg ;;
1169 -libdir | --libdir | --libdi | --libd)
1171 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1172 libdir=$ac_optarg ;;
1174 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1175 | --libexe | --libex | --libe)
1176 ac_prev=libexecdir ;;
1177 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1178 | --libexe=* | --libex=* | --libe=*)
1179 libexecdir=$ac_optarg ;;
1181 -localedir | --localedir | --localedi | --localed | --locale)
1182 ac_prev=localedir ;;
1183 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1184 localedir=$ac_optarg ;;
1186 -localstatedir | --localstatedir | --localstatedi | --localstated \
1187 | --localstate | --localstat | --localsta | --localst | --locals)
1188 ac_prev=localstatedir ;;
1189 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1190 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1191 localstatedir=$ac_optarg ;;
1193 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1195 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1196 mandir=$ac_optarg ;;
1198 -nfp | --nfp | --nf)
1199 # Obsolete; use --without-fp.
1202 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1203 | --no-cr | --no-c | -n)
1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1211 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1212 | --oldin | --oldi | --old | --ol | --o)
1213 ac_prev=oldincludedir ;;
1214 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1215 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1216 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1217 oldincludedir=$ac_optarg ;;
1219 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1221 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1222 prefix=$ac_optarg ;;
1224 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1225 | --program-pre | --program-pr | --program-p)
1226 ac_prev=program_prefix ;;
1227 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1228 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1229 program_prefix=$ac_optarg ;;
1231 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1232 | --program-suf | --program-su | --program-s)
1233 ac_prev=program_suffix ;;
1234 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1235 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1236 program_suffix=$ac_optarg ;;
1238 -program-transform-name | --program-transform-name \
1239 | --program-transform-nam | --program-transform-na \
1240 | --program-transform-n | --program-transform- \
1241 | --program-transform | --program-transfor \
1242 | --program-transfo | --program-transf \
1243 | --program-trans | --program-tran \
1244 | --progr-tra | --program-tr | --program-t)
1245 ac_prev=program_transform_name ;;
1246 -program-transform-name=* | --program-transform-name=* \
1247 | --program-transform-nam=* | --program-transform-na=* \
1248 | --program-transform-n=* | --program-transform-=* \
1249 | --program-transform=* | --program-transfor=* \
1250 | --program-transfo=* | --program-transf=* \
1251 | --program-trans=* | --program-tran=* \
1252 | --progr-tra=* | --program-tr=* | --program-t=*)
1253 program_transform_name=$ac_optarg ;;
1255 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1257 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1258 pdfdir=$ac_optarg ;;
1260 -psdir | --psdir | --psdi | --psd | --ps)
1262 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266 | -silent | --silent | --silen | --sile | --sil)
1269 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1271 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1273 sbindir=$ac_optarg ;;
1275 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1276 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1277 | --sharedst | --shareds | --shared | --share | --shar \
1279 ac_prev=sharedstatedir ;;
1280 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1281 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1282 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1284 sharedstatedir=$ac_optarg ;;
1286 -site | --site | --sit)
1288 -site=* | --site=* | --sit=*)
1291 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1293 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1294 srcdir=$ac_optarg ;;
1296 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1297 | --syscon | --sysco | --sysc | --sys | --sy)
1298 ac_prev=sysconfdir ;;
1299 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1300 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1301 sysconfdir=$ac_optarg ;;
1303 -target | --target | --targe | --targ | --tar | --ta | --t)
1304 ac_prev=target_alias ;;
1305 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1306 target_alias=$ac_optarg ;;
1308 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1311 -version | --version | --versio | --versi | --vers | -V)
1312 ac_init_version=: ;;
1315 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 { echo "$as_me: error: invalid package name: $ac_package" >&2
1319 { (exit 1); exit 1; }; }
1320 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1321 eval with_$ac_package=\$ac_optarg ;;
1323 -without-* | --without-*)
1324 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327 { echo "$as_me: error: invalid package name: $ac_package" >&2
1328 { (exit 1); exit 1; }; }
1329 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1330 eval with_$ac_package=no ;;
1333 # Obsolete; use --with-x.
1336 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1337 | --x-incl | --x-inc | --x-in | --x-i)
1338 ac_prev=x_includes ;;
1339 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1340 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1341 x_includes=$ac_optarg ;;
1343 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1344 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1345 ac_prev=x_libraries ;;
1346 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1347 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1348 x_libraries=$ac_optarg ;;
1350 -*) { echo "$as_me: error: unrecognized option: $ac_option
1351 Try \`$0 --help' for more information." >&2
1352 { (exit 1); exit 1; }; }
1356 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1359 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1360 { (exit 1); exit 1; }; }
1361 eval $ac_envvar=\$ac_optarg
1362 export $ac_envvar ;;
1365 # FIXME: should be removed in autoconf 3.0.
1366 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1367 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1368 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1369 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375 if test -n "$ac_prev"; then
1376 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1377 { echo "$as_me: error: missing argument to $ac_option" >&2
1378 { (exit 1); exit 1; }; }
1381 # Be sure to have absolute directory names.
1382 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383 datadir sysconfdir sharedstatedir localstatedir includedir \
1384 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385 libdir localedir mandir
1387 eval ac_val=\$$ac_var
1389 [\\/$]* | ?:[\\/]* ) continue;;
1390 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1393 { (exit 1); exit 1; }; }
1396 # There might be people who depend on the old broken behavior: `$host'
1397 # used to hold the argument of --host etc.
1398 # FIXME: To remove some day.
1401 target=$target_alias
1403 # FIXME: To remove some day.
1404 if test "x$host_alias" != x; then
1405 if test "x$build_alias" = x; then
1406 cross_compiling=maybe
1407 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1408 If a cross compiler is detected then cross compile mode will be used." >&2
1409 elif test "x$build_alias" != "x$host_alias"; then
1415 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1417 test "$silent" = yes && exec 6>/dev/null
1420 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421 ac_ls_di=`ls -di .` &&
1422 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423 { echo "$as_me: error: Working directory cannot be determined" >&2
1424 { (exit 1); exit 1; }; }
1425 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1426 { echo "$as_me: error: pwd does not report name of working directory" >&2
1427 { (exit 1); exit 1; }; }
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir=`$as_dirname -- "$0" ||
1435 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$0" : 'X\(//\)[^/]' \| \
1437 X"$0" : 'X\(//\)$' \| \
1438 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1462 ac_srcdir_defaulted=no
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1467 { (exit 1); exit 1; }; }
1469 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1472 { (exit 1); exit 1; }; }
1474 # When building in place, set srcdir=.
1475 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478 # Remove unnecessary trailing slashes from srcdir.
1479 # Double slashes in file names in object file debugging info
1480 # mess up M-x gdb in Emacs.
1482 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 for ac_var in $ac_precious_vars; do
1485 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_env_${ac_var}_value=\$${ac_var}
1487 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1492 # Report the --help message.
1494 if test "$ac_init_help" = "long"; then
1495 # Omit some internal or obsolete options to make the list less imposing.
1496 # This message is too long to be a string in the A/UX 3.1 sh.
1498 \`configure' configures asterisk 1.4 to adapt to many kinds of systems.
1500 Usage: $0 [OPTION]... [VAR=VALUE]...
1502 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503 VAR=VALUE. See below for descriptions of some of the useful variables.
1505 Defaults for the options are specified in brackets.
1508 -h, --help display this help and exit
1509 --help=short display options specific to this package
1510 --help=recursive display the short help of all the included packages
1511 -V, --version display version information and exit
1512 -q, --quiet, --silent do not print \`checking...' messages
1513 --cache-file=FILE cache test results in FILE [disabled]
1514 -C, --config-cache alias for \`--cache-file=config.cache'
1515 -n, --no-create do not create output files
1516 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518 Installation directories:
1519 --prefix=PREFIX install architecture-independent files in PREFIX
1520 [$ac_default_prefix]
1521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1524 By default, \`make install' will install all the files in
1525 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1526 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527 for instance \`--prefix=\$HOME'.
1529 For better control, use the options below.
1531 Fine tuning of the installation directories:
1532 --bindir=DIR user executables [EPREFIX/bin]
1533 --sbindir=DIR system admin executables [EPREFIX/sbin]
1534 --libexecdir=DIR program executables [EPREFIX/libexec]
1535 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1536 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1537 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1538 --libdir=DIR object code libraries [EPREFIX/lib]
1539 --includedir=DIR C header files [PREFIX/include]
1540 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1541 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1542 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1543 --infodir=DIR info documentation [DATAROOTDIR/info]
1544 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1545 --mandir=DIR man documentation [DATAROOTDIR/man]
1546 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1547 --htmldir=DIR html documentation [DOCDIR]
1548 --dvidir=DIR dvi documentation [DOCDIR]
1549 --pdfdir=DIR pdf documentation [DOCDIR]
1550 --psdir=DIR ps documentation [DOCDIR]
1556 --build=BUILD configure for building on BUILD [guessed]
1557 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1561 if test -n "$ac_init_help"; then
1562 case $ac_init_help in
1563 short | recursive ) echo "Configuration of asterisk 1.4:";;
1568 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1569 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1570 --enable-dev-mode Turn on developer mode
1571 --disable-largefile omit support for large files
1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1577 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1578 --with-execinfo=PATH use Stack Backtrace support files in PATH
1579 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1580 --with-curl=PATH use cURL files in PATH
1581 --with-curses=PATH use curses files in PATH
1582 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1583 --with-gsm=PATH use External GSM library files in PATH , use
1584 'internal' GSM otherwise
1585 --with-gtk=PATH use gtk libraries files in PATH
1586 --with-gtk2=PATH use gtk2 libraries files in PATH
1587 --with-iconv=PATH use Iconv Library files in PATH
1588 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1589 --with-imap=PATH use UW IMAP Toolkit files in PATH
1590 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1591 --with-kde=PATH use KDE files in PATH
1592 --with-ltdl=PATH use libtool files in PATH
1593 --with-lua=PATH use Lua files in PATH
1594 --with-misdn=PATH use mISDN User Library files in PATH
1595 --with-nbs=PATH use Network Broadcast Sound files in PATH
1596 --with-ncurses=PATH use ncurses files in PATH
1597 --with-netsnmp=PATH use Net-SNMP files in PATH
1598 --with-newt=PATH use newt files in PATH
1599 --with-odbc=PATH use unixODBC files in PATH
1600 --with-ogg=PATH use OGG files in PATH
1601 --with-osptk=PATH use OSP Toolkit files in PATH
1602 --with-oss=PATH use Open Sound System files in PATH
1603 --with-postgres=PATH use PostgreSQL files in PATH
1604 --with-popt=PATH use popt files in PATH
1605 --with-portaudio=PATH use PortAudio files in PATH
1606 --with-pri=PATH use ISDN PRI files in PATH
1607 --with-ss7=PATH use ISDN SS7 files in PATH
1608 --with-pwlib=PATH use PWlib files in PATH
1609 --with-h323=PATH use OpenH323 files in PATH
1610 --with-qt=PATH use Qt files in PATH
1611 --with-radius=PATH use Radius Client files in PATH
1612 --with-speex=PATH use Speex files in PATH
1613 --with-sqlite=PATH use SQLite files in PATH
1614 --with-sqlite3=PATH use SQLite files in PATH
1615 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1616 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1618 --with-tds=PATH use FreeTDS files in PATH
1619 --with-termcap=PATH use Termcap files in PATH
1620 --with-tinfo=PATH use Term Info files in PATH
1621 --with-tonezone=PATH use tonezone files in PATH
1622 --with-usb=PATH use usb files in PATH
1623 --with-vorbis=PATH use Vorbis files in PATH
1624 --with-vpb=PATH use Voicetronix API files in PATH
1625 --with-x11=PATH use X11 support files in PATH
1626 --with-z=PATH use zlib files in PATH
1627 --with-zaptel=PATH use Zaptel files in PATH
1628 --with-zaptel_transcode=PATH
1629 use Zaptel Transcoder Support files in PATH
1630 --with-zaptel_vldtmf=PATH
1631 use Zaptel VLDTMF Support files in PATH
1632 --with-zaptel_hwgain=PATH
1633 use Zaptel Hardware Gain Support files in PATH
1634 --with-zaptel_echocanparams=PATH
1635 use Zaptel Echo Canceler Parameter Support files in
1637 --with-zaptel_chanalarms=PATH
1638 use Zaptel Channel Alarm Support files in PATH
1639 --with-sdl=PATH use Sdl files in PATH
1640 --with-SDL_image=PATH use Sdl Image library files in PATH
1641 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1643 Some influential environment variables:
1644 CC C compiler command
1645 CFLAGS C compiler flags
1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647 nonstandard directory <lib dir>
1648 LIBS libraries to pass to the linker, e.g. -l<library>
1649 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1650 you have headers in a nonstandard directory <include dir>
1652 CXX C++ compiler command
1653 CXXFLAGS C++ compiler flags
1654 CXXCPP C++ preprocessor
1656 Use these variables to override the choices made by `configure' or to help
1657 it to find libraries and programs with nonstandard names/locations.
1659 Report bugs to <www.asterisk.org>.
1664 if test "$ac_init_help" = "recursive"; then
1665 # If there are subdirs, report their specific --help.
1666 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1667 test -d "$ac_dir" || continue
1671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1674 # A ".." for each directory in $ac_dir_suffix.
1675 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1676 case $ac_top_builddir_sub in
1677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1681 ac_abs_top_builddir=$ac_pwd
1682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1683 # for backward compatibility:
1684 ac_top_builddir=$ac_top_build_prefix
1687 .) # We are building in place.
1689 ac_top_srcdir=$ac_top_builddir_sub
1690 ac_abs_top_srcdir=$ac_pwd ;;
1691 [\\/]* | ?:[\\/]* ) # Absolute name.
1692 ac_srcdir=$srcdir$ac_dir_suffix;
1693 ac_top_srcdir=$srcdir
1694 ac_abs_top_srcdir=$srcdir ;;
1696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1697 ac_top_srcdir=$ac_top_build_prefix$srcdir
1698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1702 cd "$ac_dir" || { ac_status=$?; continue; }
1703 # Check for guested configure.
1704 if test -f "$ac_srcdir/configure.gnu"; then
1706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1707 elif test -f "$ac_srcdir/configure"; then
1709 $SHELL "$ac_srcdir/configure" --help=recursive
1711 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1713 cd "$ac_pwd" || { ac_status=$?; break; }
1717 test -n "$ac_init_help" && exit $ac_status
1718 if $ac_init_version; then
1720 asterisk configure 1.4
1721 generated by GNU Autoconf 2.61
1723 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1724 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1725 This configure script is free software; the Free Software Foundation
1726 gives unlimited permission to copy, distribute and modify it.
1732 cat >config.log <<_ACEOF
1733 This file contains any messages produced by compilers while
1734 running configure, to aid debugging if configure makes a mistake.
1736 It was created by asterisk $as_me 1.4, which was
1737 generated by GNU Autoconf 2.61. Invocation command line was
1749 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1750 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1751 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1752 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1753 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1756 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1758 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1759 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1760 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1761 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1762 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1763 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1764 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 test -z "$as_dir" && as_dir=.
1773 echo "PATH: $as_dir"
1789 # Keep a trace of the command line.
1790 # Strip out --no-create and --no-recursion so they do not pile up.
1791 # Strip out --silent because we don't want to record it for future runs.
1792 # Also quote any args containing shell meta-characters.
1793 # Make two passes to allow for proper duplicate-argument suppression.
1797 ac_must_keep_next=false
1803 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1805 | -silent | --silent | --silen | --sile | --sil)
1808 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1811 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1814 if test $ac_must_keep_next = true; then
1815 ac_must_keep_next=false # Got value, back to normal.
1818 *=* | --config-cache | -C | -disable-* | --disable-* \
1819 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1820 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1821 | -with-* | --with-* | -without-* | --without-* | --x)
1822 case "$ac_configure_args0 " in
1823 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1826 -* ) ac_must_keep_next=true ;;
1829 ac_configure_args="$ac_configure_args '$ac_arg'"
1834 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1835 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837 # When interrupted or exit'd, cleanup temporary files, and complete
1838 # config.log. We remove comments because anyway the quotes in there
1839 # would cause problems or look ugly.
1840 # WARNING: Use '\'' to represent an apostrophe within the trap.
1841 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1842 trap 'exit_status=$?
1843 # Save into config.log some information that might help in debugging.
1848 ## ---------------- ##
1849 ## Cache variables. ##
1850 ## ---------------- ##
1853 # The following way of writing the cache mishandles newlines in values,
1855 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1856 eval ac_val=\$$ac_var
1860 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1861 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1864 _ | IFS | as_nl) ;; #(
1865 *) $as_unset $ac_var ;;
1870 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1871 *${as_nl}ac_space=\ *)
1873 "s/'\''/'\''\\\\'\'''\''/g;
1874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1885 ## ----------------- ##
1886 ## Output variables. ##
1887 ## ----------------- ##
1890 for ac_var in $ac_subst_vars
1892 eval ac_val=\$$ac_var
1894 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896 echo "$ac_var='\''$ac_val'\''"
1900 if test -n "$ac_subst_files"; then
1902 ## ------------------- ##
1903 ## File substitutions. ##
1904 ## ------------------- ##
1907 for ac_var in $ac_subst_files
1909 eval ac_val=\$$ac_var
1911 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913 echo "$ac_var='\''$ac_val'\''"
1918 if test -s confdefs.h; then
1928 test "$ac_signal" != 0 &&
1929 echo "$as_me: caught signal $ac_signal"
1930 echo "$as_me: exit $exit_status"
1932 rm -f core *.core core.conftest.* &&
1933 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936 for ac_signal in 1 2 13 15; do
1937 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1941 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1942 rm -f -r conftest* confdefs.h
1944 # Predefined preprocessor variables.
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_NAME "$PACKAGE_NAME"
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_STRING "$PACKAGE_STRING"
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1971 # Let the site file select an alternate cache file if it wants to.
1972 # Prefer explicitly selected file to automatically selected ones.
1973 if test -n "$CONFIG_SITE"; then
1974 set x "$CONFIG_SITE"
1975 elif test "x$prefix" != xNONE; then
1976 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1978 set x "$ac_default_prefix/share/config.site" \
1979 "$ac_default_prefix/etc/config.site"
1984 if test -r "$ac_site_file"; then
1985 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1986 echo "$as_me: loading site script $ac_site_file" >&6;}
1987 sed 's/^/| /' "$ac_site_file" >&5
1992 if test -r "$cache_file"; then
1993 # Some versions of bash will fail to source /dev/null (special
1994 # files actually), so we avoid doing that.
1995 if test -f "$cache_file"; then
1996 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1997 echo "$as_me: loading cache $cache_file" >&6;}
1999 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2000 *) . "./$cache_file";;
2004 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2005 echo "$as_me: creating cache $cache_file" >&6;}
2009 ac_header_list="$ac_header_list sys/time.h"
2010 ac_header_list="$ac_header_list unistd.h"
2011 ac_func_list="$ac_func_list alarm"
2012 ac_header_list="$ac_header_list utime.h"
2013 # Check that the precious variables saved in the cache have kept the same
2015 ac_cache_corrupted=false
2016 for ac_var in $ac_precious_vars; do
2017 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2018 eval ac_new_set=\$ac_env_${ac_var}_set
2019 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2020 eval ac_new_val=\$ac_env_${ac_var}_value
2021 case $ac_old_set,$ac_new_set in
2023 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2024 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2025 ac_cache_corrupted=: ;;
2027 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2028 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2029 ac_cache_corrupted=: ;;
2032 if test "x$ac_old_val" != "x$ac_new_val"; then
2033 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2034 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2035 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2036 echo "$as_me: former value: $ac_old_val" >&2;}
2037 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2038 echo "$as_me: current value: $ac_new_val" >&2;}
2039 ac_cache_corrupted=:
2042 # Pass precious variables to config.status.
2043 if test "$ac_new_set" = set; then
2045 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2046 *) ac_arg=$ac_var=$ac_new_val ;;
2048 case " $ac_configure_args " in
2049 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2050 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2054 if $ac_cache_corrupted; then
2055 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2056 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2057 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2058 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2059 { (exit 1); exit 1; }; }
2087 ac_cpp='$CPP $CPPFLAGS'
2088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094 # cross-compile macros
2096 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2097 if test -f "$ac_dir/install-sh"; then
2099 ac_install_sh="$ac_aux_dir/install-sh -c"
2101 elif test -f "$ac_dir/install.sh"; then
2103 ac_install_sh="$ac_aux_dir/install.sh -c"
2105 elif test -f "$ac_dir/shtool"; then
2107 ac_install_sh="$ac_aux_dir/shtool install -c"
2111 if test -z "$ac_aux_dir"; then
2112 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2113 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2114 { (exit 1); exit 1; }; }
2117 # These three variables are undocumented and unsupported,
2118 # and are intended to be withdrawn in a future Autoconf release.
2119 # They can cause serious problems if a builder's source tree is in a directory
2120 # whose full name contains unusual characters.
2121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2126 # Make sure we can run config.sub.
2127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2130 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: checking build system type" >&5
2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_build+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 ac_build_alias=$build_alias
2138 test "x$ac_build_alias" = x &&
2139 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2140 test "x$ac_build_alias" = x &&
2141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143 { (exit 1); exit 1; }; }
2144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151 echo "${ECHO_T}$ac_cv_build" >&6; }
2152 case $ac_cv_build in
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155 echo "$as_me: error: invalid value of canonical build" >&2;}
2156 { (exit 1); exit 1; }; };;
2159 ac_save_IFS=$IFS; IFS='-'
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2172 { echo "$as_me:$LINENO: checking host system type" >&5
2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_host+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test "x$host_alias" = x; then
2178 ac_cv_host=$ac_cv_build
2180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2187 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188 echo "${ECHO_T}$ac_cv_host" >&6; }
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192 echo "$as_me: error: invalid value of canonical host" >&2;}
2193 { (exit 1); exit 1; }; };;
2196 ac_save_IFS=$IFS; IFS='-'
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2210 # check existence of the package
2213 # specify output header file
2214 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2221 cat >>confdefs.h <<\_ACEOF
2222 #define _GNU_SOURCE 1
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231 if test -n "$ac_tool_prefix"; then
2232 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2233 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 if test -n "$CC"; then
2261 { echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6; }
2264 { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2270 if test -z "$ac_cv_prog_CC"; then
2272 # Extract the first word of "gcc", so it can be a program name with args.
2273 set dummy gcc; ac_word=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 if test -n "$ac_ct_CC"; then
2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2289 ac_cv_prog_ac_ct_CC="gcc"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2300 if test -n "$ac_ct_CC"; then
2301 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2302 echo "${ECHO_T}$ac_ct_CC" >&6; }
2304 { echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6; }
2308 if test "x$ac_ct_CC" = x; then
2311 case $cross_compiling:$ac_tool_warned in
2313 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2314 whose name does not start with the host triplet. If you think this
2315 configuration is useful to you, please write to autoconf@gnu.org." >&5
2316 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2317 whose name does not start with the host triplet. If you think this
2318 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2319 ac_tool_warned=yes ;;
2327 if test -z "$CC"; then
2328 if test -n "$ac_tool_prefix"; then
2329 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2330 set dummy ${ac_tool_prefix}cc; ac_word=$2
2331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 if test -n "$CC"; then
2337 ac_cv_prog_CC="$CC" # Let the user override the test.
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 ac_cv_prog_CC="${ac_tool_prefix}cc"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 if test -n "$CC"; then
2358 { echo "$as_me:$LINENO: result: $CC" >&5
2359 echo "${ECHO_T}$CC" >&6; }
2361 { echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6; }
2368 if test -z "$CC"; then
2369 # Extract the first word of "cc", so it can be a program name with args.
2370 set dummy cc; ac_word=$2
2371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2373 if test "${ac_cv_prog_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 if test -n "$CC"; then
2377 ac_cv_prog_CC="$CC" # Let the user override the test.
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2388 ac_prog_rejected=yes
2392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 if test $ac_prog_rejected = yes; then
2400 # We found a bogon in the path, so make sure we never use it.
2401 set dummy $ac_cv_prog_CC
2403 if test $# != 0; then
2404 # We chose a different compiler from the bogus one.
2405 # However, it has the same basename, so the bogon will be chosen
2406 # first if we set CC to just the basename; use the full file name.
2408 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2414 if test -n "$CC"; then
2415 { echo "$as_me:$LINENO: result: $CC" >&5
2416 echo "${ECHO_T}$CC" >&6; }
2418 { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2424 if test -z "$CC"; then
2425 if test -n "$ac_tool_prefix"; then
2426 for ac_prog in cl.exe
2428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2429 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_CC+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 if test -n "$CC"; then
2457 { echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6; }
2460 { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2465 test -n "$CC" && break
2468 if test -z "$CC"; then
2470 for ac_prog in cl.exe
2472 # Extract the first word of "$ac_prog", so it can be a program name with args.
2473 set dummy $ac_prog; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$ac_ct_CC"; then
2480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_ac_ct_CC="$ac_prog"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2500 if test -n "$ac_ct_CC"; then
2501 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2502 echo "${ECHO_T}$ac_ct_CC" >&6; }
2504 { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2509 test -n "$ac_ct_CC" && break
2512 if test "x$ac_ct_CC" = x; then
2515 case $cross_compiling:$ac_tool_warned in
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2532 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2533 See \`config.log' for more details." >&5
2534 echo "$as_me: error: no acceptable C compiler found in \$PATH
2535 See \`config.log' for more details." >&2;}
2536 { (exit 1); exit 1; }; }
2538 # Provide some information about the compiler.
2539 echo "$as_me:$LINENO: checking for C compiler version" >&5
2540 ac_compiler=`set X $ac_compile; echo $2`
2541 { (ac_try="$ac_compiler --version >&5"
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_compiler --version >&5") 2>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }
2551 { (ac_try="$ac_compiler -v >&5"
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_compiler -v >&5") 2>&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }
2561 { (ac_try="$ac_compiler -V >&5"
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_compiler -V >&5") 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }
2572 cat >conftest.$ac_ext <<_ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2587 ac_clean_files_save=$ac_clean_files
2588 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2589 # Try to create an executable without -o first, disregard a.out.
2590 # It will help us diagnose broken compilers, and finding out an intuition
2592 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2593 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2594 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2596 # List of possible output files, starting from the most likely.
2597 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2598 # only as a last resort. b.out is created by i960 compilers.
2599 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2601 # The IRIX 6 linker writes into existing files which may not be
2602 # executable, retaining their permissions. Remove them first so a
2603 # subsequent execution test works.
2605 for ac_file in $ac_files
2608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2609 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2614 if { (ac_try="$ac_link_default"
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_link_default") 2>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; then
2624 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2625 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2626 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2627 # so that the user can short-circuit this test for compilers unknown to
2629 for ac_file in $ac_files ''
2631 test -f "$ac_file" || continue
2633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2636 # We found the default executable, but exeext='' is most
2640 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2642 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2644 # We set ac_cv_exeext here because the later test for it is not
2645 # safe: cross compilers may not add the suffix if given an `-o'
2646 # argument, so we may need to know it at that point already.
2647 # Even if this section looks crufty: it has the advantage of
2654 test "$ac_cv_exeext" = no && ac_cv_exeext=
2660 { echo "$as_me:$LINENO: result: $ac_file" >&5
2661 echo "${ECHO_T}$ac_file" >&6; }
2662 if test -z "$ac_file"; then
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2666 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2667 See \`config.log' for more details." >&5
2668 echo "$as_me: error: C compiler cannot create executables
2669 See \`config.log' for more details." >&2;}
2670 { (exit 77); exit 77; }; }
2673 ac_exeext=$ac_cv_exeext
2675 # Check that the compiler produces executables we can run. If not, either
2676 # the compiler is broken, or we cross compile.
2677 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2678 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2679 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2680 # If not cross compiling, check that we can run a simple program.
2681 if test "$cross_compiling" != yes; then
2682 if { ac_try='./$ac_file'
2683 { (case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_try") 2>&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2694 if test "$cross_compiling" = maybe; then
2697 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2698 If you meant to cross compile, use \`--host'.
2699 See \`config.log' for more details." >&5
2700 echo "$as_me: error: cannot run C compiled programs.
2701 If you meant to cross compile, use \`--host'.
2702 See \`config.log' for more details." >&2;}
2703 { (exit 1); exit 1; }; }
2707 { echo "$as_me:$LINENO: result: yes" >&5
2708 echo "${ECHO_T}yes" >&6; }
2710 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2711 ac_clean_files=$ac_clean_files_save
2712 # Check that the compiler produces executables we can run. If not, either
2713 # the compiler is broken, or we cross compile.
2714 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2715 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2716 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2717 echo "${ECHO_T}$cross_compiling" >&6; }
2719 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2720 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2721 if { (ac_try="$ac_link"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_link") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; then
2731 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2732 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2733 # work properly (i.e., refer to `conftest.exe'), while it won't with
2735 for ac_file in conftest.exe conftest conftest.*; do
2736 test -f "$ac_file" || continue
2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2739 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2745 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2746 See \`config.log' for more details." >&5
2747 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2748 See \`config.log' for more details." >&2;}
2749 { (exit 1); exit 1; }; }
2752 rm -f conftest$ac_cv_exeext
2753 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2754 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2756 rm -f conftest.$ac_ext
2757 EXEEXT=$ac_cv_exeext
2759 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2760 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2761 if test "${ac_cv_objext+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 rm -f conftest.o conftest.obj
2780 if { (ac_try="$ac_compile"
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compile") 2>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; then
2790 for ac_file in conftest.o conftest.obj conftest.*; do
2791 test -f "$ac_file" || continue;
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2794 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2803 See \`config.log' for more details." >&5
2804 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2805 See \`config.log' for more details." >&2;}
2806 { (exit 1); exit 1; }; }
2809 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2811 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2812 echo "${ECHO_T}$ac_cv_objext" >&6; }
2813 OBJEXT=$ac_cv_objext
2815 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2816 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2817 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2838 rm -f conftest.$ac_objext
2839 if { (ac_try="$ac_compile"
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_compile") 2>conftest.er1
2847 grep -v '^ *+' conftest.er1 >conftest.err
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } && {
2852 test -z "$ac_c_werror_flag" ||
2853 test ! -s conftest.err
2854 } && test -s conftest.$ac_objext; then
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2867 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2868 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2869 GCC=`test $ac_compiler_gnu = yes && echo yes`
2870 ac_test_CFLAGS=${CFLAGS+set}
2871 ac_save_CFLAGS=$CFLAGS
2872 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2873 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2874 if test "${ac_cv_prog_cc_g+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 ac_save_c_werror_flag=$ac_c_werror_flag
2878 ac_c_werror_flag=yes
2881 cat >conftest.$ac_ext <<_ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2896 rm -f conftest.$ac_objext
2897 if { (ac_try="$ac_compile"
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_compile") 2>conftest.er1
2905 grep -v '^ *+' conftest.er1 >conftest.err
2907 cat conftest.err >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } && {
2910 test -z "$ac_c_werror_flag" ||
2911 test ! -s conftest.err
2912 } && test -s conftest.$ac_objext; then
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2934 rm -f conftest.$ac_objext
2935 if { (ac_try="$ac_compile"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compile") 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } && {
2948 test -z "$ac_c_werror_flag" ||
2949 test ! -s conftest.err
2950 } && test -s conftest.$ac_objext; then
2953 echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 ac_c_werror_flag=$ac_save_c_werror_flag
2958 cat >conftest.$ac_ext <<_ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2973 rm -f conftest.$ac_objext
2974 if { (ac_try="$ac_compile"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_compile") 2>conftest.er1
2982 grep -v '^ *+' conftest.er1 >conftest.err
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } && {
2987 test -z "$ac_c_werror_flag" ||
2988 test ! -s conftest.err
2989 } && test -s conftest.$ac_objext; then
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_c_werror_flag=$ac_save_c_werror_flag
3007 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3008 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3009 if test "$ac_test_CFLAGS" = set; then
3010 CFLAGS=$ac_save_CFLAGS
3011 elif test $ac_cv_prog_cc_g = yes; then
3012 if test "$GCC" = yes; then
3018 if test "$GCC" = yes; then
3024 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3025 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3026 if test "${ac_cv_prog_cc_c89+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 ac_cv_prog_cc_c89=no
3031 cat >conftest.$ac_ext <<_ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3039 #include <sys/types.h>
3040 #include <sys/stat.h>
3041 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3042 struct buf { int x; };
3043 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3044 static char *e (p, i)
3050 static char *f (char * (*g) (char **, int), char **p, ...)
3055 s = g (p, va_arg (v,int));
3060 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3061 function prototypes and stuff, but not '\xHH' hex character constants.
3062 These don't provoke an error unfortunately, instead are silently treated
3063 as 'x'. The following induces an error, until -std is added to get
3064 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3065 array size at least. It's necessary to write '\x00'==0 to get something
3066 that's true only with -std. */
3067 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3069 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3070 inside strings and character constants. */
3072 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3074 int test (int i, double x);
3075 struct s1 {int (*f) (int a);};
3076 struct s2 {int (*f) (double a);};
3077 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3083 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3088 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3089 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3091 CC="$ac_save_CC $ac_arg"
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } && {
3106 test -z "$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 } && test -s conftest.$ac_objext; then
3109 ac_cv_prog_cc_c89=$ac_arg
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3117 rm -f core conftest.err conftest.$ac_objext
3118 test "x$ac_cv_prog_cc_c89" != "xno" && break
3120 rm -f conftest.$ac_ext
3125 case "x$ac_cv_prog_cc_c89" in
3127 { echo "$as_me:$LINENO: result: none needed" >&5
3128 echo "${ECHO_T}none needed" >&6; } ;;
3130 { echo "$as_me:$LINENO: result: unsupported" >&5
3131 echo "${ECHO_T}unsupported" >&6; } ;;
3133 CC="$CC $ac_cv_prog_cc_c89"
3134 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3135 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3140 ac_cpp='$CPP $CPPFLAGS'
3141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3152 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3153 # On Suns, sometimes $CPP names a directory.
3154 if test -n "$CPP" && test -d "$CPP"; then
3157 if test -z "$CPP"; then
3158 if test "${ac_cv_prog_CPP+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 # Double quotes because CPP needs to be expanded
3162 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3165 for ac_c_preproc_warn_flag in '' yes
3167 # Use a header file that comes with gcc, so configuring glibc
3168 # with a fresh cross-compiler works.
3169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3170 # <limits.h> exists even on freestanding compilers.
3171 # On the NeXT, cc -E runs the code through the compiler's parser,
3172 # not just through cpp. "Syntax error" is here to catch this case.
3173 cat >conftest.$ac_ext <<_ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3180 # include <limits.h>
3182 # include <assert.h>
3186 if { (ac_try="$ac_cpp conftest.$ac_ext"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3194 grep -v '^ *+' conftest.er1 >conftest.err
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev/null && {
3199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3200 test ! -s conftest.err
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 # Broken: fails on valid input.
3211 rm -f conftest.err conftest.$ac_ext
3213 # OK, works on sane cases. Now check whether nonexistent headers
3214 # can be detected and how.
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3221 #include <ac_nonexistent.h>
3223 if { (ac_try="$ac_cpp conftest.$ac_ext"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3231 grep -v '^ *+' conftest.er1 >conftest.err
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } >/dev/null && {
3236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3239 # Broken: success on invalid input.
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 # Passes both tests.
3250 rm -f conftest.err conftest.$ac_ext
3253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3254 rm -f conftest.err conftest.$ac_ext
3255 if $ac_preproc_ok; then
3267 { echo "$as_me:$LINENO: result: $CPP" >&5
3268 echo "${ECHO_T}$CPP" >&6; }
3270 for ac_c_preproc_warn_flag in '' yes
3272 # Use a header file that comes with gcc, so configuring glibc
3273 # with a fresh cross-compiler works.
3274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3275 # <limits.h> exists even on freestanding compilers.
3276 # On the NeXT, cc -E runs the code through the compiler's parser,
3277 # not just through cpp. "Syntax error" is here to catch this case.
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3285 # include <limits.h>
3287 # include <assert.h>
3291 if { (ac_try="$ac_cpp conftest.$ac_ext"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } >/dev/null && {
3304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 # Broken: fails on valid input.
3316 rm -f conftest.err conftest.$ac_ext
3318 # OK, works on sane cases. Now check whether nonexistent headers
3319 # can be detected and how.
3320 cat >conftest.$ac_ext <<_ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3326 #include <ac_nonexistent.h>
3328 if { (ac_try="$ac_cpp conftest.$ac_ext"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3336 grep -v '^ *+' conftest.er1 >conftest.err
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } >/dev/null && {
3341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3342 test ! -s conftest.err
3344 # Broken: success on invalid input.
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350 # Passes both tests.
3355 rm -f conftest.err conftest.$ac_ext
3358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3359 rm -f conftest.err conftest.$ac_ext
3360 if $ac_preproc_ok; then
3363 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3364 See \`config.log' for more details." >&5
3365 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3366 See \`config.log' for more details." >&2;}
3367 { (exit 1); exit 1; }; }
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3378 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3379 if test "${ac_cv_path_GREP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 # Extract the first word of "grep ggrep" to use in msg output
3383 if test -z "$GREP"; then
3384 set dummy grep ggrep; ac_prog_name=$2
3385 if test "${ac_cv_path_GREP+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 ac_path_GREP_found=false
3389 # Loop through the user's path and test for each of PROGNAME-LIST
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3394 test -z "$as_dir" && as_dir=.
3395 for ac_prog in grep ggrep; do
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3398 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3399 # Check for GNU ac_path_GREP and select it if it is found.
3400 # Check for GNU $ac_path_GREP
3401 case `"$ac_path_GREP" --version 2>&1` in
3403 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3406 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3409 cat "conftest.in" "conftest.in" >"conftest.tmp"
3410 mv "conftest.tmp" "conftest.in"
3411 cp "conftest.in" "conftest.nl"
3412 echo 'GREP' >> "conftest.nl"
3413 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3415 ac_count=`expr $ac_count + 1`
3416 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3417 # Best one so far, save it but keep looking for a better one
3418 ac_cv_path_GREP="$ac_path_GREP"
3419 ac_path_GREP_max=$ac_count
3421 # 10*(2^10) chars as input seems more than enough
3422 test $ac_count -gt 10 && break
3424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3428 $ac_path_GREP_found && break 3
3438 GREP="$ac_cv_path_GREP"
3439 if test -z "$GREP"; then
3440 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3441 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3442 { (exit 1); exit 1; }; }
3446 ac_cv_path_GREP=$GREP
3451 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3452 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3453 GREP="$ac_cv_path_GREP"
3456 { echo "$as_me:$LINENO: checking for egrep" >&5
3457 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3458 if test "${ac_cv_path_EGREP+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3462 then ac_cv_path_EGREP="$GREP -E"
3464 # Extract the first word of "egrep" to use in msg output
3465 if test -z "$EGREP"; then
3466 set dummy egrep; ac_prog_name=$2
3467 if test "${ac_cv_path_EGREP+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 ac_path_EGREP_found=false
3471 # Loop through the user's path and test for each of PROGNAME-LIST
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3476 test -z "$as_dir" && as_dir=.
3477 for ac_prog in egrep; do
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3480 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3481 # Check for GNU ac_path_EGREP and select it if it is found.
3482 # Check for GNU $ac_path_EGREP
3483 case `"$ac_path_EGREP" --version 2>&1` in
3485 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3488 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3491 cat "conftest.in" "conftest.in" >"conftest.tmp"
3492 mv "conftest.tmp" "conftest.in"
3493 cp "conftest.in" "conftest.nl"
3494 echo 'EGREP' >> "conftest.nl"
3495 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3497 ac_count=`expr $ac_count + 1`
3498 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3499 # Best one so far, save it but keep looking for a better one
3500 ac_cv_path_EGREP="$ac_path_EGREP"
3501 ac_path_EGREP_max=$ac_count
3503 # 10*(2^10) chars as input seems more than enough
3504 test $ac_count -gt 10 && break
3506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3510 $ac_path_EGREP_found && break 3
3520 EGREP="$ac_cv_path_EGREP"
3521 if test -z "$EGREP"; then
3522 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3523 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3524 { (exit 1); exit 1; }; }
3528 ac_cv_path_EGREP=$EGREP
3534 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3535 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3536 EGREP="$ac_cv_path_EGREP"
3540 { echo "$as_me:$LINENO: checking for AIX" >&5
3541 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3542 cat >conftest.$ac_ext <<_ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3554 $EGREP "yes" >/dev/null 2>&1; then
3555 { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3557 cat >>confdefs.h <<\_ACEOF
3558 #define _ALL_SOURCE 1
3562 { echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6; }
3568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3570 if test "${ac_cv_header_stdc+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3592 rm -f conftest.$ac_objext
3593 if { (ac_try="$ac_compile"
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_compile") 2>conftest.er1
3601 grep -v '^ *+' conftest.er1 >conftest.err
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } && {
3606 test -z "$ac_c_werror_flag" ||
3607 test ! -s conftest.err
3608 } && test -s conftest.$ac_objext; then
3609 ac_cv_header_stdc=yes
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3614 ac_cv_header_stdc=no
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 if test $ac_cv_header_stdc = yes; then
3620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3631 $EGREP "memchr" >/dev/null 2>&1; then
3634 ac_cv_header_stdc=no
3640 if test $ac_cv_header_stdc = yes; then
3641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3642 cat >conftest.$ac_ext <<_ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652 $EGREP "free" >/dev/null 2>&1; then
3655 ac_cv_header_stdc=no
3661 if test $ac_cv_header_stdc = yes; then
3662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3663 if test "$cross_compiling" = yes; then
3666 cat >conftest.$ac_ext <<_ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3674 #if ((' ' & 0x0FF) == 0x020)
3675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3678 # define ISLOWER(c) \
3679 (('a' <= (c) && (c) <= 'i') \
3680 || ('j' <= (c) && (c) <= 'r') \
3681 || ('s' <= (c) && (c) <= 'z'))
3682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3690 for (i = 0; i < 256; i++)
3691 if (XOR (islower (i), ISLOWER (i))
3692 || toupper (i) != TOUPPER (i))
3697 rm -f conftest$ac_exeext
3698 if { (ac_try="$ac_link"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_link") 2>&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3708 { (case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_try") 2>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3719 echo "$as_me: program exited with status $ac_status" >&5
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3724 ac_cv_header_stdc=no
3726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3734 if test $ac_cv_header_stdc = yes; then
3736 cat >>confdefs.h <<\_ACEOF
3737 #define STDC_HEADERS 1
3742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3753 inttypes.h stdint.h unistd.h
3755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 cat >conftest.$ac_ext <<_ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 $ac_includes_default
3769 #include <$ac_header>
3771 rm -f conftest.$ac_objext
3772 if { (ac_try="$ac_compile"
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778 (eval "$ac_compile") 2>conftest.er1
3780 grep -v '^ *+' conftest.er1 >conftest.err
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } && {
3785 test -z "$ac_c_werror_flag" ||
3786 test ! -s conftest.err
3787 } && test -s conftest.$ac_objext; then
3788 eval "$as_ac_Header=yes"
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3793 eval "$as_ac_Header=no"
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_res=`eval echo '${'$as_ac_Header'}'`
3799 { echo "$as_me:$LINENO: result: $ac_res" >&5
3800 echo "${ECHO_T}$ac_res" >&6; }
3801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3802 cat >>confdefs.h <<_ACEOF
3803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3811 if test "${ac_cv_header_minix_config_h+set}" = set; then
3812 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3813 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3814 if test "${ac_cv_header_minix_config_h+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3818 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3820 # Is the header compilable?
3821 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3822 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3823 cat >conftest.$ac_ext <<_ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3829 $ac_includes_default
3830 #include <minix/config.h>
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3841 grep -v '^ *+' conftest.er1 >conftest.err
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } && {
3846 test -z "$ac_c_werror_flag" ||
3847 test ! -s conftest.err
3848 } && test -s conftest.$ac_objext; then
3849 ac_header_compiler=yes
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3854 ac_header_compiler=no
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3859 echo "${ECHO_T}$ac_header_compiler" >&6; }
3861 # Is the header present?
3862 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3863 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #include <minix/config.h>
3872 if { (ac_try="$ac_cpp conftest.$ac_ext"
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3880 grep -v '^ *+' conftest.er1 >conftest.err
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } >/dev/null && {
3885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3888 ac_header_preproc=yes
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 ac_header_preproc=no
3896 rm -f conftest.err conftest.$ac_ext
3897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3898 echo "${ECHO_T}$ac_header_preproc" >&6; }
3900 # So? What about this header?
3901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3903 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3904 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3906 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3907 ac_header_preproc=yes
3910 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3911 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3912 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3913 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3914 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3915 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3916 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3917 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3918 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3919 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3920 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3921 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3923 ## ------------------------------- ##
3924 ## Report this to www.asterisk.org ##
3925 ## ------------------------------- ##
3927 ) | sed "s/^/$as_me: WARNING: /" >&2
3930 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3931 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3932 if test "${ac_cv_header_minix_config_h+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 ac_cv_header_minix_config_h=$ac_header_preproc
3937 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3938 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3941 if test $ac_cv_header_minix_config_h = yes; then
3948 if test "$MINIX" = yes; then
3950 cat >>confdefs.h <<\_ACEOF
3951 #define _POSIX_SOURCE 1
3955 cat >>confdefs.h <<\_ACEOF
3956 #define _POSIX_1_SOURCE 2
3960 cat >>confdefs.h <<\_ACEOF
3976 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3977 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3978 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 cat >conftest.$ac_ext <<_ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3988 # define __EXTENSIONS__ 1
3989 $ac_includes_default
3998 rm -f conftest.$ac_objext
3999 if { (ac_try="$ac_compile"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_compile") 2>conftest.er1
4007 grep -v '^ *+' conftest.er1 >conftest.err
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } && {
4012 test -z "$ac_c_werror_flag" ||
4013 test ! -s conftest.err
4014 } && test -s conftest.$ac_objext; then
4015 ac_cv_safe_to_define___extensions__=yes
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 ac_cv_safe_to_define___extensions__=no
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4026 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4027 test $ac_cv_safe_to_define___extensions__ = yes &&
4028 cat >>confdefs.h <<\_ACEOF
4029 #define __EXTENSIONS__ 1
4032 cat >>confdefs.h <<\_ACEOF
4033 #define _POSIX_PTHREAD_SEMANTICS 1
4036 cat >>confdefs.h <<\_ACEOF
4037 #define _TANDEM_SOURCE 1
4040 # note- does not work on FreeBSD
4042 case "${host_os}" in
4044 ac_default_prefix=/usr/local
4045 CPPFLAGS=-I/usr/local/include
4046 LDFLAGS=-L/usr/local/lib
4050 ac_default_prefix=/usr
4051 if test ${sysconfdir} = '${prefix}/etc'; then
4054 if test ${mandir} = '${prefix}/man'; then
4055 mandir=/usr/share/man
4060 if test ${localstatedir} = '${prefix}/var'; then
4064 BUILD_PLATFORM=${build}
4065 BUILD_CPU=${build_cpu}
4066 BUILD_VENDOR=${build_vendor}
4067 BUILD_OS=${build_os}
4074 HOST_PLATFORM=${host}
4075 HOST_CPU=${host_cpu}
4076 HOST_VENDOR=${host_vendor}
4086 case "${host_os}" in
4116 if test -n "$ac_tool_prefix"; then
4117 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}uname; ac_word=$2
4119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4121 if test "${ac_cv_path_UNAME+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 UNAME=$ac_cv_path_UNAME
4148 if test -n "$UNAME"; then
4149 { echo "$as_me:$LINENO: result: $UNAME" >&5
4150 echo "${ECHO_T}$UNAME" >&6; }
4152 { echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6; }
4158 if test -z "$ac_cv_path_UNAME"; then
4160 # Extract the first word of "uname", so it can be a program name with args.
4161 set dummy uname; ac_word=$2
4162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4164 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 case $ac_pt_UNAME in
4169 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4191 if test -n "$ac_pt_UNAME"; then
4192 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4193 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4195 { echo "$as_me:$LINENO: result: no" >&5
4196 echo "${ECHO_T}no" >&6; }
4199 if test "x$ac_pt_UNAME" = x; then
4202 case $cross_compiling:$ac_tool_warned in
4204 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4205 whose name does not start with the host triplet. If you think this
4206 configuration is useful to you, please write to autoconf@gnu.org." >&5
4207 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4208 whose name does not start with the host triplet. If you think this
4209 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4210 ac_tool_warned=yes ;;
4215 UNAME="$ac_cv_path_UNAME"
4218 if test ! x"${UNAME}" = xNo; then
4219 PBX_OSREV=$(${UNAME} -r)
4229 # cross-compile checks
4230 if test "${cross_compiling}" = "yes";
4232 if test -n "$ac_tool_prefix"; then
4233 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4234 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4237 if test "${ac_cv_prog_CC+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 if test -n "$CC"; then
4241 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 if test -n "$CC"; then
4262 { echo "$as_me:$LINENO: result: $CC" >&5
4263 echo "${ECHO_T}$CC" >&6; }
4265 { echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6; }
4271 if test -z "$ac_cv_prog_CC"; then
4273 # Extract the first word of "gcc", so it can be a program name with args.
4274 set dummy gcc; ac_word=$2
4275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 if test -n "$ac_ct_CC"; then
4281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_ac_ct_CC="gcc"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4301 if test -n "$ac_ct_CC"; then
4302 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4303 echo "${ECHO_T}$ac_ct_CC" >&6; }
4305 { echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6; }
4309 if test "x$ac_ct_CC" = x; then
4312 case $cross_compiling:$ac_tool_warned in
4314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4315 whose name does not start with the host triplet. If you think this
4316 configuration is useful to you, please write to autoconf@gnu.org." >&5
4317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4318 whose name does not start with the host triplet. If you think this
4319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4320 ac_tool_warned=yes ;;
4328 if test -n "$ac_tool_prefix"; then
4329 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4330 set dummy ${ac_tool_prefix}g++; ac_word=$2
4331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4333 if test "${ac_cv_prog_CXX+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 if test -n "$CXX"; then
4337 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 if test -n "$CXX"; then
4358 { echo "$as_me:$LINENO: result: $CXX" >&5
4359 echo "${ECHO_T}$CXX" >&6; }
4361 { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4367 if test -z "$ac_cv_prog_CXX"; then
4369 # Extract the first word of "g++", so it can be a program name with args.
4370 set dummy g++; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 if test -n "$ac_ct_CXX"; then
4377 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_prog_ac_ct_CXX="g++"
4387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4397 if test -n "$ac_ct_CXX"; then
4398 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4399 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4401 { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4405 if test "x$ac_ct_CXX" = x; then
4408 case $cross_compiling:$ac_tool_warned in
4410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4411 whose name does not start with the host triplet. If you think this
4412 configuration is useful to you, please write to autoconf@gnu.org." >&5
4413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4414 whose name does not start with the host triplet. If you think this
4415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4416 ac_tool_warned=yes ;;
4421 CXX="$ac_cv_prog_CXX"
4424 if test -n "$ac_tool_prefix"; then
4425 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4426 set dummy ${ac_tool_prefix}ld; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_LD+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$LD"; then
4433 ac_cv_prog_LD="$LD" # Let the user override the test.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_LD="${ac_tool_prefix}ld"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 if test -n "$LD"; then
4454 { echo "$as_me:$LINENO: result: $LD" >&5
4455 echo "${ECHO_T}$LD" >&6; }
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4463 if test -z "$ac_cv_prog_LD"; then
4465 # Extract the first word of "ld", so it can be a program name with args.
4466 set dummy ld; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$ac_ct_LD"; then
4473 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_ac_ct_LD="ld"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4493 if test -n "$ac_ct_LD"; then
4494 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4495 echo "${ECHO_T}$ac_ct_LD" >&6; }
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4501 if test "x$ac_ct_LD" = x; then
4504 case $cross_compiling:$ac_tool_warned in
4506 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4507 whose name does not start with the host triplet. If you think this
4508 configuration is useful to you, please write to autoconf@gnu.org." >&5
4509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4510 whose name does not start with the host triplet. If you think this
4511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4512 ac_tool_warned=yes ;;
4520 if test -n "$ac_tool_prefix"; then
4521 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4522 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_prog_RANLIB+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 if test -n "$RANLIB"; then
4529 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 RANLIB=$ac_cv_prog_RANLIB
4549 if test -n "$RANLIB"; then
4550 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4551 echo "${ECHO_T}$RANLIB" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4559 if test -z "$ac_cv_prog_RANLIB"; then
4560 ac_ct_RANLIB=$RANLIB
4561 # Extract the first word of "ranlib", so it can be a program name with args.
4562 set dummy ranlib; ac_word=$2
4563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4565 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 if test -n "$ac_ct_RANLIB"; then
4569 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_ac_ct_RANLIB="ranlib"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4589 if test -n "$ac_ct_RANLIB"; then
4590 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4591 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4593 { echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6; }
4597 if test "x$ac_ct_RANLIB" = x; then
4600 case $cross_compiling:$ac_tool_warned in
4602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4603 whose name does not start with the host triplet. If you think this
4604 configuration is useful to you, please write to autoconf@gnu.org." >&5
4605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4606 whose name does not start with the host triplet. If you think this
4607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4608 ac_tool_warned=yes ;;
4610 RANLIB=$ac_ct_RANLIB
4613 RANLIB="$ac_cv_prog_RANLIB"
4618 # Checks for programs.
4620 ac_cpp='$CPP $CPPFLAGS'
4621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624 if test -n "$ac_tool_prefix"; then
4625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4626 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629 if test "${ac_cv_prog_CC+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC="$CC" # Let the user override the test.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 if test -n "$CC"; then
4654 { echo "$as_me:$LINENO: result: $CC" >&5
4655 echo "${ECHO_T}$CC" >&6; }
4657 { echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6; }
4663 if test -z "$ac_cv_prog_CC"; then
4665 # Extract the first word of "gcc", so it can be a program name with args.
4666 set dummy gcc; ac_word=$2
4667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 if test -n "$ac_ct_CC"; then
4673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_ac_ct_CC="gcc"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4693 if test -n "$ac_ct_CC"; then
4694 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4695 echo "${ECHO_T}$ac_ct_CC" >&6; }
4697 { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4701 if test "x$ac_ct_CC" = x; then
4704 case $cross_compiling:$ac_tool_warned in
4706 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4707 whose name does not start with the host triplet. If you think this
4708 configuration is useful to you, please write to autoconf@gnu.org." >&5
4709 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4710 whose name does not start with the host triplet. If you think this
4711 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4712 ac_tool_warned=yes ;;