2 # From configure.ac Revision: 47328 .
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
843 ac_precious_vars='build_alias
857 # Initialize some variables set by options.
859 ac_init_version=false
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
869 program_transform_name=s,x,x,
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE}'
894 infodir='${datarootdir}/info'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
915 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 # Accept the important Cygnus configure options, so we can diagnose typos.
921 case $ac_dashdash$ac_option in
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
943 cache_file=config.cache ;;
945 -datadir | --datadir | --datadi | --datad)
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
957 -disable-* | --disable-*)
958 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
961 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
962 { (exit 1); exit 1; }; }
963 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
964 eval enable_$ac_feature=no ;;
966 -docdir | --docdir | --docdi | --doc | --do)
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 -enable-* | --enable-*)
977 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
980 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
981 { (exit 1); exit 1; }; }
982 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
983 eval enable_$ac_feature=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
998 -help | --help | --hel | --he | -h)
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1147 -site=* | --site=* | --sit=*)
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1174 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1177 { echo "$as_me: error: invalid package name: $ac_package" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_package=`echo $ac_package| sed 's/-/_/g'`
1180 eval with_$ac_package=\$ac_optarg ;;
1182 -without-* | --without-*)
1183 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid package name: $ac_package" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_package=`echo $ac_package | sed 's/-/_/g'`
1189 eval with_$ac_package=no ;;
1192 # Obsolete; use --with-x.
1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196 | --x-incl | --x-inc | --x-in | --x-i)
1197 ac_prev=x_includes ;;
1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200 x_includes=$ac_optarg ;;
1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204 ac_prev=x_libraries ;;
1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207 x_libraries=$ac_optarg ;;
1209 -*) { echo "$as_me: error: unrecognized option: $ac_option
1210 Try \`$0 --help' for more information." >&2
1211 { (exit 1); exit 1; }; }
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1219 { (exit 1); exit 1; }; }
1220 eval $ac_envvar=\$ac_optarg
1221 export $ac_envvar ;;
1224 # FIXME: should be removed in autoconf 3.0.
1225 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234 if test -n "$ac_prev"; then
1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236 { echo "$as_me: error: missing argument to $ac_option" >&2
1237 { (exit 1); exit 1; }; }
1240 # Be sure to have absolute directory names.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1246 eval ac_val=\$$ac_var
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1252 { (exit 1); exit 1; }; }
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1260 target=$target_alias
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1267 If a cross compiler is detected then cross compile mode will be used." >&2
1268 elif test "x$build_alias" != "x$host_alias"; then
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276 test "$silent" = yes && exec 6>/dev/null
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 { echo "$as_me: error: Working directory cannot be determined" >&2
1283 { (exit 1); exit 1; }; }
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 { echo "$as_me: error: pwd does not report name of working directory" >&2
1286 { (exit 1); exit 1; }; }
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$0" ||
1294 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$0" : 'X\(//\)[^/]' \| \
1296 X"$0" : 'X\(//\)$' \| \
1297 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1321 ac_srcdir_defaulted=no
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1326 { (exit 1); exit 1; }; }
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1331 { (exit 1); exit 1; }; }
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 # Report the --help message.
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1357 \`configure' configures this package to adapt to many kinds of systems.
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1364 Defaults for the options are specified in brackets.
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print \`checking...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1388 For better control, use the options below.
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --libdir=DIR object code libraries [EPREFIX/lib]
1398 --includedir=DIR C header files [PREFIX/include]
1399 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1402 --infodir=DIR info documentation [DATAROOTDIR/info]
1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1404 --mandir=DIR man documentation [DATAROOTDIR/man]
1405 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1406 --htmldir=DIR html documentation [DOCDIR]
1407 --dvidir=DIR dvi documentation [DOCDIR]
1408 --pdfdir=DIR pdf documentation [DOCDIR]
1409 --psdir=DIR ps documentation [DOCDIR]
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 if test -n "$ac_init_help"; then
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-dev-mode Turn on developer mode
1428 --disable-largefile omit support for large files
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1434 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1435 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1436 --with-curl=PATH use cURL files in PATH
1437 --with-curses=PATH use curses files in PATH
1438 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1440 --with-gsm=PATH use GSM files in PATH , or 'internal'
1441 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1442 --with-imap=PATH use UW IMAP Toolkit files in PATH
1443 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1444 --with-kde=PATH use KDE files in PATH
1445 --with-misdn=PATH use mISDN User Library files in PATH
1446 --with-nbs=PATH use Network Broadcast Sound files in PATH
1447 --with-ncurses=PATH use ncurses files in PATH
1448 --with-netsnmp=PATH use Net-SNMP files in PATH
1449 --with-newt=PATH use newt files in PATH
1450 --with-odbc=PATH use unixODBC files in PATH
1451 --with-ogg=PATH use OGG files in PATH
1452 --with-osptk=PATH use OSP Toolkit files in PATH
1453 --with-oss=PATH use Open Sound System files in PATH
1454 --with-popt=PATH use popt files in PATH
1455 --with-postgres=PATH use PostgreSQL files in PATH
1456 --with-pri=PATH use ISDN PRI files in PATH
1457 --with-ss7=PATH use ISDN SS7 files in PATH
1458 --with-pwlib=PATH use PWlib files in PATH
1459 --with-h323=PATH use OpenH323 files in PATH
1460 --with-qt=PATH use Qt files in PATH
1461 --with-radius=PATH use Radius Client files in PATH
1462 --with-speex=PATH use Speex files in PATH
1463 --with-sqlite=PATH use SQLite files in PATH
1464 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1465 --with-ssl=PATH use OpenSSL files in PATH
1466 --with-tds=PATH use FreeTDS files in PATH
1467 --with-termcap=PATH use Termcap files in PATH
1468 --with-tinfo=PATH use Term Info files in PATH
1469 --with-tonezone=PATH use tonezone files in PATH
1470 --with-vorbis=PATH use Vorbis files in PATH
1471 --with-vpb=PATH use Voicetronix API files in PATH
1472 --with-z=PATH use zlib files in PATH
1473 --with-zaptel=PATH use Zaptel files in PATH
1475 Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
1480 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CXX C++ compiler command
1483 CXXFLAGS C++ compiler flags
1485 CXXCPP C++ preprocessor
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1494 if test "$ac_init_help" = "recursive"; then
1495 # If there are subdirs, report their specific --help.
1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497 test -d "$ac_dir" || continue
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1517 .) # We are building in place.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1541 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1551 generated by GNU Autoconf 2.60a
1553 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1554 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1555 This configure script is free software; the Free Software Foundation
1556 gives unlimited permission to copy, distribute and modify it.
1562 cat >config.log <<_ACEOF
1563 This file contains any messages produced by compilers while
1564 running configure, to aid debugging if configure makes a mistake.
1566 It was created by $as_me, which was
1567 generated by GNU Autoconf 2.60a. Invocation command line was
1579 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1580 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1581 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1582 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1583 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1585 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1586 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1588 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1589 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1590 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1591 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1592 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1593 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1594 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 test -z "$as_dir" && as_dir=.
1603 echo "PATH: $as_dir"
1619 # Keep a trace of the command line.
1620 # Strip out --no-create and --no-recursion so they do not pile up.
1621 # Strip out --silent because we don't want to record it for future runs.
1622 # Also quote any args containing shell meta-characters.
1623 # Make two passes to allow for proper duplicate-argument suppression.
1627 ac_must_keep_next=false
1633 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1635 | -silent | --silent | --silen | --sile | --sil)
1638 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1641 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1643 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1644 if test $ac_must_keep_next = true; then
1645 ac_must_keep_next=false # Got value, back to normal.
1648 *=* | --config-cache | -C | -disable-* | --disable-* \
1649 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1650 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1651 | -with-* | --with-* | -without-* | --without-* | --x)
1652 case "$ac_configure_args0 " in
1653 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1656 -* ) ac_must_keep_next=true ;;
1659 ac_configure_args="$ac_configure_args '$ac_arg'"
1664 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1665 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1667 # When interrupted or exit'd, cleanup temporary files, and complete
1668 # config.log. We remove comments because anyway the quotes in there
1669 # would cause problems or look ugly.
1670 # WARNING: Use '\'' to represent an apostrophe within the trap.
1671 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1672 trap 'exit_status=$?
1673 # Save into config.log some information that might help in debugging.
1678 ## ---------------- ##
1679 ## Cache variables. ##
1680 ## ---------------- ##
1683 # The following way of writing the cache mishandles newlines in values,
1685 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1686 eval ac_val=\$$ac_var
1690 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1691 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1694 _ | IFS | as_nl) ;; #(
1695 *) $as_unset $ac_var ;;
1700 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1701 *${as_nl}ac_space=\ *)
1703 "s/'\''/'\''\\\\'\'''\''/g;
1704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1715 ## ----------------- ##
1716 ## Output variables. ##
1717 ## ----------------- ##
1720 for ac_var in $ac_subst_vars
1722 eval ac_val=\$$ac_var
1724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726 echo "$ac_var='\''$ac_val'\''"
1730 if test -n "$ac_subst_files"; then
1732 ## ------------------- ##
1733 ## File substitutions. ##
1734 ## ------------------- ##
1737 for ac_var in $ac_subst_files
1739 eval ac_val=\$$ac_var
1741 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 echo "$ac_var='\''$ac_val'\''"
1748 if test -s confdefs.h; then
1758 test "$ac_signal" != 0 &&
1759 echo "$as_me: caught signal $ac_signal"
1760 echo "$as_me: exit $exit_status"
1762 rm -f core *.core core.conftest.* &&
1763 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1766 for ac_signal in 1 2 13 15; do
1767 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1771 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1772 rm -f -r conftest* confdefs.h
1774 # Predefined preprocessor variables.
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_NAME "$PACKAGE_NAME"
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_STRING "$PACKAGE_STRING"
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1801 # Let the site file select an alternate cache file if it wants to.
1802 # Prefer explicitly selected file to automatically selected ones.
1803 if test -n "$CONFIG_SITE"; then
1804 set x "$CONFIG_SITE"
1805 elif test "x$prefix" != xNONE; then
1806 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1808 set x "$ac_default_prefix/share/config.site" \
1809 "$ac_default_prefix/etc/config.site"
1814 if test -r "$ac_site_file"; then
1815 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1816 echo "$as_me: loading site script $ac_site_file" >&6;}
1817 sed 's/^/| /' "$ac_site_file" >&5
1822 if test -r "$cache_file"; then
1823 # Some versions of bash will fail to source /dev/null (special
1824 # files actually), so we avoid doing that.
1825 if test -f "$cache_file"; then
1826 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1827 echo "$as_me: loading cache $cache_file" >&6;}
1829 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1830 *) . "./$cache_file";;
1834 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1835 echo "$as_me: creating cache $cache_file" >&6;}
1839 # Check that the precious variables saved in the cache have kept the same
1841 ac_cache_corrupted=false
1842 for ac_var in $ac_precious_vars; do
1843 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1844 eval ac_new_set=\$ac_env_${ac_var}_set
1845 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1846 eval ac_new_val=\$ac_env_${ac_var}_value
1847 case $ac_old_set,$ac_new_set in
1849 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1850 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1851 ac_cache_corrupted=: ;;
1853 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1854 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1855 ac_cache_corrupted=: ;;
1858 if test "x$ac_old_val" != "x$ac_new_val"; then
1859 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1860 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1861 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1862 echo "$as_me: former value: $ac_old_val" >&2;}
1863 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1864 echo "$as_me: current value: $ac_new_val" >&2;}
1865 ac_cache_corrupted=:
1868 # Pass precious variables to config.status.
1869 if test "$ac_new_set" = set; then
1871 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1872 *) ac_arg=$ac_var=$ac_new_val ;;
1874 case " $ac_configure_args " in
1875 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1876 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1880 if $ac_cache_corrupted; then
1881 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1882 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1883 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1884 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1885 { (exit 1); exit 1; }; }
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 # cross-compile macros
1914 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1915 if test -f "$ac_dir/install-sh"; then
1917 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 elif test -f "$ac_dir/install.sh"; then
1921 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 elif test -f "$ac_dir/shtool"; then
1925 ac_install_sh="$ac_aux_dir/shtool install -c"
1929 if test -z "$ac_aux_dir"; then
1930 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1931 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1932 { (exit 1); exit 1; }; }
1935 # These three variables are undocumented and unsupported,
1936 # and are intended to be withdrawn in a future Autoconf release.
1937 # They can cause serious problems if a builder's source tree is in a directory
1938 # whose full name contains unusual characters.
1939 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1940 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1941 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1944 # Make sure we can run config.sub.
1945 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1946 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1947 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1948 { (exit 1); exit 1; }; }
1950 { echo "$as_me:$LINENO: checking build system type" >&5
1951 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1952 if test "${ac_cv_build+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 ac_build_alias=$build_alias
1956 test "x$ac_build_alias" = x &&
1957 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1958 test "x$ac_build_alias" = x &&
1959 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1960 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1961 { (exit 1); exit 1; }; }
1962 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1963 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1964 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1965 { (exit 1); exit 1; }; }
1968 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1969 echo "${ECHO_T}$ac_cv_build" >&6; }
1970 case $ac_cv_build in
1972 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1973 echo "$as_me: error: invalid value of canonical build" >&2;}
1974 { (exit 1); exit 1; }; };;
1977 ac_save_IFS=$IFS; IFS='-'
1983 # Remember, the first character of IFS is used to create $*,
1984 # except with old shells:
1987 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1990 { echo "$as_me:$LINENO: checking host system type" >&5
1991 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1992 if test "${ac_cv_host+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 if test "x$host_alias" = x; then
1996 ac_cv_host=$ac_cv_build
1998 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1999 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2000 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2001 { (exit 1); exit 1; }; }
2005 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2006 echo "${ECHO_T}$ac_cv_host" >&6; }
2009 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2010 echo "$as_me: error: invalid value of canonical host" >&2;}
2011 { (exit 1); exit 1; }; };;
2014 ac_save_IFS=$IFS; IFS='-'
2020 # Remember, the first character of IFS is used to create $*,
2021 # except with old shells:
2024 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2028 # check existence of the package
2031 # specify output header file
2032 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2038 case "${host_os}" in
2040 ac_default_prefix=/usr/local
2041 CPPFLAGS=-I/usr/local/include
2042 LDFLAGS=-L/usr/local/lib
2045 ac_default_prefix=/usr
2046 if test ${sysconfdir} = '${prefix}/etc'; then
2049 if test ${mandir} = '${prefix}/man'; then
2050 mandir=/usr/share/man
2055 if test ${localstatedir} = '${prefix}/var'; then
2059 BUILD_PLATFORM=${build}
2060 BUILD_CPU=${build_cpu}
2061 BUILD_VENDOR=${build_vendor}
2062 BUILD_OS=${build_os}
2069 HOST_PLATFORM=${host}
2070 HOST_CPU=${host_cpu}
2071 HOST_VENDOR=${host_vendor}
2079 case "${host_os}" in
2100 if test -n "$ac_tool_prefix"; then
2101 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2102 set dummy ${ac_tool_prefix}uname; ac_word=$2
2103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2105 if test "${ac_cv_path_UNAME+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2120 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 UNAME=$ac_cv_path_UNAME
2132 if test -n "$UNAME"; then
2133 { echo "$as_me:$LINENO: result: $UNAME" >&5
2134 echo "${ECHO_T}$UNAME" >&6; }
2136 { echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6; }
2142 if test -z "$ac_cv_path_UNAME"; then
2144 # Extract the first word of "uname", so it can be a program name with args.
2145 set dummy uname; ac_word=$2
2146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2148 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 case $ac_pt_UNAME in
2153 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2175 if test -n "$ac_pt_UNAME"; then
2176 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2177 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2179 { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2183 if test "x$ac_pt_UNAME" = x; then
2186 case $cross_compiling:$ac_tool_warned in
2188 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2189 whose name does not start with the host triplet. If you think this
2190 configuration is useful to you, please write to autoconf@gnu.org." >&5
2191 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2192 whose name does not start with the host triplet. If you think this
2193 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2194 ac_tool_warned=yes ;;
2199 UNAME="$ac_cv_path_UNAME"
2202 if test ! x"${UNAME}" = xNo; then
2203 PBX_OSREV=$(${UNAME} -r)
2207 # This needs to be before any macros that use the C compiler
2209 cat >>confdefs.h <<\_ACEOF
2210 #define _GNU_SOURCE 1
2221 # cross-compile checks
2222 if test "${cross_compiling}" = "yes";
2224 if test -n "$ac_tool_prefix"; then
2225 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2226 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2242 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 if test -n "$CC"; then
2254 { echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6; }
2257 { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2263 if test -z "$ac_cv_prog_CC"; then
2265 # Extract the first word of "gcc", so it can be a program name with args.
2266 set dummy gcc; ac_word=$2
2267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 if test -n "$ac_ct_CC"; then
2273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2282 ac_cv_prog_ac_ct_CC="gcc"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2293 if test -n "$ac_ct_CC"; then
2294 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2295 echo "${ECHO_T}$ac_ct_CC" >&6; }
2297 { echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6; }
2301 if test "x$ac_ct_CC" = x; then
2304 case $cross_compiling:$ac_tool_warned in
2306 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2307 whose name does not start with the host triplet. If you think this
2308 configuration is useful to you, please write to autoconf@gnu.org." >&5
2309 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2310 whose name does not start with the host triplet. If you think this
2311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2312 ac_tool_warned=yes ;;
2320 if test -n "$ac_tool_prefix"; then
2321 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2322 set dummy ${ac_tool_prefix}g++; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_CXX+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test -n "$CXX"; then
2329 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 if test -n "$CXX"; then
2350 { echo "$as_me:$LINENO: result: $CXX" >&5
2351 echo "${ECHO_T}$CXX" >&6; }
2353 { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2359 if test -z "$ac_cv_prog_CXX"; then
2361 # Extract the first word of "g++", so it can be a program name with args.
2362 set dummy g++; ac_word=$2
2363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2365 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 if test -n "$ac_ct_CXX"; then
2369 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2378 ac_cv_prog_ac_ct_CXX="g++"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2389 if test -n "$ac_ct_CXX"; then
2390 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2391 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2393 { echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6; }
2397 if test "x$ac_ct_CXX" = x; then
2400 case $cross_compiling:$ac_tool_warned in
2402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet. If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&5
2405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2406 whose name does not start with the host triplet. If you think this
2407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2408 ac_tool_warned=yes ;;
2413 CXX="$ac_cv_prog_CXX"
2416 if test -n "$ac_tool_prefix"; then
2417 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2418 set dummy ${ac_tool_prefix}ld; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_LD+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 if test -n "$LD"; then
2425 ac_cv_prog_LD="$LD" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_LD="${ac_tool_prefix}ld"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 if test -n "$LD"; then
2446 { echo "$as_me:$LINENO: result: $LD" >&5
2447 echo "${ECHO_T}$LD" >&6; }
2449 { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2455 if test -z "$ac_cv_prog_LD"; then
2457 # Extract the first word of "ld", so it can be a program name with args.
2458 set dummy ld; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$ac_ct_LD"; then
2465 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_ac_ct_LD="ld"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2485 if test -n "$ac_ct_LD"; then
2486 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2487 echo "${ECHO_T}$ac_ct_LD" >&6; }
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2493 if test "x$ac_ct_LD" = x; then
2496 case $cross_compiling:$ac_tool_warned in
2498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2499 whose name does not start with the host triplet. If you think this
2500 configuration is useful to you, please write to autoconf@gnu.org." >&5
2501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2502 whose name does not start with the host triplet. If you think this
2503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2504 ac_tool_warned=yes ;;
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_RANLIB+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$RANLIB"; then
2521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 RANLIB=$ac_cv_prog_RANLIB
2541 if test -n "$RANLIB"; then
2542 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2543 echo "${ECHO_T}$RANLIB" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2551 if test -z "$ac_cv_prog_RANLIB"; then
2552 ac_ct_RANLIB=$RANLIB
2553 # Extract the first word of "ranlib", so it can be a program name with args.
2554 set dummy ranlib; ac_word=$2
2555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 if test -n "$ac_ct_RANLIB"; then
2561 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_ac_ct_RANLIB="ranlib"
2571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2581 if test -n "$ac_ct_RANLIB"; then
2582 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2583 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2585 { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2589 if test "x$ac_ct_RANLIB" = x; then
2592 case $cross_compiling:$ac_tool_warned in
2594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2595 whose name does not start with the host triplet. If you think this
2596 configuration is useful to you, please write to autoconf@gnu.org." >&5
2597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2598 whose name does not start with the host triplet. If you think this
2599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2600 ac_tool_warned=yes ;;
2602 RANLIB=$ac_ct_RANLIB
2605 RANLIB="$ac_cv_prog_RANLIB"
2608 if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}ar; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_AR+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$AR"; then
2617 ac_cv_prog_AR="$AR" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_AR="${ac_tool_prefix}ar"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 if test -n "$AR"; then
2638 { echo "$as_me:$LINENO: result: $AR" >&5
2639 echo "${ECHO_T}$AR" >&6; }
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2647 if test -z "$ac_cv_prog_AR"; then
2649 # Extract the first word of "ar", so it can be a program name with args.
2650 set dummy ar; ac_word=$2
2651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 if test -n "$ac_ct_AR"; then
2657 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_ac_ct_AR="ar"
2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2677 if test -n "$ac_ct_AR"; then
2678 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2679 echo "${ECHO_T}$ac_ct_AR" >&6; }
2681 { echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6; }
2685 if test "x$ac_ct_AR" = x; then
2688 case $cross_compiling:$ac_tool_warned in
2690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2691 whose name does not start with the host triplet. If you think this
2692 configuration is useful to you, please write to autoconf@gnu.org." >&5
2693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2694 whose name does not start with the host triplet. If you think this
2695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2696 ac_tool_warned=yes ;;
2706 # Checks for programs.
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2717 if test "${ac_cv_prog_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC="$CC" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 if test -n "$CC"; then
2742 { echo "$as_me:$LINENO: result: $CC" >&5
2743 echo "${ECHO_T}$CC" >&6; }
2745 { echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6; }
2751 if test -z "$ac_cv_prog_CC"; then
2753 # Extract the first word of "gcc", so it can be a program name with args.
2754 set dummy gcc; ac_word=$2
2755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 if test -n "$ac_ct_CC"; then
2761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_ac_ct_CC="gcc"
2771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2781 if test -n "$ac_ct_CC"; then
2782 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2783 echo "${ECHO_T}$ac_ct_CC" >&6; }
2785 { echo "$as_me:$LINENO: result: no" >&5
2786 echo "${ECHO_T}no" >&6; }
2789 if test "x$ac_ct_CC" = x; then
2792 case $cross_compiling:$ac_tool_warned in
2794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2795 whose name does not start with the host triplet. If you think this
2796 configuration is useful to you, please write to autoconf@gnu.org." >&5
2797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2798 whose name does not start with the host triplet. If you think this
2799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2800 ac_tool_warned=yes ;;
2808 if test -z "$CC"; then
2809 if test -n "$ac_tool_prefix"; then
2810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2811 set dummy ${ac_tool_prefix}cc; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_CC+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_CC="${ac_tool_prefix}cc"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 if test -n "$CC"; then
2839 { echo "$as_me:$LINENO: result: $CC" >&5
2840 echo "${ECHO_T}$CC" >&6; }
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2849 if test -z "$CC"; then
2850 # Extract the first word of "cc", so it can be a program name with args.
2851 set dummy cc; ac_word=$2
2852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2854 if test "${ac_cv_prog_CC+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2869 ac_prog_rejected=yes
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy $ac_cv_prog_CC
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2895 if test -n "$CC"; then
2896 { echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6; }
2899 { echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6; }
2905 if test -z "$CC"; then
2906 if test -n "$ac_tool_prefix"; then
2907 for ac_prog in cl.exe
2909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 if test -n "$CC"; then
2938 { echo "$as_me:$LINENO: result: $CC" >&5
2939 echo "${ECHO_T}$CC" >&6; }
2941 { echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6; }
2946 test -n "$CC" && break
2949 if test -z "$CC"; then
2951 for ac_prog in cl.exe
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy $ac_prog; ac_word=$2
2955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 if test -n "$ac_ct_CC"; then
2961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_ac_ct_CC="$ac_prog"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2981 if test -n "$ac_ct_CC"; then
2982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2983 echo "${ECHO_T}$ac_ct_CC" >&6; }
2985 { echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6; }
2990 test -n "$ac_ct_CC" && break
2993 if test "x$ac_ct_CC" = x; then
2996 case $cross_compiling:$ac_tool_warned in
2998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2999 whose name does not start with the host triplet. If you think this
3000 configuration is useful to you, please write to autoconf@gnu.org." >&5
3001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3002 whose name does not start with the host triplet. If you think this
3003 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3004 ac_tool_warned=yes ;;
3013 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." >&5
3015 echo "$as_me: error: no acceptable C compiler found in \$PATH
3016 See \`config.log' for more details." >&2;}
3017 { (exit 1); exit 1; }; }
3019 # Provide some information about the compiler.
3020 echo "$as_me:$LINENO: checking for C compiler version" >&5
3021 ac_compiler=`set X $ac_compile; echo $2`
3022 { (ac_try="$ac_compiler --version >&5"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compiler --version >&5") 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }
3032 { (ac_try="$ac_compiler -v >&5"
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compiler -v >&5") 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (ac_try="$ac_compiler -V >&5"
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compiler -V >&5") 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 ac_clean_files_save=$ac_clean_files
3069 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3073 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3075 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3077 # List of possible output files, starting from the most likely.
3078 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3079 # only as a last resort. b.out is created by i960 compilers.
3080 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3082 # The IRIX 6 linker writes into existing files which may not be
3083 # executable, retaining their permissions. Remove them first so a
3084 # subsequent execution test works.
3086 for ac_file in $ac_files
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3095 if { (ac_try="$ac_link_default"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_link_default") 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3106 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3107 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3108 # so that the user can short-circuit this test for compilers unknown to
3110 for ac_file in $ac_files ''
3112 test -f "$ac_file" || continue
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3117 # We found the default executable, but exeext='' is most
3121 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3123 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125 # We set ac_cv_exeext here because the later test for it is not
3126 # safe: cross compilers may not add the suffix if given an `-o'
3127 # argument, so we may need to know it at that point already.
3128 # Even if this section looks crufty: it has the advantage of
3135 test "$ac_cv_exeext" = no && ac_cv_exeext=
3141 { echo "$as_me:$LINENO: result: $ac_file" >&5
3142 echo "${ECHO_T}$ac_file" >&6; }
3143 if test -z "$ac_file"; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: C compiler cannot create executables
3150 See \`config.log' for more details." >&2;}
3151 { (exit 77); exit 77; }; }
3154 ac_exeext=$ac_cv_exeext
3156 # Check that the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3159 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3160 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3161 # If not cross compiling, check that we can run a simple program.
3162 if test "$cross_compiling" != yes; then
3163 if { ac_try='./$ac_file'
3164 { (case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_try") 2>&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; }; then
3175 if test "$cross_compiling" = maybe; then
3178 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3179 If you meant to cross compile, use \`--host'.
3180 See \`config.log' for more details." >&5
3181 echo "$as_me: error: cannot run C compiled programs.
3182 If you meant to cross compile, use \`--host'.
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3188 { echo "$as_me:$LINENO: result: yes" >&5
3189 echo "${ECHO_T}yes" >&6; }
3191 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3192 ac_clean_files=$ac_clean_files_save
3193 # Check that the compiler produces executables we can run. If not, either
3194 # the compiler is broken, or we cross compile.
3195 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3196 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3197 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3198 echo "${ECHO_T}$cross_compiling" >&6; }
3200 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3201 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3202 if { (ac_try="$ac_link"
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_link") 2>&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; then
3212 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3213 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3214 # work properly (i.e., refer to `conftest.exe'), while it won't with
3216 for ac_file in conftest.exe conftest conftest.*; do
3217 test -f "$ac_file" || continue
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3220 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3227 See \`config.log' for more details." >&5
3228 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3229 See \`config.log' for more details." >&2;}
3230 { (exit 1); exit 1; }; }
3233 rm -f conftest$ac_cv_exeext
3234 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3235 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3237 rm -f conftest.$ac_ext
3238 EXEEXT=$ac_cv_exeext
3240 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3241 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3242 if test "${ac_cv_objext+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 cat >conftest.$ac_ext <<_ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3260 rm -f conftest.o conftest.obj
3261 if { (ac_try="$ac_compile"
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3267 (eval "$ac_compile") 2>&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 for ac_file in conftest.o conftest.obj conftest.*; do
3272 test -f "$ac_file" || continue;
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3283 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details." >&5
3285 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3286 See \`config.log' for more details." >&2;}
3287 { (exit 1); exit 1; }; }
3290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3292 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3293 echo "${ECHO_T}$ac_cv_objext" >&6; }
3294 OBJEXT=$ac_cv_objext
3296 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3297 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3298 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3319 rm -f conftest.$ac_objext
3320 if { (ac_try="$ac_compile"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_compile") 2>conftest.er1
3328 grep -v '^ *+' conftest.er1 >conftest.err
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } &&
3333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3334 { (case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; } &&
3343 { ac_try='test -s conftest.$ac_objext'
3344 { (case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_try") 2>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3365 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3366 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3367 GCC=`test $ac_compiler_gnu = yes && echo yes`
3368 ac_test_CFLAGS=${CFLAGS+set}
3369 ac_save_CFLAGS=$CFLAGS
3370 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3371 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3372 if test "${ac_cv_prog_cc_g+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 ac_save_c_werror_flag=$ac_c_werror_flag
3376 ac_c_werror_flag=yes
3379 cat >conftest.$ac_ext <<_ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3394 rm -f conftest.$ac_objext
3395 if { (ac_try="$ac_compile"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } &&
3408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3409 { (case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_try") 2>&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; } &&
3418 { ac_try='test -s conftest.$ac_objext'
3419 { (case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_try") 2>&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; }; then
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3449 rm -f conftest.$ac_objext
3450 if { (ac_try="$ac_compile"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_compile") 2>conftest.er1
3458 grep -v '^ *+' conftest.er1 >conftest.err
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3464 { (case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_try") 2>&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; } &&
3473 { ac_try='test -s conftest.$ac_objext'
3474 { (case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_try") 2>&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 ac_c_werror_flag=$ac_save_c_werror_flag
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3505 rm -f conftest.$ac_objext
3506 if { (ac_try="$ac_compile"
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_compile") 2>conftest.er1
3514 grep -v '^ *+' conftest.er1 >conftest.err
3516 cat conftest.err >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } &&
3519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3520 { (case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_try") 2>&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; } &&
3529 { ac_try='test -s conftest.$ac_objext'
3530 { (case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_try") 2>&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 ac_c_werror_flag=$ac_save_c_werror_flag
3556 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3557 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3558 if test "$ac_test_CFLAGS" = set; then
3559 CFLAGS=$ac_save_CFLAGS
3560 elif test $ac_cv_prog_cc_g = yes; then
3561 if test "$GCC" = yes; then
3567 if test "$GCC" = yes; then
3573 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3574 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3575 if test "${ac_cv_prog_cc_c89+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 ac_cv_prog_cc_c89=no
3580 cat >conftest.$ac_ext <<_ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3588 #include <sys/types.h>
3589 #include <sys/stat.h>
3590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3591 struct buf { int x; };
3592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3593 static char *e (p, i)
3599 static char *f (char * (*g) (char **, int), char **p, ...)
3604 s = g (p, va_arg (v,int));
3609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3610 function prototypes and stuff, but not '\xHH' hex character constants.
3611 These don't provoke an error unfortunately, instead are silently treated
3612 as 'x'. The following induces an error, until -std is added to get
3613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3614 array size at least. It's necessary to write '\x00'==0 to get something
3615 that's true only with -std. */
3616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3619 inside strings and character constants. */
3621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3623 int test (int i, double x);
3624 struct s1 {int (*f) (int a);};
3625 struct s2 {int (*f) (double a);};
3626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3640 CC="$ac_save_CC $ac_arg"
3641 rm -f conftest.$ac_objext
3642 if { (ac_try="$ac_compile"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_compile") 2>conftest.er1
3650 grep -v '^ *+' conftest.er1 >conftest.err
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3656 { (case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_try") 2>&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; } &&
3665 { ac_try='test -s conftest.$ac_objext'
3666 { (case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_try") 2>&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 ac_cv_prog_cc_c89=$ac_arg
3677 echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3683 rm -f core conftest.err conftest.$ac_objext
3684 test "x$ac_cv_prog_cc_c89" != "xno" && break
3686 rm -f conftest.$ac_ext
3691 case "x$ac_cv_prog_cc_c89" in
3693 { echo "$as_me:$LINENO: result: none needed" >&5
3694 echo "${ECHO_T}none needed" >&6; } ;;
3696 { echo "$as_me:$LINENO: result: unsupported" >&5
3697 echo "${ECHO_T}unsupported" >&6; } ;;
3699 CC="$CC $ac_cv_prog_cc_c89"
3700 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3701 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 ac_cpp='$CXXCPP $CPPFLAGS'
3713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3716 if test -z "$CXX"; then
3717 if test -n "$CCC"; then
3720 if test -n "$ac_tool_prefix"; then
3721 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3727 if test "${ac_cv_prog_CXX+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 if test -n "$CXX"; then
3731 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3740 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 if test -n "$CXX"; then
3752 { echo "$as_me:$LINENO: result: $CXX" >&5
3753 echo "${ECHO_T}$CXX" >&6; }
3755 { echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6; }
3760 test -n "$CXX" && break
3763 if test -z "$CXX"; then
3765 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3767 # Extract the first word of "$ac_prog", so it can be a program name with args.
3768 set dummy $ac_prog; ac_word=$2
3769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3771 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if test -n "$ac_ct_CXX"; then
3775 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3784 ac_cv_prog_ac_ct_CXX="$ac_prog"
3785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3795 if test -n "$ac_ct_CXX"; then
3796 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3797 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3799 { echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6; }
3804 test -n "$ac_ct_CXX" && break
3807 if test "x$ac_ct_CXX" = x; then
3810 case $cross_compiling:$ac_tool_warned in
3812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3813 whose name does not start with the host triplet. If you think this
3814 configuration is useful to you, please write to autoconf@gnu.org." >&5
3815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3816 whose name does not start with the host triplet. If you think this
3817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3818 ac_tool_warned=yes ;;
3826 # Provide some information about the compiler.
3827 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3828 ac_compiler=`set X $ac_compile; echo $2`
3829 { (ac_try="$ac_compiler --version >&5"
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_compiler --version >&5") 2>&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }
3839 { (ac_try="$ac_compiler -v >&5"
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_compiler -v >&5") 2>&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }
3849 { (ac_try="$ac_compiler -V >&5"
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_compiler -V >&5") 2>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }
3860 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3861 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3862 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 cat >conftest.$ac_ext <<_ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3883 rm -f conftest.$ac_objext
3884 if { (ac_try="$ac_compile"
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_compile") 2>conftest.er1
3892 grep -v '^ *+' conftest.er1 >conftest.err
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } &&
3897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3898 { (case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903 (eval "$ac_try") 2>&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; } &&
3907 { ac_try='test -s conftest.$ac_objext'
3908 { (case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_try") 2>&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; }; then
3919 echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3929 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3930 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3931 GXX=`test $ac_compiler_gnu = yes && echo yes`
3932 ac_test_CXXFLAGS=${CXXFLAGS+set}
3933 ac_save_CXXFLAGS=$CXXFLAGS
3934 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3935 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3936 if test "${ac_cv_prog_cxx_g+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3940 ac_cxx_werror_flag=yes
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_compile") 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3973 { (case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_try") 2>&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try='test -s conftest.$ac_objext'
3983 { (case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_try") 2>&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_cv_prog_cxx_g=yes
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3998 cat >conftest.$ac_ext <<_ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4013 rm -f conftest.$ac_objext
4014 if { (ac_try="$ac_compile"
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_compile") 2>conftest.er1
4022 grep -v '^ *+' conftest.er1 >conftest.err
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } &&
4027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4028 { (case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_try") 2>&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043 (eval "$ac_try") 2>&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4054 cat >conftest.$ac_ext <<_ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4078 grep -v '^ *+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4084 { (case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_try") 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest.$ac_objext'
4094 { (case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 ac_cv_prog_cxx_g=yes
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4120 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4121 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4122 if test "$ac_test_CXXFLAGS" = set; then
4123 CXXFLAGS=$ac_save_CXXFLAGS
4124 elif test $ac_cv_prog_cxx_g = yes; then
4125 if test "$GXX" = yes; then
4131 if test "$GXX" = yes; then
4138 ac_cpp='$CPP $CPPFLAGS'
4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144 ac_cpp='$CPP $CPPFLAGS'
4145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4149 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4150 # On Suns, sometimes $CPP names a directory.
4151 if test -n "$CPP" && test -d "$CPP"; then
4154 if test -z "$CPP"; then
4155 if test "${ac_cv_prog_CPP+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 # Double quotes because CPP needs to be expanded
4159 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4162 for ac_c_preproc_warn_flag in '' yes
4164 # Use a header file that comes with gcc, so configuring glibc
4165 # with a fresh cross-compiler works.
4166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4167 # <limits.h> exists even on freestanding compilers.
4168 # On the NeXT, cc -E runs the code through the compiler's parser,
4169 # not just through cpp. "Syntax error" is here to catch this case.
4170 cat >conftest.$ac_ext <<_ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4177 # include <limits.h>
4179 # include <assert.h>
4183 if { (ac_try="$ac_cpp conftest.$ac_ext"
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4191 grep -v '^ *+' conftest.er1 >conftest.err
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } >/dev/null; then
4196 if test -s conftest.err; then
4197 ac_cpp_err=$ac_c_preproc_warn_flag
4198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4205 if test -z "$ac_cpp_err"; then
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 # Broken: fails on valid input.
4215 rm -f conftest.err conftest.$ac_ext
4217 # OK, works on sane cases. Now check whether nonexistent headers
4218 # can be detected and how.
4219 cat >conftest.$ac_ext <<_ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4225 #include <ac_nonexistent.h>
4227 if { (ac_try="$ac_cpp conftest.$ac_ext"
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4235 grep -v '^ *+' conftest.er1 >conftest.err
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } >/dev/null; then
4240 if test -s conftest.err; then
4241 ac_cpp_err=$ac_c_preproc_warn_flag
4242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4249 if test -z "$ac_cpp_err"; then
4250 # Broken: success on invalid input.
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4256 # Passes both tests.
4261 rm -f conftest.err conftest.$ac_ext
4264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4265 rm -f conftest.err conftest.$ac_ext
4266 if $ac_preproc_ok; then
4278 { echo "$as_me:$LINENO: result: $CPP" >&5
4279 echo "${ECHO_T}$CPP" >&6; }
4281 for ac_c_preproc_warn_flag in '' yes
4283 # Use a header file that comes with gcc, so configuring glibc
4284 # with a fresh cross-compiler works.
4285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4286 # <limits.h> exists even on freestanding compilers.
4287 # On the NeXT, cc -E runs the code through the compiler's parser,
4288 # not just through cpp. "Syntax error" is here to catch this case.
4289 cat >conftest.$ac_ext <<_ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4296 # include <limits.h>
4298 # include <assert.h>
4302 if { (ac_try="$ac_cpp conftest.$ac_ext"
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4310 grep -v '^ *+' conftest.er1 >conftest.err
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } >/dev/null; then
4315 if test -s conftest.err; then
4316 ac_cpp_err=$ac_c_preproc_warn_flag
4317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4324 if test -z "$ac_cpp_err"; then
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 # Broken: fails on valid input.
4334 rm -f conftest.err conftest.$ac_ext
4336 # OK, works on sane cases. Now check whether nonexistent headers
4337 # can be detected and how.
4338 cat >conftest.$ac_ext <<_ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #include <ac_nonexistent.h>
4346 if { (ac_try="$ac_cpp conftest.$ac_ext"
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4354 grep -v '^ *+' conftest.er1 >conftest.err
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } >/dev/null; then
4359 if test -s conftest.err; then
4360 ac_cpp_err=$ac_c_preproc_warn_flag
4361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4368 if test -z "$ac_cpp_err"; then
4369 # Broken: success on invalid input.
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 # Passes both tests.
4380 rm -f conftest.err conftest.$ac_ext
4383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4384 rm -f conftest.err conftest.$ac_ext
4385 if $ac_preproc_ok; then
4388 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4389 See \`config.log' for more details." >&5
4390 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4391 See \`config.log' for more details." >&2;}
4392 { (exit 1); exit 1; }; }
4396 ac_cpp='$CPP $CPPFLAGS'
4397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 ac_cpp='$CXXCPP $CPPFLAGS'
4403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4406 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4407 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4408 if test -z "$CXXCPP"; then
4409 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 # Double quotes because CXXCPP needs to be expanded
4413 for CXXCPP in "$CXX -E" "/lib/cpp"
4416 for ac_cxx_preproc_warn_flag in '' yes
4418 # Use a header file that comes with gcc, so configuring glibc
4419 # with a fresh cross-compiler works.
4420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4421 # <limits.h> exists even on freestanding compilers.
4422 # On the NeXT, cc -E runs the code through the compiler's parser,
4423 # not just through cpp. "Syntax error" is here to catch this case.
4424 cat >conftest.$ac_ext <<_ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4431 # include <limits.h>
4433 # include <assert.h>
4437 if { (ac_try="$ac_cpp conftest.$ac_ext"
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4445 grep -v '^ *+' conftest.er1 >conftest.err
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } >/dev/null; then
4450 if test -s conftest.err; then
4451 ac_cpp_err=$ac_cxx_preproc_warn_flag
4452 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4459 if test -z "$ac_cpp_err"; then
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 # Broken: fails on valid input.
4469 rm -f conftest.err conftest.$ac_ext
4471 # OK, works on sane cases. Now check whether nonexistent headers
4472 # can be detected and how.
4473 cat >conftest.$ac_ext <<_ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4479 #include <ac_nonexistent.h>
4481 if { (ac_try="$ac_cpp conftest.$ac_ext"
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4489 grep -v '^ *+' conftest.er1 >conftest.err
4491 cat conftest.err >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } >/dev/null; then
4494 if test -s conftest.err; then
4495 ac_cpp_err=$ac_cxx_preproc_warn_flag
4496 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4503 if test -z "$ac_cpp_err"; then
4504 # Broken: success on invalid input.
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4510 # Passes both tests.
4515 rm -f conftest.err conftest.$ac_ext
4518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4519 rm -f conftest.err conftest.$ac_ext
4520 if $ac_preproc_ok; then
4525 ac_cv_prog_CXXCPP=$CXXCPP
4528 CXXCPP=$ac_cv_prog_CXXCPP
4530 ac_cv_prog_CXXCPP=$CXXCPP
4532 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4533 echo "${ECHO_T}$CXXCPP" >&6; }
4535 for ac_cxx_preproc_warn_flag in '' yes
4537 # Use a header file that comes with gcc, so configuring glibc
4538 # with a fresh cross-compiler works.
4539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4540 # <limits.h> exists even on freestanding compilers.
4541 # On the NeXT, cc -E runs the code through the compiler's parser,
4542 # not just through cpp. "Syntax error" is here to catch this case.
4543 cat >conftest.$ac_ext <<_ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4550 # include <limits.h>
4552 # include <assert.h>
4556 if { (ac_try="$ac_cpp conftest.$ac_ext"
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4564 grep -v '^ *+' conftest.er1 >conftest.err
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } >/dev/null; then
4569 if test -s conftest.err; then
4570 ac_cpp_err=$ac_cxx_preproc_warn_flag
4571 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4578 if test -z "$ac_cpp_err"; then
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 # Broken: fails on valid input.
4588 rm -f conftest.err conftest.$ac_ext
4590 # OK, works on sane cases. Now check whether nonexistent headers
4591 # can be detected and how.
4592 cat >conftest.$ac_ext <<_ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 #include <ac_nonexistent.h>
4600 if { (ac_try="$ac_cpp conftest.$ac_ext"
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4608 grep -v '^ *+' conftest.er1 >conftest.err
4610 cat conftest.err >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } >/dev/null; then
4613 if test -s conftest.err; then
4614 ac_cpp_err=$ac_cxx_preproc_warn_flag
4615 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4622 if test -z "$ac_cpp_err"; then
4623 # Broken: success on invalid input.
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 # Passes both tests.
4634 rm -f conftest.err conftest.$ac_ext
4637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4638 rm -f conftest.err conftest.$ac_ext
4639 if $ac_preproc_ok; then
4642 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4645 See \`config.log' for more details." >&2;}
4646 { (exit 1); exit 1; }; }
4650 ac_cpp='$CPP $CPPFLAGS'
4651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
4656 # the developers regenerating the configure script don't have to install libtool.
4657 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4658 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4659 if test "${ac_cv_path_SED+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4663 for ac_i in 1 2 3 4 5 6 7; do
4664 ac_script="$ac_script$as_nl$ac_script"
4666 echo "$ac_script" | sed 99q >conftest.sed
4667 $as_unset ac_script || ac_script=
4668 # Extract the first word of "sed gsed" to use in msg output
4669 if test -z "$SED"; then
4670 set dummy sed gsed; ac_prog_name=$2
4671 if test "${ac_cv_path_SED+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 ac_path_SED_found=false
4675 # Loop through the user's path and test for each of PROGNAME-LIST
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 test -z "$as_dir" && as_dir=.
4681 for ac_prog in sed gsed; do
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4684 { test -f "$ac_path_SED" && $as_executable_p "$ac_path_SED"; } || continue
4685 # Check for GNU ac_path_SED and select it if it is found.
4686 # Check for GNU $ac_path_SED
4687 case `"$ac_path_SED" --version 2>&1` in
4689 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4692 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4695 cat "conftest.in" "conftest.in" >"conftest.tmp"
4696 mv "conftest.tmp" "conftest.in"
4697 cp "conftest.in" "conftest.nl"
4698 echo '' >> "conftest.nl"
4699 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break