2 # From configure.ac Revision: 78683 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix=/usr/local
567 ac_config_libobj_dir=.
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
582 ac_unique_file="asterisk"
583 ac_unique_file="main/asterisk.c"
584 # Factoring default headers for most tests.
585 ac_includes_default="\
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
597 # ifdef HAVE_STDLIB_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
631 program_transform_name
893 ZAPTEL_TRANSCODE_INCLUDE
897 ZAPTEL_VLDTMF_INCLUDE
905 AST_DECLARATION_AFTER_STATEMENT
936 ac_precious_vars='build_alias
951 # Initialize some variables set by options.
953 ac_init_version=false
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
963 program_transform_name=s,x,x,
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE}'
988 infodir='${datarootdir}/info'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058 eval enable_$ac_feature=no ;;
1060 -docdir | --docdir | --docdi | --doc | --do)
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1070 -enable-* | --enable-*)
1071 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1077 eval enable_$ac_feature=\$ac_optarg ;;
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 htmldir=$ac_optarg ;;
1110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1122 -libdir | --libdir | --libdi | --libd)
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1139 -localstatedir | --localstatedir | --localstatedi | --localstated \
1140 | --localstate | --localstat | --localsta | --localst | --locals)
1141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144 localstatedir=$ac_optarg ;;
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1213 -psdir | --psdir | --psdi | --psd | --ps)
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 sbindir=$ac_optarg ;;
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 sharedstatedir=$ac_optarg ;;
1239 -site | --site | --sit)
1241 -site=* | --site=* | --sit=*)
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247 srcdir=$ac_optarg ;;
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254 sysconfdir=$ac_optarg ;;
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
1257 ac_prev=target_alias ;;
1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259 target_alias=$ac_optarg ;;
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
1268 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 { echo "$as_me: error: invalid package name: $ac_package" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1274 eval with_$ac_package=\$ac_optarg ;;
1276 -without-* | --without-*)
1277 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1283 eval with_$ac_package=no ;;
1286 # Obsolete; use --with-x.
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1303 -*) { echo "$as_me: error: unrecognized option: $ac_option
1304 Try \`$0 --help' for more information." >&2
1305 { (exit 1); exit 1; }; }
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1312 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1313 { (exit 1); exit 1; }; }
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 { echo "$as_me: error: missing argument to $ac_option" >&2
1331 { (exit 1); exit 1; }; }
1334 # Be sure to have absolute directory names.
1335 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336 datadir sysconfdir sharedstatedir localstatedir includedir \
1337 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338 libdir localedir mandir
1340 eval ac_val=\$$ac_var
1342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1346 { (exit 1); exit 1; }; }
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1354 target=$target_alias
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358 if test "x$build_alias" = x; then
1359 cross_compiling=maybe
1360 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1361 If a cross compiler is detected then cross compile mode will be used." >&2
1362 elif test "x$build_alias" != "x$host_alias"; then
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370 test "$silent" = yes && exec 6>/dev/null
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376 { echo "$as_me: error: Working directory cannot be determined" >&2
1377 { (exit 1); exit 1; }; }
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 { echo "$as_me: error: pwd does not report name of working directory" >&2
1380 { (exit 1); exit 1; }; }
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir=`$as_dirname -- "$0" ||
1388 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$0" : 'X\(//\)[^/]' \| \
1390 X"$0" : 'X\(//\)$' \| \
1391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1415 ac_srcdir_defaulted=no
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1420 { (exit 1); exit 1; }; }
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1425 { (exit 1); exit 1; }; }
1427 # When building in place, set srcdir=.
1428 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 # Remove unnecessary trailing slashes from srcdir.
1432 # Double slashes in file names in object file debugging info
1433 # mess up M-x gdb in Emacs.
1435 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 for ac_var in $ac_precious_vars; do
1438 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_env_${ac_var}_value=\$${ac_var}
1440 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445 # Report the --help message.
1447 if test "$ac_init_help" = "long"; then
1448 # Omit some internal or obsolete options to make the list less imposing.
1449 # This message is too long to be a string in the A/UX 3.1 sh.
1451 \`configure' configures this package to adapt to many kinds of systems.
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE. See below for descriptions of some of the useful variables.
1458 Defaults for the options are specified in brackets.
1461 -h, --help display this help and exit
1462 --help=short display options specific to this package
1463 --help=recursive display the short help of all the included packages
1464 -V, --version display version information and exit
1465 -q, --quiet, --silent do not print \`checking...' messages
1466 --cache-file=FILE cache test results in FILE [disabled]
1467 -C, --config-cache alias for \`--cache-file=config.cache'
1468 -n, --no-create do not create output files
1469 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471 Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
1473 [$ac_default_prefix]
1474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1482 For better control, use the options below.
1484 Fine tuning of the installation directories:
1485 --bindir=DIR user executables [EPREFIX/bin]
1486 --sbindir=DIR system admin executables [EPREFIX/sbin]
1487 --libexecdir=DIR program executables [EPREFIX/libexec]
1488 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1514 if test -n "$ac_init_help"; then
1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1521 --enable-dev-mode Turn on developer mode
1522 --disable-largefile omit support for large files
1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1527 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1529 --with-execinfo=PATH use Stack Backtrace support files in PATH
1530 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1531 --with-curl=PATH use cURL files in PATH
1532 --with-curses=PATH use curses files in PATH
1533 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1534 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1536 --with-gsm=PATH use GSM files in PATH , or 'internal'
1537 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1538 --with-imap=PATH use UW IMAP Toolkit files in PATH
1539 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1540 --with-kde=PATH use KDE files in PATH
1541 --with-ltdl=PATH use libtool files in PATH
1542 --with-misdn=PATH use mISDN User Library files in PATH
1543 --with-nbs=PATH use Network Broadcast Sound files in PATH
1544 --with-ncurses=PATH use ncurses files in PATH
1545 --with-netsnmp=PATH use Net-SNMP files in PATH
1546 --with-newt=PATH use newt files in PATH
1547 --with-odbc=PATH use unixODBC files in PATH
1548 --with-ogg=PATH use OGG files in PATH
1549 --with-osptk=PATH use OSP Toolkit files in PATH
1550 --with-oss=PATH use Open Sound System files in PATH
1551 --with-popt=PATH use popt files in PATH
1552 --with-postgres=PATH use PostgreSQL files in PATH
1553 --with-pri=PATH use ISDN PRI files in PATH
1554 --with-ss7=PATH use ISDN SS7 files in PATH
1555 --with-pwlib=PATH use PWlib files in PATH
1556 --with-h323=PATH use OpenH323 files in PATH
1557 --with-qt=PATH use Qt files in PATH
1558 --with-radius=PATH use Radius Client files in PATH
1559 --with-speex=PATH use Speex files in PATH
1560 --with-sqlite=PATH use SQLite files in PATH
1561 --with-sqlite3=PATH use SQLite files in PATH
1562 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1563 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1565 --with-tds=PATH use FreeTDS files in PATH
1566 --with-termcap=PATH use Termcap files in PATH
1567 --with-tinfo=PATH use Term Info files in PATH
1568 --with-tonezone=PATH use tonezone files in PATH
1569 --with-vorbis=PATH use Vorbis files in PATH
1570 --with-vpb=PATH use Voicetronix API files in PATH
1571 --with-z=PATH use zlib files in PATH
1572 --with-zaptel=PATH use Zaptel files in PATH
1573 --with-zaptel_transcode=PATH
1574 use Zaptel_transcode files in PATH
1575 --with-zaptel_vldtmf=PATH
1576 use Zaptel_vldtmf files in PATH
1578 Some influential environment variables:
1579 CC C compiler command
1580 CFLAGS C compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
1583 LIBS libraries to pass to the linker, e.g. -l<library>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1587 CXX C++ compiler command
1588 CXXFLAGS C++ compiler flags
1589 CXXCPP C++ preprocessor
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1598 if test "$ac_init_help" = "recursive"; then
1599 # If there are subdirs, report their specific --help.
1600 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1601 test -d "$ac_dir" || continue
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1621 .) # We are building in place.
1623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
1626 ac_srcdir=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1645 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1655 generated by GNU Autoconf 2.61
1657 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1658 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1666 cat >config.log <<_ACEOF
1667 This file contains any messages produced by compilers while
1668 running configure, to aid debugging if configure makes a mistake.
1670 It was created by $as_me, which was
1671 generated by GNU Autoconf 2.61. Invocation command line was
1683 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1684 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1685 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1686 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1687 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1689 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1690 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1692 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1693 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1694 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1695 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1696 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1697 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1698 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 test -z "$as_dir" && as_dir=.
1707 echo "PATH: $as_dir"
1723 # Keep a trace of the command line.
1724 # Strip out --no-create and --no-recursion so they do not pile up.
1725 # Strip out --silent because we don't want to record it for future runs.
1726 # Also quote any args containing shell meta-characters.
1727 # Make two passes to allow for proper duplicate-argument suppression.
1731 ac_must_keep_next=false
1737 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1739 | -silent | --silent | --silen | --sile | --sil)
1742 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1745 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1747 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1748 if test $ac_must_keep_next = true; then
1749 ac_must_keep_next=false # Got value, back to normal.
1752 *=* | --config-cache | -C | -disable-* | --disable-* \
1753 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1754 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1755 | -with-* | --with-* | -without-* | --without-* | --x)
1756 case "$ac_configure_args0 " in
1757 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1760 -* ) ac_must_keep_next=true ;;
1763 ac_configure_args="$ac_configure_args '$ac_arg'"
1768 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1769 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1771 # When interrupted or exit'd, cleanup temporary files, and complete
1772 # config.log. We remove comments because anyway the quotes in there
1773 # would cause problems or look ugly.
1774 # WARNING: Use '\'' to represent an apostrophe within the trap.
1775 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1776 trap 'exit_status=$?
1777 # Save into config.log some information that might help in debugging.
1782 ## ---------------- ##
1783 ## Cache variables. ##
1784 ## ---------------- ##
1787 # The following way of writing the cache mishandles newlines in values,
1789 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1790 eval ac_val=\$$ac_var
1794 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1795 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1798 _ | IFS | as_nl) ;; #(
1799 *) $as_unset $ac_var ;;
1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1824 for ac_var in $ac_subst_vars
1826 eval ac_val=\$$ac_var
1828 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830 echo "$ac_var='\''$ac_val'\''"
1834 if test -n "$ac_subst_files"; then
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1841 for ac_var in $ac_subst_files
1843 eval ac_val=\$$ac_var
1845 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 echo "$ac_var='\''$ac_val'\''"
1852 if test -s confdefs.h; then
1862 test "$ac_signal" != 0 &&
1863 echo "$as_me: caught signal $ac_signal"
1864 echo "$as_me: exit $exit_status"
1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1870 for ac_signal in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest* confdefs.h
1878 # Predefined preprocessor variables.
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer explicitly selected file to automatically selected ones.
1907 if test -n "$CONFIG_SITE"; then
1908 set x "$CONFIG_SITE"
1909 elif test "x$prefix" != xNONE; then
1910 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1912 set x "$ac_default_prefix/share/config.site" \
1913 "$ac_default_prefix/etc/config.site"
1918 if test -r "$ac_site_file"; then
1919 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1920 echo "$as_me: loading site script $ac_site_file" >&6;}
1921 sed 's/^/| /' "$ac_site_file" >&5
1926 if test -r "$cache_file"; then
1927 # Some versions of bash will fail to source /dev/null (special
1928 # files actually), so we avoid doing that.
1929 if test -f "$cache_file"; then
1930 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1931 echo "$as_me: loading cache $cache_file" >&6;}
1933 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1934 *) . "./$cache_file";;
1938 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1939 echo "$as_me: creating cache $cache_file" >&6;}
1943 ac_header_list="$ac_header_list sys/time.h"
1944 ac_header_list="$ac_header_list unistd.h"
1945 ac_func_list="$ac_func_list alarm"
1946 ac_header_list="$ac_header_list utime.h"
1947 # Check that the precious variables saved in the cache have kept the same
1949 ac_cache_corrupted=false
1950 for ac_var in $ac_precious_vars; do
1951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
1953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
1955 case $ac_old_set,$ac_new_set in
1957 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
1967 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1968 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1969 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1970 echo "$as_me: former value: $ac_old_val" >&2;}
1971 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1972 echo "$as_me: current value: $ac_new_val" >&2;}
1973 ac_cache_corrupted=:
1976 # Pass precious variables to config.status.
1977 if test "$ac_new_set" = set; then
1979 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1980 *) ac_arg=$ac_var=$ac_new_val ;;
1982 case " $ac_configure_args " in
1983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1984 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1988 if $ac_cache_corrupted; then
1989 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1990 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1991 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1992 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1993 { (exit 1); exit 1; }; }
2013 ac_cpp='$CPP $CPPFLAGS'
2014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 # cross-compile macros
2022 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2023 if test -f "$ac_dir/install-sh"; then
2025 ac_install_sh="$ac_aux_dir/install-sh -c"
2027 elif test -f "$ac_dir/install.sh"; then
2029 ac_install_sh="$ac_aux_dir/install.sh -c"
2031 elif test -f "$ac_dir/shtool"; then
2033 ac_install_sh="$ac_aux_dir/shtool install -c"
2037 if test -z "$ac_aux_dir"; then
2038 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2039 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2040 { (exit 1); exit 1; }; }
2043 # These three variables are undocumented and unsupported,
2044 # and are intended to be withdrawn in a future Autoconf release.
2045 # They can cause serious problems if a builder's source tree is in a directory
2046 # whose full name contains unusual characters.
2047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2052 # Make sure we can run config.sub.
2053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2054 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2055 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2056 { (exit 1); exit 1; }; }
2058 { echo "$as_me:$LINENO: checking build system type" >&5
2059 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2060 if test "${ac_cv_build+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 ac_build_alias=$build_alias
2064 test "x$ac_build_alias" = x &&
2065 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2066 test "x$ac_build_alias" = x &&
2067 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2068 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2069 { (exit 1); exit 1; }; }
2070 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2077 echo "${ECHO_T}$ac_cv_build" >&6; }
2078 case $ac_cv_build in
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2081 echo "$as_me: error: invalid value of canonical build" >&2;}
2082 { (exit 1); exit 1; }; };;
2085 ac_save_IFS=$IFS; IFS='-'
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2095 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2098 { echo "$as_me:$LINENO: checking host system type" >&5
2099 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_host+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test "x$host_alias" = x; then
2104 ac_cv_host=$ac_cv_build
2106 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2114 echo "${ECHO_T}$ac_cv_host" >&6; }
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2118 echo "$as_me: error: invalid value of canonical host" >&2;}
2119 { (exit 1); exit 1; }; };;
2122 ac_save_IFS=$IFS; IFS='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2136 # check existence of the package
2139 # specify output header file
2140 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2147 cat >>confdefs.h <<\_ACEOF
2148 #define _GNU_SOURCE 1
2153 ac_cpp='$CPP $CPPFLAGS'
2154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157 if test -n "$ac_tool_prefix"; then
2158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2162 if test "${ac_cv_prog_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 if test -n "$CC"; then
2166 ac_cv_prog_CC="$CC" # Let the user override the test.
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 if test -n "$CC"; then
2187 { echo "$as_me:$LINENO: result: $CC" >&5
2188 echo "${ECHO_T}$CC" >&6; }
2190 { echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6; }
2196 if test -z "$ac_cv_prog_CC"; then
2198 # Extract the first word of "gcc", so it can be a program name with args.
2199 set dummy gcc; ac_word=$2
2200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 if test -n "$ac_ct_CC"; then
2206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2215 ac_cv_prog_ac_ct_CC="gcc"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2226 if test -n "$ac_ct_CC"; then
2227 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2228 echo "${ECHO_T}$ac_ct_CC" >&6; }
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2234 if test "x$ac_ct_CC" = x; then
2237 case $cross_compiling:$ac_tool_warned in
2239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2240 whose name does not start with the host triplet. If you think this
2241 configuration is useful to you, please write to autoconf@gnu.org." >&5
2242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2243 whose name does not start with the host triplet. If you think this
2244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2245 ac_tool_warned=yes ;;
2253 if test -z "$CC"; then
2254 if test -n "$ac_tool_prefix"; then
2255 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2256 set dummy ${ac_tool_prefix}cc; ac_word=$2
2257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2259 if test "${ac_cv_prog_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 if test -n "$CC"; then
2263 ac_cv_prog_CC="$CC" # Let the user override the test.
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2272 ac_cv_prog_CC="${ac_tool_prefix}cc"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 if test -n "$CC"; then
2284 { echo "$as_me:$LINENO: result: $CC" >&5
2285 echo "${ECHO_T}$CC" >&6; }
2287 { echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6; }
2294 if test -z "$CC"; then
2295 # Extract the first word of "cc", so it can be a program name with args.
2296 set dummy cc; ac_word=$2
2297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2299 if test "${ac_cv_prog_CC+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 if test -n "$CC"; then
2303 ac_cv_prog_CC="$CC" # Let the user override the test.
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2314 ac_prog_rejected=yes
2318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 if test $ac_prog_rejected = yes; then
2326 # We found a bogon in the path, so make sure we never use it.
2327 set dummy $ac_cv_prog_CC
2329 if test $# != 0; then
2330 # We chose a different compiler from the bogus one.
2331 # However, it has the same basename, so the bogon will be chosen
2332 # first if we set CC to just the basename; use the full file name.
2334 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2340 if test -n "$CC"; then
2341 { echo "$as_me:$LINENO: result: $CC" >&5
2342 echo "${ECHO_T}$CC" >&6; }
2344 { echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6; }
2350 if test -z "$CC"; then
2351 if test -n "$ac_tool_prefix"; then
2352 for ac_prog in cl.exe
2354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_CC+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC="$CC" # Let the user override the test.
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 if test -n "$CC"; then
2383 { echo "$as_me:$LINENO: result: $CC" >&5
2384 echo "${ECHO_T}$CC" >&6; }
2386 { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2391 test -n "$CC" && break
2394 if test -z "$CC"; then
2396 for ac_prog in cl.exe
2398 # Extract the first word of "$ac_prog", so it can be a program name with args.
2399 set dummy $ac_prog; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 if test -n "$ac_ct_CC"; then
2406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_ac_ct_CC="$ac_prog"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2426 if test -n "$ac_ct_CC"; then
2427 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2428 echo "${ECHO_T}$ac_ct_CC" >&6; }
2430 { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2435 test -n "$ac_ct_CC" && break
2438 if test "x$ac_ct_CC" = x; then
2441 case $cross_compiling:$ac_tool_warned in
2443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet. If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&5
2446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2447 whose name does not start with the host triplet. If you think this
2448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2449 ac_tool_warned=yes ;;
2458 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2459 See \`config.log' for more details." >&5
2460 echo "$as_me: error: no acceptable C compiler found in \$PATH
2461 See \`config.log' for more details." >&2;}
2462 { (exit 1); exit 1; }; }
2464 # Provide some information about the compiler.
2465 echo "$as_me:$LINENO: checking for C compiler version" >&5
2466 ac_compiler=`set X $ac_compile; echo $2`
2467 { (ac_try="$ac_compiler --version >&5"
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_compiler --version >&5") 2>&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }
2477 { (ac_try="$ac_compiler -v >&5"
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_compiler -v >&5") 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }
2487 { (ac_try="$ac_compiler -V >&5"
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_compiler -V >&5") 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2513 ac_clean_files_save=$ac_clean_files
2514 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2515 # Try to create an executable without -o first, disregard a.out.
2516 # It will help us diagnose broken compilers, and finding out an intuition
2518 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2519 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2520 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2522 # List of possible output files, starting from the most likely.
2523 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2524 # only as a last resort. b.out is created by i960 compilers.
2525 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2527 # The IRIX 6 linker writes into existing files which may not be
2528 # executable, retaining their permissions. Remove them first so a
2529 # subsequent execution test works.
2531 for ac_file in $ac_files
2534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2535 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2540 if { (ac_try="$ac_link_default"
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_link_default") 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; then
2550 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2551 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2552 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2553 # so that the user can short-circuit this test for compilers unknown to
2555 for ac_file in $ac_files ''
2557 test -f "$ac_file" || continue
2559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2562 # We found the default executable, but exeext='' is most
2566 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2568 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2570 # We set ac_cv_exeext here because the later test for it is not
2571 # safe: cross compilers may not add the suffix if given an `-o'
2572 # argument, so we may need to know it at that point already.
2573 # Even if this section looks crufty: it has the advantage of
2580 test "$ac_cv_exeext" = no && ac_cv_exeext=
2586 { echo "$as_me:$LINENO: result: $ac_file" >&5
2587 echo "${ECHO_T}$ac_file" >&6; }
2588 if test -z "$ac_file"; then
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2592 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2593 See \`config.log' for more details." >&5
2594 echo "$as_me: error: C compiler cannot create executables
2595 See \`config.log' for more details." >&2;}
2596 { (exit 77); exit 77; }; }
2599 ac_exeext=$ac_cv_exeext
2601 # Check that the compiler produces executables we can run. If not, either
2602 # the compiler is broken, or we cross compile.
2603 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2604 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2605 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2606 # If not cross compiling, check that we can run a simple program.
2607 if test "$cross_compiling" != yes; then
2608 if { ac_try='./$ac_file'
2609 { (case "(($ac_try" in
2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611 *) ac_try_echo=$ac_try;;
2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614 (eval "$ac_try") 2>&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2620 if test "$cross_compiling" = maybe; then
2623 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2624 If you meant to cross compile, use \`--host'.
2625 See \`config.log' for more details." >&5
2626 echo "$as_me: error: cannot run C compiled programs.
2627 If you meant to cross compile, use \`--host'.
2628 See \`config.log' for more details." >&2;}
2629 { (exit 1); exit 1; }; }
2633 { echo "$as_me:$LINENO: result: yes" >&5
2634 echo "${ECHO_T}yes" >&6; }
2636 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2637 ac_clean_files=$ac_clean_files_save
2638 # Check that the compiler produces executables we can run. If not, either
2639 # the compiler is broken, or we cross compile.
2640 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2641 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2642 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2643 echo "${ECHO_T}$cross_compiling" >&6; }
2645 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2646 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2647 if { (ac_try="$ac_link"
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_link") 2>&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; then
2657 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2658 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2659 # work properly (i.e., refer to `conftest.exe'), while it won't with
2661 for ac_file in conftest.exe conftest conftest.*; do
2662 test -f "$ac_file" || continue
2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2665 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2671 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2674 See \`config.log' for more details." >&2;}
2675 { (exit 1); exit 1; }; }
2678 rm -f conftest$ac_cv_exeext
2679 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2680 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2682 rm -f conftest.$ac_ext
2683 EXEEXT=$ac_cv_exeext
2685 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2686 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2687 if test "${ac_cv_objext+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 cat >conftest.$ac_ext <<_ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2705 rm -f conftest.o conftest.obj
2706 if { (ac_try="$ac_compile"
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compile") 2>&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; then
2716 for ac_file in conftest.o conftest.obj conftest.*; do
2717 test -f "$ac_file" || continue;
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2728 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2729 See \`config.log' for more details." >&5
2730 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2731 See \`config.log' for more details." >&2;}
2732 { (exit 1); exit 1; }; }
2735 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2737 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2738 echo "${ECHO_T}$ac_cv_objext" >&6; }
2739 OBJEXT=$ac_cv_objext
2741 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2742 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2743 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 cat >conftest.$ac_ext <<_ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2764 rm -f conftest.$ac_objext
2765 if { (ac_try="$ac_compile"
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compile") 2>conftest.er1
2773 grep -v '^ *+' conftest.er1 >conftest.err
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } && {
2778 test -z "$ac_c_werror_flag" ||
2779 test ! -s conftest.err
2780 } && test -s conftest.$ac_objext; then
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2793 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2794 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2795 GCC=`test $ac_compiler_gnu = yes && echo yes`
2796 ac_test_CFLAGS=${CFLAGS+set}
2797 ac_save_CFLAGS=$CFLAGS
2798 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2799 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2800 if test "${ac_cv_prog_cc_g+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 ac_save_c_werror_flag=$ac_c_werror_flag
2804 ac_c_werror_flag=yes
2807 cat >conftest.$ac_ext <<_ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2822 rm -f conftest.$ac_objext
2823 if { (ac_try="$ac_compile"
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_compile") 2>conftest.er1
2831 grep -v '^ *+' conftest.er1 >conftest.err
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } && {
2836 test -z "$ac_c_werror_flag" ||
2837 test ! -s conftest.err
2838 } && test -s conftest.$ac_objext; then
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2845 cat >conftest.$ac_ext <<_ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2860 rm -f conftest.$ac_objext
2861 if { (ac_try="$ac_compile"
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_compile") 2>conftest.er1
2869 grep -v '^ *+' conftest.er1 >conftest.err
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } && {
2874 test -z "$ac_c_werror_flag" ||
2875 test ! -s conftest.err
2876 } && test -s conftest.$ac_objext; then
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2882 ac_c_werror_flag=$ac_save_c_werror_flag
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
2924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2931 ac_c_werror_flag=$ac_save_c_werror_flag
2933 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2934 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2935 if test "$ac_test_CFLAGS" = set; then
2936 CFLAGS=$ac_save_CFLAGS
2937 elif test $ac_cv_prog_cc_g = yes; then
2938 if test "$GCC" = yes; then
2944 if test "$GCC" = yes; then
2950 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2951 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2952 if test "${ac_cv_prog_cc_c89+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 ac_cv_prog_cc_c89=no
2957 cat >conftest.$ac_ext <<_ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2965 #include <sys/types.h>
2966 #include <sys/stat.h>
2967 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2968 struct buf { int x; };
2969 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2970 static char *e (p, i)
2976 static char *f (char * (*g) (char **, int), char **p, ...)
2981 s = g (p, va_arg (v,int));
2986 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2987 function prototypes and stuff, but not '\xHH' hex character constants.
2988 These don't provoke an error unfortunately, instead are silently treated
2989 as 'x'. The following induces an error, until -std is added to get
2990 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2991 array size at least. It's necessary to write '\x00'==0 to get something
2992 that's true only with -std. */
2993 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2995 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2996 inside strings and character constants. */
2998 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3000 int test (int i, double x);
3001 struct s1 {int (*f) (int a);};
3002 struct s2 {int (*f) (double a);};
3003 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3009 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3014 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3015 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3017 CC="$ac_save_CC $ac_arg"
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && {
3032 test -z "$ac_c_werror_flag" ||
3033 test ! -s conftest.err
3034 } && test -s conftest.$ac_objext; then
3035 ac_cv_prog_cc_c89=$ac_arg
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3043 rm -f core conftest.err conftest.$ac_objext
3044 test "x$ac_cv_prog_cc_c89" != "xno" && break
3046 rm -f conftest.$ac_ext
3051 case "x$ac_cv_prog_cc_c89" in
3053 { echo "$as_me:$LINENO: result: none needed" >&5
3054 echo "${ECHO_T}none needed" >&6; } ;;
3056 { echo "$as_me:$LINENO: result: unsupported" >&5
3057 echo "${ECHO_T}unsupported" >&6; } ;;
3059 CC="$CC $ac_cv_prog_cc_c89"
3060 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3061 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 ac_cpp='$CPP $CPPFLAGS'
3074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3078 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3079 # On Suns, sometimes $CPP names a directory.
3080 if test -n "$CPP" && test -d "$CPP"; then
3083 if test -z "$CPP"; then
3084 if test "${ac_cv_prog_CPP+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 # Double quotes because CPP needs to be expanded
3088 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3091 for ac_c_preproc_warn_flag in '' yes
3093 # Use a header file that comes with gcc, so configuring glibc
3094 # with a fresh cross-compiler works.
3095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3096 # <limits.h> exists even on freestanding compilers.
3097 # On the NeXT, cc -E runs the code through the compiler's parser,
3098 # not just through cpp. "Syntax error" is here to catch this case.
3099 cat >conftest.$ac_ext <<_ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3106 # include <limits.h>
3108 # include <assert.h>
3112 if { (ac_try="$ac_cpp conftest.$ac_ext"
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev/null && {
3125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3126 test ! -s conftest.err
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 # Broken: fails on valid input.
3137 rm -f conftest.err conftest.$ac_ext
3139 # OK, works on sane cases. Now check whether nonexistent headers
3140 # can be detected and how.
3141 cat >conftest.$ac_ext <<_ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3147 #include <ac_nonexistent.h>
3149 if { (ac_try="$ac_cpp conftest.$ac_ext"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } >/dev/null && {
3162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3163 test ! -s conftest.err
3165 # Broken: success on invalid input.
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 # Passes both tests.
3176 rm -f conftest.err conftest.$ac_ext
3179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3180 rm -f conftest.err conftest.$ac_ext
3181 if $ac_preproc_ok; then
3193 { echo "$as_me:$LINENO: result: $CPP" >&5
3194 echo "${ECHO_T}$CPP" >&6; }
3196 for ac_c_preproc_warn_flag in '' yes
3198 # Use a header file that comes with gcc, so configuring glibc
3199 # with a fresh cross-compiler works.
3200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3201 # <limits.h> exists even on freestanding compilers.
3202 # On the NeXT, cc -E runs the code through the compiler's parser,
3203 # not just through cpp. "Syntax error" is here to catch this case.
3204 cat >conftest.$ac_ext <<_ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3211 # include <limits.h>
3213 # include <assert.h>
3217 if { (ac_try="$ac_cpp conftest.$ac_ext"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } >/dev/null && {
3230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3238 # Broken: fails on valid input.
3242 rm -f conftest.err conftest.$ac_ext
3244 # OK, works on sane cases. Now check whether nonexistent headers
3245 # can be detected and how.
3246 cat >conftest.$ac_ext <<_ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3252 #include <ac_nonexistent.h>
3254 if { (ac_try="$ac_cpp conftest.$ac_ext"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3262 grep -v '^ *+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } >/dev/null && {
3267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3268 test ! -s conftest.err
3270 # Broken: success on invalid input.
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 # Passes both tests.
3281 rm -f conftest.err conftest.$ac_ext
3284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3285 rm -f conftest.err conftest.$ac_ext
3286 if $ac_preproc_ok; then
3289 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3290 See \`config.log' for more details." >&5
3291 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3292 See \`config.log' for more details." >&2;}
3293 { (exit 1); exit 1; }; }
3297 ac_cpp='$CPP $CPPFLAGS'
3298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3304 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3305 if test "${ac_cv_path_GREP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 # Extract the first word of "grep ggrep" to use in msg output
3309 if test -z "$GREP"; then
3310 set dummy grep ggrep; ac_prog_name=$2
3311 if test "${ac_cv_path_GREP+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 ac_path_GREP_found=false
3315 # Loop through the user's path and test for each of PROGNAME-LIST
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3320 test -z "$as_dir" && as_dir=.
3321 for ac_prog in grep ggrep; do
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3324 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3325 # Check for GNU ac_path_GREP and select it if it is found.
3326 # Check for GNU $ac_path_GREP
3327 case `"$ac_path_GREP" --version 2>&1` in
3329 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3332 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3335 cat "conftest.in" "conftest.in" >"conftest.tmp"
3336 mv "conftest.tmp" "conftest.in"
3337 cp "conftest.in" "conftest.nl"
3338 echo 'GREP' >> "conftest.nl"
3339 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3341 ac_count=`expr $ac_count + 1`
3342 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3343 # Best one so far, save it but keep looking for a better one
3344 ac_cv_path_GREP="$ac_path_GREP"
3345 ac_path_GREP_max=$ac_count
3347 # 10*(2^10) chars as input seems more than enough
3348 test $ac_count -gt 10 && break
3350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3354 $ac_path_GREP_found && break 3
3364 GREP="$ac_cv_path_GREP"
3365 if test -z "$GREP"; then
3366 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3367 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3368 { (exit 1); exit 1; }; }
3372 ac_cv_path_GREP=$GREP
3377 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3378 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3379 GREP="$ac_cv_path_GREP"
3382 { echo "$as_me:$LINENO: checking for egrep" >&5
3383 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3384 if test "${ac_cv_path_EGREP+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3388 then ac_cv_path_EGREP="$GREP -E"
3390 # Extract the first word of "egrep" to use in msg output
3391 if test -z "$EGREP"; then
3392 set dummy egrep; ac_prog_name=$2
3393 if test "${ac_cv_path_EGREP+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 ac_path_EGREP_found=false
3397 # Loop through the user's path and test for each of PROGNAME-LIST
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3402 test -z "$as_dir" && as_dir=.
3403 for ac_prog in egrep; do
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3406 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3407 # Check for GNU ac_path_EGREP and select it if it is found.
3408 # Check for GNU $ac_path_EGREP
3409 case `"$ac_path_EGREP" --version 2>&1` in
3411 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3414 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3417 cat "conftest.in" "conftest.in" >"conftest.tmp"
3418 mv "conftest.tmp" "conftest.in"
3419 cp "conftest.in" "conftest.nl"
3420 echo 'EGREP' >> "conftest.nl"
3421 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3423 ac_count=`expr $ac_count + 1`
3424 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3425 # Best one so far, save it but keep looking for a better one
3426 ac_cv_path_EGREP="$ac_path_EGREP"
3427 ac_path_EGREP_max=$ac_count
3429 # 10*(2^10) chars as input seems more than enough
3430 test $ac_count -gt 10 && break
3432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3436 $ac_path_EGREP_found && break 3
3446 EGREP="$ac_cv_path_EGREP"
3447 if test -z "$EGREP"; then
3448 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3449 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3450 { (exit 1); exit 1; }; }
3454 ac_cv_path_EGREP=$EGREP
3460 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3461 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3462 EGREP="$ac_cv_path_EGREP"
3466 { echo "$as_me:$LINENO: checking for AIX" >&5
3467 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3468 cat >conftest.$ac_ext <<_ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3480 $EGREP "yes" >/dev/null 2>&1; then
3481 { echo "$as_me:$LINENO: result: yes" >&5
3482 echo "${ECHO_T}yes" >&6; }
3483 cat >>confdefs.h <<\_ACEOF
3484 #define _ALL_SOURCE 1
3488 { echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6; }
3494 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3495 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3496 if test "${ac_cv_header_stdc+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest.$ac_objext; then
3535 ac_cv_header_stdc=yes
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 ac_cv_header_stdc=no
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 if test $ac_cv_header_stdc = yes; then
3546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3547 cat >conftest.$ac_ext <<_ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3557 $EGREP "memchr" >/dev/null 2>&1; then
3560 ac_cv_header_stdc=no
3566 if test $ac_cv_header_stdc = yes; then
3567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3568 cat >conftest.$ac_ext <<_ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 $EGREP "free" >/dev/null 2>&1; then
3581 ac_cv_header_stdc=no
3587 if test $ac_cv_header_stdc = yes; then
3588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3589 if test "$cross_compiling" = yes; then
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3600 #if ((' ' & 0x0FF) == 0x020)
3601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3604 # define ISLOWER(c) \
3605 (('a' <= (c) && (c) <= 'i') \
3606 || ('j' <= (c) && (c) <= 'r') \
3607 || ('s' <= (c) && (c) <= 'z'))
3608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3616 for (i = 0; i < 256; i++)
3617 if (XOR (islower (i), ISLOWER (i))
3618 || toupper (i) != TOUPPER (i))
3623 rm -f conftest$ac_exeext
3624 if { (ac_try="$ac_link"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_link") 2>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3634 { (case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639 (eval "$ac_try") 2>&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3645 echo "$as_me: program exited with status $ac_status" >&5
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3650 ac_cv_header_stdc=no
3652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3658 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3659 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3660 if test $ac_cv_header_stdc = yes; then
3662 cat >>confdefs.h <<\_ACEOF
3663 #define STDC_HEADERS 1
3668 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3678 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3679 inttypes.h stdint.h unistd.h
3681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 cat >conftest.$ac_ext <<_ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3693 $ac_includes_default
3695 #include <$ac_header>
3697 rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3714 eval "$as_ac_Header=yes"
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 eval "$as_ac_Header=no"
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_res=`eval echo '${'$as_ac_Header'}'`
3725 { echo "$as_me:$LINENO: result: $ac_res" >&5
3726 echo "${ECHO_T}$ac_res" >&6; }
3727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3728 cat >>confdefs.h <<_ACEOF
3729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3737 if test "${ac_cv_header_minix_config_h+set}" = set; then
3738 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3739 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3740 if test "${ac_cv_header_minix_config_h+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3744 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3746 # Is the header compilable?
3747 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3748 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3749 cat >conftest.$ac_ext <<_ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 $ac_includes_default
3756 #include <minix/config.h>
3758 rm -f conftest.$ac_objext
3759 if { (ac_try="$ac_compile"
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765 (eval "$ac_compile") 2>conftest.er1
3767 grep -v '^ *+' conftest.er1 >conftest.err
3769 cat conftest.err >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } && {
3772 test -z "$ac_c_werror_flag" ||
3773 test ! -s conftest.err
3774 } && test -s conftest.$ac_objext; then
3775 ac_header_compiler=yes
3777 echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3780 ac_header_compiler=no
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3785 echo "${ECHO_T}$ac_header_compiler" >&6; }
3787 # Is the header present?
3788 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3789 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3796 #include <minix/config.h>
3798 if { (ac_try="$ac_cpp conftest.$ac_ext"
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3806 grep -v '^ *+' conftest.er1 >conftest.err
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } >/dev/null && {
3811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3812 test ! -s conftest.err
3814 ac_header_preproc=yes
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 ac_header_preproc=no
3822 rm -f conftest.err conftest.$ac_ext
3823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3824 echo "${ECHO_T}$ac_header_preproc" >&6; }
3826 # So? What about this header?
3827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3829 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3830 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3831 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3832 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3833 ac_header_preproc=yes
3836 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3837 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3838 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3839 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3840 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3841 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3842 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3843 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3844 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3845 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3846 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3847 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3851 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3852 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3853 if test "${ac_cv_header_minix_config_h+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 ac_cv_header_minix_config_h=$ac_header_preproc
3858 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3859 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3862 if test $ac_cv_header_minix_config_h = yes; then
3869 if test "$MINIX" = yes; then
3871 cat >>confdefs.h <<\_ACEOF
3872 #define _POSIX_SOURCE 1
3876 cat >>confdefs.h <<\_ACEOF
3877 #define _POSIX_1_SOURCE 2
3881 cat >>confdefs.h <<\_ACEOF
3897 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3898 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
3899 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3909 # define __EXTENSIONS__ 1
3910 $ac_includes_default
3919 rm -f conftest.$ac_objext
3920 if { (ac_try="$ac_compile"
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_compile") 2>conftest.er1
3928 grep -v '^ *+' conftest.er1 >conftest.err
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && {
3933 test -z "$ac_c_werror_flag" ||
3934 test ! -s conftest.err
3935 } && test -s conftest.$ac_objext; then
3936 ac_cv_safe_to_define___extensions__=yes
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3941 ac_cv_safe_to_define___extensions__=no
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext