2 # From configure.ac Revision: 43259 .
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
821 ac_precious_vars='build_alias
835 # Initialize some variables set by options.
837 ac_init_version=false
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
847 program_transform_name=s,x,x,
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE}'
872 infodir='${datarootdir}/info'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 # Accept the important Cygnus configure options, so we can diagnose typos.
899 case $ac_dashdash$ac_option in
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
921 cache_file=config.cache ;;
923 -datadir | --datadir | --datadi | --datad)
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
935 -disable-* | --disable-*)
936 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
939 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
940 { (exit 1); exit 1; }; }
941 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
942 eval enable_$ac_feature=no ;;
944 -docdir | --docdir | --docdi | --doc | --do)
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 -enable-* | --enable-*)
955 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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=\$ac_optarg ;;
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
976 -help | --help | --hel | --he | -h)
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 htmldir=$ac_optarg ;;
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1006 -libdir | --libdir | --libdi | --libd)
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1097 -psdir | --psdir | --psdi | --psd | --ps)
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 sbindir=$ac_optarg ;;
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 sharedstatedir=$ac_optarg ;;
1123 -site | --site | --sit)
1125 -site=* | --site=* | --sit=*)
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1152 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1155 { echo "$as_me: error: invalid package name: $ac_package" >&2
1156 { (exit 1); exit 1; }; }
1157 ac_package=`echo $ac_package| sed 's/-/_/g'`
1158 eval with_$ac_package=\$ac_optarg ;;
1160 -without-* | --without-*)
1161 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1164 { echo "$as_me: error: invalid package name: $ac_package" >&2
1165 { (exit 1); exit 1; }; }
1166 ac_package=`echo $ac_package | sed 's/-/_/g'`
1167 eval with_$ac_package=no ;;
1170 # Obsolete; use --with-x.
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1187 -*) { echo "$as_me: error: unrecognized option: $ac_option
1188 Try \`$0 --help' for more information." >&2
1189 { (exit 1); exit 1; }; }
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1196 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1197 { (exit 1); exit 1; }; }
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1202 # FIXME: should be removed in autoconf 3.0.
1203 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1212 if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 { echo "$as_me: error: missing argument to $ac_option" >&2
1215 { (exit 1); exit 1; }; }
1218 # Be sure to have absolute directory names.
1219 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1224 eval ac_val=\$$ac_var
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1230 { (exit 1); exit 1; }; }
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1238 target=$target_alias
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1245 If a cross compiler is detected then cross compile mode will be used." >&2
1246 elif test "x$build_alias" != "x$host_alias"; then
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254 test "$silent" = yes && exec 6>/dev/null
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 { echo "$as_me: error: Working directory cannot be determined" >&2
1261 { (exit 1); exit 1; }; }
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 { echo "$as_me: error: pwd does not report name of working directory" >&2
1264 { (exit 1); exit 1; }; }
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$0" ||
1272 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$0" : 'X\(//\)[^/]' \| \
1274 X"$0" : 'X\(//\)$' \| \
1275 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1299 ac_srcdir_defaulted=no
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1304 { (exit 1); exit 1; }; }
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1309 { (exit 1); exit 1; }; }
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 # Report the --help message.
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1335 \`configure' configures this package to adapt to many kinds of systems.
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1342 Defaults for the options are specified in brackets.
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1366 For better control, use the options below.
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 if test -n "$ac_init_help"; then
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-dev-mode Turn on developer mode
1406 --disable-largefile omit support for large files
1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1412 --with-curses=PATH use curses files in PATH
1413 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1415 --with-gsm=PATH use GSM files in PATH , or 'internal'
1416 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1417 --with-imap=PATH use UW IMAP Toolkit files in PATH
1418 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1419 --with-kde=PATH use KDE files in PATH
1420 --with-misdn=PATH use mISDN User Library files in PATH
1421 --with-nbs=PATH use Network Broadcast Sound files in PATH
1422 --with-ncurses=PATH use ncurses files in PATH
1423 --with-netsnmp=PATH use Net-SNMP files in PATH
1424 --with-newt=PATH use newt files in PATH
1425 --with-odbc=PATH use unixODBC files in PATH
1426 --with-ogg=PATH use OGG files in PATH
1427 --with-osptk=PATH use OSP Toolkit files in PATH
1428 --with-oss=PATH use Open Sound System files in PATH
1429 --with-popt=PATH use popt files in PATH
1430 --with-postgres=PATH use PostgreSQL files in PATH
1431 --with-pri=PATH use ISDN PRI files in PATH
1432 --with-pwlib=PATH use PWlib files in PATH
1433 --with-qt=PATH use Qt files in PATH
1434 --with-radius=PATH use Radius Client files in PATH
1435 --with-speex=PATH use Speex files in PATH
1436 --with-sqlite=PATH use SQLite files in PATH
1437 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1438 --with-ssl=PATH use OpenSSL files in PATH
1439 --with-tds=PATH use FreeTDS files in PATH
1440 --with-termcap=PATH use Termcap files in PATH
1441 --with-tinfo=PATH use Term Info files in PATH
1442 --with-tonezone=PATH use tonezone files in PATH
1443 --with-vorbis=PATH use Vorbis files in PATH
1444 --with-vpb=PATH use Voicetronix API files in PATH
1445 --with-z=PATH use zlib files in PATH
1446 --with-zaptel=PATH use Zaptel files in PATH
1448 Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 CXX C++ compiler command
1456 CXXFLAGS C++ compiler flags
1458 CXXCPP C++ preprocessor
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" || continue
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1490 .) # We are building in place.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1514 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1524 generated by GNU Autoconf 2.60a
1526 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1527 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1535 cat >config.log <<_ACEOF
1536 This file contains any messages produced by compilers while
1537 running configure, to aid debugging if configure makes a mistake.
1539 It was created by $as_me, which was
1540 generated by GNU Autoconf 2.60a. Invocation command line was
1552 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1553 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1554 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1555 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1556 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1558 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1559 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1561 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1562 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1563 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1564 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1565 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1566 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1567 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 test -z "$as_dir" && as_dir=.
1576 echo "PATH: $as_dir"
1592 # Keep a trace of the command line.
1593 # Strip out --no-create and --no-recursion so they do not pile up.
1594 # Strip out --silent because we don't want to record it for future runs.
1595 # Also quote any args containing shell meta-characters.
1596 # Make two passes to allow for proper duplicate-argument suppression.
1600 ac_must_keep_next=false
1606 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1608 | -silent | --silent | --silen | --sile | --sil)
1611 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1614 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1616 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1617 if test $ac_must_keep_next = true; then
1618 ac_must_keep_next=false # Got value, back to normal.
1621 *=* | --config-cache | -C | -disable-* | --disable-* \
1622 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1623 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1624 | -with-* | --with-* | -without-* | --without-* | --x)
1625 case "$ac_configure_args0 " in
1626 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1629 -* ) ac_must_keep_next=true ;;
1632 ac_configure_args="$ac_configure_args '$ac_arg'"
1637 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1638 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1640 # When interrupted or exit'd, cleanup temporary files, and complete
1641 # config.log. We remove comments because anyway the quotes in there
1642 # would cause problems or look ugly.
1643 # WARNING: Use '\'' to represent an apostrophe within the trap.
1644 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1645 trap 'exit_status=$?
1646 # Save into config.log some information that might help in debugging.
1651 ## ---------------- ##
1652 ## Cache variables. ##
1653 ## ---------------- ##
1656 # The following way of writing the cache mishandles newlines in values,
1658 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1659 eval ac_val=\$$ac_var
1663 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1664 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1667 _ | IFS | as_nl) ;; #(
1668 *) $as_unset $ac_var ;;
1673 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1674 *${as_nl}ac_space=\ *)
1676 "s/'\''/'\''\\\\'\'''\''/g;
1677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1688 ## ----------------- ##
1689 ## Output variables. ##
1690 ## ----------------- ##
1693 for ac_var in $ac_subst_vars
1695 eval ac_val=\$$ac_var
1697 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1699 echo "$ac_var='\''$ac_val'\''"
1703 if test -n "$ac_subst_files"; then
1705 ## ------------------- ##
1706 ## File substitutions. ##
1707 ## ------------------- ##
1710 for ac_var in $ac_subst_files
1712 eval ac_val=\$$ac_var
1714 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1716 echo "$ac_var='\''$ac_val'\''"
1721 if test -s confdefs.h; then
1731 test "$ac_signal" != 0 &&
1732 echo "$as_me: caught signal $ac_signal"
1733 echo "$as_me: exit $exit_status"
1735 rm -f core *.core core.conftest.* &&
1736 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1739 for ac_signal in 1 2 13 15; do
1740 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1744 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1745 rm -f -r conftest* confdefs.h
1747 # Predefined preprocessor variables.
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_NAME "$PACKAGE_NAME"
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_STRING "$PACKAGE_STRING"
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1774 # Let the site file select an alternate cache file if it wants to.
1775 # Prefer explicitly selected file to automatically selected ones.
1776 if test -n "$CONFIG_SITE"; then
1777 set x "$CONFIG_SITE"
1778 elif test "x$prefix" != xNONE; then
1779 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1781 set x "$ac_default_prefix/share/config.site" \
1782 "$ac_default_prefix/etc/config.site"
1787 if test -r "$ac_site_file"; then
1788 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1789 echo "$as_me: loading site script $ac_site_file" >&6;}
1790 sed 's/^/| /' "$ac_site_file" >&5
1795 if test -r "$cache_file"; then
1796 # Some versions of bash will fail to source /dev/null (special
1797 # files actually), so we avoid doing that.
1798 if test -f "$cache_file"; then
1799 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1800 echo "$as_me: loading cache $cache_file" >&6;}
1802 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1803 *) . "./$cache_file";;
1807 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1808 echo "$as_me: creating cache $cache_file" >&6;}
1812 # Check that the precious variables saved in the cache have kept the same
1814 ac_cache_corrupted=false
1815 for ac_var in $ac_precious_vars; do
1816 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1817 eval ac_new_set=\$ac_env_${ac_var}_set
1818 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1819 eval ac_new_val=\$ac_env_${ac_var}_value
1820 case $ac_old_set,$ac_new_set in
1822 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1823 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1824 ac_cache_corrupted=: ;;
1826 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1827 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1828 ac_cache_corrupted=: ;;
1831 if test "x$ac_old_val" != "x$ac_new_val"; then
1832 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1833 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1834 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1835 echo "$as_me: former value: $ac_old_val" >&2;}
1836 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1837 echo "$as_me: current value: $ac_new_val" >&2;}
1838 ac_cache_corrupted=:
1841 # Pass precious variables to config.status.
1842 if test "$ac_new_set" = set; then
1844 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1845 *) ac_arg=$ac_var=$ac_new_val ;;
1847 case " $ac_configure_args " in
1848 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1849 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1853 if $ac_cache_corrupted; then
1854 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1855 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1856 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1857 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1858 { (exit 1); exit 1; }; }
1878 ac_cpp='$CPP $CPPFLAGS'
1879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1885 # cross-compile macros
1887 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1888 if test -f "$ac_dir/install-sh"; then
1890 ac_install_sh="$ac_aux_dir/install-sh -c"
1892 elif test -f "$ac_dir/install.sh"; then
1894 ac_install_sh="$ac_aux_dir/install.sh -c"
1896 elif test -f "$ac_dir/shtool"; then
1898 ac_install_sh="$ac_aux_dir/shtool install -c"
1902 if test -z "$ac_aux_dir"; then
1903 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1904 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1905 { (exit 1); exit 1; }; }
1908 # These three variables are undocumented and unsupported,
1909 # and are intended to be withdrawn in a future Autoconf release.
1910 # They can cause serious problems if a builder's source tree is in a directory
1911 # whose full name contains unusual characters.
1912 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1913 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1914 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1917 # Make sure we can run config.sub.
1918 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1919 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1920 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1921 { (exit 1); exit 1; }; }
1923 { echo "$as_me:$LINENO: checking build system type" >&5
1924 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1925 if test "${ac_cv_build+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 ac_build_alias=$build_alias
1929 test "x$ac_build_alias" = x &&
1930 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1931 test "x$ac_build_alias" = x &&
1932 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1933 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1934 { (exit 1); exit 1; }; }
1935 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1936 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1937 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1938 { (exit 1); exit 1; }; }
1941 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1942 echo "${ECHO_T}$ac_cv_build" >&6; }
1943 case $ac_cv_build in
1945 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1946 echo "$as_me: error: invalid value of canonical build" >&2;}
1947 { (exit 1); exit 1; }; };;
1950 ac_save_IFS=$IFS; IFS='-'
1956 # Remember, the first character of IFS is used to create $*,
1957 # except with old shells:
1960 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1963 { echo "$as_me:$LINENO: checking host system type" >&5
1964 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1965 if test "${ac_cv_host+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 if test "x$host_alias" = x; then
1969 ac_cv_host=$ac_cv_build
1971 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1972 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1973 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1974 { (exit 1); exit 1; }; }
1978 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1979 echo "${ECHO_T}$ac_cv_host" >&6; }
1982 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1983 echo "$as_me: error: invalid value of canonical host" >&2;}
1984 { (exit 1); exit 1; }; };;
1987 ac_save_IFS=$IFS; IFS='-'
1993 # Remember, the first character of IFS is used to create $*,
1994 # except with old shells:
1997 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2001 # check existence of the package
2004 # specify output header file
2005 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2011 case "${host_os}" in
2013 ac_default_prefix=/usr/local
2016 ac_default_prefix=/usr
2017 if test ${sysconfdir} = '${prefix}/etc'; then
2020 if test ${mandir} = '${prefix}/man'; then
2021 mandir=/usr/share/man
2026 if test ${localstatedir} = '${prefix}/var'; then
2030 BUILD_PLATFORM=${build}
2031 BUILD_CPU=${build_cpu}
2032 BUILD_VENDOR=${build_vendor}
2033 BUILD_OS=${build_os}
2040 HOST_PLATFORM=${host}
2041 HOST_CPU=${host_cpu}
2042 HOST_VENDOR=${host_vendor}
2050 case "${host_os}" in
2071 if test -n "$ac_tool_prefix"; then
2072 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2073 set dummy ${ac_tool_prefix}uname; ac_word=$2
2074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2076 if test "${ac_cv_path_UNAME+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2091 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 UNAME=$ac_cv_path_UNAME
2103 if test -n "$UNAME"; then
2104 { echo "$as_me:$LINENO: result: $UNAME" >&5
2105 echo "${ECHO_T}$UNAME" >&6; }
2107 { echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6; }
2113 if test -z "$ac_cv_path_UNAME"; then
2115 # Extract the first word of "uname", so it can be a program name with args.
2116 set dummy uname; ac_word=$2
2117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2119 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 case $ac_pt_UNAME in
2124 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2134 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2146 if test -n "$ac_pt_UNAME"; then
2147 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2148 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2150 { echo "$as_me:$LINENO: result: no" >&5
2151 echo "${ECHO_T}no" >&6; }
2154 if test "x$ac_pt_UNAME" = x; then
2157 case $cross_compiling:$ac_tool_warned in
2159 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet. If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&5
2162 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2163 whose name does not start with the host triplet. If you think this
2164 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2165 ac_tool_warned=yes ;;
2170 UNAME="$ac_cv_path_UNAME"
2173 if test ! x"${UNAME}" = xNo; then
2174 PBX_OSREV=$(${UNAME} -r)
2178 # This needs to be before any macros that use the C compiler
2180 cat >>confdefs.h <<\_ACEOF
2181 #define _GNU_SOURCE 1
2192 # cross-compile checks
2193 if test "${cross_compiling}" = "yes";
2195 if test -n "$ac_tool_prefix"; then
2196 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2197 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2200 if test "${ac_cv_prog_CC+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 if test -n "$CC"; then
2204 ac_cv_prog_CC="$CC" # Let the user override the test.
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir=.
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2213 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 if test -n "$CC"; then
2225 { echo "$as_me:$LINENO: result: $CC" >&5
2226 echo "${ECHO_T}$CC" >&6; }
2228 { echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6; }
2234 if test -z "$ac_cv_prog_CC"; then
2236 # Extract the first word of "gcc", so it can be a program name with args.
2237 set dummy gcc; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$ac_ct_CC"; then
2244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_ac_ct_CC="gcc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2264 if test -n "$ac_ct_CC"; then
2265 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2266 echo "${ECHO_T}$ac_ct_CC" >&6; }
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2272 if test "x$ac_ct_CC" = x; then
2275 case $cross_compiling:$ac_tool_warned in
2277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2278 whose name does not start with the host triplet. If you think this
2279 configuration is useful to you, please write to autoconf@gnu.org." >&5
2280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2281 whose name does not start with the host triplet. If you think this
2282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2283 ac_tool_warned=yes ;;
2291 if test -n "$ac_tool_prefix"; then
2292 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}g++; ac_word=$2
2294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2296 if test "${ac_cv_prog_CXX+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 if test -n "$CXX"; then
2300 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2309 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 if test -n "$CXX"; then
2321 { echo "$as_me:$LINENO: result: $CXX" >&5
2322 echo "${ECHO_T}$CXX" >&6; }
2324 { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2330 if test -z "$ac_cv_prog_CXX"; then
2332 # Extract the first word of "g++", so it can be a program name with args.
2333 set dummy g++; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 if test -n "$ac_ct_CXX"; then
2340 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_ac_ct_CXX="g++"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2360 if test -n "$ac_ct_CXX"; then
2361 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2362 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2364 { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2368 if test "x$ac_ct_CXX" = x; then
2371 case $cross_compiling:$ac_tool_warned in
2373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2374 whose name does not start with the host triplet. If you think this
2375 configuration is useful to you, please write to autoconf@gnu.org." >&5
2376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2377 whose name does not start with the host triplet. If you think this
2378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2379 ac_tool_warned=yes ;;
2384 CXX="$ac_cv_prog_CXX"
2387 if test -n "$ac_tool_prefix"; then
2388 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2389 set dummy ${ac_tool_prefix}ld; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_LD+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$LD"; then
2396 ac_cv_prog_LD="$LD" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_LD="${ac_tool_prefix}ld"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 if test -n "$LD"; then
2417 { echo "$as_me:$LINENO: result: $LD" >&5
2418 echo "${ECHO_T}$LD" >&6; }
2420 { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2426 if test -z "$ac_cv_prog_LD"; then
2428 # Extract the first word of "ld", so it can be a program name with args.
2429 set dummy ld; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 if test -n "$ac_ct_LD"; then
2436 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_ac_ct_LD="ld"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2456 if test -n "$ac_ct_LD"; then
2457 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2458 echo "${ECHO_T}$ac_ct_LD" >&6; }
2460 { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2464 if test "x$ac_ct_LD" = x; then
2467 case $cross_compiling:$ac_tool_warned in
2469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2470 whose name does not start with the host triplet. If you think this
2471 configuration is useful to you, please write to autoconf@gnu.org." >&5
2472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet. If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2475 ac_tool_warned=yes ;;
2483 if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2485 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_RANLIB+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 if test -n "$RANLIB"; then
2492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 RANLIB=$ac_cv_prog_RANLIB
2512 if test -n "$RANLIB"; then
2513 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2514 echo "${ECHO_T}$RANLIB" >&6; }
2516 { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2522 if test -z "$ac_cv_prog_RANLIB"; then
2523 ac_ct_RANLIB=$RANLIB
2524 # Extract the first word of "ranlib", so it can be a program name with args.
2525 set dummy ranlib; ac_word=$2
2526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2528 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 if test -n "$ac_ct_RANLIB"; then
2532 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 ac_cv_prog_ac_ct_RANLIB="ranlib"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2552 if test -n "$ac_ct_RANLIB"; then
2553 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2554 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2556 { echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6; }
2560 if test "x$ac_ct_RANLIB" = x; then
2563 case $cross_compiling:$ac_tool_warned in
2565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2566 whose name does not start with the host triplet. If you think this
2567 configuration is useful to you, please write to autoconf@gnu.org." >&5
2568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2569 whose name does not start with the host triplet. If you think this
2570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2571 ac_tool_warned=yes ;;
2573 RANLIB=$ac_ct_RANLIB
2576 RANLIB="$ac_cv_prog_RANLIB"
2579 if test -n "$ac_tool_prefix"; then
2580 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2581 set dummy ${ac_tool_prefix}ar; ac_word=$2
2582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584 if test "${ac_cv_prog_AR+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 if test -n "$AR"; then
2588 ac_cv_prog_AR="$AR" # Let the user override the test.
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 ac_cv_prog_AR="${ac_tool_prefix}ar"
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 if test -n "$AR"; then
2609 { echo "$as_me:$LINENO: result: $AR" >&5
2610 echo "${ECHO_T}$AR" >&6; }
2612 { echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6; }
2618 if test -z "$ac_cv_prog_AR"; then
2620 # Extract the first word of "ar", so it can be a program name with args.
2621 set dummy ar; ac_word=$2
2622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 if test -n "$ac_ct_AR"; then
2628 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_ac_ct_AR="ar"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2648 if test -n "$ac_ct_AR"; then
2649 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2650 echo "${ECHO_T}$ac_ct_AR" >&6; }
2652 { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2656 if test "x$ac_ct_AR" = x; then
2659 case $cross_compiling:$ac_tool_warned in
2661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2662 whose name does not start with the host triplet. If you think this
2663 configuration is useful to you, please write to autoconf@gnu.org." >&5
2664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet. If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2667 ac_tool_warned=yes ;;
2677 # Checks for programs.
2679 ac_cpp='$CPP $CPPFLAGS'
2680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683 if test -n "$ac_tool_prefix"; then
2684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 if test -n "$CC"; then
2713 { echo "$as_me:$LINENO: result: $CC" >&5
2714 echo "${ECHO_T}$CC" >&6; }
2716 { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2722 if test -z "$ac_cv_prog_CC"; then
2724 # Extract the first word of "gcc", so it can be a program name with args.
2725 set dummy gcc; ac_word=$2
2726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 if test -n "$ac_ct_CC"; then
2732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_ac_ct_CC="gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2752 if test -n "$ac_ct_CC"; then
2753 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2754 echo "${ECHO_T}$ac_ct_CC" >&6; }
2756 { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2760 if test "x$ac_ct_CC" = x; then
2763 case $cross_compiling:$ac_tool_warned in
2765 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2766 whose name does not start with the host triplet. If you think this
2767 configuration is useful to you, please write to autoconf@gnu.org." >&5
2768 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2769 whose name does not start with the host triplet. If you think this
2770 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2771 ac_tool_warned=yes ;;
2779 if test -z "$CC"; then
2780 if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}cc; ac_word=$2
2783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2785 if test "${ac_cv_prog_CC+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_CC="${ac_tool_prefix}cc"
2799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 if test -n "$CC"; then
2810 { echo "$as_me:$LINENO: result: $CC" >&5
2811 echo "${ECHO_T}$CC" >&6; }
2813 { echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6; }
2820 if test -z "$CC"; then
2821 # Extract the first word of "cc", so it can be a program name with args.
2822 set dummy cc; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2840 ac_prog_rejected=yes
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 if test $ac_prog_rejected = yes; then
2852 # We found a bogon in the path, so make sure we never use it.
2853 set dummy $ac_cv_prog_CC
2855 if test $# != 0; then
2856 # We chose a different compiler from the bogus one.
2857 # However, it has the same basename, so the bogon will be chosen
2858 # first if we set CC to just the basename; use the full file name.
2860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2866 if test -n "$CC"; then
2867 { echo "$as_me:$LINENO: result: $CC" >&5
2868 echo "${ECHO_T}$CC" >&6; }
2870 { echo "$as_me:$LINENO: result: no" >&5
2871 echo "${ECHO_T}no" >&6; }
2876 if test -z "$CC"; then
2877 if test -n "$ac_tool_prefix"; then
2878 for ac_prog in cl.exe
2880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test -n "$CC"; then
2909 { echo "$as_me:$LINENO: result: $CC" >&5
2910 echo "${ECHO_T}$CC" >&6; }
2912 { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2917 test -n "$CC" && break
2920 if test -z "$CC"; then
2922 for ac_prog in cl.exe
2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 if test -n "$ac_ct_CC"; then
2932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_ac_ct_CC="$ac_prog"
2942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2954 echo "${ECHO_T}$ac_ct_CC" >&6; }
2956 { echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6; }
2961 test -n "$ac_ct_CC" && break
2964 if test "x$ac_ct_CC" = x; then
2967 case $cross_compiling:$ac_tool_warned in
2969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2970 whose name does not start with the host triplet. If you think this
2971 configuration is useful to you, please write to autoconf@gnu.org." >&5
2972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2973 whose name does not start with the host triplet. If you think this
2974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2975 ac_tool_warned=yes ;;
2984 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2985 See \`config.log' for more details." >&5
2986 echo "$as_me: error: no acceptable C compiler found in \$PATH
2987 See \`config.log' for more details." >&2;}
2988 { (exit 1); exit 1; }; }
2990 # Provide some information about the compiler.
2991 echo "$as_me:$LINENO: checking for C compiler version" >&5
2992 ac_compiler=`set X $ac_compile; echo $2`
2993 { (ac_try="$ac_compiler --version >&5"
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_compiler --version >&5") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }
3003 { (ac_try="$ac_compiler -v >&5"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compiler -v >&5") 2>&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }
3013 { (ac_try="$ac_compiler -V >&5"
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compiler -V >&5") 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3039 ac_clean_files_save=$ac_clean_files
3040 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3041 # Try to create an executable without -o first, disregard a.out.
3042 # It will help us diagnose broken compilers, and finding out an intuition
3044 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3045 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3046 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3048 # List of possible output files, starting from the most likely.
3049 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3050 # only as a last resort. b.out is created by i960 compilers.
3051 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3053 # The IRIX 6 linker writes into existing files which may not be
3054 # executable, retaining their permissions. Remove them first so a
3055 # subsequent execution test works.
3057 for ac_file in $ac_files
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3061 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3066 if { (ac_try="$ac_link_default"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_link_default") 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; then
3076 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3077 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3078 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3079 # so that the user can short-circuit this test for compilers unknown to
3081 for ac_file in $ac_files ''
3083 test -f "$ac_file" || continue
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3088 # We found the default executable, but exeext='' is most
3092 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3094 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096 # We set ac_cv_exeext here because the later test for it is not
3097 # safe: cross compilers may not add the suffix if given an `-o'
3098 # argument, so we may need to know it at that point already.
3099 # Even if this section looks crufty: it has the advantage of
3106 test "$ac_cv_exeext" = no && ac_cv_exeext=
3112 { echo "$as_me:$LINENO: result: $ac_file" >&5
3113 echo "${ECHO_T}$ac_file" >&6; }
3114 if test -z "$ac_file"; then
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3119 See \`config.log' for more details." >&5
3120 echo "$as_me: error: C compiler cannot create executables
3121 See \`config.log' for more details." >&2;}
3122 { (exit 77); exit 77; }; }
3125 ac_exeext=$ac_cv_exeext
3127 # Check that the compiler produces executables we can run. If not, either
3128 # the compiler is broken, or we cross compile.
3129 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3130 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3131 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3132 # If not cross compiling, check that we can run a simple program.
3133 if test "$cross_compiling" != yes; then
3134 if { ac_try='./$ac_file'
3135 { (case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_try") 2>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3146 if test "$cross_compiling" = maybe; then
3149 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details." >&5
3152 echo "$as_me: error: cannot run C compiled programs.
3153 If you meant to cross compile, use \`--host'.
3154 See \`config.log' for more details." >&2;}
3155 { (exit 1); exit 1; }; }
3159 { echo "$as_me:$LINENO: result: yes" >&5
3160 echo "${ECHO_T}yes" >&6; }
3162 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3163 ac_clean_files=$ac_clean_files_save
3164 # Check that the compiler produces executables we can run. If not, either
3165 # the compiler is broken, or we cross compile.
3166 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3167 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3168 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3169 echo "${ECHO_T}$cross_compiling" >&6; }
3171 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3172 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3173 if { (ac_try="$ac_link"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_link") 2>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; then
3183 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3184 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3185 # work properly (i.e., refer to `conftest.exe'), while it won't with
3187 for ac_file in conftest.exe conftest conftest.*; do
3188 test -f "$ac_file" || continue
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3191 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3197 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3198 See \`config.log' for more details." >&5
3199 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3200 See \`config.log' for more details." >&2;}
3201 { (exit 1); exit 1; }; }
3204 rm -f conftest$ac_cv_exeext
3205 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3206 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3208 rm -f conftest.$ac_ext
3209 EXEEXT=$ac_cv_exeext
3211 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3212 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3213 if test "${ac_cv_objext+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 cat >conftest.$ac_ext <<_ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3231 rm -f conftest.o conftest.obj
3232 if { (ac_try="$ac_compile"
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238 (eval "$ac_compile") 2>&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; then
3242 for ac_file in conftest.o conftest.obj conftest.*; do
3243 test -f "$ac_file" || continue;
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3246 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3255 See \`config.log' for more details." >&5
3256 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3257 See \`config.log' for more details." >&2;}
3258 { (exit 1); exit 1; }; }
3261 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3263 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3264 echo "${ECHO_T}$ac_cv_objext" >&6; }
3265 OBJEXT=$ac_cv_objext
3267 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3268 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3269 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3290 rm -f conftest.$ac_objext
3291 if { (ac_try="$ac_compile"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } &&
3304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3305 { (case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_try") 2>&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (case "(($ac_try" in
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_try") 2>&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3326 echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3336 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3337 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3338 GCC=`test $ac_compiler_gnu = yes && echo yes`
3339 ac_test_CFLAGS=${CFLAGS+set}
3340 ac_save_CFLAGS=$CFLAGS
3341 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3342 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3343 if test "${ac_cv_prog_cc_g+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 ac_save_c_werror_flag=$ac_c_werror_flag
3347 ac_c_werror_flag=yes
3350 cat >conftest.$ac_ext <<_ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3365 rm -f conftest.$ac_objext
3366 if { (ac_try="$ac_compile"
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_compile") 2>conftest.er1
3374 grep -v '^ *+' conftest.er1 >conftest.err
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3380 { (case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_try") 2>&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (case "(($ac_try" in
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_try") 2>&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; }; then
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3420 rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_compile") 2>conftest.er1
3429 grep -v '^ *+' conftest.er1 >conftest.err
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3435 { (case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_try") 2>&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try='test -s conftest.$ac_objext'
3445 { (case "(($ac_try" in
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_try") 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 ac_c_werror_flag=$ac_save_c_werror_flag
3461 cat >conftest.$ac_ext <<_ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3476 rm -f conftest.$ac_objext
3477 if { (ac_try="$ac_compile"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_compile") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3491 { (case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_try") 2>&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
3501 { (case "(($ac_try" in
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_try") 2>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 ac_c_werror_flag=$ac_save_c_werror_flag
3527 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3528 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3529 if test "$ac_test_CFLAGS" = set; then
3530 CFLAGS=$ac_save_CFLAGS
3531 elif test $ac_cv_prog_cc_g = yes; then
3532 if test "$GCC" = yes; then
3538 if test "$GCC" = yes; then
3544 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3545 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3546 if test "${ac_cv_prog_cc_c89+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 ac_cv_prog_cc_c89=no
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3559 #include <sys/types.h>
3560 #include <sys/stat.h>
3561 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3562 struct buf { int x; };
3563 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3564 static char *e (p, i)
3570 static char *f (char * (*g) (char **, int), char **p, ...)
3575 s = g (p, va_arg (v,int));
3580 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3581 function prototypes and stuff, but not '\xHH' hex character constants.
3582 These don't provoke an error unfortunately, instead are silently treated
3583 as 'x'. The following induces an error, until -std is added to get
3584 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3585 array size at least. It's necessary to write '\x00'==0 to get something
3586 that's true only with -std. */
3587 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3589 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3590 inside strings and character constants. */
3592 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3594 int test (int i, double x);
3595 struct s1 {int (*f) (int a);};
3596 struct s2 {int (*f) (double a);};
3597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3603 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3608 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3609 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3611 CC="$ac_save_CC $ac_arg"
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_compile") 2>conftest.er1
3621 grep -v '^ *+' conftest.er1 >conftest.err
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3627 { (case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_try") 2>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; } &&
3636 { ac_try='test -s conftest.$ac_objext'
3637 { (case "(($ac_try" in
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_try") 2>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 ac_cv_prog_cc_c89=$ac_arg
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3654 rm -f core conftest.err conftest.$ac_objext
3655 test "x$ac_cv_prog_cc_c89" != "xno" && break
3657 rm -f conftest.$ac_ext
3662 case "x$ac_cv_prog_cc_c89" in
3664 { echo "$as_me:$LINENO: result: none needed" >&5
3665 echo "${ECHO_T}none needed" >&6; } ;;
3667 { echo "$as_me:$LINENO: result: unsupported" >&5
3668 echo "${ECHO_T}unsupported" >&6; } ;;
3670 CC="$CC $ac_cv_prog_cc_c89"
3671 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3672 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3677 ac_cpp='$CPP $CPPFLAGS'
3678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683 ac_cpp='$CXXCPP $CPPFLAGS'
3684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3687 if test -z "$CXX"; then
3688 if test -n "$CCC"; then
3691 if test -n "$ac_tool_prefix"; then
3692 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3698 if test "${ac_cv_prog_CXX+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 if test -n "$CXX"; then
3702 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 if test -n "$CXX"; then
3723 { echo "$as_me:$LINENO: result: $CXX" >&5
3724 echo "${ECHO_T}$CXX" >&6; }
3726 { echo "$as_me:$LINENO: result: no" >&5
3727 echo "${ECHO_T}no" >&6; }
3731 test -n "$CXX" && break
3734 if test -z "$CXX"; then
3736 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3738 # Extract the first word of "$ac_prog", so it can be a program name with args.
3739 set dummy $ac_prog; ac_word=$2
3740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3742 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 if test -n "$ac_ct_CXX"; then
3746 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_ac_ct_CXX="$ac_prog"
3756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3766 if test -n "$ac_ct_CXX"; then
3767 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3768 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3770 { echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6; }
3775 test -n "$ac_ct_CXX" && break
3778 if test "x$ac_ct_CXX" = x; then
3781 case $cross_compiling:$ac_tool_warned in
3783 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3784 whose name does not start with the host triplet. If you think this
3785 configuration is useful to you, please write to autoconf@gnu.org." >&5
3786 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3787 whose name does not start with the host triplet. If you think this
3788 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3789 ac_tool_warned=yes ;;
3797 # Provide some information about the compiler.
3798 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3799 ac_compiler=`set X $ac_compile; echo $2`
3800 { (ac_try="$ac_compiler --version >&5"
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806 (eval "$ac_compiler --version >&5") 2>&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }
3810 { (ac_try="$ac_compiler -v >&5"
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816 (eval "$ac_compiler -v >&5") 2>&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }
3820 { (ac_try="$ac_compiler -V >&5"
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_compiler -V >&5") 2>&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }
3831 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3832 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3833 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 cat >conftest.$ac_ext <<_ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3854 rm -f conftest.$ac_objext
3855 if { (ac_try="$ac_compile"
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_compile") 2>conftest.er1
3863 grep -v '^ *+' conftest.er1 >conftest.err
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3869 { (case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_try") 2>&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; } &&
3878 { ac_try='test -s conftest.$ac_objext'
3879 { (case "(($ac_try" in
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_try") 2>&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; }; then
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3900 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3901 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3902 GXX=`test $ac_compiler_gnu = yes && echo yes`
3903 ac_test_CXXFLAGS=${CXXFLAGS+set}
3904 ac_save_CXXFLAGS=$CXXFLAGS
3905 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3906 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3907 if test "${ac_cv_prog_cxx_g+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3911 ac_cxx_werror_flag=yes
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3929 rm -f conftest.$ac_objext
3930 if { (ac_try="$ac_compile"
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_compile") 2>conftest.er1
3938 grep -v '^ *+' conftest.er1 >conftest.err
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } &&
3943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3944 { (case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_try") 2>&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; } &&
3953 { ac_try='test -s conftest.$ac_objext'
3954 { (case "(($ac_try" in
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_try") 2>&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3963 ac_cv_prog_cxx_g=yes
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3984 rm -f conftest.$ac_objext
3985 if { (ac_try="$ac_compile"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_compile") 2>conftest.er1
3993 grep -v '^ *+' conftest.er1 >conftest.err
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } &&
3998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3999 { (case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_try") 2>&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest.$ac_objext'
4009 { (case "(($ac_try" in
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_try") 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4040 rm -f conftest.$ac_objext
4041 if { (ac_try="$ac_compile"
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4049 grep -v '^ *+' conftest.er1 >conftest.err
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); } &&
4054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4055 { (case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_try") 2>&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (case "(($ac_try" in
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_try") 2>&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_cv_prog_cxx_g=yes
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4092 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4093 if test "$ac_test_CXXFLAGS" = set; then
4094 CXXFLAGS=$ac_save_CXXFLAGS
4095 elif test $ac_cv_prog_cxx_g = yes; then
4096 if test "$GXX" = yes; then
4102 if test "$GXX" = yes; then
4109 ac_cpp='$CPP $CPPFLAGS'
4110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4120 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4121 # On Suns, sometimes $CPP names a directory.
4122 if test -n "$CPP" && test -d "$CPP"; then
4125 if test -z "$CPP"; then
4126 if test "${ac_cv_prog_CPP+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 # Double quotes because CPP needs to be expanded
4130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4133 for ac_c_preproc_warn_flag in '' yes
4135 # Use a header file that comes with gcc, so configuring glibc
4136 # with a fresh cross-compiler works.
4137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 # <limits.h> exists even on freestanding compilers.
4139 # On the NeXT, cc -E runs the code through the compiler's parser,
4140 # not just through cpp. "Syntax error" is here to catch this case.
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4148 # include <limits.h>
4150 # include <assert.h>
4154 if { (ac_try="$ac_cpp conftest.$ac_ext"
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } >/dev/null; then
4167 if test -s conftest.err; then
4168 ac_cpp_err=$ac_c_preproc_warn_flag
4169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4176 if test -z "$ac_cpp_err"; then
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 # Broken: fails on valid input.
4186 rm -f conftest.err conftest.$ac_ext
4188 # OK, works on sane cases. Now check whether nonexistent headers
4189 # can be detected and how.
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <ac_nonexistent.h>
4198 if { (ac_try="$ac_cpp conftest.$ac_ext"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4206 grep -v '^ *+' conftest.er1 >conftest.err
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev/null; then
4211 if test -s conftest.err; then
4212 ac_cpp_err=$ac_c_preproc_warn_flag
4213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4220 if test -z "$ac_cpp_err"; then
4221 # Broken: success on invalid input.
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 # Passes both tests.
4232 rm -f conftest.err conftest.$ac_ext
4235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4236 rm -f conftest.err conftest.$ac_ext
4237 if $ac_preproc_ok; then
4249 { echo "$as_me:$LINENO: result: $CPP" >&5
4250 echo "${ECHO_T}$CPP" >&6; }
4252 for ac_c_preproc_warn_flag in '' yes
4254 # Use a header file that comes with gcc, so configuring glibc
4255 # with a fresh cross-compiler works.
4256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4257 # <limits.h> exists even on freestanding compilers.
4258 # On the NeXT, cc -E runs the code through the compiler's parser,
4259 # not just through cpp. "Syntax error" is here to catch this case.
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4267 # include <limits.h>
4269 # include <assert.h>
4273 if { (ac_try="$ac_cpp conftest.$ac_ext"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } >/dev/null; then
4286 if test -s conftest.err; then
4287 ac_cpp_err=$ac_c_preproc_warn_flag
4288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4295 if test -z "$ac_cpp_err"; then
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 # Broken: fails on valid input.
4305 rm -f conftest.err conftest.$ac_ext
4307 # OK, works on sane cases. Now check whether nonexistent headers
4308 # can be detected and how.
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 #include <ac_nonexistent.h>
4317 if { (ac_try="$ac_cpp conftest.$ac_ext"
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4325 grep -v '^ *+' conftest.er1 >conftest.err
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } >/dev/null; then
4330 if test -s conftest.err; then
4331 ac_cpp_err=$ac_c_preproc_warn_flag
4332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4339 if test -z "$ac_cpp_err"; then
4340 # Broken: success on invalid input.
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 # Passes both tests.
4351 rm -f conftest.err conftest.$ac_ext
4354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4355 rm -f conftest.err conftest.$ac_ext
4356 if $ac_preproc_ok; then
4359 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4360 See \`config.log' for more details." >&5
4361 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4362 See \`config.log' for more details." >&2;}
4363 { (exit 1); exit 1; }; }
4367 ac_cpp='$CPP $CPPFLAGS'
4368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373 ac_cpp='$CXXCPP $CPPFLAGS'
4374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4377 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4378 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4379 if test -z "$CXXCPP"; then
4380 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 # Double quotes because CXXCPP needs to be expanded
4384 for CXXCPP in "$CXX -E" "/lib/cpp"
4387 for ac_cxx_preproc_warn_flag in '' yes
4389 # Use a header file that comes with gcc, so configuring glibc
4390 # with a fresh cross-compiler works.
4391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4392 # <limits.h> exists even on freestanding compilers.
4393 # On the NeXT, cc -E runs the code through the compiler's parser,
4394 # not just through cpp. "Syntax error" is here to catch this case.
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4402 # include <limits.h>
4404 # include <assert.h>
4408 if { (ac_try="$ac_cpp conftest.$ac_ext"
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4416 grep -v '^ *+' conftest.er1 >conftest.err
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } >/dev/null; then
4421 if test -s conftest.err; then
4422 ac_cpp_err=$ac_cxx_preproc_warn_flag
4423 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4430 if test -z "$ac_cpp_err"; then
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 # Broken: fails on valid input.
4440 rm -f conftest.err conftest.$ac_ext
4442 # OK, works on sane cases. Now check whether nonexistent headers
4443 # can be detected and how.
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 #include <ac_nonexistent.h>
4452 if { (ac_try="$ac_cpp conftest.$ac_ext"
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4460 grep -v '^ *+' conftest.er1 >conftest.err
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } >/dev/null; then
4465 if test -s conftest.err; then
4466 ac_cpp_err=$ac_cxx_preproc_warn_flag
4467 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4474 if test -z "$ac_cpp_err"; then
4475 # Broken: success on invalid input.
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 # Passes both tests.
4486 rm -f conftest.err conftest.$ac_ext
4489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4490 rm -f conftest.err conftest.$ac_ext
4491 if $ac_preproc_ok; then
4496 ac_cv_prog_CXXCPP=$CXXCPP
4499 CXXCPP=$ac_cv_prog_CXXCPP
4501 ac_cv_prog_CXXCPP=$CXXCPP
4503 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4504 echo "${ECHO_T}$CXXCPP" >&6; }
4506 for ac_cxx_preproc_warn_flag in '' yes
4508 # Use a header file that comes with gcc, so configuring glibc
4509 # with a fresh cross-compiler works.
4510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4511 # <limits.h> exists even on freestanding compilers.
4512 # On the NeXT, cc -E runs the code through the compiler's parser,
4513 # not just through cpp. "Syntax error" is here to catch this case.
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4521 # include <limits.h>
4523 # include <assert.h>
4527 if { (ac_try="$ac_cpp conftest.$ac_ext"
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4535 grep -v '^ *+' conftest.er1 >conftest.err
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } >/dev/null; then
4540 if test -s conftest.err; then
4541 ac_cpp_err=$ac_cxx_preproc_warn_flag
4542 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4549 if test -z "$ac_cpp_err"; then
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 # Broken: fails on valid input.
4559 rm -f conftest.err conftest.$ac_ext
4561 # OK, works on sane cases. Now check whether nonexistent headers
4562 # can be detected and how.
4563 cat >conftest.$ac_ext <<_ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 #include <ac_nonexistent.h>
4571 if { (ac_try="$ac_cpp conftest.$ac_ext"
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4579 grep -v '^ *+' conftest.er1 >conftest.err
4581 cat conftest.err >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } >/dev/null; then
4584 if test -s conftest.err; then
4585 ac_cpp_err=$ac_cxx_preproc_warn_flag
4586 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4593 if test -z "$ac_cpp_err"; then
4594 # Broken: success on invalid input.
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4600 # Passes both tests.
4605 rm -f conftest.err conftest.$ac_ext
4608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4609 rm -f conftest.err conftest.$ac_ext
4610 if $ac_preproc_ok; then
4613 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4614 See \`config.log' for more details." >&5
4615 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4616 See \`config.log' for more details." >&2;}
4617 { (exit 1); exit 1; }; }
4621 ac_cpp='$CPP $CPPFLAGS'
4622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626 for ac_prog in gawk mawk nawk awk
4628 # Extract the first word of "$ac_prog", so it can be a program name with args.
4629 set dummy $ac_prog; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_AWK+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$AWK"; then
4636 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_AWK="$ac_prog"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test -n "$AWK"; then
4657 { echo "$as_me:$LINENO: result: $AWK" >&5
4658 echo "${ECHO_T}$AWK" >&6; }
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4665 test -n "$AWK" && break
4668 # Find a good install program. We prefer a C program (faster),
4669 # so one script is as good as another. But avoid the broken or
4670 # incompatible versions:
4671 # SysV /etc/install, /usr/sbin/install
4672 # SunOS /usr/etc/install
4673 # IRIX /sbin/install
4675 # AmigaOS /C/install, which installs bootblocks on floppy discs
4676 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4677 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4678 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4679 # OS/2's system install, which has a completely different semantic
4680 # ./install, which can be erroneously created by make from ./install.sh.
4681 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4682 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4683 if test -z "$INSTALL"; then
4684 if test "${ac_cv_path_install+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir=.
4692 # Account for people who put trailing slashes in PATH elements.
4694 ./ | .// | /cC/* | \
4695 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4696 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4699 # OSF1 and SCO ODT 3.0 have their own names for install.
4700 # Don't use installbsd from OSF since it installs stuff as root