2 # From configure.ac Revision: 46846 .
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
842 ac_precious_vars='build_alias
856 # Initialize some variables set by options.
858 ac_init_version=false
859 # The variables have the same names as the options, with
860 # dashes changed to underlines.
868 program_transform_name=s,x,x,
876 # Installation directory options.
877 # These are left unexpanded so users can "make install exec_prefix=/foo"
878 # and all the variables that are supposed to be based on exec_prefix
879 # by default will actually change.
880 # Use braces instead of parens because sh, perl, etc. also accept them.
881 # (The list follows the same order as the GNU Coding Standards.)
882 bindir='${exec_prefix}/bin'
883 sbindir='${exec_prefix}/sbin'
884 libexecdir='${exec_prefix}/libexec'
885 datarootdir='${prefix}/share'
886 datadir='${datarootdir}'
887 sysconfdir='${prefix}/etc'
888 sharedstatedir='${prefix}/com'
889 localstatedir='${prefix}/var'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE}'
893 infodir='${datarootdir}/info'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
914 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 # Accept the important Cygnus configure options, so we can diagnose typos.
920 case $ac_dashdash$ac_option in
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
942 cache_file=config.cache ;;
944 -datadir | --datadir | --datadi | --datad)
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
956 -disable-* | --disable-*)
957 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
960 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
961 { (exit 1); exit 1; }; }
962 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
963 eval enable_$ac_feature=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 -enable-* | --enable-*)
976 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
979 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
980 { (exit 1); exit 1; }; }
981 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
982 eval enable_$ac_feature=\$ac_optarg ;;
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
997 -help | --help | --hel | --he | -h)
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 htmldir=$ac_optarg ;;
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1027 -libdir | --libdir | --libdi | --libd)
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1118 -psdir | --psdir | --psdi | --psd | --ps)
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 sbindir=$ac_optarg ;;
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 sharedstatedir=$ac_optarg ;;
1144 -site | --site | --sit)
1146 -site=* | --site=* | --sit=*)
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1173 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1176 { echo "$as_me: error: invalid package name: $ac_package" >&2
1177 { (exit 1); exit 1; }; }
1178 ac_package=`echo $ac_package| sed 's/-/_/g'`
1179 eval with_$ac_package=\$ac_optarg ;;
1181 -without-* | --without-*)
1182 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1185 { echo "$as_me: error: invalid package name: $ac_package" >&2
1186 { (exit 1); exit 1; }; }
1187 ac_package=`echo $ac_package | sed 's/-/_/g'`
1188 eval with_$ac_package=no ;;
1191 # Obsolete; use --with-x.
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1208 -*) { echo "$as_me: error: unrecognized option: $ac_option
1209 Try \`$0 --help' for more information." >&2
1210 { (exit 1); exit 1; }; }
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1217 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1218 { (exit 1); exit 1; }; }
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1223 # FIXME: should be removed in autoconf 3.0.
1224 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1233 if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 { echo "$as_me: error: missing argument to $ac_option" >&2
1236 { (exit 1); exit 1; }; }
1239 # Be sure to have absolute directory names.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1245 eval ac_val=\$$ac_var
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1251 { (exit 1); exit 1; }; }
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1259 target=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1266 If a cross compiler is detected then cross compile mode will be used." >&2
1267 elif test "x$build_alias" != "x$host_alias"; then
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275 test "$silent" = yes && exec 6>/dev/null
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 { echo "$as_me: error: Working directory cannot be determined" >&2
1282 { (exit 1); exit 1; }; }
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 { echo "$as_me: error: pwd does not report name of working directory" >&2
1285 { (exit 1); exit 1; }; }
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$0" ||
1293 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$0" : 'X\(//\)[^/]' \| \
1295 X"$0" : 'X\(//\)$' \| \
1296 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1320 ac_srcdir_defaulted=no
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1325 { (exit 1); exit 1; }; }
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1330 { (exit 1); exit 1; }; }
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 # Report the --help message.
1352 if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1356 \`configure' configures this package to adapt to many kinds of systems.
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
1363 Defaults for the options are specified in brackets.
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376 Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1387 For better control, use the options below.
1389 Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 if test -n "$ac_init_help"; then
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-dev-mode Turn on developer mode
1427 --disable-largefile omit support for large files
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1434 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1435 --with-curl=PATH use cURL files in PATH
1436 --with-curses=PATH use curses files in PATH
1437 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1439 --with-gsm=PATH use GSM files in PATH , or 'internal'
1440 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1441 --with-imap=PATH use UW IMAP Toolkit files in PATH
1442 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1443 --with-kde=PATH use KDE files in PATH
1444 --with-misdn=PATH use mISDN User Library files in PATH
1445 --with-nbs=PATH use Network Broadcast Sound files in PATH
1446 --with-ncurses=PATH use ncurses files in PATH
1447 --with-netsnmp=PATH use Net-SNMP files in PATH
1448 --with-newt=PATH use newt files in PATH
1449 --with-odbc=PATH use unixODBC files in PATH
1450 --with-ogg=PATH use OGG files in PATH
1451 --with-osptk=PATH use OSP Toolkit files in PATH
1452 --with-oss=PATH use Open Sound System files in PATH
1453 --with-popt=PATH use popt files in PATH
1454 --with-postgres=PATH use PostgreSQL files in PATH
1455 --with-pri=PATH use ISDN PRI files in PATH
1456 --with-ss7=PATH use ISDN SS7 files in PATH
1457 --with-pwlib=PATH use PWlib files in PATH
1458 --with-h323=PATH use OpenH323 files in PATH
1459 --with-qt=PATH use Qt files in PATH
1460 --with-radius=PATH use Radius Client files in PATH
1461 --with-speex=PATH use Speex files in PATH
1462 --with-sqlite=PATH use SQLite files in PATH
1463 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1464 --with-ssl=PATH use OpenSSL files in PATH
1465 --with-tds=PATH use FreeTDS files in PATH
1466 --with-termcap=PATH use Termcap files in PATH
1467 --with-tinfo=PATH use Term Info files in PATH
1468 --with-tonezone=PATH use tonezone files in PATH
1469 --with-vorbis=PATH use Vorbis files in PATH
1470 --with-vpb=PATH use Voicetronix API files in PATH
1471 --with-z=PATH use zlib files in PATH
1472 --with-zaptel=PATH use Zaptel files in PATH
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
1481 CXX C++ compiler command
1482 CXXFLAGS C++ compiler flags
1484 CXXCPP C++ preprocessor
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" || continue
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1516 .) # We are building in place.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1540 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1550 generated by GNU Autoconf 2.60a
1552 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1553 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1561 cat >config.log <<_ACEOF
1562 This file contains any messages produced by compilers while
1563 running configure, to aid debugging if configure makes a mistake.
1565 It was created by $as_me, which was
1566 generated by GNU Autoconf 2.60a. Invocation command line was
1578 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1579 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1580 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1581 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1582 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1584 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1585 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1587 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1588 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1589 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1590 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1591 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1592 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1593 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 test -z "$as_dir" && as_dir=.
1602 echo "PATH: $as_dir"
1618 # Keep a trace of the command line.
1619 # Strip out --no-create and --no-recursion so they do not pile up.
1620 # Strip out --silent because we don't want to record it for future runs.
1621 # Also quote any args containing shell meta-characters.
1622 # Make two passes to allow for proper duplicate-argument suppression.
1626 ac_must_keep_next=false
1632 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634 | -silent | --silent | --silen | --sile | --sil)
1637 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1640 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1642 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1643 if test $ac_must_keep_next = true; then
1644 ac_must_keep_next=false # Got value, back to normal.
1647 *=* | --config-cache | -C | -disable-* | --disable-* \
1648 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1649 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1650 | -with-* | --with-* | -without-* | --without-* | --x)
1651 case "$ac_configure_args0 " in
1652 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1655 -* ) ac_must_keep_next=true ;;
1658 ac_configure_args="$ac_configure_args '$ac_arg'"
1663 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1664 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1666 # When interrupted or exit'd, cleanup temporary files, and complete
1667 # config.log. We remove comments because anyway the quotes in there
1668 # would cause problems or look ugly.
1669 # WARNING: Use '\'' to represent an apostrophe within the trap.
1670 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1671 trap 'exit_status=$?
1672 # Save into config.log some information that might help in debugging.
1677 ## ---------------- ##
1678 ## Cache variables. ##
1679 ## ---------------- ##
1682 # The following way of writing the cache mishandles newlines in values,
1684 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1685 eval ac_val=\$$ac_var
1689 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1690 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1693 _ | IFS | as_nl) ;; #(
1694 *) $as_unset $ac_var ;;
1699 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1700 *${as_nl}ac_space=\ *)
1702 "s/'\''/'\''\\\\'\'''\''/g;
1703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1714 ## ----------------- ##
1715 ## Output variables. ##
1716 ## ----------------- ##
1719 for ac_var in $ac_subst_vars
1721 eval ac_val=\$$ac_var
1723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1725 echo "$ac_var='\''$ac_val'\''"
1729 if test -n "$ac_subst_files"; then
1731 ## ------------------- ##
1732 ## File substitutions. ##
1733 ## ------------------- ##
1736 for ac_var in $ac_subst_files
1738 eval ac_val=\$$ac_var
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 echo "$ac_var='\''$ac_val'\''"
1747 if test -s confdefs.h; then
1757 test "$ac_signal" != 0 &&
1758 echo "$as_me: caught signal $ac_signal"
1759 echo "$as_me: exit $exit_status"
1761 rm -f core *.core core.conftest.* &&
1762 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1765 for ac_signal in 1 2 13 15; do
1766 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1770 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1771 rm -f -r conftest* confdefs.h
1773 # Predefined preprocessor variables.
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_NAME "$PACKAGE_NAME"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_STRING "$PACKAGE_STRING"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1800 # Let the site file select an alternate cache file if it wants to.
1801 # Prefer explicitly selected file to automatically selected ones.
1802 if test -n "$CONFIG_SITE"; then
1803 set x "$CONFIG_SITE"
1804 elif test "x$prefix" != xNONE; then
1805 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1807 set x "$ac_default_prefix/share/config.site" \
1808 "$ac_default_prefix/etc/config.site"
1813 if test -r "$ac_site_file"; then
1814 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1815 echo "$as_me: loading site script $ac_site_file" >&6;}
1816 sed 's/^/| /' "$ac_site_file" >&5
1821 if test -r "$cache_file"; then
1822 # Some versions of bash will fail to source /dev/null (special
1823 # files actually), so we avoid doing that.
1824 if test -f "$cache_file"; then
1825 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1826 echo "$as_me: loading cache $cache_file" >&6;}
1828 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1829 *) . "./$cache_file";;
1833 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1834 echo "$as_me: creating cache $cache_file" >&6;}
1838 # Check that the precious variables saved in the cache have kept the same
1840 ac_cache_corrupted=false
1841 for ac_var in $ac_precious_vars; do
1842 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1843 eval ac_new_set=\$ac_env_${ac_var}_set
1844 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1845 eval ac_new_val=\$ac_env_${ac_var}_value
1846 case $ac_old_set,$ac_new_set in
1848 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1849 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1850 ac_cache_corrupted=: ;;
1852 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1853 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1854 ac_cache_corrupted=: ;;
1857 if test "x$ac_old_val" != "x$ac_new_val"; then
1858 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1859 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1860 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1861 echo "$as_me: former value: $ac_old_val" >&2;}
1862 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1863 echo "$as_me: current value: $ac_new_val" >&2;}
1864 ac_cache_corrupted=:
1867 # Pass precious variables to config.status.
1868 if test "$ac_new_set" = set; then
1870 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1871 *) ac_arg=$ac_var=$ac_new_val ;;
1873 case " $ac_configure_args " in
1874 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1875 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1879 if $ac_cache_corrupted; then
1880 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1881 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1882 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1883 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1884 { (exit 1); exit 1; }; }
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911 # cross-compile macros
1913 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1914 if test -f "$ac_dir/install-sh"; then
1916 ac_install_sh="$ac_aux_dir/install-sh -c"
1918 elif test -f "$ac_dir/install.sh"; then
1920 ac_install_sh="$ac_aux_dir/install.sh -c"
1922 elif test -f "$ac_dir/shtool"; then
1924 ac_install_sh="$ac_aux_dir/shtool install -c"
1928 if test -z "$ac_aux_dir"; then
1929 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1930 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1931 { (exit 1); exit 1; }; }
1934 # These three variables are undocumented and unsupported,
1935 # and are intended to be withdrawn in a future Autoconf release.
1936 # They can cause serious problems if a builder's source tree is in a directory
1937 # whose full name contains unusual characters.
1938 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1939 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1940 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943 # Make sure we can run config.sub.
1944 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1945 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1946 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1947 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: checking build system type" >&5
1950 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1951 if test "${ac_cv_build+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 ac_build_alias=$build_alias
1955 test "x$ac_build_alias" = x &&
1956 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1957 test "x$ac_build_alias" = x &&
1958 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1959 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1960 { (exit 1); exit 1; }; }
1961 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1962 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1963 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1964 { (exit 1); exit 1; }; }
1967 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1968 echo "${ECHO_T}$ac_cv_build" >&6; }
1969 case $ac_cv_build in
1971 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1972 echo "$as_me: error: invalid value of canonical build" >&2;}
1973 { (exit 1); exit 1; }; };;
1976 ac_save_IFS=$IFS; IFS='-'
1982 # Remember, the first character of IFS is used to create $*,
1983 # except with old shells:
1986 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1989 { echo "$as_me:$LINENO: checking host system type" >&5
1990 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1991 if test "${ac_cv_host+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 if test "x$host_alias" = x; then
1995 ac_cv_host=$ac_cv_build
1997 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1998 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2000 { (exit 1); exit 1; }; }
2004 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2005 echo "${ECHO_T}$ac_cv_host" >&6; }
2008 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2009 echo "$as_me: error: invalid value of canonical host" >&2;}
2010 { (exit 1); exit 1; }; };;
2013 ac_save_IFS=$IFS; IFS='-'
2019 # Remember, the first character of IFS is used to create $*,
2020 # except with old shells:
2023 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2027 # check existence of the package
2030 # specify output header file
2031 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2037 case "${host_os}" in
2039 ac_default_prefix=/usr/local
2040 CPPFLAGS=-I/usr/local/include
2041 LDFLAGS=-L/usr/local/lib
2044 ac_default_prefix=/usr
2045 if test ${sysconfdir} = '${prefix}/etc'; then
2048 if test ${mandir} = '${prefix}/man'; then
2049 mandir=/usr/share/man
2054 if test ${localstatedir} = '${prefix}/var'; then
2058 BUILD_PLATFORM=${build}
2059 BUILD_CPU=${build_cpu}
2060 BUILD_VENDOR=${build_vendor}
2061 BUILD_OS=${build_os}
2068 HOST_PLATFORM=${host}
2069 HOST_CPU=${host_cpu}
2070 HOST_VENDOR=${host_vendor}
2078 case "${host_os}" in
2099 if test -n "$ac_tool_prefix"; then
2100 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2101 set dummy ${ac_tool_prefix}uname; ac_word=$2
2102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2104 if test "${ac_cv_path_UNAME+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2119 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 UNAME=$ac_cv_path_UNAME
2131 if test -n "$UNAME"; then
2132 { echo "$as_me:$LINENO: result: $UNAME" >&5
2133 echo "${ECHO_T}$UNAME" >&6; }
2135 { echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6; }
2141 if test -z "$ac_cv_path_UNAME"; then
2143 # Extract the first word of "uname", so it can be a program name with args.
2144 set dummy uname; ac_word=$2
2145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2147 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 case $ac_pt_UNAME in
2152 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2162 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2174 if test -n "$ac_pt_UNAME"; then
2175 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2176 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2178 { echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6; }
2182 if test "x$ac_pt_UNAME" = x; then
2185 case $cross_compiling:$ac_tool_warned in
2187 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2188 whose name does not start with the host triplet. If you think this
2189 configuration is useful to you, please write to autoconf@gnu.org." >&5
2190 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2191 whose name does not start with the host triplet. If you think this
2192 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2193 ac_tool_warned=yes ;;
2198 UNAME="$ac_cv_path_UNAME"
2201 if test ! x"${UNAME}" = xNo; then
2202 PBX_OSREV=$(${UNAME} -r)
2206 # This needs to be before any macros that use the C compiler
2208 cat >>confdefs.h <<\_ACEOF
2209 #define _GNU_SOURCE 1
2220 # cross-compile checks
2221 if test "${cross_compiling}" = "yes";
2223 if test -n "$ac_tool_prefix"; then
2224 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2225 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test -n "$CC"; then
2232 ac_cv_prog_CC="$CC" # Let the user override the test.
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2241 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 if test -n "$CC"; then
2253 { echo "$as_me:$LINENO: result: $CC" >&5
2254 echo "${ECHO_T}$CC" >&6; }
2256 { echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6; }
2262 if test -z "$ac_cv_prog_CC"; then
2264 # Extract the first word of "gcc", so it can be a program name with args.
2265 set dummy gcc; ac_word=$2
2266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 if test -n "$ac_ct_CC"; then
2272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2281 ac_cv_prog_ac_ct_CC="gcc"
2282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2292 if test -n "$ac_ct_CC"; then
2293 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2294 echo "${ECHO_T}$ac_ct_CC" >&6; }
2296 { echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6; }
2300 if test "x$ac_ct_CC" = x; then
2303 case $cross_compiling:$ac_tool_warned in
2305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2306 whose name does not start with the host triplet. If you think this
2307 configuration is useful to you, please write to autoconf@gnu.org." >&5
2308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2309 whose name does not start with the host triplet. If you think this
2310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2311 ac_tool_warned=yes ;;
2319 if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}g++; ac_word=$2
2322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324 if test "${ac_cv_prog_CXX+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 if test -n "$CXX"; then
2328 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 if test -n "$CXX"; then
2349 { echo "$as_me:$LINENO: result: $CXX" >&5
2350 echo "${ECHO_T}$CXX" >&6; }
2352 { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2358 if test -z "$ac_cv_prog_CXX"; then
2360 # Extract the first word of "g++", so it can be a program name with args.
2361 set dummy g++; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 if test -n "$ac_ct_CXX"; then
2368 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_CXX="g++"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2388 if test -n "$ac_ct_CXX"; then
2389 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2390 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2396 if test "x$ac_ct_CXX" = x; then
2399 case $cross_compiling:$ac_tool_warned in
2401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&5
2404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2407 ac_tool_warned=yes ;;
2412 CXX="$ac_cv_prog_CXX"
2415 if test -n "$ac_tool_prefix"; then
2416 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2417 set dummy ${ac_tool_prefix}ld; ac_word=$2
2418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420 if test "${ac_cv_prog_LD+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 if test -n "$LD"; then
2424 ac_cv_prog_LD="$LD" # Let the user override the test.
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2433 ac_cv_prog_LD="${ac_tool_prefix}ld"
2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 if test -n "$LD"; then
2445 { echo "$as_me:$LINENO: result: $LD" >&5
2446 echo "${ECHO_T}$LD" >&6; }
2448 { echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6; }
2454 if test -z "$ac_cv_prog_LD"; then
2456 # Extract the first word of "ld", so it can be a program name with args.
2457 set dummy ld; ac_word=$2
2458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$ac_ct_LD"; then
2464 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_prog_ac_ct_LD="ld"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2484 if test -n "$ac_ct_LD"; then
2485 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2486 echo "${ECHO_T}$ac_ct_LD" >&6; }
2488 { echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6; }
2492 if test "x$ac_ct_LD" = x; then
2495 case $cross_compiling:$ac_tool_warned in
2497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2498 whose name does not start with the host triplet. If you think this
2499 configuration is useful to you, please write to autoconf@gnu.org." >&5
2500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2501 whose name does not start with the host triplet. If you think this
2502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2503 ac_tool_warned=yes ;;
2511 if test -n "$ac_tool_prefix"; then
2512 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2513 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_RANLIB+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$RANLIB"; then
2520 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 RANLIB=$ac_cv_prog_RANLIB
2540 if test -n "$RANLIB"; then
2541 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2542 echo "${ECHO_T}$RANLIB" >&6; }
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2550 if test -z "$ac_cv_prog_RANLIB"; then
2551 ac_ct_RANLIB=$RANLIB
2552 # Extract the first word of "ranlib", so it can be a program name with args.
2553 set dummy ranlib; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 if test -n "$ac_ct_RANLIB"; then
2560 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_ac_ct_RANLIB="ranlib"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2580 if test -n "$ac_ct_RANLIB"; then
2581 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2582 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2588 if test "x$ac_ct_RANLIB" = x; then
2591 case $cross_compiling:$ac_tool_warned in
2593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2594 whose name does not start with the host triplet. If you think this
2595 configuration is useful to you, please write to autoconf@gnu.org." >&5
2596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2597 whose name does not start with the host triplet. If you think this
2598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2599 ac_tool_warned=yes ;;
2601 RANLIB=$ac_ct_RANLIB
2604 RANLIB="$ac_cv_prog_RANLIB"
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}ar; ac_word=$2
2610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_AR+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 if test -n "$AR"; then
2616 ac_cv_prog_AR="$AR" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_AR="${ac_tool_prefix}ar"
2626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 if test -n "$AR"; then
2637 { echo "$as_me:$LINENO: result: $AR" >&5
2638 echo "${ECHO_T}$AR" >&6; }
2640 { echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6; }
2646 if test -z "$ac_cv_prog_AR"; then
2648 # Extract the first word of "ar", so it can be a program name with args.
2649 set dummy ar; ac_word=$2
2650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2652 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 if test -n "$ac_ct_AR"; then
2656 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_ac_ct_AR="ar"
2666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2676 if test -n "$ac_ct_AR"; then
2677 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2678 echo "${ECHO_T}$ac_ct_AR" >&6; }
2680 { echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6; }
2684 if test "x$ac_ct_AR" = x; then
2687 case $cross_compiling:$ac_tool_warned in
2689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2690 whose name does not start with the host triplet. If you think this
2691 configuration is useful to you, please write to autoconf@gnu.org." >&5
2692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2693 whose name does not start with the host triplet. If you think this
2694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2695 ac_tool_warned=yes ;;
2705 # Checks for programs.
2707 ac_cpp='$CPP $CPPFLAGS'
2708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2716 if test "${ac_cv_prog_CC+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test -n "$CC"; then
2741 { echo "$as_me:$LINENO: result: $CC" >&5
2742 echo "${ECHO_T}$CC" >&6; }
2744 { echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6; }
2750 if test -z "$ac_cv_prog_CC"; then
2752 # Extract the first word of "gcc", so it can be a program name with args.
2753 set dummy gcc; ac_word=$2
2754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2756 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 if test -n "$ac_ct_CC"; then
2760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2769 ac_cv_prog_ac_ct_CC="gcc"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2780 if test -n "$ac_ct_CC"; then
2781 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2782 echo "${ECHO_T}$ac_ct_CC" >&6; }
2784 { echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6; }
2788 if test "x$ac_ct_CC" = x; then
2791 case $cross_compiling:$ac_tool_warned in
2793 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2794 whose name does not start with the host triplet. If you think this
2795 configuration is useful to you, please write to autoconf@gnu.org." >&5
2796 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2797 whose name does not start with the host triplet. If you think this
2798 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2799 ac_tool_warned=yes ;;
2807 if test -z "$CC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}cc; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CC="${ac_tool_prefix}cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CC"; then
2838 { echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6; }
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2848 if test -z "$CC"; then
2849 # Extract the first word of "cc", so it can be a program name with args.
2850 set dummy cc; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_CC+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2868 ac_prog_rejected=yes
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 if test $ac_prog_rejected = yes; then
2880 # We found a bogon in the path, so make sure we never use it.
2881 set dummy $ac_cv_prog_CC
2883 if test $# != 0; then
2884 # We chose a different compiler from the bogus one.
2885 # However, it has the same basename, so the bogon will be chosen
2886 # first if we set CC to just the basename; use the full file name.
2888 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2894 if test -n "$CC"; then
2895 { echo "$as_me:$LINENO: result: $CC" >&5
2896 echo "${ECHO_T}$CC" >&6; }
2898 { echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6; }
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in cl.exe
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 if test -n "$CC"; then
2937 { echo "$as_me:$LINENO: result: $CC" >&5
2938 echo "${ECHO_T}$CC" >&6; }
2940 { echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6; }
2945 test -n "$CC" && break
2948 if test -z "$CC"; then
2950 for ac_prog in cl.exe
2952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2953 set dummy $ac_prog; ac_word=$2
2954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 if test -n "$ac_ct_CC"; then
2960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_ac_ct_CC="$ac_prog"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6; }
2984 { echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6; }
2989 test -n "$ac_ct_CC" && break
2992 if test "x$ac_ct_CC" = x; then
2995 case $cross_compiling:$ac_tool_warned in
2997 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2998 whose name does not start with the host triplet. If you think this
2999 configuration is useful to you, please write to autoconf@gnu.org." >&5
3000 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3001 whose name does not start with the host triplet. If you think this
3002 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3003 ac_tool_warned=yes ;;
3012 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3013 See \`config.log' for more details." >&5
3014 echo "$as_me: error: no acceptable C compiler found in \$PATH
3015 See \`config.log' for more details." >&2;}
3016 { (exit 1); exit 1; }; }
3018 # Provide some information about the compiler.
3019 echo "$as_me:$LINENO: checking for C compiler version" >&5
3020 ac_compiler=`set X $ac_compile; echo $2`
3021 { (ac_try="$ac_compiler --version >&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 --version >&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); }
3041 { (ac_try="$ac_compiler -V >&5"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compiler -V >&5") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3052 cat >conftest.$ac_ext <<_ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3067 ac_clean_files_save=$ac_clean_files
3068 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3069 # Try to create an executable without -o first, disregard a.out.
3070 # It will help us diagnose broken compilers, and finding out an intuition
3072 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3073 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3074 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 # List of possible output files, starting from the most likely.
3077 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3078 # only as a last resort. b.out is created by i960 compilers.
3079 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3081 # The IRIX 6 linker writes into existing files which may not be
3082 # executable, retaining their permissions. Remove them first so a
3083 # subsequent execution test works.
3085 for ac_file in $ac_files
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3089 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3094 if { (ac_try="$ac_link_default"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_link_default") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; then
3104 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3105 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3106 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3107 # so that the user can short-circuit this test for compilers unknown to
3109 for ac_file in $ac_files ''
3111 test -f "$ac_file" || continue
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3116 # We found the default executable, but exeext='' is most
3120 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3122 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 # We set ac_cv_exeext here because the later test for it is not
3125 # safe: cross compilers may not add the suffix if given an `-o'
3126 # argument, so we may need to know it at that point already.
3127 # Even if this section looks crufty: it has the advantage of
3134 test "$ac_cv_exeext" = no && ac_cv_exeext=
3140 { echo "$as_me:$LINENO: result: $ac_file" >&5
3141 echo "${ECHO_T}$ac_file" >&6; }
3142 if test -z "$ac_file"; then
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3147 See \`config.log' for more details." >&5
3148 echo "$as_me: error: C compiler cannot create executables
3149 See \`config.log' for more details." >&2;}
3150 { (exit 77); exit 77; }; }
3153 ac_exeext=$ac_cv_exeext
3155 # Check that the compiler produces executables we can run. If not, either
3156 # the compiler is broken, or we cross compile.
3157 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3158 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3159 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3160 # If not cross compiling, check that we can run a simple program.
3161 if test "$cross_compiling" != yes; then
3162 if { ac_try='./$ac_file'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3174 if test "$cross_compiling" = maybe; then
3177 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3178 If you meant to cross compile, use \`--host'.
3179 See \`config.log' for more details." >&5
3180 echo "$as_me: error: cannot run C compiled programs.
3181 If you meant to cross compile, use \`--host'.
3182 See \`config.log' for more details." >&2;}
3183 { (exit 1); exit 1; }; }
3187 { echo "$as_me:$LINENO: result: yes" >&5
3188 echo "${ECHO_T}yes" >&6; }
3190 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3191 ac_clean_files=$ac_clean_files_save
3192 # Check that the compiler produces executables we can run. If not, either
3193 # the compiler is broken, or we cross compile.
3194 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3195 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3196 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3197 echo "${ECHO_T}$cross_compiling" >&6; }
3199 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3200 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3201 if { (ac_try="$ac_link"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_link") 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; then
3211 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3212 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3213 # work properly (i.e., refer to `conftest.exe'), while it won't with
3215 for ac_file in conftest.exe conftest conftest.*; do
3216 test -f "$ac_file" || continue
3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3219 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3226 See \`config.log' for more details." >&5
3227 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3228 See \`config.log' for more details." >&2;}
3229 { (exit 1); exit 1; }; }
3232 rm -f conftest$ac_cv_exeext
3233 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3234 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3236 rm -f conftest.$ac_ext
3237 EXEEXT=$ac_cv_exeext
3239 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3240 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3241 if test "${ac_cv_objext+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 cat >conftest.$ac_ext <<_ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3259 rm -f conftest.o conftest.obj
3260 if { (ac_try="$ac_compile"
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compile") 2>&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; then
3270 for ac_file in conftest.o conftest.obj conftest.*; do
3271 test -f "$ac_file" || continue;
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3274 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3283 See \`config.log' for more details." >&5
3284 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3285 See \`config.log' for more details." >&2;}
3286 { (exit 1); exit 1; }; }
3289 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3291 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3292 echo "${ECHO_T}$ac_cv_objext" >&6; }
3293 OBJEXT=$ac_cv_objext
3295 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3296 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3297 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 cat >conftest.$ac_ext <<_ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3318 rm -f conftest.$ac_objext
3319 if { (ac_try="$ac_compile"
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_compile") 2>conftest.er1
3327 grep -v '^ *+' conftest.er1 >conftest.err
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3342 { ac_try='test -s conftest.$ac_objext'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3365 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3366 GCC=`test $ac_compiler_gnu = yes && echo yes`
3367 ac_test_CFLAGS=${CFLAGS+set}
3368 ac_save_CFLAGS=$CFLAGS
3369 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3371 if test "${ac_cv_prog_cc_g+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 ac_save_c_werror_flag=$ac_c_werror_flag
3375 ac_c_werror_flag=yes
3378 cat >conftest.$ac_ext <<_ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_compile") 2>conftest.er1
3402 grep -v '^ *+' conftest.er1 >conftest.err
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3417 { ac_try='test -s conftest.$ac_objext'
3418 { (case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_try") 2>&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3448 rm -f conftest.$ac_objext
3449 if { (ac_try="$ac_compile"
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_compile") 2>conftest.er1
3457 grep -v '^ *+' conftest.er1 >conftest.err
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3472 { ac_try='test -s conftest.$ac_objext'
3473 { (case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_try") 2>&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 ac_c_werror_flag=$ac_save_c_werror_flag
3489 cat >conftest.$ac_ext <<_ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3504 rm -f conftest.$ac_objext
3505 if { (ac_try="$ac_compile"
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511 (eval "$ac_compile") 2>conftest.er1
3513 grep -v '^ *+' conftest.er1 >conftest.err
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_try") 2>&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_c_werror_flag=$ac_save_c_werror_flag
3555 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3556 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3557 if test "$ac_test_CFLAGS" = set; then
3558 CFLAGS=$ac_save_CFLAGS
3559 elif test $ac_cv_prog_cc_g = yes; then
3560 if test "$GCC" = yes; then
3566 if test "$GCC" = yes; then
3572 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3573 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3574 if test "${ac_cv_prog_cc_c89+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 ac_cv_prog_cc_c89=no
3579 cat >conftest.$ac_ext <<_ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3587 #include <sys/types.h>
3588 #include <sys/stat.h>
3589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3590 struct buf { int x; };
3591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592 static char *e (p, i)
3598 static char *f (char * (*g) (char **, int), char **p, ...)
3603 s = g (p, va_arg (v,int));
3608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3609 function prototypes and stuff, but not '\xHH' hex character constants.
3610 These don't provoke an error unfortunately, instead are silently treated
3611 as 'x'. The following induces an error, until -std is added to get
3612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3613 array size at least. It's necessary to write '\x00'==0 to get something
3614 that's true only with -std. */
3615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3617 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618 inside strings and character constants. */
3620 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3622 int test (int i, double x);
3623 struct s1 {int (*f) (int a);};
3624 struct s2 {int (*f) (double a);};
3625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639 CC="$ac_save_CC $ac_arg"
3640 rm -f conftest.$ac_objext
3641 if { (ac_try="$ac_compile"
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647 (eval "$ac_compile") 2>conftest.er1
3649 grep -v '^ *+' conftest.er1 >conftest.err
3651 cat conftest.err >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3664 { ac_try='test -s conftest.$ac_objext'
3665 { (case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_try") 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 ac_cv_prog_cc_c89=$ac_arg
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3682 rm -f core conftest.err conftest.$ac_objext
3683 test "x$ac_cv_prog_cc_c89" != "xno" && break
3685 rm -f conftest.$ac_ext
3690 case "x$ac_cv_prog_cc_c89" in
3692 { echo "$as_me:$LINENO: result: none needed" >&5
3693 echo "${ECHO_T}none needed" >&6; } ;;
3695 { echo "$as_me:$LINENO: result: unsupported" >&5
3696 echo "${ECHO_T}unsupported" >&6; } ;;
3698 CC="$CC $ac_cv_prog_cc_c89"
3699 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3700 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 ac_cpp='$CXXCPP $CPPFLAGS'
3712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3715 if test -z "$CXX"; then
3716 if test -n "$CCC"; then
3719 if test -n "$ac_tool_prefix"; then
3720 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3723 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3726 if test "${ac_cv_prog_CXX+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if test -n "$CXX"; then
3730 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3739 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 if test -n "$CXX"; then
3751 { echo "$as_me:$LINENO: result: $CXX" >&5
3752 echo "${ECHO_T}$CXX" >&6; }
3754 { echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6; }
3759 test -n "$CXX" && break
3762 if test -z "$CXX"; then
3764 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3766 # Extract the first word of "$ac_prog", so it can be a program name with args.
3767 set dummy $ac_prog; ac_word=$2
3768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3770 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 if test -n "$ac_ct_CXX"; then
3774 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3783 ac_cv_prog_ac_ct_CXX="$ac_prog"
3784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3794 if test -n "$ac_ct_CXX"; then
3795 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3796 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3798 { echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6; }
3803 test -n "$ac_ct_CXX" && break
3806 if test "x$ac_ct_CXX" = x; then
3809 case $cross_compiling:$ac_tool_warned in
3811 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3812 whose name does not start with the host triplet. If you think this
3813 configuration is useful to you, please write to autoconf@gnu.org." >&5
3814 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3815 whose name does not start with the host triplet. If you think this
3816 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3817 ac_tool_warned=yes ;;
3825 # Provide some information about the compiler.
3826 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3827 ac_compiler=`set X $ac_compile; echo $2`
3828 { (ac_try="$ac_compiler --version >&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 --version >&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); }
3848 { (ac_try="$ac_compiler -V >&5"
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854 (eval "$ac_compiler -V >&5") 2>&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }
3859 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3860 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3861 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3882 rm -f conftest.$ac_objext
3883 if { (ac_try="$ac_compile"
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>conftest.er1
3891 grep -v '^ *+' conftest.er1 >conftest.err
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_try") 2>&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3928 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3929 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3930 GXX=`test $ac_compiler_gnu = yes && echo yes`
3931 ac_test_CXXFLAGS=${CXXFLAGS+set}
3932 ac_save_CXXFLAGS=$CXXFLAGS
3933 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3934 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3935 if test "${ac_cv_prog_cxx_g+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3939 ac_cxx_werror_flag=yes
3942 cat >conftest.$ac_ext <<_ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3957 rm -f conftest.$ac_objext
3958 if { (ac_try="$ac_compile"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_compile") 2>conftest.er1
3966 grep -v '^ *+' conftest.er1 >conftest.err
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
3971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3981 { ac_try='test -s conftest.$ac_objext'
3982 { (case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_try") 2>&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 ac_cv_prog_cxx_g=yes
3993 echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3997 cat >conftest.$ac_ext <<_ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4053 cat >conftest.$ac_ext <<_ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_compile") 2>conftest.er1
4077 grep -v '^ *+' conftest.er1 >conftest.err
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
4092 { ac_try='test -s conftest.$ac_objext'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_prog_cxx_g=yes
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4119 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4120 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4121 if test "$ac_test_CXXFLAGS" = set; then
4122 CXXFLAGS=$ac_save_CXXFLAGS
4123 elif test $ac_cv_prog_cxx_g = yes; then
4124 if test "$GXX" = yes; then
4130 if test "$GXX" = yes; then
4137 ac_cpp='$CPP $CPPFLAGS'
4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4148 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4149 # On Suns, sometimes $CPP names a directory.
4150 if test -n "$CPP" && test -d "$CPP"; then
4153 if test -z "$CPP"; then
4154 if test "${ac_cv_prog_CPP+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 # Double quotes because CPP needs to be expanded
4158 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4161 for ac_c_preproc_warn_flag in '' yes
4163 # Use a header file that comes with gcc, so configuring glibc
4164 # with a fresh cross-compiler works.
4165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4166 # <limits.h> exists even on freestanding compilers.
4167 # On the NeXT, cc -E runs the code through the compiler's parser,
4168 # not just through cpp. "Syntax error" is here to catch this case.
4169 cat >conftest.$ac_ext <<_ACEOF
4172 cat confdefs.h >>conftest.$ac_ext
4173 cat >>conftest.$ac_ext <<_ACEOF
4174 /* end confdefs.h. */
4176 # include <limits.h>
4178 # include <assert.h>
4182 if { (ac_try="$ac_cpp conftest.$ac_ext"
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4190 grep -v '^ *+' conftest.er1 >conftest.err
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } >/dev/null; then
4195 if test -s conftest.err; then
4196 ac_cpp_err=$ac_c_preproc_warn_flag
4197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4204 if test -z "$ac_cpp_err"; then
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4210 # Broken: fails on valid input.
4214 rm -f conftest.err conftest.$ac_ext
4216 # OK, works on sane cases. Now check whether nonexistent headers
4217 # can be detected and how.
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 #include <ac_nonexistent.h>
4226 if { (ac_try="$ac_cpp conftest.$ac_ext"
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4234 grep -v '^ *+' conftest.er1 >conftest.err
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } >/dev/null; then
4239 if test -s conftest.err; then
4240 ac_cpp_err=$ac_c_preproc_warn_flag
4241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4248 if test -z "$ac_cpp_err"; then
4249 # Broken: success on invalid input.
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 # Passes both tests.
4260 rm -f conftest.err conftest.$ac_ext
4263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264 rm -f conftest.err conftest.$ac_ext
4265 if $ac_preproc_ok; then
4277 { echo "$as_me:$LINENO: result: $CPP" >&5
4278 echo "${ECHO_T}$CPP" >&6; }
4280 for ac_c_preproc_warn_flag in '' yes
4282 # Use a header file that comes with gcc, so configuring glibc
4283 # with a fresh cross-compiler works.
4284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285 # <limits.h> exists even on freestanding compilers.
4286 # On the NeXT, cc -E runs the code through the compiler's parser,
4287 # not just through cpp. "Syntax error" is here to catch this case.
4288 cat >conftest.$ac_ext <<_ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4295 # include <limits.h>
4297 # include <assert.h>
4301 if { (ac_try="$ac_cpp conftest.$ac_ext"
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } >/dev/null; then
4314 if test -s conftest.err; then
4315 ac_cpp_err=$ac_c_preproc_warn_flag
4316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4323 if test -z "$ac_cpp_err"; then
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 # Broken: fails on valid input.
4333 rm -f conftest.err conftest.$ac_ext
4335 # OK, works on sane cases. Now check whether nonexistent headers
4336 # can be detected and how.
4337 cat >conftest.$ac_ext <<_ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 #include <ac_nonexistent.h>
4345 if { (ac_try="$ac_cpp conftest.$ac_ext"
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } >/dev/null; then
4358 if test -s conftest.err; then
4359 ac_cpp_err=$ac_c_preproc_warn_flag
4360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4367 if test -z "$ac_cpp_err"; then
4368 # Broken: success on invalid input.
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4374 # Passes both tests.
4379 rm -f conftest.err conftest.$ac_ext
4382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4383 rm -f conftest.err conftest.$ac_ext
4384 if $ac_preproc_ok; then
4387 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4388 See \`config.log' for more details." >&5
4389 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4390 See \`config.log' for more details." >&2;}
4391 { (exit 1); exit 1; }; }
4395 ac_cpp='$CPP $CPPFLAGS'
4396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401 ac_cpp='$CXXCPP $CPPFLAGS'
4402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4405 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4406 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4407 if test -z "$CXXCPP"; then
4408 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 # Double quotes because CXXCPP needs to be expanded
4412 for CXXCPP in "$CXX -E" "/lib/cpp"
4415 for ac_cxx_preproc_warn_flag in '' yes
4417 # Use a header file that comes with gcc, so configuring glibc
4418 # with a fresh cross-compiler works.
4419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4420 # <limits.h> exists even on freestanding compilers.
4421 # On the NeXT, cc -E runs the code through the compiler's parser,
4422 # not just through cpp. "Syntax error" is here to catch this case.
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4430 # include <limits.h>
4432 # include <assert.h>
4436 if { (ac_try="$ac_cpp conftest.$ac_ext"
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4444 grep -v '^ *+' conftest.er1 >conftest.err
4446 cat conftest.err >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } >/dev/null; then
4449 if test -s conftest.err; then
4450 ac_cpp_err=$ac_cxx_preproc_warn_flag
4451 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4458 if test -z "$ac_cpp_err"; then
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4464 # Broken: fails on valid input.
4468 rm -f conftest.err conftest.$ac_ext
4470 # OK, works on sane cases. Now check whether nonexistent headers
4471 # can be detected and how.
4472 cat >conftest.$ac_ext <<_ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 #include <ac_nonexistent.h>
4480 if { (ac_try="$ac_cpp conftest.$ac_ext"
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4488 grep -v '^ *+' conftest.er1 >conftest.err
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } >/dev/null; then
4493 if test -s conftest.err; then
4494 ac_cpp_err=$ac_cxx_preproc_warn_flag
4495 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4502 if test -z "$ac_cpp_err"; then
4503 # Broken: success on invalid input.
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 # Passes both tests.
4514 rm -f conftest.err conftest.$ac_ext
4517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4518 rm -f conftest.err conftest.$ac_ext
4519 if $ac_preproc_ok; then
4524 ac_cv_prog_CXXCPP=$CXXCPP
4527 CXXCPP=$ac_cv_prog_CXXCPP
4529 ac_cv_prog_CXXCPP=$CXXCPP
4531 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4532 echo "${ECHO_T}$CXXCPP" >&6; }
4534 for ac_cxx_preproc_warn_flag in '' yes
4536 # Use a header file that comes with gcc, so configuring glibc
4537 # with a fresh cross-compiler works.
4538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4539 # <limits.h> exists even on freestanding compilers.
4540 # On the NeXT, cc -E runs the code through the compiler's parser,
4541 # not just through cpp. "Syntax error" is here to catch this case.
4542 cat >conftest.$ac_ext <<_ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4549 # include <limits.h>
4551 # include <assert.h>
4555 if { (ac_try="$ac_cpp conftest.$ac_ext"
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4563 grep -v '^ *+' conftest.er1 >conftest.err
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } >/dev/null; then
4568 if test -s conftest.err; then
4569 ac_cpp_err=$ac_cxx_preproc_warn_flag
4570 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4577 if test -z "$ac_cpp_err"; then
4580 echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4583 # Broken: fails on valid input.
4587 rm -f conftest.err conftest.$ac_ext
4589 # OK, works on sane cases. Now check whether nonexistent headers
4590 # can be detected and how.
4591 cat >conftest.$ac_ext <<_ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 #include <ac_nonexistent.h>
4599 if { (ac_try="$ac_cpp conftest.$ac_ext"
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4607 grep -v '^ *+' conftest.er1 >conftest.err
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } >/dev/null; then
4612 if test -s conftest.err; then
4613 ac_cpp_err=$ac_cxx_preproc_warn_flag
4614 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4621 if test -z "$ac_cpp_err"; then
4622 # Broken: success on invalid input.
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 # Passes both tests.
4633 rm -f conftest.err conftest.$ac_ext
4636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4637 rm -f conftest.err conftest.$ac_ext
4638 if $ac_preproc_ok; then
4641 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4642 See \`config.log' for more details." >&5
4643 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4644 See \`config.log' for more details." >&2;}
4645 { (exit 1); exit 1; }; }
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4654 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4655 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4656 if test "${lt_cv_path_SED+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 # Loop through the user's path and test for sed and gsed.
4660 # Then use that list of sed's as ones to test for truncation.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for lt_ac_prog in sed gsed; do
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4669 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4676 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4677 # along with /bin/sed that truncates output.
4678 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4679 test ! -f $lt_ac_sed && continue
4680 cat /dev/null > conftest.in
4682 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4683 # Check for GNU sed and select it if it is found.
4684 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4685 lt_cv_path_SED=$lt_ac_sed
4689 cat conftest.in conftest.in >conftest.tmp
4690 mv conftest.tmp conftest.in
4691 cp conftest.in conftest.nl
4693 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4694 cmp -s conftest.out conftest.nl || break
4695 # 10000 chars as input seems more than enough
4696 test $lt_ac_count -gt 10 && break
4697 lt_ac_count=`expr $lt_ac_count + 1`
4698 if test $lt_ac_count -gt $lt_ac_max; then
4699 lt_ac_max=$lt_ac_count
4700 lt_cv_path_SED=$lt_ac_sed
4708 { echo "$as_me:$LINENO: result: $SED" >&5
4709 echo "${ECHO_T}$SED" >&6; }
4711 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4712 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4713 if test "${ac_cv_path_GREP+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 # Extract the first word of "grep ggrep" to use in msg output
4717 if test -z "$GREP"; then
4718 set dummy grep ggrep; ac_prog_name=$2
4719 if test "${ac_cv_path_GREP+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 ac_path_GREP_found=false
4723 # Loop through the user's path and test for each of PROGNAME-LIST
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4728 test -z "$as_dir" && as_dir=.