2 # From configure.ac Revision: 40790 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
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="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
816 ac_precious_vars='build_alias
830 # Initialize some variables set by options.
832 ac_init_version=false
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
842 program_transform_name=s,x,x,
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE}'
867 infodir='${datarootdir}/info'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 # Accept the important Cygnus configure options, so we can diagnose typos.
894 case $ac_dashdash$ac_option in
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
916 cache_file=config.cache ;;
918 -datadir | --datadir | --datadi | --datad)
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
930 -disable-* | --disable-*)
931 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
934 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935 { (exit 1); exit 1; }; }
936 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
937 eval enable_$ac_feature=no ;;
939 -docdir | --docdir | --docdi | --doc | --do)
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 -enable-* | --enable-*)
950 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
953 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
954 { (exit 1); exit 1; }; }
955 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
956 eval enable_$ac_feature=\$ac_optarg ;;
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
971 -help | --help | --hel | --he | -h)
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 htmldir=$ac_optarg ;;
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1001 -libdir | --libdir | --libdi | --libd)
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1092 -psdir | --psdir | --psdi | --psd | --ps)
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 sbindir=$ac_optarg ;;
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 sharedstatedir=$ac_optarg ;;
1118 -site | --site | --sit)
1120 -site=* | --site=* | --sit=*)
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1147 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package| sed 's/-/_/g'`
1153 eval with_$ac_package=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1159 { echo "$as_me: error: invalid package name: $ac_package" >&2
1160 { (exit 1); exit 1; }; }
1161 ac_package=`echo $ac_package | sed 's/-/_/g'`
1162 eval with_$ac_package=no ;;
1165 # Obsolete; use --with-x.
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) { echo "$as_me: error: unrecognized option: $ac_option
1183 Try \`$0 --help' for more information." >&2
1184 { (exit 1); exit 1; }; }
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1192 { (exit 1); exit 1; }; }
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 { echo "$as_me: error: missing argument to $ac_option" >&2
1210 { (exit 1); exit 1; }; }
1213 # Be sure to have absolute directory names.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1225 { (exit 1); exit 1; }; }
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1233 target=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249 test "$silent" = yes && exec 6>/dev/null
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 { echo "$as_me: error: Working directory cannot be determined" >&2
1256 { (exit 1); exit 1; }; }
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 { echo "$as_me: error: pwd does not report name of working directory" >&2
1259 { (exit 1); exit 1; }; }
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$0" ||
1267 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$0" : 'X\(//\)[^/]' \| \
1269 X"$0" : 'X\(//\)$' \| \
1270 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1294 ac_srcdir_defaulted=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1299 { (exit 1); exit 1; }; }
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1304 { (exit 1); exit 1; }; }
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1330 \`configure' configures this package to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 if test -n "$ac_init_help"; then
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-dev-mode Turn on developer mode
1401 --disable-largefile omit support for large files
1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1406 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1407 --with-curses=PATH use curses files in PATH
1408 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1410 --with-gsm=PATH use GSM files in PATH , or 'internal'
1411 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1412 --with-imap=PATH use UW IMAP Toolkit files in PATH
1413 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1414 --with-kde=PATH use KDE files in PATH
1415 --with-misdn=PATH use mISDN User Library files in PATH
1416 --with-nbs=PATH use Network Broadcast Sound files in PATH
1417 --with-ncurses=PATH use ncurses files in PATH
1418 --with-netsnmp=PATH use Net-SNMP files in PATH
1419 --with-newt=PATH use newt files in PATH
1420 --with-odbc=PATH use unixODBC files in PATH
1421 --with-ogg=PATH use OGG files in PATH
1422 --with-osptk=PATH use OSP Toolkit files in PATH
1423 --with-oss=PATH use Open Sound System files in PATH
1424 --with-popt=PATH use popt files in PATH
1425 --with-postgres=PATH use PostgreSQL files in PATH
1426 --with-pri=PATH use ISDN PRI files in PATH
1427 --with-pwlib=PATH use PWlib files in PATH
1428 --with-qt=PATH use Qt files in PATH
1429 --with-radius=PATH use Radius Client files in PATH
1430 --with-speex=PATH use Speex files in PATH
1431 --with-sqlite=PATH use SQLite files in PATH
1432 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1433 --with-ssl=PATH use OpenSSL files in PATH
1434 --with-tds=PATH use FreeTDS files in PATH
1435 --with-termcap=PATH use Termcap files in PATH
1436 --with-tinfo=PATH use Term Info files in PATH
1437 --with-tonezone=PATH use tonezone files in PATH
1438 --with-vorbis=PATH use Vorbis files in PATH
1439 --with-vpb=PATH use Voicetronix API files in PATH
1440 --with-z=PATH use zlib files in PATH
1441 --with-zaptel=PATH use Zaptel files in PATH
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CXX C++ compiler command
1451 CXXFLAGS C++ compiler flags
1453 CXXCPP C++ preprocessor
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1462 if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" || continue
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1485 .) # We are building in place.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1509 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1519 generated by GNU Autoconf 2.60
1521 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1522 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1530 cat >config.log <<_ACEOF
1531 This file contains any messages produced by compilers while
1532 running configure, to aid debugging if configure makes a mistake.
1534 It was created by $as_me, which was
1535 generated by GNU Autoconf 2.60. Invocation command line was
1547 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1548 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1549 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1550 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1551 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1553 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1554 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1556 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1557 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1558 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1559 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1560 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1561 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1562 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 echo "PATH: $as_dir"
1587 # Keep a trace of the command line.
1588 # Strip out --no-create and --no-recursion so they do not pile up.
1589 # Strip out --silent because we don't want to record it for future runs.
1590 # Also quote any args containing shell meta-characters.
1591 # Make two passes to allow for proper duplicate-argument suppression.
1595 ac_must_keep_next=false
1601 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1603 | -silent | --silent | --silen | --sile | --sil)
1606 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1609 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1611 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1612 if test $ac_must_keep_next = true; then
1613 ac_must_keep_next=false # Got value, back to normal.
1616 *=* | --config-cache | -C | -disable-* | --disable-* \
1617 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1618 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1619 | -with-* | --with-* | -without-* | --without-* | --x)
1620 case "$ac_configure_args0 " in
1621 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1624 -* ) ac_must_keep_next=true ;;
1627 ac_configure_args="$ac_configure_args '$ac_arg'"
1632 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1633 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1635 # When interrupted or exit'd, cleanup temporary files, and complete
1636 # config.log. We remove comments because anyway the quotes in there
1637 # would cause problems or look ugly.
1638 # WARNING: Use '\'' to represent an apostrophe within the trap.
1639 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1640 trap 'exit_status=$?
1641 # Save into config.log some information that might help in debugging.
1646 ## ---------------- ##
1647 ## Cache variables. ##
1648 ## ---------------- ##
1651 # The following way of writing the cache mishandles newlines in values,
1653 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1654 eval ac_val=\$$ac_var
1658 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1659 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1662 _ | IFS | as_nl) ;; #(
1663 *) $as_unset $ac_var ;;
1668 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1669 *${as_nl}ac_space=\ *)
1671 "s/'\''/'\''\\\\'\'''\''/g;
1672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1683 ## ----------------- ##
1684 ## Output variables. ##
1685 ## ----------------- ##
1688 for ac_var in $ac_subst_vars
1690 eval ac_val=\$$ac_var
1692 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1694 echo "$ac_var='\''$ac_val'\''"
1698 if test -n "$ac_subst_files"; then
1700 ## ------------------- ##
1701 ## File substitutions. ##
1702 ## ------------------- ##
1705 for ac_var in $ac_subst_files
1707 eval ac_val=\$$ac_var
1709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711 echo "$ac_var='\''$ac_val'\''"
1716 if test -s confdefs.h; then
1726 test "$ac_signal" != 0 &&
1727 echo "$as_me: caught signal $ac_signal"
1728 echo "$as_me: exit $exit_status"
1730 rm -f core *.core core.conftest.* &&
1731 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1734 for ac_signal in 1 2 13 15; do
1735 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1739 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1740 rm -f -r conftest* confdefs.h
1742 # Predefined preprocessor variables.
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_NAME "$PACKAGE_NAME"
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_STRING "$PACKAGE_STRING"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1769 # Let the site file select an alternate cache file if it wants to.
1770 # Prefer explicitly selected file to automatically selected ones.
1771 if test -n "$CONFIG_SITE"; then
1772 set x "$CONFIG_SITE"
1773 elif test "x$prefix" != xNONE; then
1774 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1776 set x "$ac_default_prefix/share/config.site" \
1777 "$ac_default_prefix/etc/config.site"
1782 if test -r "$ac_site_file"; then
1783 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1784 echo "$as_me: loading site script $ac_site_file" >&6;}
1785 sed 's/^/| /' "$ac_site_file" >&5
1790 if test -r "$cache_file"; then
1791 # Some versions of bash will fail to source /dev/null (special
1792 # files actually), so we avoid doing that.
1793 if test -f "$cache_file"; then
1794 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1795 echo "$as_me: loading cache $cache_file" >&6;}
1797 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1798 *) . "./$cache_file";;
1802 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1803 echo "$as_me: creating cache $cache_file" >&6;}
1807 # Check that the precious variables saved in the cache have kept the same
1809 ac_cache_corrupted=false
1810 for ac_var in $ac_precious_vars; do
1811 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1812 eval ac_new_set=\$ac_env_${ac_var}_set
1813 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1814 eval ac_new_val=\$ac_env_${ac_var}_value
1815 case $ac_old_set,$ac_new_set in
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1821 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1822 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1823 ac_cache_corrupted=: ;;
1826 if test "x$ac_old_val" != "x$ac_new_val"; then
1827 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1828 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1829 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1830 echo "$as_me: former value: $ac_old_val" >&2;}
1831 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1832 echo "$as_me: current value: $ac_new_val" >&2;}
1833 ac_cache_corrupted=:
1836 # Pass precious variables to config.status.
1837 if test "$ac_new_set" = set; then
1839 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1840 *) ac_arg=$ac_var=$ac_new_val ;;
1842 case " $ac_configure_args " in
1843 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1844 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1848 if $ac_cache_corrupted; then
1849 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1850 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1851 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1852 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1853 { (exit 1); exit 1; }; }
1873 ac_cpp='$CPP $CPPFLAGS'
1874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880 # cross-compile macros
1882 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1883 if test -f "$ac_dir/install-sh"; then
1885 ac_install_sh="$ac_aux_dir/install-sh -c"
1887 elif test -f "$ac_dir/install.sh"; then
1889 ac_install_sh="$ac_aux_dir/install.sh -c"
1891 elif test -f "$ac_dir/shtool"; then
1893 ac_install_sh="$ac_aux_dir/shtool install -c"
1897 if test -z "$ac_aux_dir"; then
1898 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1899 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1900 { (exit 1); exit 1; }; }
1903 # These three variables are undocumented and unsupported,
1904 # and are intended to be withdrawn in a future Autoconf release.
1905 # They can cause serious problems if a builder's source tree is in a directory
1906 # whose full name contains unusual characters.
1907 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1908 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1909 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1912 # Make sure we can run config.sub.
1913 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1914 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1915 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1916 { (exit 1); exit 1; }; }
1918 { echo "$as_me:$LINENO: checking build system type" >&5
1919 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1920 if test "${ac_cv_build+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 ac_build_alias=$build_alias
1924 test "x$ac_build_alias" = x &&
1925 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1926 test "x$ac_build_alias" = x &&
1927 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1928 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1929 { (exit 1); exit 1; }; }
1930 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1931 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1932 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1933 { (exit 1); exit 1; }; }
1936 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1937 echo "${ECHO_T}$ac_cv_build" >&6; }
1938 case $ac_cv_build in
1940 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1941 echo "$as_me: error: invalid value of canonical build" >&2;}
1942 { (exit 1); exit 1; }; };;
1945 ac_save_IFS=$IFS; IFS='-'
1951 # Remember, the first character of IFS is used to create $*,
1952 # except with old shells:
1955 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1958 { echo "$as_me:$LINENO: checking host system type" >&5
1959 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1960 if test "${ac_cv_host+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 if test "x$host_alias" = x; then
1964 ac_cv_host=$ac_cv_build
1966 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1967 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1968 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1969 { (exit 1); exit 1; }; }
1973 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1974 echo "${ECHO_T}$ac_cv_host" >&6; }
1977 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1978 echo "$as_me: error: invalid value of canonical host" >&2;}
1979 { (exit 1); exit 1; }; };;
1982 ac_save_IFS=$IFS; IFS='-'
1988 # Remember, the first character of IFS is used to create $*,
1989 # except with old shells:
1992 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1996 # check existence of the package
1999 # specify output header file
2000 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2006 case "${host_os}" in
2008 ac_default_prefix=/usr/local
2011 ac_default_prefix=/usr
2012 if test ${sysconfdir} = '${prefix}/etc'; then
2015 if test ${mandir} = '${prefix}/man'; then
2016 mandir=/usr/share/man
2021 if test ${localstatedir} = '${prefix}/var'; then
2025 BUILD_PLATFORM=${build}
2026 BUILD_CPU=${build_cpu}
2027 BUILD_VENDOR=${build_vendor}
2028 BUILD_OS=${build_os}
2035 HOST_PLATFORM=${host}
2036 HOST_CPU=${host_cpu}
2037 HOST_VENDOR=${host_vendor}
2046 if test -n "$ac_tool_prefix"; then
2047 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2048 set dummy ${ac_tool_prefix}uname; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_path_UNAME+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2066 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 UNAME=$ac_cv_path_UNAME
2078 if test -n "$UNAME"; then
2079 { echo "$as_me:$LINENO: result: $UNAME" >&5
2080 echo "${ECHO_T}$UNAME" >&6; }
2082 { echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6; }
2088 if test -z "$ac_cv_path_UNAME"; then
2090 # Extract the first word of "uname", so it can be a program name with args.
2091 set dummy uname; ac_word=$2
2092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 case $ac_pt_UNAME in
2099 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2109 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2121 if test -n "$ac_pt_UNAME"; then
2122 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2123 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2125 { echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6; }
2129 if test "x$ac_pt_UNAME" = x; then
2132 case $cross_compiling:$ac_tool_warned in
2134 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2135 whose name does not start with the host triplet. If you think this
2136 configuration is useful to you, please write to autoconf@gnu.org." >&5
2137 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2138 whose name does not start with the host triplet. If you think this
2139 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2140 ac_tool_warned=yes ;;
2145 UNAME="$ac_cv_path_UNAME"
2148 if test ! x"${UNAME}" = xNo; then
2149 PBX_OSREV=$(${UNAME} -r)
2153 # This needs to be before any macros that use the C compiler
2155 cat >>confdefs.h <<\_ACEOF
2156 #define _GNU_SOURCE 1
2167 # cross-compile checks
2168 if test "${cross_compiling}" = "yes";
2170 if test -n "$ac_tool_prefix"; then
2171 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2172 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2188 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 if test -n "$CC"; then
2200 { echo "$as_me:$LINENO: result: $CC" >&5
2201 echo "${ECHO_T}$CC" >&6; }
2203 { echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6; }
2209 if test -z "$ac_cv_prog_CC"; then
2211 # Extract the first word of "gcc", so it can be a program name with args.
2212 set dummy gcc; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 if test -n "$ac_ct_CC"; then
2219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2228 ac_cv_prog_ac_ct_CC="gcc"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6; }
2243 { echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6; }
2247 if test "x$ac_ct_CC" = x; then
2250 case $cross_compiling:$ac_tool_warned in
2252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2253 whose name does not start with the host triplet. If you think this
2254 configuration is useful to you, please write to autoconf@gnu.org." >&5
2255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2256 whose name does not start with the host triplet. If you think this
2257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2258 ac_tool_warned=yes ;;
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}g++; ac_word=$2
2269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2271 if test "${ac_cv_prog_CXX+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if test -n "$CXX"; then
2275 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2284 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 if test -n "$CXX"; then
2296 { echo "$as_me:$LINENO: result: $CXX" >&5
2297 echo "${ECHO_T}$CXX" >&6; }
2299 { echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6; }
2305 if test -z "$ac_cv_prog_CXX"; then
2307 # Extract the first word of "g++", so it can be a program name with args.
2308 set dummy g++; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 if test -n "$ac_ct_CXX"; then
2315 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_ac_ct_CXX="g++"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2335 if test -n "$ac_ct_CXX"; then
2336 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2337 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2343 if test "x$ac_ct_CXX" = x; then
2346 case $cross_compiling:$ac_tool_warned in
2348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2349 whose name does not start with the host triplet. If you think this
2350 configuration is useful to you, please write to autoconf@gnu.org." >&5
2351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2352 whose name does not start with the host triplet. If you think this
2353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2354 ac_tool_warned=yes ;;
2359 CXX="$ac_cv_prog_CXX"
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}ld; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_LD+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 if test -n "$LD"; then
2371 ac_cv_prog_LD="$LD" # Let the user override the test.
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_LD="${ac_tool_prefix}ld"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 if test -n "$LD"; then
2392 { echo "$as_me:$LINENO: result: $LD" >&5
2393 echo "${ECHO_T}$LD" >&6; }
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2401 if test -z "$ac_cv_prog_LD"; then
2403 # Extract the first word of "ld", so it can be a program name with args.
2404 set dummy ld; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$ac_ct_LD"; then
2411 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_ac_ct_LD="ld"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2431 if test -n "$ac_ct_LD"; then
2432 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2433 echo "${ECHO_T}$ac_ct_LD" >&6; }
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2439 if test "x$ac_ct_LD" = x; then
2442 case $cross_compiling:$ac_tool_warned in
2444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet. If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&5
2447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2448 whose name does not start with the host triplet. If you think this
2449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2450 ac_tool_warned=yes ;;
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_RANLIB+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 if test -n "$RANLIB"; then
2467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 RANLIB=$ac_cv_prog_RANLIB
2487 if test -n "$RANLIB"; then
2488 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2489 echo "${ECHO_T}$RANLIB" >&6; }
2491 { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2497 if test -z "$ac_cv_prog_RANLIB"; then
2498 ac_ct_RANLIB=$RANLIB
2499 # Extract the first word of "ranlib", so it can be a program name with args.
2500 set dummy ranlib; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$ac_ct_RANLIB"; then
2507 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_ac_ct_RANLIB="ranlib"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2527 if test -n "$ac_ct_RANLIB"; then
2528 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2529 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2531 { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2535 if test "x$ac_ct_RANLIB" = x; then
2538 case $cross_compiling:$ac_tool_warned in
2540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2541 whose name does not start with the host triplet. If you think this
2542 configuration is useful to you, please write to autoconf@gnu.org." >&5
2543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2544 whose name does not start with the host triplet. If you think this
2545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2546 ac_tool_warned=yes ;;
2548 RANLIB=$ac_ct_RANLIB
2551 RANLIB="$ac_cv_prog_RANLIB"
2554 if test -n "$ac_tool_prefix"; then
2555 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2556 set dummy ${ac_tool_prefix}ar; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_AR+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 if test -n "$AR"; then
2563 ac_cv_prog_AR="$AR" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_AR="${ac_tool_prefix}ar"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 if test -n "$AR"; then
2584 { echo "$as_me:$LINENO: result: $AR" >&5
2585 echo "${ECHO_T}$AR" >&6; }
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2593 if test -z "$ac_cv_prog_AR"; then
2595 # Extract the first word of "ar", so it can be a program name with args.
2596 set dummy ar; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 if test -n "$ac_ct_AR"; then
2603 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_ac_ct_AR="ar"
2613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2623 if test -n "$ac_ct_AR"; then
2624 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2625 echo "${ECHO_T}$ac_ct_AR" >&6; }
2627 { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2631 if test "x$ac_ct_AR" = x; then
2634 case $cross_compiling:$ac_tool_warned in
2636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2637 whose name does not start with the host triplet. If you think this
2638 configuration is useful to you, please write to autoconf@gnu.org." >&5
2639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2640 whose name does not start with the host triplet. If you think this
2641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2642 ac_tool_warned=yes ;;
2652 # Checks for programs.
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658 if test -n "$ac_tool_prefix"; then
2659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC="$CC" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 if test -n "$CC"; then
2688 { echo "$as_me:$LINENO: result: $CC" >&5
2689 echo "${ECHO_T}$CC" >&6; }
2691 { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2697 if test -z "$ac_cv_prog_CC"; then
2699 # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc; ac_word=$2
2701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 if test -n "$ac_ct_CC"; then
2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2716 ac_cv_prog_ac_ct_CC="gcc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2727 if test -n "$ac_ct_CC"; then
2728 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2729 echo "${ECHO_T}$ac_ct_CC" >&6; }
2731 { echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6; }
2735 if test "x$ac_ct_CC" = x; then
2738 case $cross_compiling:$ac_tool_warned in
2740 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2741 whose name does not start with the host triplet. If you think this
2742 configuration is useful to you, please write to autoconf@gnu.org." >&5
2743 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2744 whose name does not start with the host triplet. If you think this
2745 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2746 ac_tool_warned=yes ;;
2754 if test -z "$CC"; then
2755 if test -n "$ac_tool_prefix"; then
2756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}cc; ac_word=$2
2758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_CC="${ac_tool_prefix}cc"
2774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test -n "$CC"; then
2785 { echo "$as_me:$LINENO: result: $CC" >&5
2786 echo "${ECHO_T}$CC" >&6; }
2788 { echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6; }
2795 if test -z "$CC"; then
2796 # Extract the first word of "cc", so it can be a program name with args.
2797 set dummy cc; ac_word=$2
2798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2800 if test "${ac_cv_prog_CC+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2815 ac_prog_rejected=yes
2819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 if test $ac_prog_rejected = yes; then
2827 # We found a bogon in the path, so make sure we never use it.
2828 set dummy $ac_cv_prog_CC
2830 if test $# != 0; then
2831 # We chose a different compiler from the bogus one.
2832 # However, it has the same basename, so the bogon will be chosen
2833 # first if we set CC to just the basename; use the full file name.
2835 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2841 if test -n "$CC"; then
2842 { echo "$as_me:$LINENO: result: $CC" >&5
2843 echo "${ECHO_T}$CC" >&6; }
2845 { echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6; }
2851 if test -z "$CC"; then
2852 if test -n "$ac_tool_prefix"; then
2853 for ac_prog in cl.exe
2855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test -n "$CC"; then
2884 { echo "$as_me:$LINENO: result: $CC" >&5
2885 echo "${ECHO_T}$CC" >&6; }
2887 { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2892 test -n "$CC" && break
2895 if test -z "$CC"; then
2897 for ac_prog in cl.exe
2899 # Extract the first word of "$ac_prog", so it can be a program name with args.
2900 set dummy $ac_prog; ac_word=$2
2901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 if test -n "$ac_ct_CC"; then
2907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2916 ac_cv_prog_ac_ct_CC="$ac_prog"
2917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2929 echo "${ECHO_T}$ac_ct_CC" >&6; }
2931 { echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6; }
2936 test -n "$ac_ct_CC" && break
2939 if test "x$ac_ct_CC" = x; then
2942 case $cross_compiling:$ac_tool_warned in
2944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2945 whose name does not start with the host triplet. If you think this
2946 configuration is useful to you, please write to autoconf@gnu.org." >&5
2947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2948 whose name does not start with the host triplet. If you think this
2949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2950 ac_tool_warned=yes ;;
2959 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: no acceptable C compiler found in \$PATH
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
2965 # Provide some information about the compiler.
2966 echo "$as_me:$LINENO: checking for C compiler version" >&5
2967 ac_compiler=`set X $ac_compile; echo $2`
2968 { (ac_try="$ac_compiler --version >&5"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compiler --version >&5") 2>&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }
2978 { (ac_try="$ac_compiler -v >&5"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compiler -v >&5") 2>&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }
2988 { (ac_try="$ac_compiler -V >&5"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compiler -V >&5") 2>&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3014 ac_clean_files_save=$ac_clean_files
3015 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3016 # Try to create an executable without -o first, disregard a.out.
3017 # It will help us diagnose broken compilers, and finding out an intuition
3019 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3020 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3021 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3023 # List of possible output files, starting from the most likely.
3024 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3025 # only as a last resort. b.out is created by i960 compilers.
3026 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3028 # The IRIX 6 linker writes into existing files which may not be
3029 # executable, retaining their permissions. Remove them first so a
3030 # subsequent execution test works.
3032 for ac_file in $ac_files
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3036 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3041 if { (ac_try="$ac_link_default"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_link_default") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; then
3051 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3052 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3053 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3054 # so that the user can short-circuit this test for compilers unknown to
3056 for ac_file in $ac_files
3058 test -f "$ac_file" || continue
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3063 # We found the default executable, but exeext='' is most
3067 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3069 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # We set ac_cv_exeext here because the later test for it is not
3072 # safe: cross compilers may not add the suffix if given an `-o'
3073 # argument, so we may need to know it at that point already.
3074 # Even if this section looks crufty: it has the advantage of
3081 test "$ac_cv_exeext" = no && ac_cv_exeext=
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C compiler cannot create executables
3090 See \`config.log' for more details." >&2;}
3091 { (exit 77); exit 77; }; }
3094 ac_exeext=$ac_cv_exeext
3095 { echo "$as_me:$LINENO: result: $ac_file" >&5
3096 echo "${ECHO_T}$ac_file" >&6; }
3098 # Check that the compiler produces executables we can run. If not, either
3099 # the compiler is broken, or we cross compile.
3100 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3101 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3102 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3103 # If not cross compiling, check that we can run a simple program.
3104 if test "$cross_compiling" != yes; then
3105 if { ac_try='./$ac_file'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3117 if test "$cross_compiling" = maybe; then
3120 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3121 If you meant to cross compile, use \`--host'.
3122 See \`config.log' for more details." >&5
3123 echo "$as_me: error: cannot run C compiled programs.
3124 If you meant to cross compile, use \`--host'.
3125 See \`config.log' for more details." >&2;}
3126 { (exit 1); exit 1; }; }
3130 { echo "$as_me:$LINENO: result: yes" >&5
3131 echo "${ECHO_T}yes" >&6; }
3133 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3134 ac_clean_files=$ac_clean_files_save
3135 # Check that the compiler produces executables we can run. If not, either
3136 # the compiler is broken, or we cross compile.
3137 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3138 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3139 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3140 echo "${ECHO_T}$cross_compiling" >&6; }
3142 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3143 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3144 if { (ac_try="$ac_link"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_link") 2>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; then
3154 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3156 # work properly (i.e., refer to `conftest.exe'), while it won't with
3158 for ac_file in conftest.exe conftest conftest.*; do
3159 test -f "$ac_file" || continue
3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&5
3170 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3171 See \`config.log' for more details." >&2;}
3172 { (exit 1); exit 1; }; }
3175 rm -f conftest$ac_cv_exeext
3176 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3177 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3179 rm -f conftest.$ac_ext
3180 EXEEXT=$ac_cv_exeext
3182 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3183 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3184 if test "${ac_cv_objext+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 cat >conftest.$ac_ext <<_ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3202 rm -f conftest.o conftest.obj
3203 if { (ac_try="$ac_compile"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_compile") 2>&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; then
3213 for ac_file in conftest.o conftest.obj conftest.*; do
3214 test -f "$ac_file" || continue;
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details." >&5
3227 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3228 See \`config.log' for more details." >&2;}
3229 { (exit 1); exit 1; }; }
3232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3234 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3235 echo "${ECHO_T}$ac_cv_objext" >&6; }
3236 OBJEXT=$ac_cv_objext
3238 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3239 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3240 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 cat >conftest.$ac_ext <<_ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3261 rm -f conftest.$ac_objext
3262 if { (ac_try="$ac_compile"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3270 grep -v '^ *+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3276 { (case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_try") 2>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; } &&
3285 { ac_try='test -s conftest.$ac_objext'
3286 { (case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_try") 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3307 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3308 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3309 GCC=`test $ac_compiler_gnu = yes && echo yes`
3310 ac_test_CFLAGS=${CFLAGS+set}
3311 ac_save_CFLAGS=$CFLAGS
3312 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3313 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_cc_g+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 ac_save_c_werror_flag=$ac_c_werror_flag
3318 ac_c_werror_flag=yes
3321 cat >conftest.$ac_ext <<_ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_compile") 2>conftest.er1
3345 grep -v '^ *+' conftest.er1 >conftest.err
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3351 { (case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_try") 2>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try='test -s conftest.$ac_objext'
3361 { (case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_try") 2>&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3376 cat >conftest.$ac_ext <<_ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3391 rm -f conftest.$ac_objext
3392 if { (ac_try="$ac_compile"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_compile") 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3406 { (case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_try") 2>&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_try") 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 ac_c_werror_flag=$ac_save_c_werror_flag
3432 cat >conftest.$ac_ext <<_ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3447 rm -f conftest.$ac_objext
3448 if { (ac_try="$ac_compile"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_compile") 2>conftest.er1
3456 grep -v '^ *+' conftest.er1 >conftest.err
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3462 { (case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_try") 2>&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_try") 2>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3498 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3500 if test "$ac_test_CFLAGS" = set; then
3501 CFLAGS=$ac_save_CFLAGS
3502 elif test $ac_cv_prog_cc_g = yes; then
3503 if test "$GCC" = yes; then
3509 if test "$GCC" = yes; then
3515 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3516 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3517 if test "${ac_cv_prog_cc_c89+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 ac_cv_prog_cc_c89=no
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3530 #include <sys/types.h>
3531 #include <sys/stat.h>
3532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3533 struct buf { int x; };
3534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3535 static char *e (p, i)
3541 static char *f (char * (*g) (char **, int), char **p, ...)
3546 s = g (p, va_arg (v,int));
3551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3552 function prototypes and stuff, but not '\xHH' hex character constants.
3553 These don't provoke an error unfortunately, instead are silently treated
3554 as 'x'. The following induces an error, until -std is added to get
3555 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3556 array size at least. It's necessary to write '\x00'==0 to get something
3557 that's true only with -std. */
3558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3560 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3561 inside strings and character constants. */
3563 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3565 int test (int i, double x);
3566 struct s1 {int (*f) (int a);};
3567 struct s2 {int (*f) (double a);};
3568 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3574 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3579 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3580 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3582 CC="$ac_save_CC $ac_arg"
3583 rm -f conftest.$ac_objext
3584 if { (ac_try="$ac_compile"
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_compile") 2>conftest.er1
3592 grep -v '^ *+' conftest.er1 >conftest.err
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } &&
3597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3598 { (case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_try") 2>&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; } &&
3607 { ac_try='test -s conftest.$ac_objext'
3608 { (case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_try") 2>&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 ac_cv_prog_cc_c89=$ac_arg
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3625 rm -f core conftest.err conftest.$ac_objext
3626 test "x$ac_cv_prog_cc_c89" != "xno" && break
3628 rm -f conftest.$ac_ext
3633 case "x$ac_cv_prog_cc_c89" in
3635 { echo "$as_me:$LINENO: result: none needed" >&5
3636 echo "${ECHO_T}none needed" >&6; } ;;
3638 { echo "$as_me:$LINENO: result: unsupported" >&5
3639 echo "${ECHO_T}unsupported" >&6; } ;;
3641 CC="$CC $ac_cv_prog_cc_c89"
3642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 ac_cpp='$CXXCPP $CPPFLAGS'
3655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3658 if test -z "$CXX"; then
3659 if test -n "$CCC"; then
3662 if test -n "$ac_tool_prefix"; then
3663 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3669 if test "${ac_cv_prog_CXX+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 if test -n "$CXX"; then
3673 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3682 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 if test -n "$CXX"; then
3694 { echo "$as_me:$LINENO: result: $CXX" >&5
3695 echo "${ECHO_T}$CXX" >&6; }
3697 { echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6; }
3702 test -n "$CXX" && break
3705 if test -z "$CXX"; then
3707 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy $ac_prog; ac_word=$2
3711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3713 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 if test -n "$ac_ct_CXX"; then
3717 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3726 ac_cv_prog_ac_ct_CXX="$ac_prog"
3727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3737 if test -n "$ac_ct_CXX"; then
3738 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3739 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3741 { echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; }
3746 test -n "$ac_ct_CXX" && break
3749 if test "x$ac_ct_CXX" = x; then
3752 case $cross_compiling:$ac_tool_warned in
3754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3755 whose name does not start with the host triplet. If you think this
3756 configuration is useful to you, please write to autoconf@gnu.org." >&5
3757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3758 whose name does not start with the host triplet. If you think this
3759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3760 ac_tool_warned=yes ;;
3768 # Provide some information about the compiler.
3769 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3770 ac_compiler=`set X $ac_compile; echo $2`
3771 { (ac_try="$ac_compiler --version >&5"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_compiler --version >&5") 2>&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }
3781 { (ac_try="$ac_compiler -v >&5"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_compiler -v >&5") 2>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }
3791 { (ac_try="$ac_compiler -V >&5"
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_compiler -V >&5") 2>&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }
3802 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3803 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3804 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3834 grep -v '^ *+' conftest.er1 >conftest.err
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3840 { (case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_try") 2>&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; } &&
3849 { ac_try='test -s conftest.$ac_objext'
3850 { (case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_try") 2>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; }; then
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3871 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3872 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3873 GXX=`test $ac_compiler_gnu = yes && echo yes`
3874 ac_test_CXXFLAGS=${CXXFLAGS+set}
3875 ac_save_CXXFLAGS=$CXXFLAGS
3876 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3877 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3878 if test "${ac_cv_prog_cxx_g+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3882 ac_cxx_werror_flag=yes
3885 cat >conftest.$ac_ext <<_ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3900 rm -f conftest.$ac_objext
3901 if { (ac_try="$ac_compile"
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3907 (eval "$ac_compile") 2>conftest.er1
3909 grep -v '^ *+' conftest.er1 >conftest.err
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3915 { (case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_try") 2>&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; } &&
3924 { ac_try='test -s conftest.$ac_objext'
3925 { (case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930 (eval "$ac_try") 2>&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_prog_cxx_g=yes
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3955 rm -f conftest.$ac_objext
3956 if { (ac_try="$ac_compile"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_compile") 2>conftest.er1
3964 grep -v '^ *+' conftest.er1 >conftest.err
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3970 { (case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_try") 2>&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; } &&
3979 { ac_try='test -s conftest.$ac_objext'
3980 { (case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985 (eval "$ac_try") 2>&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }; }; then
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3996 cat >conftest.$ac_ext <<_ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4026 { (case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_try") 2>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_try") 2>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 ac_cv_prog_cxx_g=yes
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4062 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4063 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4064 if test "$ac_test_CXXFLAGS" = set; then
4065 CXXFLAGS=$ac_save_CXXFLAGS
4066 elif test $ac_cv_prog_cxx_g = yes; then
4067 if test "$GXX" = yes; then
4073 if test "$GXX" = yes; then
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4091 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4092 # On Suns, sometimes $CPP names a directory.
4093 if test -n "$CPP" && test -d "$CPP"; then
4096 if test -z "$CPP"; then
4097 if test "${ac_cv_prog_CPP+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 # Double quotes because CPP needs to be expanded
4101 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4104 for ac_c_preproc_warn_flag in '' yes
4106 # Use a header file that comes with gcc, so configuring glibc
4107 # with a fresh cross-compiler works.
4108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4109 # <limits.h> exists even on freestanding compilers.
4110 # On the NeXT, cc -E runs the code through the compiler's parser,
4111 # not just through cpp. "Syntax error" is here to catch this case.
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 # include <limits.h>
4121 # include <assert.h>
4125 if { (ac_try="$ac_cpp conftest.$ac_ext"
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4133 grep -v '^ *+' conftest.er1 >conftest.err
4135 cat conftest.err >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } >/dev/null; then
4138 if test -s conftest.err; then
4139 ac_cpp_err=$ac_c_preproc_warn_flag
4140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4147 if test -z "$ac_cpp_err"; then
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 # Broken: fails on valid input.
4157 rm -f conftest.err conftest.$ac_ext
4159 # OK, works on sane cases. Now check whether nonexistent headers
4160 # can be detected and how.
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4167 #include <ac_nonexistent.h>
4169 if { (ac_try="$ac_cpp conftest.$ac_ext"
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4177 grep -v '^ *+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev/null; then
4182 if test -s conftest.err; then
4183 ac_cpp_err=$ac_c_preproc_warn_flag
4184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4191 if test -z "$ac_cpp_err"; then
4192 # Broken: success on invalid input.
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 # Passes both tests.
4203 rm -f conftest.err conftest.$ac_ext
4206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4207 rm -f conftest.err conftest.$ac_ext
4208 if $ac_preproc_ok; then
4220 { echo "$as_me:$LINENO: result: $CPP" >&5
4221 echo "${ECHO_T}$CPP" >&6; }
4223 for ac_c_preproc_warn_flag in '' yes
4225 # Use a header file that comes with gcc, so configuring glibc
4226 # with a fresh cross-compiler works.
4227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4228 # <limits.h> exists even on freestanding compilers.
4229 # On the NeXT, cc -E runs the code through the compiler's parser,
4230 # not just through cpp. "Syntax error" is here to catch this case.
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4238 # include <limits.h>
4240 # include <assert.h>
4244 if { (ac_try="$ac_cpp conftest.$ac_ext"
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev/null; then
4257 if test -s conftest.err; then
4258 ac_cpp_err=$ac_c_preproc_warn_flag
4259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4266 if test -z "$ac_cpp_err"; then
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4272 # Broken: fails on valid input.
4276 rm -f conftest.err conftest.$ac_ext
4278 # OK, works on sane cases. Now check whether nonexistent headers
4279 # can be detected and how.
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 #include <ac_nonexistent.h>
4288 if { (ac_try="$ac_cpp conftest.$ac_ext"
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4296 grep -v '^ *+' conftest.er1 >conftest.err
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } >/dev/null; then
4301 if test -s conftest.err; then
4302 ac_cpp_err=$ac_c_preproc_warn_flag
4303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4310 if test -z "$ac_cpp_err"; then
4311 # Broken: success on invalid input.
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 # Passes both tests.
4322 rm -f conftest.err conftest.$ac_ext
4325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4326 rm -f conftest.err conftest.$ac_ext
4327 if $ac_preproc_ok; then
4330 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4331 See \`config.log' for more details." >&5
4332 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4333 See \`config.log' for more details." >&2;}
4334 { (exit 1); exit 1; }; }
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 ac_cpp='$CXXCPP $CPPFLAGS'
4345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4348 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4349 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4350 if test -z "$CXXCPP"; then
4351 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 # Double quotes because CXXCPP needs to be expanded
4355 for CXXCPP in "$CXX -E" "/lib/cpp"
4358 for ac_cxx_preproc_warn_flag in '' yes
4360 # Use a header file that comes with gcc, so configuring glibc
4361 # with a fresh cross-compiler works.
4362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363 # <limits.h> exists even on freestanding compilers.
4364 # On the NeXT, cc -E runs the code through the compiler's parser,
4365 # not just through cpp. "Syntax error" is here to catch this case.
4366 cat >conftest.$ac_ext <<_ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4373 # include <limits.h>
4375 # include <assert.h>
4379 if { (ac_try="$ac_cpp conftest.$ac_ext"
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4387 grep -v '^ *+' conftest.er1 >conftest.err
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } >/dev/null; then
4392 if test -s conftest.err; then
4393 ac_cpp_err=$ac_cxx_preproc_warn_flag
4394 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4401 if test -z "$ac_cpp_err"; then
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4407 # Broken: fails on valid input.
4411 rm -f conftest.err conftest.$ac_ext
4413 # OK, works on sane cases. Now check whether nonexistent headers
4414 # can be detected and how.
4415 cat >conftest.$ac_ext <<_ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4421 #include <ac_nonexistent.h>
4423 if { (ac_try="$ac_cpp conftest.$ac_ext"
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } >/dev/null; then
4436 if test -s conftest.err; then
4437 ac_cpp_err=$ac_cxx_preproc_warn_flag
4438 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4445 if test -z "$ac_cpp_err"; then
4446 # Broken: success on invalid input.
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 # Passes both tests.
4457 rm -f conftest.err conftest.$ac_ext
4460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4461 rm -f conftest.err conftest.$ac_ext
4462 if $ac_preproc_ok; then
4467 ac_cv_prog_CXXCPP=$CXXCPP
4470 CXXCPP=$ac_cv_prog_CXXCPP
4472 ac_cv_prog_CXXCPP=$CXXCPP
4474 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4475 echo "${ECHO_T}$CXXCPP" >&6; }
4477 for ac_cxx_preproc_warn_flag in '' yes
4479 # Use a header file that comes with gcc, so configuring glibc
4480 # with a fresh cross-compiler works.
4481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4482 # <limits.h> exists even on freestanding compilers.
4483 # On the NeXT, cc -E runs the code through the compiler's parser,
4484 # not just through cpp. "Syntax error" is here to catch this case.
4485 cat >conftest.$ac_ext <<_ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4492 # include <limits.h>
4494 # include <assert.h>
4498 if { (ac_try="$ac_cpp conftest.$ac_ext"
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4506 grep -v '^ *+' conftest.er1 >conftest.err
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } >/dev/null; then
4511 if test -s conftest.err; then
4512 ac_cpp_err=$ac_cxx_preproc_warn_flag
4513 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4520 if test -z "$ac_cpp_err"; then
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 # Broken: fails on valid input.
4530 rm -f conftest.err conftest.$ac_ext
4532 # OK, works on sane cases. Now check whether nonexistent headers
4533 # can be detected and how.
4534 cat >conftest.$ac_ext <<_ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 #include <ac_nonexistent.h>
4542 if { (ac_try="$ac_cpp conftest.$ac_ext"
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4550 grep -v '^ *+' conftest.er1 >conftest.err
4552 cat conftest.err >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } >/dev/null; then
4555 if test -s conftest.err; then
4556 ac_cpp_err=$ac_cxx_preproc_warn_flag
4557 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4564 if test -z "$ac_cpp_err"; then
4565 # Broken: success on invalid input.
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4571 # Passes both tests.
4576 rm -f conftest.err conftest.$ac_ext
4579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4580 rm -f conftest.err conftest.$ac_ext
4581 if $ac_preproc_ok; then
4584 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4585 See \`config.log' for more details." >&5
4586 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4587 See \`config.log' for more details." >&2;}
4588 { (exit 1); exit 1; }; }
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597 for ac_prog in gawk mawk nawk awk
4599 # Extract the first word of "$ac_prog", so it can be a program name with args.
4600 set dummy $ac_prog; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_prog_AWK+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 if test -n "$AWK"; then
4607 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_AWK="$ac_prog"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 if test -n "$AWK"; then
4628 { echo "$as_me:$LINENO: result: $AWK" >&5
4629 echo "${ECHO_T}$AWK" >&6; }
4631 { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4636 test -n "$AWK" && break
4639 # Find a good install program. We prefer a C program (faster),
4640 # so one script is as good as another. But avoid the broken or
4641 # incompatible versions:
4642 # SysV /etc/install, /usr/sbin/install
4643 # SunOS /usr/etc/install
4644 # IRIX /sbin/install
4646 # AmigaOS /C/install, which installs bootblocks on floppy discs
4647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4650 # OS/2's system install, which has a completely different semantic
4651 # ./install, which can be erroneously created by make from ./install.sh.
4652 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4653 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4654 if test -z "$INSTALL"; then
4655 if test "${ac_cv_path_install+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 # Account for people who put trailing slashes in PATH elements.
4665 ./ | .// | /cC/* | \
4666 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4667 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4670 # OSF1 and SCO ODT 3.0 have their own names for install.
4671 # Don't use installbsd from OSF since it installs stuff as root
4673 for ac_prog in ginstall scoinst install; do
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4676 if test $ac_prog = install &&
4677 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4678 # AIX install. It has an incompatible calling convention.
4680 elif test $ac_prog = install &&
4681 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4682 # program-specific install script used by HP pwplus--don't use.
4685 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"