2 # From configure.ac Revision: 43427 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60a.
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 Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
69 # Find who we are. Look in the path if we contain no directory separator.
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
160 if test $as_have_required = yes && (eval ":
170 as_func_ret_success () {
173 as_func_ret_failure () {
178 if as_func_success; then
182 echo as_func_success failed.
185 if as_func_failure; then
187 echo as_func_failure succeeded.
190 if as_func_ret_success; then
194 echo as_func_ret_success failed.
197 if as_func_ret_failure; then
199 echo as_func_ret_failure succeeded.
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 echo positional parameters were not saved.
209 test \$exitcode = 0) || { (exit 1); exit 1; }
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
256 CONFIG_SHELL=$as_shell
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
283 as_func_ret_success () {
286 as_func_ret_failure () {
291 if as_func_success; then
295 echo as_func_success failed.
298 if as_func_failure; then
300 echo as_func_failure succeeded.
303 if as_func_ret_success; then
307 echo as_func_ret_success failed.
310 if as_func_ret_failure; then
312 echo as_func_ret_failure succeeded.
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 echo positional parameters were not saved.
322 test $exitcode = 0) || { (exit 1); exit 1; }
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
363 (eval "as_func_return () {
372 as_func_ret_success () {
375 as_func_ret_failure () {
380 if as_func_success; then
384 echo as_func_success failed.
387 if as_func_failure; then
389 echo as_func_failure succeeded.
392 if as_func_ret_success; then
396 echo as_func_ret_success failed.
399 if as_func_ret_failure; then
401 echo as_func_ret_failure succeeded.
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 echo positional parameters were not saved.
411 test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 ECHO_C= ECHO_N= ECHO_T=
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
514 test -d ./-p && rmdir ./-p
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
525 if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 exec 7<&0 </dev/null 6>&1
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix=/usr/local
552 ac_config_libobj_dir=.
558 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Identity of this package.
567 ac_unique_file="asterisk"
568 ac_unique_file="main/asterisk.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
614 program_transform_name
837 ac_precious_vars='build_alias
851 # Initialize some variables set by options.
853 ac_init_version=false
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
863 program_transform_name=s,x,x,
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE}'
888 infodir='${datarootdir}/info'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 # Accept the important Cygnus configure options, so we can diagnose typos.
915 case $ac_dashdash$ac_option in
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
937 cache_file=config.cache ;;
939 -datadir | --datadir | --datadi | --datad)
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
951 -disable-* | --disable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 -enable-* | --enable-*)
971 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
974 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
975 { (exit 1); exit 1; }; }
976 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
977 eval enable_$ac_feature=\$ac_optarg ;;
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
992 -help | --help | --hel | --he | -h)
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 htmldir=$ac_optarg ;;
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1022 -libdir | --libdir | --libdi | --libd)
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1113 -psdir | --psdir | --psdi | --psd | --ps)
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 sbindir=$ac_optarg ;;
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 sharedstatedir=$ac_optarg ;;
1139 -site | --site | --sit)
1141 -site=* | --site=* | --sit=*)
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1168 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1171 { echo "$as_me: error: invalid package name: $ac_package" >&2
1172 { (exit 1); exit 1; }; }
1173 ac_package=`echo $ac_package| sed 's/-/_/g'`
1174 eval with_$ac_package=\$ac_optarg ;;
1176 -without-* | --without-*)
1177 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid package name: $ac_package" >&2
1181 { (exit 1); exit 1; }; }
1182 ac_package=`echo $ac_package | sed 's/-/_/g'`
1183 eval with_$ac_package=no ;;
1186 # Obsolete; use --with-x.
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1203 -*) { echo "$as_me: error: unrecognized option: $ac_option
1204 Try \`$0 --help' for more information." >&2
1205 { (exit 1); exit 1; }; }
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1212 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1213 { (exit 1); exit 1; }; }
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1218 # FIXME: should be removed in autoconf 3.0.
1219 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228 if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 { echo "$as_me: error: missing argument to $ac_option" >&2
1231 { (exit 1); exit 1; }; }
1234 # Be sure to have absolute directory names.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir
1240 eval ac_val=\$$ac_var
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1246 { (exit 1); exit 1; }; }
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1254 target=$target_alias
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1261 If a cross compiler is detected then cross compile mode will be used." >&2
1262 elif test "x$build_alias" != "x$host_alias"; then
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270 test "$silent" = yes && exec 6>/dev/null
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 { echo "$as_me: error: Working directory cannot be determined" >&2
1277 { (exit 1); exit 1; }; }
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 { echo "$as_me: error: pwd does not report name of working directory" >&2
1280 { (exit 1); exit 1; }; }
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$0" ||
1288 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$0" : 'X\(//\)[^/]' \| \
1290 X"$0" : 'X\(//\)$' \| \
1291 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1315 ac_srcdir_defaulted=no
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1320 { (exit 1); exit 1; }; }
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1325 { (exit 1); exit 1; }; }
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 # Report the --help message.
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1351 \`configure' configures this package to adapt to many kinds of systems.
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1358 Defaults for the options are specified in brackets.
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1382 For better control, use the options below.
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 if test -n "$ac_init_help"; then
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421 --enable-dev-mode Turn on developer mode
1422 --disable-largefile omit support for large files
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1428 --with-curses=PATH use curses files in PATH
1429 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1431 --with-gsm=PATH use GSM files in PATH , or 'internal'
1432 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1433 --with-imap=PATH use UW IMAP Toolkit files in PATH
1434 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1435 --with-kde=PATH use KDE files in PATH
1436 --with-misdn=PATH use mISDN User Library files in PATH
1437 --with-nbs=PATH use Network Broadcast Sound files in PATH
1438 --with-ncurses=PATH use ncurses files in PATH
1439 --with-netsnmp=PATH use Net-SNMP files in PATH
1440 --with-newt=PATH use newt files in PATH
1441 --with-odbc=PATH use unixODBC files in PATH
1442 --with-ogg=PATH use OGG files in PATH
1443 --with-osptk=PATH use OSP Toolkit files in PATH
1444 --with-oss=PATH use Open Sound System files in PATH
1445 --with-popt=PATH use popt files in PATH
1446 --with-postgres=PATH use PostgreSQL files in PATH
1447 --with-pri=PATH use ISDN PRI files in PATH
1448 --with-ss7=PATH use ISDN SS7 files in PATH
1449 --with-pwlib=PATH use PWlib files in PATH
1450 --with-h323=PATH use OpenH323 files in PATH
1451 --with-qt=PATH use Qt files in PATH
1452 --with-radius=PATH use Radius Client files in PATH
1453 --with-speex=PATH use Speex files in PATH
1454 --with-sqlite=PATH use SQLite files in PATH
1455 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1456 --with-ssl=PATH use OpenSSL files in PATH
1457 --with-tds=PATH use FreeTDS files in PATH
1458 --with-termcap=PATH use Termcap files in PATH
1459 --with-tinfo=PATH use Term Info files in PATH
1460 --with-tonezone=PATH use tonezone files in PATH
1461 --with-vorbis=PATH use Vorbis files in PATH
1462 --with-vpb=PATH use Voicetronix API files in PATH
1463 --with-z=PATH use zlib files in PATH
1464 --with-zaptel=PATH use Zaptel files in PATH
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
1476 CXXCPP C++ preprocessor
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" || continue
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1508 .) # We are building in place.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1532 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1542 generated by GNU Autoconf 2.60a
1544 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1545 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1553 cat >config.log <<_ACEOF
1554 This file contains any messages produced by compilers while
1555 running configure, to aid debugging if configure makes a mistake.
1557 It was created by $as_me, which was
1558 generated by GNU Autoconf 2.60a. Invocation command line was
1570 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1577 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1579 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1580 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1581 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1582 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1583 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1584 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1585 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 test -z "$as_dir" && as_dir=.
1594 echo "PATH: $as_dir"
1610 # Keep a trace of the command line.
1611 # Strip out --no-create and --no-recursion so they do not pile up.
1612 # Strip out --silent because we don't want to record it for future runs.
1613 # Also quote any args containing shell meta-characters.
1614 # Make two passes to allow for proper duplicate-argument suppression.
1618 ac_must_keep_next=false
1624 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626 | -silent | --silent | --silen | --sile | --sil)
1629 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1632 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1634 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1635 if test $ac_must_keep_next = true; then
1636 ac_must_keep_next=false # Got value, back to normal.
1639 *=* | --config-cache | -C | -disable-* | --disable-* \
1640 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642 | -with-* | --with-* | -without-* | --without-* | --x)
1643 case "$ac_configure_args0 " in
1644 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1647 -* ) ac_must_keep_next=true ;;
1650 ac_configure_args="$ac_configure_args '$ac_arg'"
1655 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1656 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1658 # When interrupted or exit'd, cleanup temporary files, and complete
1659 # config.log. We remove comments because anyway the quotes in there
1660 # would cause problems or look ugly.
1661 # WARNING: Use '\'' to represent an apostrophe within the trap.
1662 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1663 trap 'exit_status=$?
1664 # Save into config.log some information that might help in debugging.
1669 ## ---------------- ##
1670 ## Cache variables. ##
1671 ## ---------------- ##
1674 # The following way of writing the cache mishandles newlines in values,
1676 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1677 eval ac_val=\$$ac_var
1681 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1682 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1685 _ | IFS | as_nl) ;; #(
1686 *) $as_unset $ac_var ;;
1691 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1692 *${as_nl}ac_space=\ *)
1694 "s/'\''/'\''\\\\'\'''\''/g;
1695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1706 ## ----------------- ##
1707 ## Output variables. ##
1708 ## ----------------- ##
1711 for ac_var in $ac_subst_vars
1713 eval ac_val=\$$ac_var
1715 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717 echo "$ac_var='\''$ac_val'\''"
1721 if test -n "$ac_subst_files"; then
1723 ## ------------------- ##
1724 ## File substitutions. ##
1725 ## ------------------- ##
1728 for ac_var in $ac_subst_files
1730 eval ac_val=\$$ac_var
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 echo "$ac_var='\''$ac_val'\''"
1739 if test -s confdefs.h; then
1749 test "$ac_signal" != 0 &&
1750 echo "$as_me: caught signal $ac_signal"
1751 echo "$as_me: exit $exit_status"
1753 rm -f core *.core core.conftest.* &&
1754 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1757 for ac_signal in 1 2 13 15; do
1758 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1763 rm -f -r conftest* confdefs.h
1765 # Predefined preprocessor variables.
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_NAME "$PACKAGE_NAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_STRING "$PACKAGE_STRING"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1792 # Let the site file select an alternate cache file if it wants to.
1793 # Prefer explicitly selected file to automatically selected ones.
1794 if test -n "$CONFIG_SITE"; then
1795 set x "$CONFIG_SITE"
1796 elif test "x$prefix" != xNONE; then
1797 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1799 set x "$ac_default_prefix/share/config.site" \
1800 "$ac_default_prefix/etc/config.site"
1805 if test -r "$ac_site_file"; then
1806 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1807 echo "$as_me: loading site script $ac_site_file" >&6;}
1808 sed 's/^/| /' "$ac_site_file" >&5
1813 if test -r "$cache_file"; then
1814 # Some versions of bash will fail to source /dev/null (special
1815 # files actually), so we avoid doing that.
1816 if test -f "$cache_file"; then
1817 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1818 echo "$as_me: loading cache $cache_file" >&6;}
1820 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1821 *) . "./$cache_file";;
1825 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1826 echo "$as_me: creating cache $cache_file" >&6;}
1830 # Check that the precious variables saved in the cache have kept the same
1832 ac_cache_corrupted=false
1833 for ac_var in $ac_precious_vars; do
1834 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1835 eval ac_new_set=\$ac_env_${ac_var}_set
1836 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1837 eval ac_new_val=\$ac_env_${ac_var}_value
1838 case $ac_old_set,$ac_new_set in
1840 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1842 ac_cache_corrupted=: ;;
1844 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1845 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1846 ac_cache_corrupted=: ;;
1849 if test "x$ac_old_val" != "x$ac_new_val"; then
1850 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1851 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1852 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1853 echo "$as_me: former value: $ac_old_val" >&2;}
1854 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1855 echo "$as_me: current value: $ac_new_val" >&2;}
1856 ac_cache_corrupted=:
1859 # Pass precious variables to config.status.
1860 if test "$ac_new_set" = set; then
1862 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1863 *) ac_arg=$ac_var=$ac_new_val ;;
1865 case " $ac_configure_args " in
1866 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1867 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1871 if $ac_cache_corrupted; then
1872 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1873 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1874 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1875 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1876 { (exit 1); exit 1; }; }
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903 # cross-compile macros
1905 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1906 if test -f "$ac_dir/install-sh"; then
1908 ac_install_sh="$ac_aux_dir/install-sh -c"
1910 elif test -f "$ac_dir/install.sh"; then
1912 ac_install_sh="$ac_aux_dir/install.sh -c"
1914 elif test -f "$ac_dir/shtool"; then
1916 ac_install_sh="$ac_aux_dir/shtool install -c"
1920 if test -z "$ac_aux_dir"; then
1921 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1922 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1923 { (exit 1); exit 1; }; }
1926 # These three variables are undocumented and unsupported,
1927 # and are intended to be withdrawn in a future Autoconf release.
1928 # They can cause serious problems if a builder's source tree is in a directory
1929 # whose full name contains unusual characters.
1930 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1931 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1932 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1935 # Make sure we can run config.sub.
1936 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1937 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1938 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1939 { (exit 1); exit 1; }; }
1941 { echo "$as_me:$LINENO: checking build system type" >&5
1942 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1943 if test "${ac_cv_build+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 ac_build_alias=$build_alias
1947 test "x$ac_build_alias" = x &&
1948 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1949 test "x$ac_build_alias" = x &&
1950 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1951 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1952 { (exit 1); exit 1; }; }
1953 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1954 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1955 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1956 { (exit 1); exit 1; }; }
1959 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1960 echo "${ECHO_T}$ac_cv_build" >&6; }
1961 case $ac_cv_build in
1963 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1964 echo "$as_me: error: invalid value of canonical build" >&2;}
1965 { (exit 1); exit 1; }; };;
1968 ac_save_IFS=$IFS; IFS='-'
1974 # Remember, the first character of IFS is used to create $*,
1975 # except with old shells:
1978 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1981 { echo "$as_me:$LINENO: checking host system type" >&5
1982 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1983 if test "${ac_cv_host+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 if test "x$host_alias" = x; then
1987 ac_cv_host=$ac_cv_build
1989 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1990 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1991 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1992 { (exit 1); exit 1; }; }
1996 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1997 echo "${ECHO_T}$ac_cv_host" >&6; }
2000 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2001 echo "$as_me: error: invalid value of canonical host" >&2;}
2002 { (exit 1); exit 1; }; };;
2005 ac_save_IFS=$IFS; IFS='-'
2011 # Remember, the first character of IFS is used to create $*,
2012 # except with old shells:
2015 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2019 # check existence of the package
2022 # specify output header file
2023 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2029 case "${host_os}" in
2031 ac_default_prefix=/usr/local
2034 ac_default_prefix=/usr
2035 if test ${sysconfdir} = '${prefix}/etc'; then
2038 if test ${mandir} = '${prefix}/man'; then
2039 mandir=/usr/share/man
2044 if test ${localstatedir} = '${prefix}/var'; then
2048 BUILD_PLATFORM=${build}
2049 BUILD_CPU=${build_cpu}
2050 BUILD_VENDOR=${build_vendor}
2051 BUILD_OS=${build_os}
2058 HOST_PLATFORM=${host}
2059 HOST_CPU=${host_cpu}
2060 HOST_VENDOR=${host_vendor}
2068 case "${host_os}" in
2089 if test -n "$ac_tool_prefix"; then
2090 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2091 set dummy ${ac_tool_prefix}uname; ac_word=$2
2092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094 if test "${ac_cv_path_UNAME+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2109 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 UNAME=$ac_cv_path_UNAME
2121 if test -n "$UNAME"; then
2122 { echo "$as_me:$LINENO: result: $UNAME" >&5
2123 echo "${ECHO_T}$UNAME" >&6; }
2125 { echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6; }
2131 if test -z "$ac_cv_path_UNAME"; then
2133 # Extract the first word of "uname", so it can be a program name with args.
2134 set dummy uname; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 case $ac_pt_UNAME in
2142 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2152 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2164 if test -n "$ac_pt_UNAME"; then
2165 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2166 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2168 { echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6; }
2172 if test "x$ac_pt_UNAME" = x; then
2175 case $cross_compiling:$ac_tool_warned in
2177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2178 whose name does not start with the host triplet. If you think this
2179 configuration is useful to you, please write to autoconf@gnu.org." >&5
2180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2181 whose name does not start with the host triplet. If you think this
2182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2183 ac_tool_warned=yes ;;
2188 UNAME="$ac_cv_path_UNAME"
2191 if test ! x"${UNAME}" = xNo; then
2192 PBX_OSREV=$(${UNAME} -r)
2196 # This needs to be before any macros that use the C compiler
2198 cat >>confdefs.h <<\_ACEOF
2199 #define _GNU_SOURCE 1
2210 # cross-compile checks
2211 if test "${cross_compiling}" = "yes";
2213 if test -n "$ac_tool_prefix"; then
2214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2215 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_CC+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 if test -n "$CC"; then
2222 ac_cv_prog_CC="$CC" # Let the user override the test.
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 if test -n "$CC"; then
2243 { echo "$as_me:$LINENO: result: $CC" >&5
2244 echo "${ECHO_T}$CC" >&6; }
2246 { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2252 if test -z "$ac_cv_prog_CC"; then
2254 # Extract the first word of "gcc", so it can be a program name with args.
2255 set dummy gcc; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 if test -n "$ac_ct_CC"; then
2262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2271 ac_cv_prog_ac_ct_CC="gcc"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6; }
2286 { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2290 if test "x$ac_ct_CC" = x; then
2293 case $cross_compiling:$ac_tool_warned in
2295 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2296 whose name does not start with the host triplet. If you think this
2297 configuration is useful to you, please write to autoconf@gnu.org." >&5
2298 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2299 whose name does not start with the host triplet. If you think this
2300 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2301 ac_tool_warned=yes ;;
2309 if test -n "$ac_tool_prefix"; then
2310 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2311 set dummy ${ac_tool_prefix}g++; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_CXX+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$CXX"; then
2318 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 if test -n "$CXX"; then
2339 { echo "$as_me:$LINENO: result: $CXX" >&5
2340 echo "${ECHO_T}$CXX" >&6; }
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2348 if test -z "$ac_cv_prog_CXX"; then
2350 # Extract the first word of "g++", so it can be a program name with args.
2351 set dummy g++; ac_word=$2
2352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 if test -n "$ac_ct_CXX"; then
2358 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2367 ac_cv_prog_ac_ct_CXX="g++"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2378 if test -n "$ac_ct_CXX"; then
2379 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2380 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2382 { echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6; }
2386 if test "x$ac_ct_CXX" = x; then
2389 case $cross_compiling:$ac_tool_warned in
2391 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2392 whose name does not start with the host triplet. If you think this
2393 configuration is useful to you, please write to autoconf@gnu.org." >&5
2394 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2395 whose name does not start with the host triplet. If you think this
2396 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2397 ac_tool_warned=yes ;;
2402 CXX="$ac_cv_prog_CXX"
2405 if test -n "$ac_tool_prefix"; then
2406 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2407 set dummy ${ac_tool_prefix}ld; ac_word=$2
2408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2410 if test "${ac_cv_prog_LD+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 if test -n "$LD"; then
2414 ac_cv_prog_LD="$LD" # Let the user override the test.
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2423 ac_cv_prog_LD="${ac_tool_prefix}ld"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 if test -n "$LD"; then
2435 { echo "$as_me:$LINENO: result: $LD" >&5
2436 echo "${ECHO_T}$LD" >&6; }
2438 { echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6; }
2444 if test -z "$ac_cv_prog_LD"; then
2446 # Extract the first word of "ld", so it can be a program name with args.
2447 set dummy ld; ac_word=$2
2448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2450 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 if test -n "$ac_ct_LD"; then
2454 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2463 ac_cv_prog_ac_ct_LD="ld"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2474 if test -n "$ac_ct_LD"; then
2475 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2476 echo "${ECHO_T}$ac_ct_LD" >&6; }
2478 { echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6; }
2482 if test "x$ac_ct_LD" = x; then
2485 case $cross_compiling:$ac_tool_warned in
2487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet. If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&5
2490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet. If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2493 ac_tool_warned=yes ;;
2501 if test -n "$ac_tool_prefix"; then
2502 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2503 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_RANLIB+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 if test -n "$RANLIB"; then
2510 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 RANLIB=$ac_cv_prog_RANLIB
2530 if test -n "$RANLIB"; then
2531 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2532 echo "${ECHO_T}$RANLIB" >&6; }
2534 { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2540 if test -z "$ac_cv_prog_RANLIB"; then
2541 ac_ct_RANLIB=$RANLIB
2542 # Extract the first word of "ranlib", so it can be a program name with args.
2543 set dummy ranlib; ac_word=$2
2544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 if test -n "$ac_ct_RANLIB"; then
2550 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_ac_ct_RANLIB="ranlib"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2570 if test -n "$ac_ct_RANLIB"; then
2571 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2572 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2574 { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2578 if test "x$ac_ct_RANLIB" = x; then
2581 case $cross_compiling:$ac_tool_warned in
2583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2584 whose name does not start with the host triplet. If you think this
2585 configuration is useful to you, please write to autoconf@gnu.org." >&5
2586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2587 whose name does not start with the host triplet. If you think this
2588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2589 ac_tool_warned=yes ;;
2591 RANLIB=$ac_ct_RANLIB
2594 RANLIB="$ac_cv_prog_RANLIB"
2597 if test -n "$ac_tool_prefix"; then
2598 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2599 set dummy ${ac_tool_prefix}ar; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_AR+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 if test -n "$AR"; then
2606 ac_cv_prog_AR="$AR" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_AR="${ac_tool_prefix}ar"
2616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 if test -n "$AR"; then
2627 { echo "$as_me:$LINENO: result: $AR" >&5
2628 echo "${ECHO_T}$AR" >&6; }
2630 { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2636 if test -z "$ac_cv_prog_AR"; then
2638 # Extract the first word of "ar", so it can be a program name with args.
2639 set dummy ar; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -n "$ac_ct_AR"; then
2646 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_ac_ct_AR="ar"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2666 if test -n "$ac_ct_AR"; then
2667 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2668 echo "${ECHO_T}$ac_ct_AR" >&6; }
2670 { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2674 if test "x$ac_ct_AR" = x; then
2677 case $cross_compiling:$ac_tool_warned in
2679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&5
2682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet. If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2685 ac_tool_warned=yes ;;
2695 # Checks for programs.
2697 ac_cpp='$CPP $CPPFLAGS'
2698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701 if test -n "$ac_tool_prefix"; then
2702 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2703 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2706 if test "${ac_cv_prog_CC+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 if test -n "$CC"; then
2731 { echo "$as_me:$LINENO: result: $CC" >&5
2732 echo "${ECHO_T}$CC" >&6; }
2734 { echo "$as_me:$LINENO: result: no" >&5
2735 echo "${ECHO_T}no" >&6; }
2740 if test -z "$ac_cv_prog_CC"; then
2742 # Extract the first word of "gcc", so it can be a program name with args.
2743 set dummy gcc; ac_word=$2
2744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2746 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 if test -n "$ac_ct_CC"; then
2750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_ac_ct_CC="gcc"
2760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2770 if test -n "$ac_ct_CC"; then
2771 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2772 echo "${ECHO_T}$ac_ct_CC" >&6; }
2774 { echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6; }
2778 if test "x$ac_ct_CC" = x; then
2781 case $cross_compiling:$ac_tool_warned in
2783 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2784 whose name does not start with the host triplet. If you think this
2785 configuration is useful to you, please write to autoconf@gnu.org." >&5
2786 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2787 whose name does not start with the host triplet. If you think this
2788 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2789 ac_tool_warned=yes ;;
2797 if test -z "$CC"; then
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}cc; ac_word=$2
2801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2803 if test "${ac_cv_prog_CC+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_CC="${ac_tool_prefix}cc"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test -n "$CC"; then
2828 { echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6; }
2831 { echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6; }
2838 if test -z "$CC"; then
2839 # Extract the first word of "cc", so it can be a program name with args.
2840 set dummy cc; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_CC+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2858 ac_prog_rejected=yes
2862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 if test $ac_prog_rejected = yes; then
2870 # We found a bogon in the path, so make sure we never use it.
2871 set dummy $ac_cv_prog_CC
2873 if test $# != 0; then
2874 # We chose a different compiler from the bogus one.
2875 # However, it has the same basename, so the bogon will be chosen
2876 # first if we set CC to just the basename; use the full file name.
2878 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2884 if test -n "$CC"; then
2885 { echo "$as_me:$LINENO: result: $CC" >&5
2886 echo "${ECHO_T}$CC" >&6; }
2888 { echo "$as_me:$LINENO: result: no" >&5
2889 echo "${ECHO_T}no" >&6; }
2894 if test -z "$CC"; then
2895 if test -n "$ac_tool_prefix"; then
2896 for ac_prog in cl.exe
2898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2902 if test "${ac_cv_prog_CC+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 if test -n "$CC"; then
2906 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 if test -n "$CC"; then
2927 { echo "$as_me:$LINENO: result: $CC" >&5
2928 echo "${ECHO_T}$CC" >&6; }
2930 { echo "$as_me:$LINENO: result: no" >&5
2931 echo "${ECHO_T}no" >&6; }
2935 test -n "$CC" && break
2938 if test -z "$CC"; then
2940 for ac_prog in cl.exe
2942 # Extract the first word of "$ac_prog", so it can be a program name with args.
2943 set dummy $ac_prog; ac_word=$2
2944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2946 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 if test -n "$ac_ct_CC"; then
2950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_ac_ct_CC="$ac_prog"
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2970 if test -n "$ac_ct_CC"; then
2971 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2972 echo "${ECHO_T}$ac_ct_CC" >&6; }
2974 { echo "$as_me:$LINENO: result: no" >&5
2975 echo "${ECHO_T}no" >&6; }
2979 test -n "$ac_ct_CC" && break
2982 if test "x$ac_ct_CC" = x; then
2985 case $cross_compiling:$ac_tool_warned in
2987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2988 whose name does not start with the host triplet. If you think this
2989 configuration is useful to you, please write to autoconf@gnu.org." >&5
2990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2991 whose name does not start with the host triplet. If you think this
2992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2993 ac_tool_warned=yes ;;
3002 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: no acceptable C compiler found in \$PATH
3005 See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3008 # Provide some information about the compiler.
3009 echo "$as_me:$LINENO: checking for C compiler version" >&5
3010 ac_compiler=`set X $ac_compile; echo $2`
3011 { (ac_try="$ac_compiler --version >&5"
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compiler --version >&5") 2>&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }
3021 { (ac_try="$ac_compiler -v >&5"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compiler -v >&5") 2>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }
3031 { (ac_try="$ac_compiler -V >&5"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compiler -V >&5") 2>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 ac_clean_files_save=$ac_clean_files
3058 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3059 # Try to create an executable without -o first, disregard a.out.
3060 # It will help us diagnose broken compilers, and finding out an intuition
3062 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3063 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3064 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3066 # List of possible output files, starting from the most likely.
3067 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3068 # only as a last resort. b.out is created by i960 compilers.
3069 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3071 # The IRIX 6 linker writes into existing files which may not be
3072 # executable, retaining their permissions. Remove them first so a
3073 # subsequent execution test works.
3075 for ac_file in $ac_files
3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3079 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3084 if { (ac_try="$ac_link_default"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_link_default") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; then
3094 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3095 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3096 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3097 # so that the user can short-circuit this test for compilers unknown to
3099 for ac_file in $ac_files ''
3101 test -f "$ac_file" || continue
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3106 # We found the default executable, but exeext='' is most
3110 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3112 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114 # We set ac_cv_exeext here because the later test for it is not
3115 # safe: cross compilers may not add the suffix if given an `-o'
3116 # argument, so we may need to know it at that point already.
3117 # Even if this section looks crufty: it has the advantage of
3124 test "$ac_cv_exeext" = no && ac_cv_exeext=
3130 { echo "$as_me:$LINENO: result: $ac_file" >&5
3131 echo "${ECHO_T}$ac_file" >&6; }
3132 if test -z "$ac_file"; then
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3137 See \`config.log' for more details." >&5
3138 echo "$as_me: error: C compiler cannot create executables
3139 See \`config.log' for more details." >&2;}
3140 { (exit 77); exit 77; }; }
3143 ac_exeext=$ac_cv_exeext
3145 # Check that the compiler produces executables we can run. If not, either
3146 # the compiler is broken, or we cross compile.
3147 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3150 # If not cross compiling, check that we can run a simple program.
3151 if test "$cross_compiling" != yes; then
3152 if { ac_try='./$ac_file'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3164 if test "$cross_compiling" = maybe; then
3167 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3168 If you meant to cross compile, use \`--host'.
3169 See \`config.log' for more details." >&5
3170 echo "$as_me: error: cannot run C compiled programs.
3171 If you meant to cross compile, use \`--host'.
3172 See \`config.log' for more details." >&2;}
3173 { (exit 1); exit 1; }; }
3177 { echo "$as_me:$LINENO: result: yes" >&5
3178 echo "${ECHO_T}yes" >&6; }
3180 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3181 ac_clean_files=$ac_clean_files_save
3182 # Check that the compiler produces executables we can run. If not, either
3183 # the compiler is broken, or we cross compile.
3184 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3185 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3186 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3187 echo "${ECHO_T}$cross_compiling" >&6; }
3189 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3190 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3191 if { (ac_try="$ac_link"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_link") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; then
3201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3202 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3203 # work properly (i.e., refer to `conftest.exe'), while it won't with
3205 for ac_file in conftest.exe conftest conftest.*; do
3206 test -f "$ac_file" || continue
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3209 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3215 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3216 See \`config.log' for more details." >&5
3217 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3218 See \`config.log' for more details." >&2;}
3219 { (exit 1); exit 1; }; }
3222 rm -f conftest$ac_cv_exeext
3223 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3224 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3226 rm -f conftest.$ac_ext
3227 EXEEXT=$ac_cv_exeext
3229 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3230 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3231 if test "${ac_cv_objext+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 cat >conftest.$ac_ext <<_ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3249 rm -f conftest.o conftest.obj
3250 if { (ac_try="$ac_compile"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_compile") 2>&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; then
3260 for ac_file in conftest.o conftest.obj conftest.*; do
3261 test -f "$ac_file" || continue;
3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3264 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3269 echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3272 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3273 See \`config.log' for more details." >&5
3274 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3275 See \`config.log' for more details." >&2;}
3276 { (exit 1); exit 1; }; }
3279 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3281 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3282 echo "${ECHO_T}$ac_cv_objext" >&6; }
3283 OBJEXT=$ac_cv_objext
3285 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3286 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3287 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 cat >conftest.$ac_ext <<_ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3308 rm -f conftest.$ac_objext
3309 if { (ac_try="$ac_compile"
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_compile") 2>conftest.er1
3317 grep -v '^ *+' conftest.er1 >conftest.err
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } &&
3322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3323 { (case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_try") 2>&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; } &&
3332 { ac_try='test -s conftest.$ac_objext'
3333 { (case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_try") 2>&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3354 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3355 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3356 GCC=`test $ac_compiler_gnu = yes && echo yes`
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3361 if test "${ac_cv_prog_cc_g+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 ac_save_c_werror_flag=$ac_c_werror_flag
3365 ac_c_werror_flag=yes
3368 cat >conftest.$ac_ext <<_ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3383 rm -f conftest.$ac_objext
3384 if { (ac_try="$ac_compile"
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_compile") 2>conftest.er1
3392 grep -v '^ *+' conftest.er1 >conftest.err
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } &&
3397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3398 { (case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_try") 2>&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; } &&
3407 { ac_try='test -s conftest.$ac_objext'
3408 { (case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_try") 2>&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_compile") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3453 { (case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_try") 2>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; } &&
3462 { ac_try='test -s conftest.$ac_objext'
3463 { (case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468 (eval "$ac_try") 2>&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3477 ac_c_werror_flag=$ac_save_c_werror_flag
3479 cat >conftest.$ac_ext <<_ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3494 rm -f conftest.$ac_objext
3495 if { (ac_try="$ac_compile"
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_compile") 2>conftest.er1
3503 grep -v '^ *+' conftest.er1 >conftest.err
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3509 { (case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_try") 2>&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; } &&
3518 { ac_try='test -s conftest.$ac_objext'
3519 { (case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_try") 2>&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 ac_c_werror_flag=$ac_save_c_werror_flag
3545 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3546 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3547 if test "$ac_test_CFLAGS" = set; then
3548 CFLAGS=$ac_save_CFLAGS
3549 elif test $ac_cv_prog_cc_g = yes; then
3550 if test "$GCC" = yes; then
3556 if test "$GCC" = yes; then
3562 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3563 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3564 if test "${ac_cv_prog_cc_c89+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 ac_cv_prog_cc_c89=no
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3577 #include <sys/types.h>
3578 #include <sys/stat.h>
3579 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3580 struct buf { int x; };
3581 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3582 static char *e (p, i)
3588 static char *f (char * (*g) (char **, int), char **p, ...)
3593 s = g (p, va_arg (v,int));
3598 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3599 function prototypes and stuff, but not '\xHH' hex character constants.
3600 These don't provoke an error unfortunately, instead are silently treated
3601 as 'x'. The following induces an error, until -std is added to get
3602 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3603 array size at least. It's necessary to write '\x00'==0 to get something
3604 that's true only with -std. */
3605 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3607 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3608 inside strings and character constants. */
3610 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3612 int test (int i, double x);
3613 struct s1 {int (*f) (int a);};
3614 struct s2 {int (*f) (double a);};
3615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3621 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3626 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3627 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3629 CC="$ac_save_CC $ac_arg"
3630 rm -f conftest.$ac_objext
3631 if { (ac_try="$ac_compile"
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_compile") 2>conftest.er1
3639 grep -v '^ *+' conftest.er1 >conftest.err
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } &&
3644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3645 { (case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650 (eval "$ac_try") 2>&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; } &&
3654 { ac_try='test -s conftest.$ac_objext'
3655 { (case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_try") 2>&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 ac_cv_prog_cc_c89=$ac_arg
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3672 rm -f core conftest.err conftest.$ac_objext
3673 test "x$ac_cv_prog_cc_c89" != "xno" && break
3675 rm -f conftest.$ac_ext
3680 case "x$ac_cv_prog_cc_c89" in
3682 { echo "$as_me:$LINENO: result: none needed" >&5
3683 echo "${ECHO_T}none needed" >&6; } ;;
3685 { echo "$as_me:$LINENO: result: unsupported" >&5
3686 echo "${ECHO_T}unsupported" >&6; } ;;
3688 CC="$CC $ac_cv_prog_cc_c89"
3689 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3690 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 ac_cpp='$CXXCPP $CPPFLAGS'
3702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3705 if test -z "$CXX"; then
3706 if test -n "$CCC"; then
3709 if test -n "$ac_tool_prefix"; then
3710 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3716 if test "${ac_cv_prog_CXX+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 if test -n "$CXX"; then
3720 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3729 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 if test -n "$CXX"; then
3741 { echo "$as_me:$LINENO: result: $CXX" >&5
3742 echo "${ECHO_T}$CXX" >&6; }
3744 { echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6; }
3749 test -n "$CXX" && break
3752 if test -z "$CXX"; then
3754 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3756 # Extract the first word of "$ac_prog", so it can be a program name with args.
3757 set dummy $ac_prog; ac_word=$2
3758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3760 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 if test -n "$ac_ct_CXX"; then
3764 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3773 ac_cv_prog_ac_ct_CXX="$ac_prog"
3774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3784 if test -n "$ac_ct_CXX"; then
3785 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3786 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3788 { echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6; }
3793 test -n "$ac_ct_CXX" && break
3796 if test "x$ac_ct_CXX" = x; then
3799 case $cross_compiling:$ac_tool_warned in
3801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3802 whose name does not start with the host triplet. If you think this
3803 configuration is useful to you, please write to autoconf@gnu.org." >&5
3804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3805 whose name does not start with the host triplet. If you think this
3806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3807 ac_tool_warned=yes ;;
3815 # Provide some information about the compiler.
3816 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3817 ac_compiler=`set X $ac_compile; echo $2`
3818 { (ac_try="$ac_compiler --version >&5"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_compiler --version >&5") 2>&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }
3828 { (ac_try="$ac_compiler -v >&5"
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_compiler -v >&5") 2>&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }
3838 { (ac_try="$ac_compiler -V >&5"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_compiler -V >&5") 2>&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }
3849 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3850 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3851 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 cat >conftest.$ac_ext <<_ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3872 rm -f conftest.$ac_objext
3873 if { (ac_try="$ac_compile"
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_compile") 2>conftest.er1
3881 grep -v '^ *+' conftest.er1 >conftest.err
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } &&
3886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3887 { (case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_try") 2>&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest.$ac_objext'
3897 { (case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_try") 2>&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3918 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3919 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3920 GXX=`test $ac_compiler_gnu = yes && echo yes`
3921 ac_test_CXXFLAGS=${CXXFLAGS+set}
3922 ac_save_CXXFLAGS=$CXXFLAGS
3923 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3924 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3925 if test "${ac_cv_prog_cxx_g+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3929 ac_cxx_werror_flag=yes
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3947 rm -f conftest.$ac_objext
3948 if { (ac_try="$ac_compile"
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3956 grep -v '^ *+' conftest.er1 >conftest.err
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } &&
3961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3962 { (case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_try") 2>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; } &&
3971 { ac_try='test -s conftest.$ac_objext'
3972 { (case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_try") 2>&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3981 ac_cv_prog_cxx_g=yes
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
4002 rm -f conftest.$ac_objext
4003 if { (ac_try="$ac_compile"
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_compile") 2>conftest.er1
4011 grep -v '^ *+' conftest.er1 >conftest.err
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4017 { (case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_try") 2>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; } &&
4026 { ac_try='test -s conftest.$ac_objext'
4027 { (case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_try") 2>&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4041 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4043 cat >conftest.$ac_ext <<_ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4058 rm -f conftest.$ac_objext
4059 if { (ac_try="$ac_compile"
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_compile") 2>conftest.er1
4067 grep -v '^ *+' conftest.er1 >conftest.err
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4073 { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_try") 2>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 ac_cv_prog_cxx_g=yes
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4109 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4110 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4111 if test "$ac_test_CXXFLAGS" = set; then
4112 CXXFLAGS=$ac_save_CXXFLAGS
4113 elif test $ac_cv_prog_cxx_g = yes; then
4114 if test "$GXX" = yes; then
4120 if test "$GXX" = yes; then
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4138 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4139 # On Suns, sometimes $CPP names a directory.
4140 if test -n "$CPP" && test -d "$CPP"; then
4143 if test -z "$CPP"; then
4144 if test "${ac_cv_prog_CPP+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 # Double quotes because CPP needs to be expanded
4148 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4151 for ac_c_preproc_warn_flag in '' yes
4153 # Use a header file that comes with gcc, so configuring glibc
4154 # with a fresh cross-compiler works.
4155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4156 # <limits.h> exists even on freestanding compilers.
4157 # On the NeXT, cc -E runs the code through the compiler's parser,
4158 # not just through cpp. "Syntax error" is here to catch this case.
4159 cat >conftest.$ac_ext <<_ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4166 # include <limits.h>
4168 # include <assert.h>
4172 if { (ac_try="$ac_cpp conftest.$ac_ext"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4180 grep -v '^ *+' conftest.er1 >conftest.err
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } >/dev/null; then
4185 if test -s conftest.err; then
4186 ac_cpp_err=$ac_c_preproc_warn_flag
4187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4194 if test -z "$ac_cpp_err"; then
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4200 # Broken: fails on valid input.
4204 rm -f conftest.err conftest.$ac_ext
4206 # OK, works on sane cases. Now check whether nonexistent headers
4207 # can be detected and how.
4208 cat >conftest.$ac_ext <<_ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 #include <ac_nonexistent.h>
4216 if { (ac_try="$ac_cpp conftest.$ac_ext"
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4224 grep -v '^ *+' conftest.er1 >conftest.err
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } >/dev/null; then
4229 if test -s conftest.err; then
4230 ac_cpp_err=$ac_c_preproc_warn_flag
4231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4238 if test -z "$ac_cpp_err"; then
4239 # Broken: success on invalid input.
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 # Passes both tests.
4250 rm -f conftest.err conftest.$ac_ext
4253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4254 rm -f conftest.err conftest.$ac_ext
4255 if $ac_preproc_ok; then
4267 { echo "$as_me:$LINENO: result: $CPP" >&5
4268 echo "${ECHO_T}$CPP" >&6; }
4270 for ac_c_preproc_warn_flag in '' yes
4272 # Use a header file that comes with gcc, so configuring glibc
4273 # with a fresh cross-compiler works.
4274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4275 # <limits.h> exists even on freestanding compilers.
4276 # On the NeXT, cc -E runs the code through the compiler's parser,
4277 # not just through cpp. "Syntax error" is here to catch this case.
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4285 # include <limits.h>
4287 # include <assert.h>
4291 if { (ac_try="$ac_cpp conftest.$ac_ext"
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4299 grep -v '^ *+' conftest.er1 >conftest.err
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } >/dev/null; then
4304 if test -s conftest.err; then
4305 ac_cpp_err=$ac_c_preproc_warn_flag
4306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4313 if test -z "$ac_cpp_err"; then
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 # Broken: fails on valid input.
4323 rm -f conftest.err conftest.$ac_ext
4325 # OK, works on sane cases. Now check whether nonexistent headers
4326 # can be detected and how.
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 #include <ac_nonexistent.h>
4335 if { (ac_try="$ac_cpp conftest.$ac_ext"
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } >/dev/null; then
4348 if test -s conftest.err; then
4349 ac_cpp_err=$ac_c_preproc_warn_flag
4350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4357 if test -z "$ac_cpp_err"; then
4358 # Broken: success on invalid input.
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4364 # Passes both tests.
4369 rm -f conftest.err conftest.$ac_ext
4372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4373 rm -f conftest.err conftest.$ac_ext
4374 if $ac_preproc_ok; then
4377 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4378 See \`config.log' for more details." >&5
4379 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4380 See \`config.log' for more details." >&2;}
4381 { (exit 1); exit 1; }; }
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391 ac_cpp='$CXXCPP $CPPFLAGS'
4392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4395 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4396 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4397 if test -z "$CXXCPP"; then
4398 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 # Double quotes because CXXCPP needs to be expanded
4402 for CXXCPP in "$CXX -E" "/lib/cpp"
4405 for ac_cxx_preproc_warn_flag in '' yes
4407 # Use a header file that comes with gcc, so configuring glibc
4408 # with a fresh cross-compiler works.
4409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4410 # <limits.h> exists even on freestanding compilers.
4411 # On the NeXT, cc -E runs the code through the compiler's parser,
4412 # not just through cpp. "Syntax error" is here to catch this case.
4413 cat >conftest.$ac_ext <<_ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4420 # include <limits.h>
4422 # include <assert.h>
4426 if { (ac_try="$ac_cpp conftest.$ac_ext"
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4434 grep -v '^ *+' conftest.er1 >conftest.err
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } >/dev/null; then
4439 if test -s conftest.err; then
4440 ac_cpp_err=$ac_cxx_preproc_warn_flag
4441 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4448 if test -z "$ac_cpp_err"; then
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 # Broken: fails on valid input.
4458 rm -f conftest.err conftest.$ac_ext
4460 # OK, works on sane cases. Now check whether nonexistent headers
4461 # can be detected and how.
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 #include <ac_nonexistent.h>
4470 if { (ac_try="$ac_cpp conftest.$ac_ext"
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4478 grep -v '^ *+' conftest.er1 >conftest.err
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } >/dev/null; then
4483 if test -s conftest.err; then
4484 ac_cpp_err=$ac_cxx_preproc_warn_flag
4485 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4492 if test -z "$ac_cpp_err"; then
4493 # Broken: success on invalid input.
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4499 # Passes both tests.
4504 rm -f conftest.err conftest.$ac_ext
4507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4508 rm -f conftest.err conftest.$ac_ext
4509 if $ac_preproc_ok; then
4514 ac_cv_prog_CXXCPP=$CXXCPP
4517 CXXCPP=$ac_cv_prog_CXXCPP
4519 ac_cv_prog_CXXCPP=$CXXCPP
4521 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4522 echo "${ECHO_T}$CXXCPP" >&6; }
4524 for ac_cxx_preproc_warn_flag in '' yes
4526 # Use a header file that comes with gcc, so configuring glibc
4527 # with a fresh cross-compiler works.
4528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4529 # <limits.h> exists even on freestanding compilers.
4530 # On the NeXT, cc -E runs the code through the compiler's parser,
4531 # not just through cpp. "Syntax error" is here to catch this case.
4532 cat >conftest.$ac_ext <<_ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4539 # include <limits.h>
4541 # include <assert.h>
4545 if { (ac_try="$ac_cpp conftest.$ac_ext"
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4553 grep -v '^ *+' conftest.er1 >conftest.err
4555 cat conftest.err >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } >/dev/null; then
4558 if test -s conftest.err; then
4559 ac_cpp_err=$ac_cxx_preproc_warn_flag
4560 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4567 if test -z "$ac_cpp_err"; then
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4573 # Broken: fails on valid input.
4577 rm -f conftest.err conftest.$ac_ext
4579 # OK, works on sane cases. Now check whether nonexistent headers
4580 # can be detected and how.
4581 cat >conftest.$ac_ext <<_ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587 #include <ac_nonexistent.h>
4589 if { (ac_try="$ac_cpp conftest.$ac_ext"
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4597 grep -v '^ *+' conftest.er1 >conftest.err
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } >/dev/null; then
4602 if test -s conftest.err; then
4603 ac_cpp_err=$ac_cxx_preproc_warn_flag
4604 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4611 if test -z "$ac_cpp_err"; then
4612 # Broken: success on invalid input.
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 # Passes both tests.
4623 rm -f conftest.err conftest.$ac_ext
4626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4627 rm -f conftest.err conftest.$ac_ext
4628 if $ac_preproc_ok; then
4631 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4632 See \`config.log' for more details." >&5
4633 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4634 See \`config.log' for more details." >&2;}
4635 { (exit 1); exit 1; }; }
4639 ac_cpp='$CPP $CPPFLAGS'
4640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644 for ac_prog in gawk mawk nawk awk
4646 # Extract the first word of "$ac_prog", so it can be a program name with args.
4647 set dummy $ac_prog; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_AWK+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 if test -n "$AWK"; then
4654 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_AWK="$ac_prog"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 if test -n "$AWK"; then
4675 { echo "$as_me:$LINENO: result: $AWK" >&5
4676 echo "${ECHO_T}$AWK" >&6; }
4678 { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4683 test -n "$AWK" && break
4686 # Find a good install program. We prefer a C program (faster),
4687 # so one script is as good as another. But avoid the broken or
4688 # incompatible versions:
4689 # SysV /etc/install, /usr/sbin/install
4690 # SunOS /usr/etc/install
4691 # IRIX /sbin/install
4693 # AmigaOS /C/install, which installs bootblocks on floppy discs
4694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4697 # OS/2's system install, which has a completely different semantic
4698 # ./install, which can be erroneously created by make from ./install.sh.
4699 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4700 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4701 if test -z "$INSTALL"; then
4702 if test "${ac_cv_path_install+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6