2 # From configure.ac Revision: 44013 .
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
840 ac_precious_vars='build_alias
854 # Initialize some variables set by options.
856 ac_init_version=false
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
866 program_transform_name=s,x,x,
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE}'
891 infodir='${datarootdir}/info'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
912 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 # Accept the important Cygnus configure options, so we can diagnose typos.
918 case $ac_dashdash$ac_option in
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
940 cache_file=config.cache ;;
942 -datadir | --datadir | --datadi | --datad)
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
954 -disable-* | --disable-*)
955 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
958 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
959 { (exit 1); exit 1; }; }
960 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
961 eval enable_$ac_feature=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 -enable-* | --enable-*)
974 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
977 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
978 { (exit 1); exit 1; }; }
979 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
980 eval enable_$ac_feature=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
995 -help | --help | --hel | --he | -h)
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1144 -site=* | --site=* | --sit=*)
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1171 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1174 { echo "$as_me: error: invalid package name: $ac_package" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_package=`echo $ac_package| sed 's/-/_/g'`
1177 eval with_$ac_package=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid package name: $ac_package" >&2
1184 { (exit 1); exit 1; }; }
1185 ac_package=`echo $ac_package | sed 's/-/_/g'`
1186 eval with_$ac_package=no ;;
1189 # Obsolete; use --with-x.
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1206 -*) { echo "$as_me: error: unrecognized option: $ac_option
1207 Try \`$0 --help' for more information." >&2
1208 { (exit 1); exit 1; }; }
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1215 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1216 { (exit 1); exit 1; }; }
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 { echo "$as_me: error: missing argument to $ac_option" >&2
1234 { (exit 1); exit 1; }; }
1237 # Be sure to have absolute directory names.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1243 eval ac_val=\$$ac_var
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1249 { (exit 1); exit 1; }; }
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1257 target=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264 If a cross compiler is detected then cross compile mode will be used." >&2
1265 elif test "x$build_alias" != "x$host_alias"; then
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273 test "$silent" = yes && exec 6>/dev/null
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 { echo "$as_me: error: Working directory cannot be determined" >&2
1280 { (exit 1); exit 1; }; }
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 { echo "$as_me: error: pwd does not report name of working directory" >&2
1283 { (exit 1); exit 1; }; }
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$0" ||
1291 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$0" : 'X\(//\)[^/]' \| \
1293 X"$0" : 'X\(//\)$' \| \
1294 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1318 ac_srcdir_defaulted=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1323 { (exit 1); exit 1; }; }
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1328 { (exit 1); exit 1; }; }
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 # Report the --help message.
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1354 \`configure' configures this package to adapt to many kinds of systems.
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1361 Defaults for the options are specified in brackets.
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1385 For better control, use the options below.
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 if test -n "$ac_init_help"; then
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-dev-mode Turn on developer mode
1425 --disable-largefile omit support for large files
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1431 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1432 --with-curl=PATH use cURL files in PATH
1433 --with-curses=PATH use curses files in PATH
1434 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1436 --with-gsm=PATH use GSM files in PATH , or 'internal'
1437 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1438 --with-imap=PATH use UW IMAP Toolkit files in PATH
1439 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1440 --with-kde=PATH use KDE files in PATH
1441 --with-misdn=PATH use mISDN User Library files in PATH
1442 --with-nbs=PATH use Network Broadcast Sound files in PATH
1443 --with-ncurses=PATH use ncurses files in PATH
1444 --with-netsnmp=PATH use Net-SNMP files in PATH
1445 --with-newt=PATH use newt files in PATH
1446 --with-odbc=PATH use unixODBC files in PATH
1447 --with-ogg=PATH use OGG files in PATH
1448 --with-osptk=PATH use OSP Toolkit files in PATH
1449 --with-oss=PATH use Open Sound System files in PATH
1450 --with-popt=PATH use popt files in PATH
1451 --with-postgres=PATH use PostgreSQL files in PATH
1452 --with-pri=PATH use ISDN PRI files in PATH
1453 --with-ss7=PATH use ISDN SS7 files in PATH
1454 --with-pwlib=PATH use PWlib files in PATH
1455 --with-h323=PATH use OpenH323 files in PATH
1456 --with-qt=PATH use Qt files in PATH
1457 --with-radius=PATH use Radius Client files in PATH
1458 --with-speex=PATH use Speex files in PATH
1459 --with-sqlite=PATH use SQLite files in PATH
1460 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1461 --with-ssl=PATH use OpenSSL files in PATH
1462 --with-tds=PATH use FreeTDS files in PATH
1463 --with-termcap=PATH use Termcap files in PATH
1464 --with-tinfo=PATH use Term Info files in PATH
1465 --with-tonezone=PATH use tonezone files in PATH
1466 --with-vorbis=PATH use Vorbis files in PATH
1467 --with-vpb=PATH use Voicetronix API files in PATH
1468 --with-z=PATH use zlib files in PATH
1469 --with-zaptel=PATH use Zaptel files in PATH
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1478 CXX C++ compiler command
1479 CXXFLAGS C++ compiler flags
1481 CXXCPP C++ preprocessor
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" || continue
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1513 .) # We are building in place.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1537 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1547 generated by GNU Autoconf 2.60a
1549 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1550 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1558 cat >config.log <<_ACEOF
1559 This file contains any messages produced by compilers while
1560 running configure, to aid debugging if configure makes a mistake.
1562 It was created by $as_me, which was
1563 generated by GNU Autoconf 2.60a. Invocation command line was
1575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1582 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1584 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1585 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1587 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1588 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1589 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1590 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 test -z "$as_dir" && as_dir=.
1599 echo "PATH: $as_dir"
1615 # Keep a trace of the command line.
1616 # Strip out --no-create and --no-recursion so they do not pile up.
1617 # Strip out --silent because we don't want to record it for future runs.
1618 # Also quote any args containing shell meta-characters.
1619 # Make two passes to allow for proper duplicate-argument suppression.
1623 ac_must_keep_next=false
1629 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1631 | -silent | --silent | --silen | --sile | --sil)
1634 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1637 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1639 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1640 if test $ac_must_keep_next = true; then
1641 ac_must_keep_next=false # Got value, back to normal.
1644 *=* | --config-cache | -C | -disable-* | --disable-* \
1645 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1646 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1647 | -with-* | --with-* | -without-* | --without-* | --x)
1648 case "$ac_configure_args0 " in
1649 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1652 -* ) ac_must_keep_next=true ;;
1655 ac_configure_args="$ac_configure_args '$ac_arg'"
1660 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1661 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1663 # When interrupted or exit'd, cleanup temporary files, and complete
1664 # config.log. We remove comments because anyway the quotes in there
1665 # would cause problems or look ugly.
1666 # WARNING: Use '\'' to represent an apostrophe within the trap.
1667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1668 trap 'exit_status=$?
1669 # Save into config.log some information that might help in debugging.
1674 ## ---------------- ##
1675 ## Cache variables. ##
1676 ## ---------------- ##
1679 # The following way of writing the cache mishandles newlines in values,
1681 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1682 eval ac_val=\$$ac_var
1686 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1687 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1690 _ | IFS | as_nl) ;; #(
1691 *) $as_unset $ac_var ;;
1696 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1697 *${as_nl}ac_space=\ *)
1699 "s/'\''/'\''\\\\'\'''\''/g;
1700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711 ## ----------------- ##
1712 ## Output variables. ##
1713 ## ----------------- ##
1716 for ac_var in $ac_subst_vars
1718 eval ac_val=\$$ac_var
1720 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1722 echo "$ac_var='\''$ac_val'\''"
1726 if test -n "$ac_subst_files"; then
1728 ## ------------------- ##
1729 ## File substitutions. ##
1730 ## ------------------- ##
1733 for ac_var in $ac_subst_files
1735 eval ac_val=\$$ac_var
1737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 echo "$ac_var='\''$ac_val'\''"
1744 if test -s confdefs.h; then
1754 test "$ac_signal" != 0 &&
1755 echo "$as_me: caught signal $ac_signal"
1756 echo "$as_me: exit $exit_status"
1758 rm -f core *.core core.conftest.* &&
1759 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1762 for ac_signal in 1 2 13 15; do
1763 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1767 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1768 rm -f -r conftest* confdefs.h
1770 # Predefined preprocessor variables.
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_NAME "$PACKAGE_NAME"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_STRING "$PACKAGE_STRING"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1797 # Let the site file select an alternate cache file if it wants to.
1798 # Prefer explicitly selected file to automatically selected ones.
1799 if test -n "$CONFIG_SITE"; then
1800 set x "$CONFIG_SITE"
1801 elif test "x$prefix" != xNONE; then
1802 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1804 set x "$ac_default_prefix/share/config.site" \
1805 "$ac_default_prefix/etc/config.site"
1810 if test -r "$ac_site_file"; then
1811 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1812 echo "$as_me: loading site script $ac_site_file" >&6;}
1813 sed 's/^/| /' "$ac_site_file" >&5
1818 if test -r "$cache_file"; then
1819 # Some versions of bash will fail to source /dev/null (special
1820 # files actually), so we avoid doing that.
1821 if test -f "$cache_file"; then
1822 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1823 echo "$as_me: loading cache $cache_file" >&6;}
1825 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1826 *) . "./$cache_file";;
1830 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1831 echo "$as_me: creating cache $cache_file" >&6;}
1835 # Check that the precious variables saved in the cache have kept the same
1837 ac_cache_corrupted=false
1838 for ac_var in $ac_precious_vars; do
1839 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1840 eval ac_new_set=\$ac_env_${ac_var}_set
1841 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1842 eval ac_new_val=\$ac_env_${ac_var}_value
1843 case $ac_old_set,$ac_new_set in
1845 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1849 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1850 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1851 ac_cache_corrupted=: ;;
1854 if test "x$ac_old_val" != "x$ac_new_val"; then
1855 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1856 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1857 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1858 echo "$as_me: former value: $ac_old_val" >&2;}
1859 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1860 echo "$as_me: current value: $ac_new_val" >&2;}
1861 ac_cache_corrupted=:
1864 # Pass precious variables to config.status.
1865 if test "$ac_new_set" = set; then
1867 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 *) ac_arg=$ac_var=$ac_new_val ;;
1870 case " $ac_configure_args " in
1871 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1872 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1876 if $ac_cache_corrupted; then
1877 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1878 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1879 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1880 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1881 { (exit 1); exit 1; }; }
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908 # cross-compile macros
1910 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1911 if test -f "$ac_dir/install-sh"; then
1913 ac_install_sh="$ac_aux_dir/install-sh -c"
1915 elif test -f "$ac_dir/install.sh"; then
1917 ac_install_sh="$ac_aux_dir/install.sh -c"
1919 elif test -f "$ac_dir/shtool"; then
1921 ac_install_sh="$ac_aux_dir/shtool install -c"
1925 if test -z "$ac_aux_dir"; then
1926 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1927 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1928 { (exit 1); exit 1; }; }
1931 # These three variables are undocumented and unsupported,
1932 # and are intended to be withdrawn in a future Autoconf release.
1933 # They can cause serious problems if a builder's source tree is in a directory
1934 # whose full name contains unusual characters.
1935 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1936 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1937 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1940 # Make sure we can run config.sub.
1941 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1942 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1943 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1944 { (exit 1); exit 1; }; }
1946 { echo "$as_me:$LINENO: checking build system type" >&5
1947 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1948 if test "${ac_cv_build+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 ac_build_alias=$build_alias
1952 test "x$ac_build_alias" = x &&
1953 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1954 test "x$ac_build_alias" = x &&
1955 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1956 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1957 { (exit 1); exit 1; }; }
1958 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1959 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1960 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1961 { (exit 1); exit 1; }; }
1964 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1965 echo "${ECHO_T}$ac_cv_build" >&6; }
1966 case $ac_cv_build in
1968 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1969 echo "$as_me: error: invalid value of canonical build" >&2;}
1970 { (exit 1); exit 1; }; };;
1973 ac_save_IFS=$IFS; IFS='-'
1979 # Remember, the first character of IFS is used to create $*,
1980 # except with old shells:
1983 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1986 { echo "$as_me:$LINENO: checking host system type" >&5
1987 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1988 if test "${ac_cv_host+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 if test "x$host_alias" = x; then
1992 ac_cv_host=$ac_cv_build
1994 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1995 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1996 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1997 { (exit 1); exit 1; }; }
2001 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2002 echo "${ECHO_T}$ac_cv_host" >&6; }
2005 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2006 echo "$as_me: error: invalid value of canonical host" >&2;}
2007 { (exit 1); exit 1; }; };;
2010 ac_save_IFS=$IFS; IFS='-'
2016 # Remember, the first character of IFS is used to create $*,
2017 # except with old shells:
2020 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2024 # check existence of the package
2027 # specify output header file
2028 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2034 case "${host_os}" in
2036 ac_default_prefix=/usr/local
2039 ac_default_prefix=/usr
2040 if test ${sysconfdir} = '${prefix}/etc'; then
2043 if test ${mandir} = '${prefix}/man'; then
2044 mandir=/usr/share/man
2049 if test ${localstatedir} = '${prefix}/var'; then
2053 BUILD_PLATFORM=${build}
2054 BUILD_CPU=${build_cpu}
2055 BUILD_VENDOR=${build_vendor}
2056 BUILD_OS=${build_os}
2063 HOST_PLATFORM=${host}
2064 HOST_CPU=${host_cpu}
2065 HOST_VENDOR=${host_vendor}
2073 case "${host_os}" in
2094 if test -n "$ac_tool_prefix"; then
2095 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2096 set dummy ${ac_tool_prefix}uname; ac_word=$2
2097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099 if test "${ac_cv_path_UNAME+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 test -z "$as_dir" && as_dir=.
2112 for ac_exec_ext in '' $ac_executable_extensions; do
2113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2114 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 UNAME=$ac_cv_path_UNAME
2126 if test -n "$UNAME"; then
2127 { echo "$as_me:$LINENO: result: $UNAME" >&5
2128 echo "${ECHO_T}$UNAME" >&6; }
2130 { echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6; }
2136 if test -z "$ac_cv_path_UNAME"; then
2138 # Extract the first word of "uname", so it can be a program name with args.
2139 set dummy uname; ac_word=$2
2140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2142 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 case $ac_pt_UNAME in
2147 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2157 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2169 if test -n "$ac_pt_UNAME"; then
2170 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2171 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2177 if test "x$ac_pt_UNAME" = x; then
2180 case $cross_compiling:$ac_tool_warned in
2182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2183 whose name does not start with the host triplet. If you think this
2184 configuration is useful to you, please write to autoconf@gnu.org." >&5
2185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2186 whose name does not start with the host triplet. If you think this
2187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2188 ac_tool_warned=yes ;;
2193 UNAME="$ac_cv_path_UNAME"
2196 if test ! x"${UNAME}" = xNo; then
2197 PBX_OSREV=$(${UNAME} -r)
2201 # This needs to be before any macros that use the C compiler
2203 cat >>confdefs.h <<\_ACEOF
2204 #define _GNU_SOURCE 1
2215 # cross-compile checks
2216 if test "${cross_compiling}" = "yes";
2218 if test -n "$ac_tool_prefix"; then
2219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 if test -n "$CC"; then
2227 ac_cv_prog_CC="$CC" # Let the user override the test.
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2236 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 if test -n "$CC"; then
2248 { echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6; }
2251 { echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6; }
2257 if test -z "$ac_cv_prog_CC"; then
2259 # Extract the first word of "gcc", so it can be a program name with args.
2260 set dummy gcc; ac_word=$2
2261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 if test -n "$ac_ct_CC"; then
2267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2276 ac_cv_prog_ac_ct_CC="gcc"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2287 if test -n "$ac_ct_CC"; then
2288 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2289 echo "${ECHO_T}$ac_ct_CC" >&6; }
2291 { echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6; }
2295 if test "x$ac_ct_CC" = x; then
2298 case $cross_compiling:$ac_tool_warned in
2300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2301 whose name does not start with the host triplet. If you think this
2302 configuration is useful to you, please write to autoconf@gnu.org." >&5
2303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2304 whose name does not start with the host triplet. If you think this
2305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2306 ac_tool_warned=yes ;;
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}g++; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_CXX+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$CXX"; then
2323 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 if test -n "$CXX"; then
2344 { echo "$as_me:$LINENO: result: $CXX" >&5
2345 echo "${ECHO_T}$CXX" >&6; }
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2353 if test -z "$ac_cv_prog_CXX"; then
2355 # Extract the first word of "g++", so it can be a program name with args.
2356 set dummy g++; ac_word=$2
2357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 if test -n "$ac_ct_CXX"; then
2363 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_ac_ct_CXX="g++"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2383 if test -n "$ac_ct_CXX"; then
2384 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2385 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2387 { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2391 if test "x$ac_ct_CXX" = x; then
2394 case $cross_compiling:$ac_tool_warned in
2396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet. If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&5
2399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2402 ac_tool_warned=yes ;;
2407 CXX="$ac_cv_prog_CXX"
2410 if test -n "$ac_tool_prefix"; then
2411 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2412 set dummy ${ac_tool_prefix}ld; ac_word=$2
2413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2415 if test "${ac_cv_prog_LD+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 if test -n "$LD"; then
2419 ac_cv_prog_LD="$LD" # Let the user override the test.
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_LD="${ac_tool_prefix}ld"
2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 if test -n "$LD"; then
2440 { echo "$as_me:$LINENO: result: $LD" >&5
2441 echo "${ECHO_T}$LD" >&6; }
2443 { echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6; }
2449 if test -z "$ac_cv_prog_LD"; then
2451 # Extract the first word of "ld", so it can be a program name with args.
2452 set dummy ld; ac_word=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 if test -n "$ac_ct_LD"; then
2459 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_ac_ct_LD="ld"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2479 if test -n "$ac_ct_LD"; then
2480 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2481 echo "${ECHO_T}$ac_ct_LD" >&6; }
2483 { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2487 if test "x$ac_ct_LD" = x; then
2490 case $cross_compiling:$ac_tool_warned in
2492 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2493 whose name does not start with the host triplet. If you think this
2494 configuration is useful to you, please write to autoconf@gnu.org." >&5
2495 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2496 whose name does not start with the host triplet. If you think this
2497 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2498 ac_tool_warned=yes ;;
2506 if test -n "$ac_tool_prefix"; then
2507 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2508 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_RANLIB+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 if test -n "$RANLIB"; then
2515 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 RANLIB=$ac_cv_prog_RANLIB
2535 if test -n "$RANLIB"; then
2536 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2537 echo "${ECHO_T}$RANLIB" >&6; }
2539 { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2545 if test -z "$ac_cv_prog_RANLIB"; then
2546 ac_ct_RANLIB=$RANLIB
2547 # Extract the first word of "ranlib", so it can be a program name with args.
2548 set dummy ranlib; ac_word=$2
2549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2551 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 if test -n "$ac_ct_RANLIB"; then
2555 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 ac_cv_prog_ac_ct_RANLIB="ranlib"
2565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2575 if test -n "$ac_ct_RANLIB"; then
2576 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2577 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2579 { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2583 if test "x$ac_ct_RANLIB" = x; then
2586 case $cross_compiling:$ac_tool_warned in
2588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2589 whose name does not start with the host triplet. If you think this
2590 configuration is useful to you, please write to autoconf@gnu.org." >&5
2591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2592 whose name does not start with the host triplet. If you think this
2593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2594 ac_tool_warned=yes ;;
2596 RANLIB=$ac_ct_RANLIB
2599 RANLIB="$ac_cv_prog_RANLIB"
2602 if test -n "$ac_tool_prefix"; then
2603 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2604 set dummy ${ac_tool_prefix}ar; ac_word=$2
2605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2607 if test "${ac_cv_prog_AR+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 if test -n "$AR"; then
2611 ac_cv_prog_AR="$AR" # Let the user override the test.
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_AR="${ac_tool_prefix}ar"
2621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 if test -n "$AR"; then
2632 { echo "$as_me:$LINENO: result: $AR" >&5
2633 echo "${ECHO_T}$AR" >&6; }
2635 { echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6; }
2641 if test -z "$ac_cv_prog_AR"; then
2643 # Extract the first word of "ar", so it can be a program name with args.
2644 set dummy ar; ac_word=$2
2645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 if test -n "$ac_ct_AR"; then
2651 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_ac_ct_AR="ar"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2671 if test -n "$ac_ct_AR"; then
2672 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2673 echo "${ECHO_T}$ac_ct_AR" >&6; }
2675 { echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6; }
2679 if test "x$ac_ct_AR" = x; then
2682 case $cross_compiling:$ac_tool_warned in
2684 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2685 whose name does not start with the host triplet. If you think this
2686 configuration is useful to you, please write to autoconf@gnu.org." >&5
2687 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2688 whose name does not start with the host triplet. If you think this
2689 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2690 ac_tool_warned=yes ;;
2700 # Checks for programs.
2702 ac_cpp='$CPP $CPPFLAGS'
2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706 if test -n "$ac_tool_prefix"; then
2707 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2708 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 if test -n "$CC"; then
2736 { echo "$as_me:$LINENO: result: $CC" >&5
2737 echo "${ECHO_T}$CC" >&6; }
2739 { echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6; }
2745 if test -z "$ac_cv_prog_CC"; then
2747 # Extract the first word of "gcc", so it can be a program name with args.
2748 set dummy gcc; ac_word=$2
2749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 if test -n "$ac_ct_CC"; then
2755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2764 ac_cv_prog_ac_ct_CC="gcc"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2775 if test -n "$ac_ct_CC"; then
2776 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2777 echo "${ECHO_T}$ac_ct_CC" >&6; }
2779 { echo "$as_me:$LINENO: result: no" >&5
2780 echo "${ECHO_T}no" >&6; }
2783 if test "x$ac_ct_CC" = x; then
2786 case $cross_compiling:$ac_tool_warned in
2788 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2789 whose name does not start with the host triplet. If you think this
2790 configuration is useful to you, please write to autoconf@gnu.org." >&5
2791 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2792 whose name does not start with the host triplet. If you think this
2793 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2794 ac_tool_warned=yes ;;
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805 set dummy ${ac_tool_prefix}cc; ac_word=$2
2806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_CC="${ac_tool_prefix}cc"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 if test -n "$CC"; then
2833 { echo "$as_me:$LINENO: result: $CC" >&5
2834 echo "${ECHO_T}$CC" >&6; }
2836 { echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6; }
2843 if test -z "$CC"; then
2844 # Extract the first word of "cc", so it can be a program name with args.
2845 set dummy cc; ac_word=$2
2846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2848 if test "${ac_cv_prog_CC+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 if test -n "$CC"; then
2852 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2863 ac_prog_rejected=yes
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 if test $ac_prog_rejected = yes; then
2875 # We found a bogon in the path, so make sure we never use it.
2876 set dummy $ac_cv_prog_CC
2878 if test $# != 0; then
2879 # We chose a different compiler from the bogus one.
2880 # However, it has the same basename, so the bogon will be chosen
2881 # first if we set CC to just the basename; use the full file name.
2883 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2889 if test -n "$CC"; then
2890 { echo "$as_me:$LINENO: result: $CC" >&5
2891 echo "${ECHO_T}$CC" >&6; }
2893 { echo "$as_me:$LINENO: result: no" >&5
2894 echo "${ECHO_T}no" >&6; }
2899 if test -z "$CC"; then
2900 if test -n "$ac_tool_prefix"; then
2901 for ac_prog in cl.exe
2903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2907 if test "${ac_cv_prog_CC+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 if test -n "$CC"; then
2911 ac_cv_prog_CC="$CC" # Let the user override the test.
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 if test -n "$CC"; then
2932 { echo "$as_me:$LINENO: result: $CC" >&5
2933 echo "${ECHO_T}$CC" >&6; }
2935 { echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6; }
2940 test -n "$CC" && break
2943 if test -z "$CC"; then
2945 for ac_prog in cl.exe
2947 # Extract the first word of "$ac_prog", so it can be a program name with args.
2948 set dummy $ac_prog; ac_word=$2
2949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 if test -n "$ac_ct_CC"; then
2955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 ac_cv_prog_ac_ct_CC="$ac_prog"
2965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975 if test -n "$ac_ct_CC"; then
2976 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2977 echo "${ECHO_T}$ac_ct_CC" >&6; }
2979 { echo "$as_me:$LINENO: result: no" >&5
2980 echo "${ECHO_T}no" >&6; }
2984 test -n "$ac_ct_CC" && break
2987 if test "x$ac_ct_CC" = x; then
2990 case $cross_compiling:$ac_tool_warned in
2992 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2993 whose name does not start with the host triplet. If you think this
2994 configuration is useful to you, please write to autoconf@gnu.org." >&5
2995 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2996 whose name does not start with the host triplet. If you think this
2997 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2998 ac_tool_warned=yes ;;
3007 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3008 See \`config.log' for more details." >&5
3009 echo "$as_me: error: no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details." >&2;}
3011 { (exit 1); exit 1; }; }
3013 # Provide some information about the compiler.
3014 echo "$as_me:$LINENO: checking for C compiler version" >&5
3015 ac_compiler=`set X $ac_compile; echo $2`
3016 { (ac_try="$ac_compiler --version >&5"
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compiler --version >&5") 2>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }
3026 { (ac_try="$ac_compiler -v >&5"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compiler -v >&5") 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }
3036 { (ac_try="$ac_compiler -V >&5"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compiler -V >&5") 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3062 ac_clean_files_save=$ac_clean_files
3063 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3064 # Try to create an executable without -o first, disregard a.out.
3065 # It will help us diagnose broken compilers, and finding out an intuition
3067 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3068 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3069 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3071 # List of possible output files, starting from the most likely.
3072 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3073 # only as a last resort. b.out is created by i960 compilers.
3074 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3076 # The IRIX 6 linker writes into existing files which may not be
3077 # executable, retaining their permissions. Remove them first so a
3078 # subsequent execution test works.
3080 for ac_file in $ac_files
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3084 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3089 if { (ac_try="$ac_link_default"
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_link_default") 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; then
3099 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3100 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3101 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3102 # so that the user can short-circuit this test for compilers unknown to
3104 for ac_file in $ac_files ''
3106 test -f "$ac_file" || continue
3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3111 # We found the default executable, but exeext='' is most
3115 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3117 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119 # We set ac_cv_exeext here because the later test for it is not
3120 # safe: cross compilers may not add the suffix if given an `-o'
3121 # argument, so we may need to know it at that point already.
3122 # Even if this section looks crufty: it has the advantage of
3129 test "$ac_cv_exeext" = no && ac_cv_exeext=
3135 { echo "$as_me:$LINENO: result: $ac_file" >&5
3136 echo "${ECHO_T}$ac_file" >&6; }
3137 if test -z "$ac_file"; then
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3141 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3142 See \`config.log' for more details." >&5
3143 echo "$as_me: error: C compiler cannot create executables
3144 See \`config.log' for more details." >&2;}
3145 { (exit 77); exit 77; }; }
3148 ac_exeext=$ac_cv_exeext
3150 # Check that the compiler produces executables we can run. If not, either
3151 # the compiler is broken, or we cross compile.
3152 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3153 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3154 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3155 # If not cross compiling, check that we can run a simple program.
3156 if test "$cross_compiling" != yes; then
3157 if { ac_try='./$ac_file'
3158 { (case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_try") 2>&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3169 if test "$cross_compiling" = maybe; then
3172 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3173 If you meant to cross compile, use \`--host'.
3174 See \`config.log' for more details." >&5
3175 echo "$as_me: error: cannot run C compiled programs.
3176 If you meant to cross compile, use \`--host'.
3177 See \`config.log' for more details." >&2;}
3178 { (exit 1); exit 1; }; }
3182 { echo "$as_me:$LINENO: result: yes" >&5
3183 echo "${ECHO_T}yes" >&6; }
3185 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3186 ac_clean_files=$ac_clean_files_save
3187 # Check that the compiler produces executables we can run. If not, either
3188 # the compiler is broken, or we cross compile.
3189 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3190 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3191 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3192 echo "${ECHO_T}$cross_compiling" >&6; }
3194 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3195 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3196 if { (ac_try="$ac_link"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_link") 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; then
3206 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3207 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3208 # work properly (i.e., refer to `conftest.exe'), while it won't with
3210 for ac_file in conftest.exe conftest conftest.*; do
3211 test -f "$ac_file" || continue
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3214 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3220 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3221 See \`config.log' for more details." >&5
3222 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3223 See \`config.log' for more details." >&2;}
3224 { (exit 1); exit 1; }; }
3227 rm -f conftest$ac_cv_exeext
3228 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3229 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3231 rm -f conftest.$ac_ext
3232 EXEEXT=$ac_cv_exeext
3234 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3235 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3236 if test "${ac_cv_objext+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 cat >conftest.$ac_ext <<_ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3254 rm -f conftest.o conftest.obj
3255 if { (ac_try="$ac_compile"
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261 (eval "$ac_compile") 2>&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; then
3265 for ac_file in conftest.o conftest.obj conftest.*; do
3266 test -f "$ac_file" || continue;
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3269 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3278 See \`config.log' for more details." >&5
3279 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3280 See \`config.log' for more details." >&2;}
3281 { (exit 1); exit 1; }; }
3284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3286 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3287 echo "${ECHO_T}$ac_cv_objext" >&6; }
3288 OBJEXT=$ac_cv_objext
3290 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3291 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3292 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3313 rm -f conftest.$ac_objext
3314 if { (ac_try="$ac_compile"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_compile") 2>conftest.er1
3322 grep -v '^ *+' conftest.er1 >conftest.err
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } &&
3327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3328 { (case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_try") 2>&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; } &&
3337 { ac_try='test -s conftest.$ac_objext'
3338 { (case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_try") 2>&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3359 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3360 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3361 GCC=`test $ac_compiler_gnu = yes && echo yes`
3362 ac_test_CFLAGS=${CFLAGS+set}
3363 ac_save_CFLAGS=$CFLAGS
3364 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3365 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3366 if test "${ac_cv_prog_cc_g+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 ac_save_c_werror_flag=$ac_c_werror_flag
3370 ac_c_werror_flag=yes
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3388 rm -f conftest.$ac_objext
3389 if { (ac_try="$ac_compile"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_compile") 2>conftest.er1
3397 grep -v '^ *+' conftest.er1 >conftest.err
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } &&
3402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3403 { (case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_try") 2>&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; } &&
3412 { ac_try='test -s conftest.$ac_objext'
3413 { (case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_try") 2>&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3458 { (case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_try") 2>&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try='test -s conftest.$ac_objext'
3468 { (case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_try") 2>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_compile") 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3514 { (case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_try") 2>&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_try") 2>&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 ac_c_werror_flag=$ac_save_c_werror_flag
3550 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3551 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3552 if test "$ac_test_CFLAGS" = set; then
3553 CFLAGS=$ac_save_CFLAGS
3554 elif test $ac_cv_prog_cc_g = yes; then
3555 if test "$GCC" = yes; then
3561 if test "$GCC" = yes; then
3567 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3568 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3569 if test "${ac_cv_prog_cc_c89+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 ac_cv_prog_cc_c89=no
3574 cat >conftest.$ac_ext <<_ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3582 #include <sys/types.h>
3583 #include <sys/stat.h>
3584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3585 struct buf { int x; };
3586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3587 static char *e (p, i)
3593 static char *f (char * (*g) (char **, int), char **p, ...)
3598 s = g (p, va_arg (v,int));
3603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3604 function prototypes and stuff, but not '\xHH' hex character constants.
3605 These don't provoke an error unfortunately, instead are silently treated
3606 as 'x'. The following induces an error, until -std is added to get
3607 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3608 array size at least. It's necessary to write '\x00'==0 to get something
3609 that's true only with -std. */
3610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3612 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3613 inside strings and character constants. */
3615 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3617 int test (int i, double x);
3618 struct s1 {int (*f) (int a);};
3619 struct s2 {int (*f) (double a);};
3620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3631 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3632 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3634 CC="$ac_save_CC $ac_arg"
3635 rm -f conftest.$ac_objext
3636 if { (ac_try="$ac_compile"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_compile") 2>conftest.er1
3644 grep -v '^ *+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3650 { (case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655 (eval "$ac_try") 2>&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
3660 { (case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665 (eval "$ac_try") 2>&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 ac_cv_prog_cc_c89=$ac_arg
3671 echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3677 rm -f core conftest.err conftest.$ac_objext
3678 test "x$ac_cv_prog_cc_c89" != "xno" && break
3680 rm -f conftest.$ac_ext
3685 case "x$ac_cv_prog_cc_c89" in
3687 { echo "$as_me:$LINENO: result: none needed" >&5
3688 echo "${ECHO_T}none needed" >&6; } ;;
3690 { echo "$as_me:$LINENO: result: unsupported" >&5
3691 echo "${ECHO_T}unsupported" >&6; } ;;
3693 CC="$CC $ac_cv_prog_cc_c89"
3694 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3695 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 ac_cpp='$CXXCPP $CPPFLAGS'
3707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3710 if test -z "$CXX"; then
3711 if test -n "$CCC"; then
3714 if test -n "$ac_tool_prefix"; then
3715 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3721 if test "${ac_cv_prog_CXX+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 if test -n "$CXX"; then
3725 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 if test -n "$CXX"; then
3746 { echo "$as_me:$LINENO: result: $CXX" >&5
3747 echo "${ECHO_T}$CXX" >&6; }
3749 { echo "$as_me:$LINENO: result: no" >&5
3750 echo "${ECHO_T}no" >&6; }
3754 test -n "$CXX" && break
3757 if test -z "$CXX"; then
3759 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3761 # Extract the first word of "$ac_prog", so it can be a program name with args.
3762 set dummy $ac_prog; ac_word=$2
3763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3765 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 if test -n "$ac_ct_CXX"; then
3769 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_prog_ac_ct_CXX="$ac_prog"
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3789 if test -n "$ac_ct_CXX"; then
3790 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3791 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3793 { echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6; }
3798 test -n "$ac_ct_CXX" && break
3801 if test "x$ac_ct_CXX" = x; then
3804 case $cross_compiling:$ac_tool_warned in
3806 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3807 whose name does not start with the host triplet. If you think this
3808 configuration is useful to you, please write to autoconf@gnu.org." >&5
3809 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3810 whose name does not start with the host triplet. If you think this
3811 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3812 ac_tool_warned=yes ;;
3820 # Provide some information about the compiler.
3821 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3822 ac_compiler=`set X $ac_compile; echo $2`
3823 { (ac_try="$ac_compiler --version >&5"
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_compiler --version >&5") 2>&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }
3833 { (ac_try="$ac_compiler -v >&5"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compiler -v >&5") 2>&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }
3843 { (ac_try="$ac_compiler -V >&5"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849 (eval "$ac_compiler -V >&5") 2>&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }
3854 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3855 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3856 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 cat >conftest.$ac_ext <<_ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3877 rm -f conftest.$ac_objext
3878 if { (ac_try="$ac_compile"
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3886 grep -v '^ *+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3892 { (case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897 (eval "$ac_try") 2>&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; } &&
3901 { ac_try='test -s conftest.$ac_objext'
3902 { (case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3907 (eval "$ac_try") 2>&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }; }; then
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3923 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3924 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3925 GXX=`test $ac_compiler_gnu = yes && echo yes`
3926 ac_test_CXXFLAGS=${CXXFLAGS+set}
3927 ac_save_CXXFLAGS=$CXXFLAGS
3928 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3929 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3930 if test "${ac_cv_prog_cxx_g+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3934 ac_cxx_werror_flag=yes
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3952 rm -f conftest.$ac_objext
3953 if { (ac_try="$ac_compile"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_compile") 2>conftest.er1
3961 grep -v '^ *+' conftest.er1 >conftest.err
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } &&
3966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3967 { (case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_try") 2>&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_try") 2>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_cv_prog_cxx_g=yes
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3992 cat >conftest.$ac_ext <<_ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
4007 rm -f conftest.$ac_objext
4008 if { (ac_try="$ac_compile"
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_compile") 2>conftest.er1
4016 grep -v '^ *+' conftest.er1 >conftest.err
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
4021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4022 { (case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_try") 2>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4037 (eval "$ac_try") 2>&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4046 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4078 { (case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_try") 2>&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_try") 2>&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4097 ac_cv_prog_cxx_g=yes
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4114 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4115 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4116 if test "$ac_test_CXXFLAGS" = set; then
4117 CXXFLAGS=$ac_save_CXXFLAGS
4118 elif test $ac_cv_prog_cxx_g = yes; then
4119 if test "$GXX" = yes; then
4125 if test "$GXX" = yes; then
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
4142 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4143 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4144 # On Suns, sometimes $CPP names a directory.
4145 if test -n "$CPP" && test -d "$CPP"; then
4148 if test -z "$CPP"; then
4149 if test "${ac_cv_prog_CPP+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 # Double quotes because CPP needs to be expanded
4153 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4156 for ac_c_preproc_warn_flag in '' yes
4158 # Use a header file that comes with gcc, so configuring glibc
4159 # with a fresh cross-compiler works.
4160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161 # <limits.h> exists even on freestanding compilers.
4162 # On the NeXT, cc -E runs the code through the compiler's parser,
4163 # not just through cpp. "Syntax error" is here to catch this case.
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4171 # include <limits.h>
4173 # include <assert.h>
4177 if { (ac_try="$ac_cpp conftest.$ac_ext"
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4185 grep -v '^ *+' conftest.er1 >conftest.err
4187 cat conftest.err >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } >/dev/null; then
4190 if test -s conftest.err; then
4191 ac_cpp_err=$ac_c_preproc_warn_flag
4192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4199 if test -z "$ac_cpp_err"; then
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 # Broken: fails on valid input.
4209 rm -f conftest.err conftest.$ac_ext
4211 # OK, works on sane cases. Now check whether nonexistent headers
4212 # can be detected and how.
4213 cat >conftest.$ac_ext <<_ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219 #include <ac_nonexistent.h>
4221 if { (ac_try="$ac_cpp conftest.$ac_ext"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } >/dev/null; then
4234 if test -s conftest.err; then
4235 ac_cpp_err=$ac_c_preproc_warn_flag
4236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4243 if test -z "$ac_cpp_err"; then
4244 # Broken: success on invalid input.
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 # Passes both tests.
4255 rm -f conftest.err conftest.$ac_ext
4258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4259 rm -f conftest.err conftest.$ac_ext
4260 if $ac_preproc_ok; then
4272 { echo "$as_me:$LINENO: result: $CPP" >&5
4273 echo "${ECHO_T}$CPP" >&6; }
4275 for ac_c_preproc_warn_flag in '' yes
4277 # Use a header file that comes with gcc, so configuring glibc
4278 # with a fresh cross-compiler works.
4279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280 # <limits.h> exists even on freestanding compilers.
4281 # On the NeXT, cc -E runs the code through the compiler's parser,
4282 # not just through cpp. "Syntax error" is here to catch this case.
4283 cat >conftest.$ac_ext <<_ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4290 # include <limits.h>
4292 # include <assert.h>
4296 if { (ac_try="$ac_cpp conftest.$ac_ext"
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4304 grep -v '^ *+' conftest.er1 >conftest.err
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } >/dev/null; then
4309 if test -s conftest.err; then
4310 ac_cpp_err=$ac_c_preproc_warn_flag
4311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4318 if test -z "$ac_cpp_err"; then
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4324 # Broken: fails on valid input.
4328 rm -f conftest.err conftest.$ac_ext
4330 # OK, works on sane cases. Now check whether nonexistent headers
4331 # can be detected and how.
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <ac_nonexistent.h>
4340 if { (ac_try="$ac_cpp conftest.$ac_ext"
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } >/dev/null; then
4353 if test -s conftest.err; then
4354 ac_cpp_err=$ac_c_preproc_warn_flag
4355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4362 if test -z "$ac_cpp_err"; then
4363 # Broken: success on invalid input.
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 # Passes both tests.
4374 rm -f conftest.err conftest.$ac_ext
4377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4378 rm -f conftest.err conftest.$ac_ext
4379 if $ac_preproc_ok; then
4382 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4383 See \`config.log' for more details." >&5
4384 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4385 See \`config.log' for more details." >&2;}
4386 { (exit 1); exit 1; }; }
4390 ac_cpp='$CPP $CPPFLAGS'
4391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 ac_cpp='$CXXCPP $CPPFLAGS'
4397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4400 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4401 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4402 if test -z "$CXXCPP"; then
4403 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 # Double quotes because CXXCPP needs to be expanded
4407 for CXXCPP in "$CXX -E" "/lib/cpp"
4410 for ac_cxx_preproc_warn_flag in '' yes
4412 # Use a header file that comes with gcc, so configuring glibc
4413 # with a fresh cross-compiler works.
4414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415 # <limits.h> exists even on freestanding compilers.
4416 # On the NeXT, cc -E runs the code through the compiler's parser,
4417 # not just through cpp. "Syntax error" is here to catch this case.
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4425 # include <limits.h>
4427 # include <assert.h>
4431 if { (ac_try="$ac_cpp conftest.$ac_ext"
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4439 grep -v '^ *+' conftest.er1 >conftest.err
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } >/dev/null; then
4444 if test -s conftest.err; then
4445 ac_cpp_err=$ac_cxx_preproc_warn_flag
4446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4453 if test -z "$ac_cpp_err"; then
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 # Broken: fails on valid input.
4463 rm -f conftest.err conftest.$ac_ext
4465 # OK, works on sane cases. Now check whether nonexistent headers
4466 # can be detected and how.
4467 cat >conftest.$ac_ext <<_ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4473 #include <ac_nonexistent.h>
4475 if { (ac_try="$ac_cpp conftest.$ac_ext"
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4483 grep -v '^ *+' conftest.er1 >conftest.err
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } >/dev/null; then
4488 if test -s conftest.err; then
4489 ac_cpp_err=$ac_cxx_preproc_warn_flag
4490 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4497 if test -z "$ac_cpp_err"; then
4498 # Broken: success on invalid input.
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 # Passes both tests.
4509 rm -f conftest.err conftest.$ac_ext
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then
4519 ac_cv_prog_CXXCPP=$CXXCPP
4522 CXXCPP=$ac_cv_prog_CXXCPP
4524 ac_cv_prog_CXXCPP=$CXXCPP
4526 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4527 echo "${ECHO_T}$CXXCPP" >&6; }
4529 for ac_cxx_preproc_warn_flag in '' yes
4531 # Use a header file that comes with gcc, so configuring glibc
4532 # with a fresh cross-compiler works.
4533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4534 # <limits.h> exists even on freestanding compilers.
4535 # On the NeXT, cc -E runs the code through the compiler's parser,
4536 # not just through cpp. "Syntax error" is here to catch this case.
4537 cat >conftest.$ac_ext <<_ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4544 # include <limits.h>
4546 # include <assert.h>
4550 if { (ac_try="$ac_cpp conftest.$ac_ext"
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4558 grep -v '^ *+' conftest.er1 >conftest.err
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } >/dev/null; then
4563 if test -s conftest.err; then
4564 ac_cpp_err=$ac_cxx_preproc_warn_flag
4565 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4572 if test -z "$ac_cpp_err"; then
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 # Broken: fails on valid input.
4582 rm -f conftest.err conftest.$ac_ext
4584 # OK, works on sane cases. Now check whether nonexistent headers
4585 # can be detected and how.
4586 cat >conftest.$ac_ext <<_ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 #include <ac_nonexistent.h>
4594 if { (ac_try="$ac_cpp conftest.$ac_ext"
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4602 grep -v '^ *+' conftest.er1 >conftest.err
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } >/dev/null; then
4607 if test -s conftest.err; then
4608 ac_cpp_err=$ac_cxx_preproc_warn_flag
4609 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4616 if test -z "$ac_cpp_err"; then
4617 # Broken: success on invalid input.
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4623 # Passes both tests.
4628 rm -f conftest.err conftest.$ac_ext
4631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4632 rm -f conftest.err conftest.$ac_ext
4633 if $ac_preproc_ok; then
4636 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4637 See \`config.log' for more details." >&5
4638 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4639 See \`config.log' for more details." >&2;}
4640 { (exit 1); exit 1; }; }
4644 ac_cpp='$CPP $CPPFLAGS'
4645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649 for ac_prog in gawk mawk nawk awk
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy $ac_prog; ac_word=$2
4653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4655 if test "${ac_cv_prog_AWK+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 if test -n "$AWK"; then
4659 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_AWK="$ac_prog"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 if test -n "$AWK"; then
4680 { echo "$as_me:$LINENO: result: $AWK" >&5
4681 echo "${ECHO_T}$AWK" >&6; }
4683 { echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6; }
4688 test -n "$AWK" && break
4691 # Find a good install program. We prefer a C program (faster),
4692 # so one script is as good as another. But avoid the broken or
4693 # incompatible versions:
4694 # SysV /etc/install, /usr/sbin/install
4695 # SunOS /usr/etc/install
4696 # IRIX /sbin/install
4698 # AmigaOS /C/install, which installs bootblocks on floppy discs
4699 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4700 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4701 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4702 # OS/2's system install, which has a completely different semantic
4703 # ./install, which can be erroneously created by make from ./install.sh.
4704 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5