2 # From configure.ac Revision: 103694 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.6.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 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.6'
581 PACKAGE_STRING='asterisk 1.6'
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
925 ZAPTEL_TRANSCODE_INCLUDE
929 ZAPTEL_VLDTMF_INCLUDE
933 ZAPTEL_HWGAIN_INCLUDE
936 ZAPTEL_ECHOCANPARAMS_LIB
937 ZAPTEL_ECHOCANPARAMS_INCLUDE
938 ZAPTEL_ECHOCANPARAMS_DIR
939 PBX_ZAPTEL_ECHOCANPARAMS
940 ZAPTEL_CHANALARMS_LIB
941 ZAPTEL_CHANALARMS_INCLUDE
942 ZAPTEL_CHANALARMS_DIR
943 PBX_ZAPTEL_CHANALARMS
962 AST_DECLARATION_AFTER_STATEMENT
985 ac_precious_vars='build_alias
1000 # Initialize some variables set by options.
1002 ac_init_version=false
1003 # The variables have the same names as the options, with
1004 # dashes changed to underlines.
1005 cache_file=/dev/null
1012 program_transform_name=s,x,x,
1020 # Installation directory options.
1021 # These are left unexpanded so users can "make install exec_prefix=/foo"
1022 # and all the variables that are supposed to be based on exec_prefix
1023 # by default will actually change.
1024 # Use braces instead of parens because sh, perl, etc. also accept them.
1025 # (The list follows the same order as the GNU Coding Standards.)
1026 bindir='${exec_prefix}/bin'
1027 sbindir='${exec_prefix}/sbin'
1028 libexecdir='${exec_prefix}/libexec'
1029 datarootdir='${prefix}/share'
1030 datadir='${datarootdir}'
1031 sysconfdir='${prefix}/etc'
1032 sharedstatedir='${prefix}/com'
1033 localstatedir='${prefix}/var'
1034 includedir='${prefix}/include'
1035 oldincludedir='/usr/include'
1036 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1037 infodir='${datarootdir}/info'
1042 libdir='${exec_prefix}/lib'
1043 localedir='${datarootdir}/locale'
1044 mandir='${datarootdir}/man'
1050 # If the previous option needs an argument, assign it.
1051 if test -n "$ac_prev"; then
1052 eval $ac_prev=\$ac_option
1058 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1062 # Accept the important Cygnus configure options, so we can diagnose typos.
1064 case $ac_dashdash$ac_option in
1068 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1070 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1071 bindir=$ac_optarg ;;
1073 -build | --build | --buil | --bui | --bu)
1074 ac_prev=build_alias ;;
1075 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1076 build_alias=$ac_optarg ;;
1078 -cache-file | --cache-file | --cache-fil | --cache-fi \
1079 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1080 ac_prev=cache_file ;;
1081 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1082 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1083 cache_file=$ac_optarg ;;
1085 --config-cache | -C)
1086 cache_file=config.cache ;;
1088 -datadir | --datadir | --datadi | --datad)
1090 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1091 datadir=$ac_optarg ;;
1093 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1094 | --dataroo | --dataro | --datar)
1095 ac_prev=datarootdir ;;
1096 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1097 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1098 datarootdir=$ac_optarg ;;
1100 -disable-* | --disable-*)
1101 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1107 eval enable_$ac_feature=no ;;
1109 -docdir | --docdir | --docdi | --doc | --do)
1111 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1112 docdir=$ac_optarg ;;
1114 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1116 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1117 dvidir=$ac_optarg ;;
1119 -enable-* | --enable-*)
1120 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1124 { (exit 1); exit 1; }; }
1125 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1126 eval enable_$ac_feature=\$ac_optarg ;;
1128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1130 | --exec | --exe | --ex)
1131 ac_prev=exec_prefix ;;
1132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1134 | --exec=* | --exe=* | --ex=*)
1135 exec_prefix=$ac_optarg ;;
1137 -gas | --gas | --ga | --g)
1138 # Obsolete; use --with-gas.
1141 -help | --help | --hel | --he | -h)
1142 ac_init_help=long ;;
1143 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1144 ac_init_help=recursive ;;
1145 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1146 ac_init_help=short ;;
1148 -host | --host | --hos | --ho)
1149 ac_prev=host_alias ;;
1150 -host=* | --host=* | --hos=* | --ho=*)
1151 host_alias=$ac_optarg ;;
1153 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1155 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1157 htmldir=$ac_optarg ;;
1159 -includedir | --includedir | --includedi | --included | --include \
1160 | --includ | --inclu | --incl | --inc)
1161 ac_prev=includedir ;;
1162 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1163 | --includ=* | --inclu=* | --incl=* | --inc=*)
1164 includedir=$ac_optarg ;;
1166 -infodir | --infodir | --infodi | --infod | --info | --inf)
1168 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1169 infodir=$ac_optarg ;;
1171 -libdir | --libdir | --libdi | --libd)
1173 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1174 libdir=$ac_optarg ;;
1176 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1177 | --libexe | --libex | --libe)
1178 ac_prev=libexecdir ;;
1179 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1180 | --libexe=* | --libex=* | --libe=*)
1181 libexecdir=$ac_optarg ;;
1183 -localedir | --localedir | --localedi | --localed | --locale)
1184 ac_prev=localedir ;;
1185 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1186 localedir=$ac_optarg ;;
1188 -localstatedir | --localstatedir | --localstatedi | --localstated \
1189 | --localstate | --localstat | --localsta | --localst | --locals)
1190 ac_prev=localstatedir ;;
1191 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1192 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1193 localstatedir=$ac_optarg ;;
1195 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1197 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1198 mandir=$ac_optarg ;;
1200 -nfp | --nfp | --nf)
1201 # Obsolete; use --without-fp.
1204 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205 | --no-cr | --no-c | -n)
1208 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1209 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1212 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1213 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1214 | --oldin | --oldi | --old | --ol | --o)
1215 ac_prev=oldincludedir ;;
1216 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1217 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1218 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1219 oldincludedir=$ac_optarg ;;
1221 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1223 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1224 prefix=$ac_optarg ;;
1226 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1227 | --program-pre | --program-pr | --program-p)
1228 ac_prev=program_prefix ;;
1229 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1230 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1231 program_prefix=$ac_optarg ;;
1233 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1234 | --program-suf | --program-su | --program-s)
1235 ac_prev=program_suffix ;;
1236 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1237 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1238 program_suffix=$ac_optarg ;;
1240 -program-transform-name | --program-transform-name \
1241 | --program-transform-nam | --program-transform-na \
1242 | --program-transform-n | --program-transform- \
1243 | --program-transform | --program-transfor \
1244 | --program-transfo | --program-transf \
1245 | --program-trans | --program-tran \
1246 | --progr-tra | --program-tr | --program-t)
1247 ac_prev=program_transform_name ;;
1248 -program-transform-name=* | --program-transform-name=* \
1249 | --program-transform-nam=* | --program-transform-na=* \
1250 | --program-transform-n=* | --program-transform-=* \
1251 | --program-transform=* | --program-transfor=* \
1252 | --program-transfo=* | --program-transf=* \
1253 | --program-trans=* | --program-tran=* \
1254 | --progr-tra=* | --program-tr=* | --program-t=*)
1255 program_transform_name=$ac_optarg ;;
1257 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1259 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1260 pdfdir=$ac_optarg ;;
1262 -psdir | --psdir | --psdi | --psd | --ps)
1264 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268 | -silent | --silent | --silen | --sile | --sil)
1271 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1273 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1275 sbindir=$ac_optarg ;;
1277 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1278 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1279 | --sharedst | --shareds | --shared | --share | --shar \
1281 ac_prev=sharedstatedir ;;
1282 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1283 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1284 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1286 sharedstatedir=$ac_optarg ;;
1288 -site | --site | --sit)
1290 -site=* | --site=* | --sit=*)
1293 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1295 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1296 srcdir=$ac_optarg ;;
1298 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1299 | --syscon | --sysco | --sysc | --sys | --sy)
1300 ac_prev=sysconfdir ;;
1301 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1302 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1303 sysconfdir=$ac_optarg ;;
1305 -target | --target | --targe | --targ | --tar | --ta | --t)
1306 ac_prev=target_alias ;;
1307 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1308 target_alias=$ac_optarg ;;
1310 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1313 -version | --version | --versio | --versi | --vers | -V)
1314 ac_init_version=: ;;
1317 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 { echo "$as_me: error: invalid package name: $ac_package" >&2
1321 { (exit 1); exit 1; }; }
1322 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1323 eval with_$ac_package=\$ac_optarg ;;
1325 -without-* | --without-*)
1326 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 { echo "$as_me: error: invalid package name: $ac_package" >&2
1330 { (exit 1); exit 1; }; }
1331 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1332 eval with_$ac_package=no ;;
1335 # Obsolete; use --with-x.
1338 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1339 | --x-incl | --x-inc | --x-in | --x-i)
1340 ac_prev=x_includes ;;
1341 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1342 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1343 x_includes=$ac_optarg ;;
1345 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1346 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1347 ac_prev=x_libraries ;;
1348 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1349 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1350 x_libraries=$ac_optarg ;;
1352 -*) { echo "$as_me: error: unrecognized option: $ac_option
1353 Try \`$0 --help' for more information." >&2
1354 { (exit 1); exit 1; }; }
1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1361 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1362 { (exit 1); exit 1; }; }
1363 eval $ac_envvar=\$ac_optarg
1364 export $ac_envvar ;;
1367 # FIXME: should be removed in autoconf 3.0.
1368 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1369 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1370 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1371 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1377 if test -n "$ac_prev"; then
1378 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1379 { echo "$as_me: error: missing argument to $ac_option" >&2
1380 { (exit 1); exit 1; }; }
1383 # Be sure to have absolute directory names.
1384 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385 datadir sysconfdir sharedstatedir localstatedir includedir \
1386 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387 libdir localedir mandir
1389 eval ac_val=\$$ac_var
1391 [\\/$]* | ?:[\\/]* ) continue;;
1392 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1395 { (exit 1); exit 1; }; }
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1403 target=$target_alias
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
1409 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1410 If a cross compiler is detected then cross compile mode will be used." >&2
1411 elif test "x$build_alias" != "x$host_alias"; then
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1419 test "$silent" = yes && exec 6>/dev/null
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425 { echo "$as_me: error: Working directory cannot be determined" >&2
1426 { (exit 1); exit 1; }; }
1427 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428 { echo "$as_me: error: pwd does not report name of working directory" >&2
1429 { (exit 1); exit 1; }; }
1432 # Find the source files, if location was not specified.
1433 if test -z "$srcdir"; then
1434 ac_srcdir_defaulted=yes
1435 # Try the directory containing this script, then the parent directory.
1436 ac_confdir=`$as_dirname -- "$0" ||
1437 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438 X"$0" : 'X\(//\)[^/]' \| \
1439 X"$0" : 'X\(//\)$' \| \
1440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1464 ac_srcdir_defaulted=no
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1468 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1469 { (exit 1); exit 1; }; }
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1474 { (exit 1); exit 1; }; }
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1484 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1486 for ac_var in $ac_precious_vars; do
1487 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_${ac_var}_value=\$${ac_var}
1489 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1494 # Report the --help message.
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1500 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1507 Defaults for the options are specified in brackets.
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1531 For better control, use the options below.
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1563 if test -n "$ac_init_help"; then
1564 case $ac_init_help in
1565 short | recursive ) echo "Configuration of asterisk 1.6:";;
1570 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1571 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1572 --enable-dev-mode Turn on developer mode
1573 --disable-largefile omit support for large files
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1580 --with-execinfo=PATH use Stack Backtrace support files in PATH
1581 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1582 --with-curl=PATH use cURL files in PATH
1583 --with-curses=PATH use curses files in PATH
1584 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1585 --with-gsm=PATH use External GSM library files in PATH , use
1586 'internal' GSM otherwise
1587 --with-gtk=PATH use gtk libraries files in PATH
1588 --with-gtk2=PATH use gtk2 libraries files in PATH
1589 --with-iconv=PATH use Iconv Library files in PATH
1590 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1591 --with-imap=PATH use UW IMAP Toolkit files in PATH
1592 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1593 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1594 --with-ldap=PATH use OpenLDAP files in PATH
1595 --with-ltdl=PATH use libtool files in PATH
1596 --with-lua=PATH use Lua files in PATH
1597 --with-misdn=PATH use mISDN User Library files in PATH
1598 --with-nbs=PATH use Network Broadcast Sound files in PATH
1599 --with-ncurses=PATH use ncurses files in PATH
1600 --with-netsnmp=PATH use Net-SNMP files in PATH
1601 --with-newt=PATH use newt files in PATH
1602 --with-odbc=PATH use unixODBC files in PATH
1603 --with-ogg=PATH use OGG files in PATH
1604 --with-osptk=PATH use OSP Toolkit files in PATH
1605 --with-oss=PATH use Open Sound System files in PATH
1606 --with-postgres=PATH use PostgreSQL files in PATH
1607 --with-popt=PATH use popt files in PATH
1608 --with-portaudio=PATH use PortAudio files in PATH
1609 --with-pri=PATH use ISDN PRI files in PATH
1610 --with-ss7=PATH use ISDN SS7 files in PATH
1611 --with-pwlib=PATH use PWlib files in PATH
1612 --with-h323=PATH use OpenH323 files in PATH
1613 --with-radius=PATH use Radius Client files in PATH
1614 --with-speex=PATH use Speex files in PATH
1615 --with-speexdsp=PATH use Speexdsp files in PATH
1616 --with-sqlite=PATH use SQLite files in PATH
1617 --with-sqlite3=PATH use SQLite files in PATH
1618 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1619 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1621 --with-tds=PATH use FreeTDS files in PATH
1622 --with-termcap=PATH use Termcap files in PATH
1623 --with-tinfo=PATH use Term Info files in PATH
1624 --with-tonezone=PATH use tonezone files in PATH
1625 --with-usb=PATH use usb files in PATH
1626 --with-vorbis=PATH use Vorbis files in PATH
1627 --with-vpb=PATH use Voicetronix API files in PATH
1628 --with-x11=PATH use X11 support files in PATH
1629 --with-z=PATH use zlib files in PATH
1630 --with-zaptel=PATH use Zaptel files in PATH
1631 --with-zaptel_transcode=PATH
1632 use Zaptel Transcoder Support files in PATH
1633 --with-zaptel_vldtmf=PATH
1634 use Zaptel VLDTMF Support files in PATH
1635 --with-zaptel_hwgain=PATH
1636 use Zaptel Hardware Gain Support files in PATH
1637 --with-zaptel_echocanparams=PATH
1638 use Zaptel Echo Canceler Parameter Support files in
1640 --with-zaptel_chanalarms=PATH
1641 use Zaptel Channel Alarm Support files in PATH
1642 --with-sdl=PATH use Sdl files in PATH
1643 --with-SDL_image=PATH use Sdl Image library files in PATH
1644 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1646 Some influential environment variables:
1647 CC C compiler command
1648 CFLAGS C compiler flags
1649 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1650 nonstandard directory <lib dir>
1651 LIBS libraries to pass to the linker, e.g. -l<library>
1652 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1653 you have headers in a nonstandard directory <include dir>
1655 CXX C++ compiler command
1656 CXXFLAGS C++ compiler flags
1657 CXXCPP C++ preprocessor
1659 Use these variables to override the choices made by `configure' or to help
1660 it to find libraries and programs with nonstandard names/locations.
1662 Report bugs to <www.asterisk.org>.
1667 if test "$ac_init_help" = "recursive"; then
1668 # If there are subdirs, report their specific --help.
1669 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1670 test -d "$ac_dir" || continue
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1690 .) # We are building in place.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1714 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1723 asterisk configure 1.6
1724 generated by GNU Autoconf 2.61
1726 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1727 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1728 This configure script is free software; the Free Software Foundation
1729 gives unlimited permission to copy, distribute and modify it.
1735 cat >config.log <<_ACEOF
1736 This file contains any messages produced by compilers while
1737 running configure, to aid debugging if configure makes a mistake.
1739 It was created by asterisk $as_me 1.6, which was
1740 generated by GNU Autoconf 2.61. Invocation command line was
1752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1753 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1754 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1755 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1756 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1759 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1761 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1762 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1764 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1765 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1766 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1767 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 test -z "$as_dir" && as_dir=.
1776 echo "PATH: $as_dir"
1792 # Keep a trace of the command line.
1793 # Strip out --no-create and --no-recursion so they do not pile up.
1794 # Strip out --silent because we don't want to record it for future runs.
1795 # Also quote any args containing shell meta-characters.
1796 # Make two passes to allow for proper duplicate-argument suppression.
1800 ac_must_keep_next=false
1806 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1807 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1808 | -silent | --silent | --silen | --sile | --sil)
1811 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1814 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1816 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1817 if test $ac_must_keep_next = true; then
1818 ac_must_keep_next=false # Got value, back to normal.
1821 *=* | --config-cache | -C | -disable-* | --disable-* \
1822 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1823 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1824 | -with-* | --with-* | -without-* | --without-* | --x)
1825 case "$ac_configure_args0 " in
1826 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1829 -* ) ac_must_keep_next=true ;;
1832 ac_configure_args="$ac_configure_args '$ac_arg'"
1837 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1838 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1840 # When interrupted or exit'd, cleanup temporary files, and complete
1841 # config.log. We remove comments because anyway the quotes in there
1842 # would cause problems or look ugly.
1843 # WARNING: Use '\'' to represent an apostrophe within the trap.
1844 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1845 trap 'exit_status=$?
1846 # Save into config.log some information that might help in debugging.
1851 ## ---------------- ##
1852 ## Cache variables. ##
1853 ## ---------------- ##
1856 # The following way of writing the cache mishandles newlines in values,
1858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1859 eval ac_val=\$$ac_var
1863 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1864 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1867 _ | IFS | as_nl) ;; #(
1868 *) $as_unset $ac_var ;;
1873 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1874 *${as_nl}ac_space=\ *)
1876 "s/'\''/'\''\\\\'\'''\''/g;
1877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1888 ## ----------------- ##
1889 ## Output variables. ##
1890 ## ----------------- ##
1893 for ac_var in $ac_subst_vars
1895 eval ac_val=\$$ac_var
1897 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899 echo "$ac_var='\''$ac_val'\''"
1903 if test -n "$ac_subst_files"; then
1905 ## ------------------- ##
1906 ## File substitutions. ##
1907 ## ------------------- ##
1910 for ac_var in $ac_subst_files
1912 eval ac_val=\$$ac_var
1914 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916 echo "$ac_var='\''$ac_val'\''"
1921 if test -s confdefs.h; then
1931 test "$ac_signal" != 0 &&
1932 echo "$as_me: caught signal $ac_signal"
1933 echo "$as_me: exit $exit_status"
1935 rm -f core *.core core.conftest.* &&
1936 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1939 for ac_signal in 1 2 13 15; do
1940 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1944 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1945 rm -f -r conftest* confdefs.h
1947 # Predefined preprocessor variables.
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_NAME "$PACKAGE_NAME"
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1959 cat >>confdefs.h <<_ACEOF
1960 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_STRING "$PACKAGE_STRING"
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1974 # Let the site file select an alternate cache file if it wants to.
1975 # Prefer explicitly selected file to automatically selected ones.
1976 if test -n "$CONFIG_SITE"; then
1977 set x "$CONFIG_SITE"
1978 elif test "x$prefix" != xNONE; then
1979 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1981 set x "$ac_default_prefix/share/config.site" \
1982 "$ac_default_prefix/etc/config.site"
1987 if test -r "$ac_site_file"; then
1988 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1989 echo "$as_me: loading site script $ac_site_file" >&6;}
1990 sed 's/^/| /' "$ac_site_file" >&5
1995 if test -r "$cache_file"; then
1996 # Some versions of bash will fail to source /dev/null (special
1997 # files actually), so we avoid doing that.
1998 if test -f "$cache_file"; then
1999 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2000 echo "$as_me: loading cache $cache_file" >&6;}
2002 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2003 *) . "./$cache_file";;
2007 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2008 echo "$as_me: creating cache $cache_file" >&6;}
2012 ac_header_list="$ac_header_list sys/time.h"
2013 ac_header_list="$ac_header_list unistd.h"
2014 ac_func_list="$ac_func_list alarm"
2015 ac_header_list="$ac_header_list utime.h"
2016 # Check that the precious variables saved in the cache have kept the same
2018 ac_cache_corrupted=false
2019 for ac_var in $ac_precious_vars; do
2020 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2021 eval ac_new_set=\$ac_env_${ac_var}_set
2022 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2023 eval ac_new_val=\$ac_env_${ac_var}_value
2024 case $ac_old_set,$ac_new_set in
2026 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2027 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2028 ac_cache_corrupted=: ;;
2030 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2031 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2032 ac_cache_corrupted=: ;;
2035 if test "x$ac_old_val" != "x$ac_new_val"; then
2036 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2037 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2038 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2039 echo "$as_me: former value: $ac_old_val" >&2;}
2040 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2041 echo "$as_me: current value: $ac_new_val" >&2;}
2042 ac_cache_corrupted=:
2045 # Pass precious variables to config.status.
2046 if test "$ac_new_set" = set; then
2048 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 *) ac_arg=$ac_var=$ac_new_val ;;
2051 case " $ac_configure_args " in
2052 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2053 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2057 if $ac_cache_corrupted; then
2058 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2059 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2060 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2061 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2062 { (exit 1); exit 1; }; }
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2097 # cross-compile macros
2099 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2100 if test -f "$ac_dir/install-sh"; then
2102 ac_install_sh="$ac_aux_dir/install-sh -c"
2104 elif test -f "$ac_dir/install.sh"; then
2106 ac_install_sh="$ac_aux_dir/install.sh -c"
2108 elif test -f "$ac_dir/shtool"; then
2110 ac_install_sh="$ac_aux_dir/shtool install -c"
2114 if test -z "$ac_aux_dir"; then
2115 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2116 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2117 { (exit 1); exit 1; }; }
2120 # These three variables are undocumented and unsupported,
2121 # and are intended to be withdrawn in a future Autoconf release.
2122 # They can cause serious problems if a builder's source tree is in a directory
2123 # whose full name contains unusual characters.
2124 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2125 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2126 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2129 # Make sure we can run config.sub.
2130 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2131 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2132 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2133 { (exit 1); exit 1; }; }
2135 { echo "$as_me:$LINENO: checking build system type" >&5
2136 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_build+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 ac_build_alias=$build_alias
2141 test "x$ac_build_alias" = x &&
2142 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2143 test "x$ac_build_alias" = x &&
2144 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2145 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2146 { (exit 1); exit 1; }; }
2147 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2148 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2149 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2150 { (exit 1); exit 1; }; }
2153 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2154 echo "${ECHO_T}$ac_cv_build" >&6; }
2155 case $ac_cv_build in
2157 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2158 echo "$as_me: error: invalid value of canonical build" >&2;}
2159 { (exit 1); exit 1; }; };;
2162 ac_save_IFS=$IFS; IFS='-'
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2172 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2175 { echo "$as_me:$LINENO: checking host system type" >&5
2176 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2177 if test "${ac_cv_host+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test "x$host_alias" = x; then
2181 ac_cv_host=$ac_cv_build
2183 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2184 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2185 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2186 { (exit 1); exit 1; }; }
2190 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2191 echo "${ECHO_T}$ac_cv_host" >&6; }
2194 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2195 echo "$as_me: error: invalid value of canonical host" >&2;}
2196 { (exit 1); exit 1; }; };;
2199 ac_save_IFS=$IFS; IFS='-'
2205 # Remember, the first character of IFS is used to create $*,
2206 # except with old shells:
2209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2213 # check existence of the package
2216 # specify output header file
2217 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2224 cat >>confdefs.h <<\_ACEOF
2225 #define _GNU_SOURCE 1
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2239 if test "${ac_cv_prog_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 if test -n "$CC"; then
2264 { echo "$as_me:$LINENO: result: $CC" >&5
2265 echo "${ECHO_T}$CC" >&6; }
2267 { echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6; }
2273 if test -z "$ac_cv_prog_CC"; then
2275 # Extract the first word of "gcc", so it can be a program name with args.
2276 set dummy gcc; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_ac_ct_CC="gcc"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303 if test -n "$ac_ct_CC"; then
2304 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305 echo "${ECHO_T}$ac_ct_CC" >&6; }
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2311 if test "x$ac_ct_CC" = x; then
2314 case $cross_compiling:$ac_tool_warned in
2316 { echo "$as_me:$LINENO: 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." >&5
2319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2320 whose name does not start with the host triplet. If you think this
2321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2322 ac_tool_warned=yes ;;
2330 if test -z "$CC"; then
2331 if test -n "$ac_tool_prefix"; then
2332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2333 set dummy ${ac_tool_prefix}cc; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_CC+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 if test -n "$CC"; then
2340 ac_cv_prog_CC="$CC" # Let the user override the test.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_CC="${ac_tool_prefix}cc"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 if test -n "$CC"; then
2361 { echo "$as_me:$LINENO: result: $CC" >&5
2362 echo "${ECHO_T}$CC" >&6; }
2364 { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2371 if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc; ac_word=$2
2374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2391 ac_prog_rejected=yes
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 if test $ac_prog_rejected = yes; then
2403 # We found a bogon in the path, so make sure we never use it.
2404 set dummy $ac_cv_prog_CC
2406 if test $# != 0; then
2407 # We chose a different compiler from the bogus one.
2408 # However, it has the same basename, so the bogon will be chosen
2409 # first if we set CC to just the basename; use the full file name.
2411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2417 if test -n "$CC"; then
2418 { echo "$as_me:$LINENO: result: $CC" >&5
2419 echo "${ECHO_T}$CC" >&6; }
2421 { echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6; }
2427 if test -z "$CC"; then
2428 if test -n "$ac_tool_prefix"; then
2429 for ac_prog in cl.exe
2431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$CC"; then
2439 ac_cv_prog_CC="$CC" # Let the user override the test.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 if test -n "$CC"; then
2460 { echo "$as_me:$LINENO: result: $CC" >&5
2461 echo "${ECHO_T}$CC" >&6; }
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2468 test -n "$CC" && break
2471 if test -z "$CC"; then
2473 for ac_prog in cl.exe
2475 # Extract the first word of "$ac_prog", so it can be a program name with args.
2476 set dummy $ac_prog; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$ac_ct_CC"; then
2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_CC="$ac_prog"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2512 test -n "$ac_ct_CC" && break
2515 if test "x$ac_ct_CC" = x; then
2518 case $cross_compiling:$ac_tool_warned in
2520 { echo "$as_me:$LINENO: 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." >&5
2523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2524 whose name does not start with the host triplet. If you think this
2525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2526 ac_tool_warned=yes ;;
2535 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2536 See \`config.log' for more details." >&5
2537 echo "$as_me: error: no acceptable C compiler found in \$PATH
2538 See \`config.log' for more details." >&2;}
2539 { (exit 1); exit 1; }; }
2541 # Provide some information about the compiler.
2542 echo "$as_me:$LINENO: checking for C compiler version" >&5
2543 ac_compiler=`set X $ac_compile; echo $2`
2544 { (ac_try="$ac_compiler --version >&5"
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_compiler --version >&5") 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2554 { (ac_try="$ac_compiler -v >&5"
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560 (eval "$ac_compiler -v >&5") 2>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }
2564 { (ac_try="$ac_compiler -V >&5"
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_compiler -V >&5") 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }
2575 cat >conftest.$ac_ext <<_ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2590 ac_clean_files_save=$ac_clean_files
2591 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2592 # Try to create an executable without -o first, disregard a.out.
2593 # It will help us diagnose broken compilers, and finding out an intuition
2595 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2596 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2597 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2599 # List of possible output files, starting from the most likely.
2600 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2601 # only as a last resort. b.out is created by i960 compilers.
2602 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2604 # The IRIX 6 linker writes into existing files which may not be
2605 # executable, retaining their permissions. Remove them first so a
2606 # subsequent execution test works.
2608 for ac_file in $ac_files
2611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2612 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2617 if { (ac_try="$ac_link_default"
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_link_default") 2>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; then
2627 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2628 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2629 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2630 # so that the user can short-circuit this test for compilers unknown to
2632 for ac_file in $ac_files ''
2634 test -f "$ac_file" || continue
2636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2639 # We found the default executable, but exeext='' is most
2643 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2645 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2647 # We set ac_cv_exeext here because the later test for it is not
2648 # safe: cross compilers may not add the suffix if given an `-o'
2649 # argument, so we may need to know it at that point already.
2650 # Even if this section looks crufty: it has the advantage of
2657 test "$ac_cv_exeext" = no && ac_cv_exeext=
2663 { echo "$as_me:$LINENO: result: $ac_file" >&5
2664 echo "${ECHO_T}$ac_file" >&6; }
2665 if test -z "$ac_file"; then
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2670 See \`config.log' for more details." >&5
2671 echo "$as_me: error: C compiler cannot create executables
2672 See \`config.log' for more details." >&2;}
2673 { (exit 77); exit 77; }; }
2676 ac_exeext=$ac_cv_exeext
2678 # Check that the compiler produces executables we can run. If not, either
2679 # the compiler is broken, or we cross compile.
2680 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2681 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2682 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2683 # If not cross compiling, check that we can run a simple program.
2684 if test "$cross_compiling" != yes; then
2685 if { ac_try='./$ac_file'
2686 { (case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_try") 2>&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2697 if test "$cross_compiling" = maybe; then
2700 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2701 If you meant to cross compile, use \`--host'.
2702 See \`config.log' for more details." >&5
2703 echo "$as_me: error: cannot run C compiled programs.
2704 If you meant to cross compile, use \`--host'.
2705 See \`config.log' for more details." >&2;}
2706 { (exit 1); exit 1; }; }
2710 { echo "$as_me:$LINENO: result: yes" >&5
2711 echo "${ECHO_T}yes" >&6; }
2713 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2714 ac_clean_files=$ac_clean_files_save
2715 # Check that the compiler produces executables we can run. If not, either
2716 # the compiler is broken, or we cross compile.
2717 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2718 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2719 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2720 echo "${ECHO_T}$cross_compiling" >&6; }
2722 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2723 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2724 if { (ac_try="$ac_link"
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_link") 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; then
2734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2735 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2736 # work properly (i.e., refer to `conftest.exe'), while it won't with
2738 for ac_file in conftest.exe conftest conftest.*; do
2739 test -f "$ac_file" || continue
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2748 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2749 See \`config.log' for more details." >&5
2750 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2751 See \`config.log' for more details." >&2;}
2752 { (exit 1); exit 1; }; }
2755 rm -f conftest$ac_cv_exeext
2756 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2757 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2759 rm -f conftest.$ac_ext
2760 EXEEXT=$ac_cv_exeext
2762 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2763 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2764 if test "${ac_cv_objext+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 cat >conftest.$ac_ext <<_ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2782 rm -f conftest.o conftest.obj
2783 if { (ac_try="$ac_compile"
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compile") 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; then
2793 for ac_file in conftest.o conftest.obj conftest.*; do
2794 test -f "$ac_file" || continue;
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2797 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2806 See \`config.log' for more details." >&5
2807 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2808 See \`config.log' for more details." >&2;}
2809 { (exit 1); exit 1; }; }
2812 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2814 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2815 echo "${ECHO_T}$ac_cv_objext" >&6; }
2816 OBJEXT=$ac_cv_objext
2818 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2819 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2820 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2841 rm -f conftest.$ac_objext
2842 if { (ac_try="$ac_compile"
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_compile") 2>conftest.er1
2850 grep -v '^ *+' conftest.er1 >conftest.err
2852 cat conftest.err >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } && {
2855 test -z "$ac_c_werror_flag" ||
2856 test ! -s conftest.err
2857 } && test -s conftest.$ac_objext; then
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2870 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2871 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2872 GCC=`test $ac_compiler_gnu = yes && echo yes`
2873 ac_test_CFLAGS=${CFLAGS+set}
2874 ac_save_CFLAGS=$CFLAGS
2875 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2876 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_cc_g+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 ac_save_c_werror_flag=$ac_c_werror_flag
2881 ac_c_werror_flag=yes
2884 cat >conftest.$ac_ext <<_ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2899 rm -f conftest.$ac_objext
2900 if { (ac_try="$ac_compile"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compile") 2>conftest.er1
2908 grep -v '^ *+' conftest.er1 >conftest.err
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } && {
2913 test -z "$ac_c_werror_flag" ||
2914 test ! -s conftest.err
2915 } && test -s conftest.$ac_objext; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2922 cat >conftest.$ac_ext <<_ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2937 rm -f conftest.$ac_objext
2938 if { (ac_try="$ac_compile"
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && {
2951 test -z "$ac_c_werror_flag" ||
2952 test ! -s conftest.err
2953 } && test -s conftest.$ac_objext; then
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 ac_c_werror_flag=$ac_save_c_werror_flag
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2976 rm -f conftest.$ac_objext
2977 if { (ac_try="$ac_compile"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } && {
2990 test -z "$ac_c_werror_flag" ||
2991 test ! -s conftest.err
2992 } && test -s conftest.$ac_objext; then
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 ac_c_werror_flag=$ac_save_c_werror_flag
3010 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3011 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3012 if test "$ac_test_CFLAGS" = set; then
3013 CFLAGS=$ac_save_CFLAGS
3014 elif test $ac_cv_prog_cc_g = yes; then
3015 if test "$GCC" = yes; then
3021 if test "$GCC" = yes; then
3027 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3028 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3029 if test "${ac_cv_prog_cc_c89+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 ac_cv_prog_cc_c89=no
3034 cat >conftest.$ac_ext <<_ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3042 #include <sys/types.h>
3043 #include <sys/stat.h>
3044 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3045 struct buf { int x; };
3046 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3047 static char *e (p, i)
3053 static char *f (char * (*g) (char **, int), char **p, ...)
3058 s = g (p, va_arg (v,int));
3063 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3064 function prototypes and stuff, but not '\xHH' hex character constants.
3065 These don't provoke an error unfortunately, instead are silently treated
3066 as 'x'. The following induces an error, until -std is added to get
3067 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3068 array size at least. It's necessary to write '\x00'==0 to get something
3069 that's true only with -std. */
3070 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3072 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3073 inside strings and character constants. */
3075 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3077 int test (int i, double x);
3078 struct s1 {int (*f) (int a);};
3079 struct s2 {int (*f) (double a);};
3080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3086 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3091 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3092 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3094 CC="$ac_save_CC $ac_arg"
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } && {
3109 test -z "$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3111 } && test -s conftest.$ac_objext; then
3112 ac_cv_prog_cc_c89=$ac_arg
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3120 rm -f core conftest.err conftest.$ac_objext
3121 test "x$ac_cv_prog_cc_c89" != "xno" && break
3123 rm -f conftest.$ac_ext
3128 case "x$ac_cv_prog_cc_c89" in
3130 { echo "$as_me:$LINENO: result: none needed" >&5
3131 echo "${ECHO_T}none needed" >&6; } ;;
3133 { echo "$as_me:$LINENO: result: unsupported" >&5
3134 echo "${ECHO_T}unsupported" >&6; } ;;
3136 CC="$CC $ac_cv_prog_cc_c89"
3137 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3138 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 ac_cpp='$CPP $CPPFLAGS'
3151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3154 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3155 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3156 # On Suns, sometimes $CPP names a directory.
3157 if test -n "$CPP" && test -d "$CPP"; then
3160 if test -z "$CPP"; then
3161 if test "${ac_cv_prog_CPP+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 # Double quotes because CPP needs to be expanded
3165 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3168 for ac_c_preproc_warn_flag in '' yes
3170 # Use a header file that comes with gcc, so configuring glibc
3171 # with a fresh cross-compiler works.
3172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3173 # <limits.h> exists even on freestanding compilers.
3174 # On the NeXT, cc -E runs the code through the compiler's parser,
3175 # not just through cpp. "Syntax error" is here to catch this case.
3176 cat >conftest.$ac_ext <<_ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3183 # include <limits.h>
3185 # include <assert.h>
3189 if { (ac_try="$ac_cpp conftest.$ac_ext"
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3197 grep -v '^ *+' conftest.er1 >conftest.err
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } >/dev/null && {
3202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3203 test ! -s conftest.err
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3210 # Broken: fails on valid input.
3214 rm -f conftest.err conftest.$ac_ext
3216 # OK, works on sane cases. Now check whether nonexistent headers
3217 # can be detected and how.
3218 cat >conftest.$ac_ext <<_ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224 #include <ac_nonexistent.h>
3226 if { (ac_try="$ac_cpp conftest.$ac_ext"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null && {
3239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3240 test ! -s conftest.err
3242 # Broken: success on invalid input.
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 # Passes both tests.
3253 rm -f conftest.err conftest.$ac_ext
3256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3257 rm -f conftest.err conftest.$ac_ext
3258 if $ac_preproc_ok; then
3270 { echo "$as_me:$LINENO: result: $CPP" >&5
3271 echo "${ECHO_T}$CPP" >&6; }
3273 for ac_c_preproc_warn_flag in '' yes
3275 # Use a header file that comes with gcc, so configuring glibc
3276 # with a fresh cross-compiler works.
3277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3278 # <limits.h> exists even on freestanding compilers.
3279 # On the NeXT, cc -E runs the code through the compiler's parser,
3280 # not just through cpp. "Syntax error" is here to catch this case.
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3288 # include <limits.h>
3290 # include <assert.h>
3294 if { (ac_try="$ac_cpp conftest.$ac_ext"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3302 grep -v '^ *+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null && {
3307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3308 test ! -s conftest.err
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 # Broken: fails on valid input.
3319 rm -f conftest.err conftest.$ac_ext
3321 # OK, works on sane cases. Now check whether nonexistent headers
3322 # can be detected and how.
3323 cat >conftest.$ac_ext <<_ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329 #include <ac_nonexistent.h>
3331 if { (ac_try="$ac_cpp conftest.$ac_ext"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3339 grep -v '^ *+' conftest.er1 >conftest.err
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } >/dev/null && {
3344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3345 test ! -s conftest.err
3347 # Broken: success on invalid input.
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3353 # Passes both tests.
3358 rm -f conftest.err conftest.$ac_ext
3361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3362 rm -f conftest.err conftest.$ac_ext
3363 if $ac_preproc_ok; then
3366 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3367 See \`config.log' for more details." >&5
3368 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3369 See \`config.log' for more details." >&2;}
3370 { (exit 1); exit 1; }; }
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3381 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3382 if test "${ac_cv_path_GREP+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 # Extract the first word of "grep ggrep" to use in msg output
3386 if test -z "$GREP"; then
3387 set dummy grep ggrep; ac_prog_name=$2
3388 if test "${ac_cv_path_GREP+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 ac_path_GREP_found=false
3392 # Loop through the user's path and test for each of PROGNAME-LIST
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3397 test -z "$as_dir" && as_dir=.
3398 for ac_prog in grep ggrep; do
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3401 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3402 # Check for GNU ac_path_GREP and select it if it is found.
3403 # Check for GNU $ac_path_GREP
3404 case `"$ac_path_GREP" --version 2>&1` in
3406 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3409 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3412 cat "conftest.in" "conftest.in" >"conftest.tmp"
3413 mv "conftest.tmp" "conftest.in"
3414 cp "conftest.in" "conftest.nl"
3415 echo 'GREP' >> "conftest.nl"
3416 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3418 ac_count=`expr $ac_count + 1`
3419 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3420 # Best one so far, save it but keep looking for a better one
3421 ac_cv_path_GREP="$ac_path_GREP"
3422 ac_path_GREP_max=$ac_count
3424 # 10*(2^10) chars as input seems more than enough
3425 test $ac_count -gt 10 && break
3427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3431 $ac_path_GREP_found && break 3
3441 GREP="$ac_cv_path_GREP"
3442 if test -z "$GREP"; then
3443 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3444 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3445 { (exit 1); exit 1; }; }
3449 ac_cv_path_GREP=$GREP
3454 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3455 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3456 GREP="$ac_cv_path_GREP"
3459 { echo "$as_me:$LINENO: checking for egrep" >&5
3460 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3461 if test "${ac_cv_path_EGREP+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3465 then ac_cv_path_EGREP="$GREP -E"
3467 # Extract the first word of "egrep" to use in msg output
3468 if test -z "$EGREP"; then
3469 set dummy egrep; ac_prog_name=$2
3470 if test "${ac_cv_path_EGREP+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 ac_path_EGREP_found=false
3474 # Loop through the user's path and test for each of PROGNAME-LIST
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3479 test -z "$as_dir" && as_dir=.
3480 for ac_prog in egrep; do
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3483 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3484 # Check for GNU ac_path_EGREP and select it if it is found.
3485 # Check for GNU $ac_path_EGREP
3486 case `"$ac_path_EGREP" --version 2>&1` in
3488 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3491 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3494 cat "conftest.in" "conftest.in" >"conftest.tmp"
3495 mv "conftest.tmp" "conftest.in"
3496 cp "conftest.in" "conftest.nl"
3497 echo 'EGREP' >> "conftest.nl"
3498 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3500 ac_count=`expr $ac_count + 1`
3501 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3502 # Best one so far, save it but keep looking for a better one
3503 ac_cv_path_EGREP="$ac_path_EGREP"
3504 ac_path_EGREP_max=$ac_count
3506 # 10*(2^10) chars as input seems more than enough
3507 test $ac_count -gt 10 && break
3509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3513 $ac_path_EGREP_found && break 3
3523 EGREP="$ac_cv_path_EGREP"
3524 if test -z "$EGREP"; then
3525 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3526 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3527 { (exit 1); exit 1; }; }
3531 ac_cv_path_EGREP=$EGREP
3537 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3538 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3539 EGREP="$ac_cv_path_EGREP"
3543 { echo "$as_me:$LINENO: checking for AIX" >&5
3544 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3545 cat >conftest.$ac_ext <<_ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3557 $EGREP "yes" >/dev/null 2>&1; then
3558 { echo "$as_me:$LINENO: result: yes" >&5
3559 echo "${ECHO_T}yes" >&6; }
3560 cat >>confdefs.h <<\_ACEOF
3561 #define _ALL_SOURCE 1
3565 { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3571 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3572 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3573 if test "${ac_cv_header_stdc+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3595 rm -f conftest.$ac_objext
3596 if { (ac_try="$ac_compile"
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_compile") 2>conftest.er1
3604 grep -v '^ *+' conftest.er1 >conftest.err
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } && {
3609 test -z "$ac_c_werror_flag" ||
3610 test ! -s conftest.err
3611 } && test -s conftest.$ac_objext; then
3612 ac_cv_header_stdc=yes
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 ac_cv_header_stdc=no
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 if test $ac_cv_header_stdc = yes; then
3623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3624 cat >conftest.$ac_ext <<_ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3634 $EGREP "memchr" >/dev/null 2>&1; then
3637 ac_cv_header_stdc=no
3643 if test $ac_cv_header_stdc = yes; then
3644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3655 $EGREP "free" >/dev/null 2>&1; then
3658 ac_cv_header_stdc=no
3664 if test $ac_cv_header_stdc = yes; then
3665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3666 if test "$cross_compiling" = yes; then
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3677 #if ((' ' & 0x0FF) == 0x020)
3678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3681 # define ISLOWER(c) \
3682 (('a' <= (c) && (c) <= 'i') \
3683 || ('j' <= (c) && (c) <= 'r') \
3684 || ('s' <= (c) && (c) <= 'z'))
3685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3693 for (i = 0; i < 256; i++)
3694 if (XOR (islower (i), ISLOWER (i))
3695 || toupper (i) != TOUPPER (i))
3700 rm -f conftest$ac_exeext
3701 if { (ac_try="$ac_link"
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_link") 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3711 { (case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_try") 2>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3722 echo "$as_me: program exited with status $ac_status" >&5
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3727 ac_cv_header_stdc=no
3729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3735 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3736 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3737 if test $ac_cv_header_stdc = yes; then
3739 cat >>confdefs.h <<\_ACEOF
3740 #define STDC_HEADERS 1
3745 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3755 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3756 inttypes.h stdint.h unistd.h
3758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 cat >conftest.$ac_ext <<_ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 $ac_includes_default
3772 #include <$ac_header>
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3783 grep -v '^ *+' conftest.er1 >conftest.err
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
3791 eval "$as_ac_Header=yes"
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3796 eval "$as_ac_Header=no"
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 ac_res=`eval echo '${'$as_ac_Header'}'`
3802 { echo "$as_me:$LINENO: result: $ac_res" >&5
3803 echo "${ECHO_T}$ac_res" >&6; }
3804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3805 cat >>confdefs.h <<_ACEOF
3806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3814 if test "${ac_cv_header_minix_config_h+set}" = set; then
3815 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3816 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3817 if test "${ac_cv_header_minix_config_h+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3821 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3823 # Is the header compilable?
3824 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3825 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3826 cat >conftest.$ac_ext <<_ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 $ac_includes_default
3833 #include <minix/config.h>
3835 rm -f conftest.$ac_objext
3836 if { (ac_try="$ac_compile"
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842 (eval "$ac_compile") 2>conftest.er1
3844 grep -v '^ *+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } && {
3849 test -z "$ac_c_werror_flag" ||
3850 test ! -s conftest.err
3851 } && test -s conftest.$ac_objext; then
3852 ac_header_compiler=yes
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 ac_header_compiler=no
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3862 echo "${ECHO_T}$ac_header_compiler" >&6; }
3864 # Is the header present?
3865 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3866 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3867 cat >conftest.$ac_ext <<_ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873 #include <minix/config.h>
3875 if { (ac_try="$ac_cpp conftest.$ac_ext"
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3883 grep -v '^ *+' conftest.er1 >conftest.err
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } >/dev/null && {
3888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3889 test ! -s conftest.err
3891 ac_header_preproc=yes
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 ac_header_preproc=no
3899 rm -f conftest.err conftest.$ac_ext
3900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3901 echo "${ECHO_T}$ac_header_preproc" >&6; }
3903 # So? What about this header?
3904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3906 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3907 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3908 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3909 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3910 ac_header_preproc=yes
3913 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3914 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3916 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3918 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3919 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3920 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3921 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3922 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3923 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3924 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3926 ## ------------------------------- ##
3927 ## Report this to www.asterisk.org ##
3928 ## ------------------------------- ##
3930 ) | sed "s/^/$as_me: WARNING: /" >&2
3933 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3934 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3935 if test "${ac_cv_header_minix_config_h+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_cv_header_minix_config_h=$ac_header_preproc
3940 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3941 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3944 if test $ac_cv_header_minix_config_h = yes; then
3951 if test "$MINIX" = yes; then
3953 cat >>confdefs.h <<\_ACEOF
3954 #define _POSIX_SOURCE 1
3958 cat >>confdefs.h <<\_ACEOF
3959 #define _POSIX_1_SOURCE 2
3963 cat >>confdefs.h <<\_ACEOF
3979 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3980 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3981 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 cat >conftest.$ac_ext <<_ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3991 # define __EXTENSIONS__ 1
3992 $ac_includes_default
4001 rm -f conftest.$ac_objext
4002 if { (ac_try="$ac_compile"
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008 (eval "$ac_compile") 2>conftest.er1
4010 grep -v '^ *+' conftest.er1 >conftest.err
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && {
4015 test -z "$ac_c_werror_flag" ||
4016 test ! -s conftest.err
4017 } && test -s conftest.$ac_objext; then
4018 ac_cv_safe_to_define___extensions__=yes
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 ac_cv_safe_to_define___extensions__=no
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4029 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4030 test $ac_cv_safe_to_define___extensions__ = yes &&
4031 cat >>confdefs.h <<\_ACEOF
4032 #define __EXTENSIONS__ 1
4035 cat >>confdefs.h <<\_ACEOF
4036 #define _POSIX_PTHREAD_SEMANTICS 1
4039 cat >>confdefs.h <<\_ACEOF
4040 #define _TANDEM_SOURCE 1
4043 # note- does not work on FreeBSD
4045 case "${host_os}" in
4047 ac_default_prefix=/usr/local
4048 CPPFLAGS=-I/usr/local/include
4049 LDFLAGS=-L/usr/local/lib
4053 ac_default_prefix=/usr
4054 if test ${sysconfdir} = '${prefix}/etc'; then
4057 if test ${mandir} = '${prefix}/man'; then
4058 mandir=/usr/share/man
4063 if test ${localstatedir} = '${prefix}/var'; then
4067 BUILD_PLATFORM=${build}
4068 BUILD_CPU=${build_cpu}
4069 BUILD_VENDOR=${build_vendor}
4070 BUILD_OS=${build_os}
4077 HOST_PLATFORM=${host}
4078 HOST_CPU=${host_cpu}
4079 HOST_VENDOR=${host_vendor}
4089 case "${host_os}" in
4119 if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}uname; ac_word=$2
4122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4124 if test "${ac_cv_path_UNAME+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 UNAME=$ac_cv_path_UNAME
4151 if test -n "$UNAME"; then
4152 { echo "$as_me:$LINENO: result: $UNAME" >&5
4153 echo "${ECHO_T}$UNAME" >&6; }
4155 { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4161 if test -z "$ac_cv_path_UNAME"; then
4163 # Extract the first word of "uname", so it can be a program name with args.
4164 set dummy uname; ac_word=$2
4165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 case $ac_pt_UNAME in
4172 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4194 if test -n "$ac_pt_UNAME"; then
4195 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4196 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4198 { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4202 if test "x$ac_pt_UNAME" = x; then
4205 case $cross_compiling:$ac_tool_warned in
4207 { echo "$as_me:$LINENO: 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." >&5
4210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4211 whose name does not start with the host triplet. If you think this
4212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4213 ac_tool_warned=yes ;;
4218 UNAME="$ac_cv_path_UNAME"
4221 if test ! x"${UNAME}" = xNo; then
4222 PBX_OSREV=$(${UNAME} -r)
4232 # cross-compile checks
4233 if test "${cross_compiling}" = "yes";
4235 if test -n "$ac_tool_prefix"; then
4236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4237 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4240 if test "${ac_cv_prog_CC+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 if test -n "$CC"; then
4244 ac_cv_prog_CC="$CC" # Let the user override the test.
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 if test -n "$CC"; then
4265 { echo "$as_me:$LINENO: result: $CC" >&5
4266 echo "${ECHO_T}$CC" >&6; }
4268 { echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6; }
4274 if test -z "$ac_cv_prog_CC"; then
4276 # Extract the first word of "gcc", so it can be a program name with args.
4277 set dummy gcc; ac_word=$2
4278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 if test -n "$ac_ct_CC"; then
4284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 ac_cv_prog_ac_ct_CC="gcc"
4294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4304 if test -n "$ac_ct_CC"; then
4305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4306 echo "${ECHO_T}$ac_ct_CC" >&6; }
4308 { echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6; }
4312 if test "x$ac_ct_CC" = x; then
4315 case $cross_compiling:$ac_tool_warned in
4317 { echo "$as_me:$LINENO: 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." >&5
4320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4321 whose name does not start with the host triplet. If you think this
4322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4323 ac_tool_warned=yes ;;
4331 if test -n "$ac_tool_prefix"; then
4332 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4333 set dummy ${ac_tool_prefix}g++; ac_word=$2
4334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4336 if test "${ac_cv_prog_CXX+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 if test -n "$CXX"; then
4340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 if test -n "$CXX"; then
4361 { echo "$as_me:$LINENO: result: $CXX" >&5
4362 echo "${ECHO_T}$CXX" >&6; }
4364 { echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6; }
4370 if test -z "$ac_cv_prog_CXX"; then
4372 # Extract the first word of "g++", so it can be a program name with args.
4373 set dummy g++; ac_word=$2
4374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 if test -n "$ac_ct_CXX"; then
4380 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_prog_ac_ct_CXX="g++"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4400 if test -n "$ac_ct_CXX"; then
4401 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4402 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4404 { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4408 if test "x$ac_ct_CXX" = x; then
4411 case $cross_compiling:$ac_tool_warned in
4413 { echo "$as_me:$LINENO: 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." >&5
4416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4417 whose name does not start with the host triplet. If you think this
4418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4419 ac_tool_warned=yes ;;
4424 CXX="$ac_cv_prog_CXX"
4427 if test -n "$ac_tool_prefix"; then
4428 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4429 set dummy ${ac_tool_prefix}ld; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_LD+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$LD"; then
4436 ac_cv_prog_LD="$LD" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_LD="${ac_tool_prefix}ld"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 if test -n "$LD"; then
4457 { echo "$as_me:$LINENO: result: $LD" >&5
4458 echo "${ECHO_T}$LD" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4466 if test -z "$ac_cv_prog_LD"; then
4468 # Extract the first word of "ld", so it can be a program name with args.
4469 set dummy ld; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$ac_ct_LD"; then
4476 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_ac_ct_LD="ld"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4496 if test -n "$ac_ct_LD"; then
4497 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4498 echo "${ECHO_T}$ac_ct_LD" >&6; }
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4504 if test "x$ac_ct_LD" = x; then
4507 case $cross_compiling:$ac_tool_warned in
4509 { echo "$as_me:$LINENO: 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." >&5
4512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4513 whose name does not start with the host triplet. If you think this
4514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4515 ac_tool_warned=yes ;;
4523 if test -n "$ac_tool_prefix"; then
4524 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4525 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_RANLIB+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 if test -n "$RANLIB"; then
4532 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 RANLIB=$ac_cv_prog_RANLIB
4552 if test -n "$RANLIB"; then
4553 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4554 echo "${ECHO_T}$RANLIB" >&6; }
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4562 if test -z "$ac_cv_prog_RANLIB"; then
4563 ac_ct_RANLIB=$RANLIB
4564 # Extract the first word of "ranlib", so it can be a program name with args.
4565 set dummy ranlib; ac_word=$2
4566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 if test -n "$ac_ct_RANLIB"; then
4572 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_ac_ct_RANLIB="ranlib"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4592 if test -n "$ac_ct_RANLIB"; then
4593 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4594 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4596 { echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6; }
4600 if test "x$ac_ct_RANLIB" = x; then
4603 case $cross_compiling:$ac_tool_warned in
4605 { echo "$as_me:$LINENO: 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." >&5
4608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4609 whose name does not start with the host triplet. If you think this
4610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4611 ac_tool_warned=yes ;;
4613 RANLIB=$ac_ct_RANLIB
4616 RANLIB="$ac_cv_prog_RANLIB"
4621 # Checks for programs.
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test -n "$CC"; then
4657 { echo "$as_me:$LINENO: result: $CC" >&5
4658 echo "${ECHO_T}$CC" >&6; }
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4666 if test -z "$ac_cv_prog_CC"; then
4668 # Extract the first word of "gcc", so it can be a program name with args.
4669 set dummy gcc; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 if test -n "$ac_ct_CC"; then
4676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_CC="gcc"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4696 if test -n "$ac_ct_CC"; then
4697 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4698 echo "${ECHO_T}$ac_ct_CC" >&6; }
4700 { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4704 if test "x$ac_ct_CC" = x; then
4707 case $cross_compiling:$ac_tool_warned in
4709 { echo "$as_me:$LINENO: 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." >&5
4712 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4713 whose name does not start with the host triplet. If you think this
4714 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4715 ac_tool_warned=yes ;;