2 # From configure.ac Revision: 41119 .
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
817 ac_precious_vars='build_alias
831 # Initialize some variables set by options.
833 ac_init_version=false
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
843 program_transform_name=s,x,x,
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE}'
868 infodir='${datarootdir}/info'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=no ;;
940 -docdir | --docdir | --docdi | --doc | --do)
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 -enable-* | --enable-*)
951 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_$ac_feature=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
972 -help | --help | --hel | --he | -h)
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1121 -site=* | --site=* | --sit=*)
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1148 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_$ac_package=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_$ac_package=no ;;
1166 # Obsolete; use --with-x.
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184 Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
1214 # Be sure to have absolute directory names.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val=\$$ac_var
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1234 target=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$0" ||
1268 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1295 ac_srcdir_defaulted=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1331 \`configure' configures this package to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 if test -n "$ac_init_help"; then
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-dev-mode Turn on developer mode
1402 --disable-largefile omit support for large files
1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1407 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1408 --with-curses=PATH use curses files in PATH
1409 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1411 --with-gsm=PATH use GSM files in PATH , or 'internal'
1412 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1413 --with-imap=PATH use UW IMAP Toolkit files in PATH
1414 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1415 --with-kde=PATH use KDE files in PATH
1416 --with-misdn=PATH use mISDN User Library files in PATH
1417 --with-nbs=PATH use Network Broadcast Sound files in PATH
1418 --with-ncurses=PATH use ncurses files in PATH
1419 --with-netsnmp=PATH use Net-SNMP files in PATH
1420 --with-newt=PATH use newt files in PATH
1421 --with-odbc=PATH use unixODBC files in PATH
1422 --with-ogg=PATH use OGG files in PATH
1423 --with-osptk=PATH use OSP Toolkit files in PATH
1424 --with-oss=PATH use Open Sound System files in PATH
1425 --with-popt=PATH use popt files in PATH
1426 --with-postgres=PATH use PostgreSQL files in PATH
1427 --with-pri=PATH use ISDN PRI files in PATH
1428 --with-pwlib=PATH use PWlib files in PATH
1429 --with-qt=PATH use Qt files in PATH
1430 --with-radius=PATH use Radius Client files in PATH
1431 --with-speex=PATH use Speex files in PATH
1432 --with-sqlite=PATH use SQLite files in PATH
1433 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1434 --with-ssl=PATH use OpenSSL files in PATH
1435 --with-tds=PATH use FreeTDS files in PATH
1436 --with-termcap=PATH use Termcap files in PATH
1437 --with-tinfo=PATH use Term Info files in PATH
1438 --with-tonezone=PATH use tonezone files in PATH
1439 --with-vorbis=PATH use Vorbis files in PATH
1440 --with-vpb=PATH use Voicetronix API files in PATH
1441 --with-z=PATH use zlib files in PATH
1442 --with-zaptel=PATH use Zaptel files in PATH
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CXX C++ compiler command
1452 CXXFLAGS C++ compiler flags
1454 CXXCPP C++ preprocessor
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" || continue
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1486 .) # We are building in place.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1510 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1520 generated by GNU Autoconf 2.60
1522 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1523 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1524 This configure script is free software; the Free Software Foundation
1525 gives unlimited permission to copy, distribute and modify it.
1531 cat >config.log <<_ACEOF
1532 This file contains any messages produced by compilers while
1533 running configure, to aid debugging if configure makes a mistake.
1535 It was created by $as_me, which was
1536 generated by GNU Autoconf 2.60. Invocation command line was
1548 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1549 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1550 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1551 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1552 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1554 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1555 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1557 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1558 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1559 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1560 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1561 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1562 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1563 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 test -z "$as_dir" && as_dir=.
1572 echo "PATH: $as_dir"
1588 # Keep a trace of the command line.
1589 # Strip out --no-create and --no-recursion so they do not pile up.
1590 # Strip out --silent because we don't want to record it for future runs.
1591 # Also quote any args containing shell meta-characters.
1592 # Make two passes to allow for proper duplicate-argument suppression.
1596 ac_must_keep_next=false
1602 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1604 | -silent | --silent | --silen | --sile | --sil)
1607 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1610 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1612 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1613 if test $ac_must_keep_next = true; then
1614 ac_must_keep_next=false # Got value, back to normal.
1617 *=* | --config-cache | -C | -disable-* | --disable-* \
1618 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1619 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1620 | -with-* | --with-* | -without-* | --without-* | --x)
1621 case "$ac_configure_args0 " in
1622 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1625 -* ) ac_must_keep_next=true ;;
1628 ac_configure_args="$ac_configure_args '$ac_arg'"
1633 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1634 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1636 # When interrupted or exit'd, cleanup temporary files, and complete
1637 # config.log. We remove comments because anyway the quotes in there
1638 # would cause problems or look ugly.
1639 # WARNING: Use '\'' to represent an apostrophe within the trap.
1640 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1641 trap 'exit_status=$?
1642 # Save into config.log some information that might help in debugging.
1647 ## ---------------- ##
1648 ## Cache variables. ##
1649 ## ---------------- ##
1652 # The following way of writing the cache mishandles newlines in values,
1654 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1655 eval ac_val=\$$ac_var
1659 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1660 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1663 _ | IFS | as_nl) ;; #(
1664 *) $as_unset $ac_var ;;
1669 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1670 *${as_nl}ac_space=\ *)
1672 "s/'\''/'\''\\\\'\'''\''/g;
1673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1684 ## ----------------- ##
1685 ## Output variables. ##
1686 ## ----------------- ##
1689 for ac_var in $ac_subst_vars
1691 eval ac_val=\$$ac_var
1693 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1695 echo "$ac_var='\''$ac_val'\''"
1699 if test -n "$ac_subst_files"; then
1701 ## ------------------- ##
1702 ## File substitutions. ##
1703 ## ------------------- ##
1706 for ac_var in $ac_subst_files
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1717 if test -s confdefs.h; then
1727 test "$ac_signal" != 0 &&
1728 echo "$as_me: caught signal $ac_signal"
1729 echo "$as_me: exit $exit_status"
1731 rm -f core *.core core.conftest.* &&
1732 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1735 for ac_signal in 1 2 13 15; do
1736 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1740 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1741 rm -f -r conftest* confdefs.h
1743 # Predefined preprocessor variables.
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_NAME "$PACKAGE_NAME"
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_STRING "$PACKAGE_STRING"
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1770 # Let the site file select an alternate cache file if it wants to.
1771 # Prefer explicitly selected file to automatically selected ones.
1772 if test -n "$CONFIG_SITE"; then
1773 set x "$CONFIG_SITE"
1774 elif test "x$prefix" != xNONE; then
1775 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1777 set x "$ac_default_prefix/share/config.site" \
1778 "$ac_default_prefix/etc/config.site"
1783 if test -r "$ac_site_file"; then
1784 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1785 echo "$as_me: loading site script $ac_site_file" >&6;}
1786 sed 's/^/| /' "$ac_site_file" >&5
1791 if test -r "$cache_file"; then
1792 # Some versions of bash will fail to source /dev/null (special
1793 # files actually), so we avoid doing that.
1794 if test -f "$cache_file"; then
1795 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1796 echo "$as_me: loading cache $cache_file" >&6;}
1798 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1799 *) . "./$cache_file";;
1803 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1804 echo "$as_me: creating cache $cache_file" >&6;}
1808 # Check that the precious variables saved in the cache have kept the same
1810 ac_cache_corrupted=false
1811 for ac_var in $ac_precious_vars; do
1812 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1813 eval ac_new_set=\$ac_env_${ac_var}_set
1814 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1815 eval ac_new_val=\$ac_env_${ac_var}_value
1816 case $ac_old_set,$ac_new_set in
1818 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1819 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1820 ac_cache_corrupted=: ;;
1822 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1823 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1824 ac_cache_corrupted=: ;;
1827 if test "x$ac_old_val" != "x$ac_new_val"; then
1828 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1829 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1830 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1831 echo "$as_me: former value: $ac_old_val" >&2;}
1832 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1833 echo "$as_me: current value: $ac_new_val" >&2;}
1834 ac_cache_corrupted=:
1837 # Pass precious variables to config.status.
1838 if test "$ac_new_set" = set; then
1840 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1841 *) ac_arg=$ac_var=$ac_new_val ;;
1843 case " $ac_configure_args " in
1844 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1845 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1849 if $ac_cache_corrupted; then
1850 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1851 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1852 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1853 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1854 { (exit 1); exit 1; }; }
1874 ac_cpp='$CPP $CPPFLAGS'
1875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881 # cross-compile macros
1883 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1884 if test -f "$ac_dir/install-sh"; then
1886 ac_install_sh="$ac_aux_dir/install-sh -c"
1888 elif test -f "$ac_dir/install.sh"; then
1890 ac_install_sh="$ac_aux_dir/install.sh -c"
1892 elif test -f "$ac_dir/shtool"; then
1894 ac_install_sh="$ac_aux_dir/shtool install -c"
1898 if test -z "$ac_aux_dir"; then
1899 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1900 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1901 { (exit 1); exit 1; }; }
1904 # These three variables are undocumented and unsupported,
1905 # and are intended to be withdrawn in a future Autoconf release.
1906 # They can cause serious problems if a builder's source tree is in a directory
1907 # whose full name contains unusual characters.
1908 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1909 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1910 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1913 # Make sure we can run config.sub.
1914 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1915 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1916 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1917 { (exit 1); exit 1; }; }
1919 { echo "$as_me:$LINENO: checking build system type" >&5
1920 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1921 if test "${ac_cv_build+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 ac_build_alias=$build_alias
1925 test "x$ac_build_alias" = x &&
1926 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1927 test "x$ac_build_alias" = x &&
1928 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1929 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1930 { (exit 1); exit 1; }; }
1931 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1932 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1934 { (exit 1); exit 1; }; }
1937 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1938 echo "${ECHO_T}$ac_cv_build" >&6; }
1939 case $ac_cv_build in
1941 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1942 echo "$as_me: error: invalid value of canonical build" >&2;}
1943 { (exit 1); exit 1; }; };;
1946 ac_save_IFS=$IFS; IFS='-'
1952 # Remember, the first character of IFS is used to create $*,
1953 # except with old shells:
1956 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1959 { echo "$as_me:$LINENO: checking host system type" >&5
1960 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1961 if test "${ac_cv_host+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 if test "x$host_alias" = x; then
1965 ac_cv_host=$ac_cv_build
1967 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1968 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1969 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1970 { (exit 1); exit 1; }; }
1974 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1975 echo "${ECHO_T}$ac_cv_host" >&6; }
1978 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1979 echo "$as_me: error: invalid value of canonical host" >&2;}
1980 { (exit 1); exit 1; }; };;
1983 ac_save_IFS=$IFS; IFS='-'
1989 # Remember, the first character of IFS is used to create $*,
1990 # except with old shells:
1993 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1997 # check existence of the package
2000 # specify output header file
2001 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2007 case "${host_os}" in
2009 ac_default_prefix=/usr/local
2012 ac_default_prefix=/usr
2013 if test ${sysconfdir} = '${prefix}/etc'; then
2016 if test ${mandir} = '${prefix}/man'; then
2017 mandir=/usr/share/man
2022 if test ${localstatedir} = '${prefix}/var'; then
2026 BUILD_PLATFORM=${build}
2027 BUILD_CPU=${build_cpu}
2028 BUILD_VENDOR=${build_vendor}
2029 BUILD_OS=${build_os}
2036 HOST_PLATFORM=${host}
2037 HOST_CPU=${host_cpu}
2038 HOST_VENDOR=${host_vendor}
2047 if test -n "$ac_tool_prefix"; then
2048 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2049 set dummy ${ac_tool_prefix}uname; ac_word=$2
2050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2052 if test "${ac_cv_path_UNAME+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2067 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 UNAME=$ac_cv_path_UNAME
2079 if test -n "$UNAME"; then
2080 { echo "$as_me:$LINENO: result: $UNAME" >&5
2081 echo "${ECHO_T}$UNAME" >&6; }
2083 { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2089 if test -z "$ac_cv_path_UNAME"; then
2091 # Extract the first word of "uname", so it can be a program name with args.
2092 set dummy uname; ac_word=$2
2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 case $ac_pt_UNAME in
2100 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2110 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2122 if test -n "$ac_pt_UNAME"; then
2123 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2124 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2126 { echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6; }
2130 if test "x$ac_pt_UNAME" = x; then
2133 case $cross_compiling:$ac_tool_warned in
2135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2136 whose name does not start with the host triplet. If you think this
2137 configuration is useful to you, please write to autoconf@gnu.org." >&5
2138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2139 whose name does not start with the host triplet. If you think this
2140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2141 ac_tool_warned=yes ;;
2146 UNAME="$ac_cv_path_UNAME"
2149 if test ! x"${UNAME}" = xNo; then
2150 PBX_OSREV=$(${UNAME} -r)
2154 # This needs to be before any macros that use the C compiler
2156 cat >>confdefs.h <<\_ACEOF
2157 #define _GNU_SOURCE 1
2168 # cross-compile checks
2169 if test "${cross_compiling}" = "yes";
2171 if test -n "$ac_tool_prefix"; then
2172 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2173 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2189 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 if test -n "$CC"; then
2201 { echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6; }
2204 { echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6; }
2210 if test -z "$ac_cv_prog_CC"; then
2212 # Extract the first word of "gcc", so it can be a program name with args.
2213 set dummy gcc; ac_word=$2
2214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 if test -n "$ac_ct_CC"; then
2220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2229 ac_cv_prog_ac_ct_CC="gcc"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2240 if test -n "$ac_ct_CC"; then
2241 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2242 echo "${ECHO_T}$ac_ct_CC" >&6; }
2244 { echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6; }
2248 if test "x$ac_ct_CC" = x; then
2251 case $cross_compiling:$ac_tool_warned in
2253 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2254 whose name does not start with the host triplet. If you think this
2255 configuration is useful to you, please write to autoconf@gnu.org." >&5
2256 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2257 whose name does not start with the host triplet. If you think this
2258 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2259 ac_tool_warned=yes ;;
2267 if test -n "$ac_tool_prefix"; then
2268 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2269 set dummy ${ac_tool_prefix}g++; ac_word=$2
2270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2272 if test "${ac_cv_prog_CXX+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 if test -n "$CXX"; then
2276 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2285 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 if test -n "$CXX"; then
2297 { echo "$as_me:$LINENO: result: $CXX" >&5
2298 echo "${ECHO_T}$CXX" >&6; }
2300 { echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6; }
2306 if test -z "$ac_cv_prog_CXX"; then
2308 # Extract the first word of "g++", so it can be a program name with args.
2309 set dummy g++; ac_word=$2
2310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 if test -n "$ac_ct_CXX"; then
2316 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_ac_ct_CXX="g++"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2336 if test -n "$ac_ct_CXX"; then
2337 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2338 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2340 { echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6; }
2344 if test "x$ac_ct_CXX" = x; then
2347 case $cross_compiling:$ac_tool_warned in
2349 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2350 whose name does not start with the host triplet. If you think this
2351 configuration is useful to you, please write to autoconf@gnu.org." >&5
2352 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2353 whose name does not start with the host triplet. If you think this
2354 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2355 ac_tool_warned=yes ;;
2360 CXX="$ac_cv_prog_CXX"
2363 if test -n "$ac_tool_prefix"; then
2364 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2365 set dummy ${ac_tool_prefix}ld; ac_word=$2
2366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368 if test "${ac_cv_prog_LD+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 if test -n "$LD"; then
2372 ac_cv_prog_LD="$LD" # Let the user override the test.
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 ac_cv_prog_LD="${ac_tool_prefix}ld"
2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 if test -n "$LD"; then
2393 { echo "$as_me:$LINENO: result: $LD" >&5
2394 echo "${ECHO_T}$LD" >&6; }
2396 { echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6; }
2402 if test -z "$ac_cv_prog_LD"; then
2404 # Extract the first word of "ld", so it can be a program name with args.
2405 set dummy ld; ac_word=$2
2406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2408 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2411 if test -n "$ac_ct_LD"; then
2412 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2421 ac_cv_prog_ac_ct_LD="ld"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2432 if test -n "$ac_ct_LD"; then
2433 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2434 echo "${ECHO_T}$ac_ct_LD" >&6; }
2436 { echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6; }
2440 if test "x$ac_ct_LD" = x; then
2443 case $cross_compiling:$ac_tool_warned in
2445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2446 whose name does not start with the host triplet. If you think this
2447 configuration is useful to you, please write to autoconf@gnu.org." >&5
2448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2449 whose name does not start with the host triplet. If you think this
2450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2451 ac_tool_warned=yes ;;
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_RANLIB+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 if test -n "$RANLIB"; then
2468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 RANLIB=$ac_cv_prog_RANLIB
2488 if test -n "$RANLIB"; then
2489 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2490 echo "${ECHO_T}$RANLIB" >&6; }
2492 { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2498 if test -z "$ac_cv_prog_RANLIB"; then
2499 ac_ct_RANLIB=$RANLIB
2500 # Extract the first word of "ranlib", so it can be a program name with args.
2501 set dummy ranlib; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$ac_ct_RANLIB"; then
2508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 ac_cv_prog_ac_ct_RANLIB="ranlib"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2528 if test -n "$ac_ct_RANLIB"; then
2529 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2530 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2532 { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2536 if test "x$ac_ct_RANLIB" = x; then
2539 case $cross_compiling:$ac_tool_warned in
2541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2542 whose name does not start with the host triplet. If you think this
2543 configuration is useful to you, please write to autoconf@gnu.org." >&5
2544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet. If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2547 ac_tool_warned=yes ;;
2549 RANLIB=$ac_ct_RANLIB
2552 RANLIB="$ac_cv_prog_RANLIB"
2555 if test -n "$ac_tool_prefix"; then
2556 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2557 set dummy ${ac_tool_prefix}ar; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_AR+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$AR"; then
2564 ac_cv_prog_AR="$AR" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_AR="${ac_tool_prefix}ar"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 if test -n "$AR"; then
2585 { echo "$as_me:$LINENO: result: $AR" >&5
2586 echo "${ECHO_T}$AR" >&6; }
2588 { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2594 if test -z "$ac_cv_prog_AR"; then
2596 # Extract the first word of "ar", so it can be a program name with args.
2597 set dummy ar; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 if test -n "$ac_ct_AR"; then
2604 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_ac_ct_AR="ar"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2624 if test -n "$ac_ct_AR"; then
2625 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2626 echo "${ECHO_T}$ac_ct_AR" >&6; }
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2632 if test "x$ac_ct_AR" = x; then
2635 case $cross_compiling:$ac_tool_warned in
2637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2638 whose name does not start with the host triplet. If you think this
2639 configuration is useful to you, please write to autoconf@gnu.org." >&5
2640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2641 whose name does not start with the host triplet. If you think this
2642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2643 ac_tool_warned=yes ;;
2653 # Checks for programs.
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659 if test -n "$ac_tool_prefix"; then
2660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2661 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_CC+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 if test -n "$CC"; then
2689 { echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6; }
2692 { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2698 if test -z "$ac_cv_prog_CC"; then
2700 # Extract the first word of "gcc", so it can be a program name with args.
2701 set dummy gcc; ac_word=$2
2702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 if test -n "$ac_ct_CC"; then
2708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_ac_ct_CC="gcc"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2728 if test -n "$ac_ct_CC"; then
2729 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2730 echo "${ECHO_T}$ac_ct_CC" >&6; }
2732 { echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6; }
2736 if test "x$ac_ct_CC" = x; then
2739 case $cross_compiling:$ac_tool_warned in
2741 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2742 whose name does not start with the host triplet. If you think this
2743 configuration is useful to you, please write to autoconf@gnu.org." >&5
2744 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2745 whose name does not start with the host triplet. If you think this
2746 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2747 ac_tool_warned=yes ;;
2755 if test -z "$CC"; then
2756 if test -n "$ac_tool_prefix"; then
2757 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2758 set dummy ${ac_tool_prefix}cc; ac_word=$2
2759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2761 if test "${ac_cv_prog_CC+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_CC="${ac_tool_prefix}cc"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 if test -n "$CC"; then
2786 { echo "$as_me:$LINENO: result: $CC" >&5
2787 echo "${ECHO_T}$CC" >&6; }
2789 { echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6; }
2796 if test -z "$CC"; then
2797 # Extract the first word of "cc", so it can be a program name with args.
2798 set dummy cc; ac_word=$2
2799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2801 if test "${ac_cv_prog_CC+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2816 ac_prog_rejected=yes
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test $ac_prog_rejected = yes; then
2828 # We found a bogon in the path, so make sure we never use it.
2829 set dummy $ac_cv_prog_CC
2831 if test $# != 0; then
2832 # We chose a different compiler from the bogus one.
2833 # However, it has the same basename, so the bogon will be chosen
2834 # first if we set CC to just the basename; use the full file name.
2836 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2842 if test -n "$CC"; then
2843 { echo "$as_me:$LINENO: result: $CC" >&5
2844 echo "${ECHO_T}$CC" >&6; }
2846 { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2852 if test -z "$CC"; then
2853 if test -n "$ac_tool_prefix"; then
2854 for ac_prog in cl.exe
2856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2860 if test "${ac_cv_prog_CC+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 if test -n "$CC"; then
2885 { echo "$as_me:$LINENO: result: $CC" >&5
2886 echo "${ECHO_T}$CC" >&6; }
2888 { echo "$as_me:$LINENO: result: no" >&5
2889 echo "${ECHO_T}no" >&6; }
2893 test -n "$CC" && break
2896 if test -z "$CC"; then
2898 for ac_prog in cl.exe
2900 # Extract the first word of "$ac_prog", so it can be a program name with args.
2901 set dummy $ac_prog; ac_word=$2
2902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 if test -n "$ac_ct_CC"; then
2908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_CC="$ac_prog"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2928 if test -n "$ac_ct_CC"; then
2929 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2930 echo "${ECHO_T}$ac_ct_CC" >&6; }
2932 { echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6; }
2937 test -n "$ac_ct_CC" && break
2940 if test "x$ac_ct_CC" = x; then
2943 case $cross_compiling:$ac_tool_warned in
2945 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2946 whose name does not start with the host triplet. If you think this
2947 configuration is useful to you, please write to autoconf@gnu.org." >&5
2948 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2949 whose name does not start with the host triplet. If you think this
2950 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2951 ac_tool_warned=yes ;;
2960 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2961 See \`config.log' for more details." >&5
2962 echo "$as_me: error: no acceptable C compiler found in \$PATH
2963 See \`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }
2966 # Provide some information about the compiler.
2967 echo "$as_me:$LINENO: checking for C compiler version" >&5
2968 ac_compiler=`set X $ac_compile; echo $2`
2969 { (ac_try="$ac_compiler --version >&5"
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_compiler --version >&5") 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2979 { (ac_try="$ac_compiler -v >&5"
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compiler -v >&5") 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }
2989 { (ac_try="$ac_compiler -V >&5"
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compiler -V >&5") 2>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }
3000 cat >conftest.$ac_ext <<_ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3015 ac_clean_files_save=$ac_clean_files
3016 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3017 # Try to create an executable without -o first, disregard a.out.
3018 # It will help us diagnose broken compilers, and finding out an intuition
3020 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3021 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3022 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3024 # List of possible output files, starting from the most likely.
3025 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3026 # only as a last resort. b.out is created by i960 compilers.
3027 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3029 # The IRIX 6 linker writes into existing files which may not be
3030 # executable, retaining their permissions. Remove them first so a
3031 # subsequent execution test works.
3033 for ac_file in $ac_files
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3037 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3042 if { (ac_try="$ac_link_default"
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_link_default") 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; then
3052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3053 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3054 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3055 # so that the user can short-circuit this test for compilers unknown to
3057 for ac_file in $ac_files
3059 test -f "$ac_file" || continue
3061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3064 # We found the default executable, but exeext='' is most
3068 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3072 # We set ac_cv_exeext here because the later test for it is not
3073 # safe: cross compilers may not add the suffix if given an `-o'
3074 # argument, so we may need to know it at that point already.
3075 # Even if this section looks crufty: it has the advantage of
3082 test "$ac_cv_exeext" = no && ac_cv_exeext=
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3088 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3089 See \`config.log' for more details." >&5
3090 echo "$as_me: error: C compiler cannot create executables
3091 See \`config.log' for more details." >&2;}
3092 { (exit 77); exit 77; }; }
3095 ac_exeext=$ac_cv_exeext
3096 { echo "$as_me:$LINENO: result: $ac_file" >&5
3097 echo "${ECHO_T}$ac_file" >&6; }
3099 # Check that the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3102 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3103 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3104 # If not cross compiling, check that we can run a simple program.
3105 if test "$cross_compiling" != yes; then
3106 if { ac_try='./$ac_file'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3118 if test "$cross_compiling" = maybe; then
3121 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3122 If you meant to cross compile, use \`--host'.
3123 See \`config.log' for more details." >&5
3124 echo "$as_me: error: cannot run C compiled programs.
3125 If you meant to cross compile, use \`--host'.
3126 See \`config.log' for more details." >&2;}
3127 { (exit 1); exit 1; }; }
3131 { echo "$as_me:$LINENO: result: yes" >&5
3132 echo "${ECHO_T}yes" >&6; }
3134 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3135 ac_clean_files=$ac_clean_files_save
3136 # Check that the compiler produces executables we can run. If not, either
3137 # the compiler is broken, or we cross compile.
3138 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3139 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3140 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3141 echo "${ECHO_T}$cross_compiling" >&6; }
3143 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3144 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3145 if { (ac_try="$ac_link"
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_link") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; then
3155 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3156 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3157 # work properly (i.e., refer to `conftest.exe'), while it won't with
3159 for ac_file in conftest.exe conftest conftest.*; do
3160 test -f "$ac_file" || continue
3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3163 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3170 See \`config.log' for more details." >&5
3171 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3172 See \`config.log' for more details." >&2;}
3173 { (exit 1); exit 1; }; }
3176 rm -f conftest$ac_cv_exeext
3177 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3178 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3180 rm -f conftest.$ac_ext
3181 EXEEXT=$ac_cv_exeext
3183 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3184 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3185 if test "${ac_cv_objext+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3203 rm -f conftest.o conftest.obj
3204 if { (ac_try="$ac_compile"
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compile") 2>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; then
3214 for ac_file in conftest.o conftest.obj conftest.*; do
3215 test -f "$ac_file" || continue;
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3227 See \`config.log' for more details." >&5
3228 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3229 See \`config.log' for more details." >&2;}
3230 { (exit 1); exit 1; }; }
3233 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3235 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3236 echo "${ECHO_T}$ac_cv_objext" >&6; }
3237 OBJEXT=$ac_cv_objext
3239 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3240 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3241 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 cat >conftest.$ac_ext <<_ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3262 rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compile") 2>conftest.er1
3271 grep -v '^ *+' conftest.er1 >conftest.err
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3277 { (case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_try") 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_try") 2>&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3308 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3309 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3310 GCC=`test $ac_compiler_gnu = yes && echo yes`
3311 ac_test_CFLAGS=${CFLAGS+set}
3312 ac_save_CFLAGS=$CFLAGS
3313 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3314 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3315 if test "${ac_cv_prog_cc_g+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 ac_save_c_werror_flag=$ac_c_werror_flag
3319 ac_c_werror_flag=yes
3322 cat >conftest.$ac_ext <<_ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3337 rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_compile") 2>conftest.er1
3346 grep -v '^ *+' conftest.er1 >conftest.err
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3352 { (case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_try") 2>&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; } &&
3361 { ac_try='test -s conftest.$ac_objext'
3362 { (case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_try") 2>&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3392 rm -f conftest.$ac_objext
3393 if { (ac_try="$ac_compile"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_compile") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3407 { (case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412 (eval "$ac_try") 2>&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; } &&
3416 { ac_try='test -s conftest.$ac_objext'
3417 { (case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_try") 2>&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 ac_c_werror_flag=$ac_save_c_werror_flag
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3448 rm -f conftest.$ac_objext
3449 if { (ac_try="$ac_compile"
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_compile") 2>conftest.er1
3457 grep -v '^ *+' conftest.er1 >conftest.err
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3463 { (case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468 (eval "$ac_try") 2>&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; } &&
3472 { ac_try='test -s conftest.$ac_objext'
3473 { (case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_try") 2>&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3499 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3500 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3501 if test "$ac_test_CFLAGS" = set; then
3502 CFLAGS=$ac_save_CFLAGS
3503 elif test $ac_cv_prog_cc_g = yes; then
3504 if test "$GCC" = yes; then
3510 if test "$GCC" = yes; then
3516 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3517 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3518 if test "${ac_cv_prog_cc_c89+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 ac_cv_prog_cc_c89=no
3523 cat >conftest.$ac_ext <<_ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3531 #include <sys/types.h>
3532 #include <sys/stat.h>
3533 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3534 struct buf { int x; };
3535 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3536 static char *e (p, i)
3542 static char *f (char * (*g) (char **, int), char **p, ...)
3547 s = g (p, va_arg (v,int));
3552 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3553 function prototypes and stuff, but not '\xHH' hex character constants.
3554 These don't provoke an error unfortunately, instead are silently treated
3555 as 'x'. The following induces an error, until -std is added to get
3556 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3557 array size at least. It's necessary to write '\x00'==0 to get something
3558 that's true only with -std. */
3559 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3562 inside strings and character constants. */
3564 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566 int test (int i, double x);
3567 struct s1 {int (*f) (int a);};
3568 struct s2 {int (*f) (double a);};
3569 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3575 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3580 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3581 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3583 CC="$ac_save_CC $ac_arg"
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3593 grep -v '^ *+' conftest.er1 >conftest.err
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3599 { (case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604 (eval "$ac_try") 2>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; } &&
3608 { ac_try='test -s conftest.$ac_objext'
3609 { (case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_try") 2>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 ac_cv_prog_cc_c89=$ac_arg
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3626 rm -f core conftest.err conftest.$ac_objext
3627 test "x$ac_cv_prog_cc_c89" != "xno" && break
3629 rm -f conftest.$ac_ext
3634 case "x$ac_cv_prog_cc_c89" in
3636 { echo "$as_me:$LINENO: result: none needed" >&5
3637 echo "${ECHO_T}none needed" >&6; } ;;
3639 { echo "$as_me:$LINENO: result: unsupported" >&5
3640 echo "${ECHO_T}unsupported" >&6; } ;;
3642 CC="$CC $ac_cv_prog_cc_c89"
3643 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3644 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655 ac_cpp='$CXXCPP $CPPFLAGS'
3656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3659 if test -z "$CXX"; then
3660 if test -n "$CCC"; then
3663 if test -n "$ac_tool_prefix"; then
3664 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3670 if test "${ac_cv_prog_CXX+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 if test -n "$CXX"; then
3674 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 if test -n "$CXX"; then
3695 { echo "$as_me:$LINENO: result: $CXX" >&5
3696 echo "${ECHO_T}$CXX" >&6; }
3698 { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3703 test -n "$CXX" && break
3706 if test -z "$CXX"; then
3708 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3710 # Extract the first word of "$ac_prog", so it can be a program name with args.
3711 set dummy $ac_prog; ac_word=$2
3712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3714 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 if test -n "$ac_ct_CXX"; then
3718 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 ac_cv_prog_ac_ct_CXX="$ac_prog"
3728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3738 if test -n "$ac_ct_CXX"; then
3739 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3740 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3742 { echo "$as_me:$LINENO: result: no" >&5
3743 echo "${ECHO_T}no" >&6; }
3747 test -n "$ac_ct_CXX" && break
3750 if test "x$ac_ct_CXX" = x; then
3753 case $cross_compiling:$ac_tool_warned in
3755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3756 whose name does not start with the host triplet. If you think this
3757 configuration is useful to you, please write to autoconf@gnu.org." >&5
3758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3759 whose name does not start with the host triplet. If you think this
3760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3761 ac_tool_warned=yes ;;
3769 # Provide some information about the compiler.
3770 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3771 ac_compiler=`set X $ac_compile; echo $2`
3772 { (ac_try="$ac_compiler --version >&5"
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778 (eval "$ac_compiler --version >&5") 2>&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }
3782 { (ac_try="$ac_compiler -v >&5"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_compiler -v >&5") 2>&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }
3792 { (ac_try="$ac_compiler -V >&5"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compiler -V >&5") 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }
3803 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3804 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3805 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 cat >conftest.$ac_ext <<_ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3826 rm -f conftest.$ac_objext
3827 if { (ac_try="$ac_compile"
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3835 grep -v '^ *+' conftest.er1 >conftest.err
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3841 { (case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_try") 2>&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try='test -s conftest.$ac_objext'
3851 { (case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_try") 2>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3872 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3873 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3874 GXX=`test $ac_compiler_gnu = yes && echo yes`
3875 ac_test_CXXFLAGS=${CXXFLAGS+set}
3876 ac_save_CXXFLAGS=$CXXFLAGS
3877 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3878 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3879 if test "${ac_cv_prog_cxx_g+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3883 ac_cxx_werror_flag=yes
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908 (eval "$ac_compile") 2>conftest.er1
3910 grep -v '^ *+' conftest.er1 >conftest.err
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } &&
3915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3916 { (case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_try") 2>&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; } &&
3925 { ac_try='test -s conftest.$ac_objext'
3926 { (case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_try") 2>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 ac_cv_prog_cxx_g=yes
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3941 cat >conftest.$ac_ext <<_ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3956 rm -f conftest.$ac_objext
3957 if { (ac_try="$ac_compile"
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_compile") 2>conftest.er1
3965 grep -v '^ *+' conftest.er1 >conftest.err
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3971 { (case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_try") 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_try") 2>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3995 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3997 cat >conftest.$ac_ext <<_ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4027 { (case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_try") 2>&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 ac_cv_prog_cxx_g=yes
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4063 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4064 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4065 if test "$ac_test_CXXFLAGS" = set; then
4066 CXXFLAGS=$ac_save_CXXFLAGS
4067 elif test $ac_cv_prog_cxx_g = yes; then
4068 if test "$GXX" = yes; then
4074 if test "$GXX" = yes; then
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4092 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4093 # On Suns, sometimes $CPP names a directory.
4094 if test -n "$CPP" && test -d "$CPP"; then
4097 if test -z "$CPP"; then
4098 if test "${ac_cv_prog_CPP+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 # Double quotes because CPP needs to be expanded
4102 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4105 for ac_c_preproc_warn_flag in '' yes
4107 # Use a header file that comes with gcc, so configuring glibc
4108 # with a fresh cross-compiler works.
4109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4110 # <limits.h> exists even on freestanding compilers.
4111 # On the NeXT, cc -E runs the code through the compiler's parser,
4112 # not just through cpp. "Syntax error" is here to catch this case.
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4120 # include <limits.h>
4122 # include <assert.h>
4126 if { (ac_try="$ac_cpp conftest.$ac_ext"
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4134 grep -v '^ *+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } >/dev/null; then
4139 if test -s conftest.err; then
4140 ac_cpp_err=$ac_c_preproc_warn_flag
4141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4148 if test -z "$ac_cpp_err"; then
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 # Broken: fails on valid input.
4158 rm -f conftest.err conftest.$ac_ext
4160 # OK, works on sane cases. Now check whether nonexistent headers
4161 # can be detected and how.
4162 cat >conftest.$ac_ext <<_ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 #include <ac_nonexistent.h>
4170 if { (ac_try="$ac_cpp conftest.$ac_ext"
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } >/dev/null; then
4183 if test -s conftest.err; then
4184 ac_cpp_err=$ac_c_preproc_warn_flag
4185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4192 if test -z "$ac_cpp_err"; then
4193 # Broken: success on invalid input.
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 # Passes both tests.
4204 rm -f conftest.err conftest.$ac_ext
4207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4208 rm -f conftest.err conftest.$ac_ext
4209 if $ac_preproc_ok; then
4221 { echo "$as_me:$LINENO: result: $CPP" >&5
4222 echo "${ECHO_T}$CPP" >&6; }
4224 for ac_c_preproc_warn_flag in '' yes
4226 # Use a header file that comes with gcc, so configuring glibc
4227 # with a fresh cross-compiler works.
4228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 # <limits.h> exists even on freestanding compilers.
4230 # On the NeXT, cc -E runs the code through the compiler's parser,
4231 # not just through cpp. "Syntax error" is here to catch this case.
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4239 # include <limits.h>
4241 # include <assert.h>
4245 if { (ac_try="$ac_cpp conftest.$ac_ext"
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4253 grep -v '^ *+' conftest.er1 >conftest.err
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } >/dev/null; then
4258 if test -s conftest.err; then
4259 ac_cpp_err=$ac_c_preproc_warn_flag
4260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4267 if test -z "$ac_cpp_err"; then
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 # Broken: fails on valid input.
4277 rm -f conftest.err conftest.$ac_ext
4279 # OK, works on sane cases. Now check whether nonexistent headers
4280 # can be detected and how.
4281 cat >conftest.$ac_ext <<_ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 #include <ac_nonexistent.h>
4289 if { (ac_try="$ac_cpp conftest.$ac_ext"
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4297 grep -v '^ *+' conftest.er1 >conftest.err
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } >/dev/null; then
4302 if test -s conftest.err; then
4303 ac_cpp_err=$ac_c_preproc_warn_flag
4304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4311 if test -z "$ac_cpp_err"; then
4312 # Broken: success on invalid input.
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4318 # Passes both tests.
4323 rm -f conftest.err conftest.$ac_ext
4326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4327 rm -f conftest.err conftest.$ac_ext
4328 if $ac_preproc_ok; then
4331 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4332 See \`config.log' for more details." >&5
4333 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4334 See \`config.log' for more details." >&2;}
4335 { (exit 1); exit 1; }; }
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345 ac_cpp='$CXXCPP $CPPFLAGS'
4346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4349 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4350 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4351 if test -z "$CXXCPP"; then
4352 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 # Double quotes because CXXCPP needs to be expanded
4356 for CXXCPP in "$CXX -E" "/lib/cpp"
4359 for ac_cxx_preproc_warn_flag in '' yes
4361 # Use a header file that comes with gcc, so configuring glibc
4362 # with a fresh cross-compiler works.
4363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4364 # <limits.h> exists even on freestanding compilers.
4365 # On the NeXT, cc -E runs the code through the compiler's parser,
4366 # not just through cpp. "Syntax error" is here to catch this case.
4367 cat >conftest.$ac_ext <<_ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4374 # include <limits.h>
4376 # include <assert.h>
4380 if { (ac_try="$ac_cpp conftest.$ac_ext"
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4388 grep -v '^ *+' conftest.er1 >conftest.err
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } >/dev/null; then
4393 if test -s conftest.err; then
4394 ac_cpp_err=$ac_cxx_preproc_warn_flag
4395 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4402 if test -z "$ac_cpp_err"; then
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 # Broken: fails on valid input.
4412 rm -f conftest.err conftest.$ac_ext
4414 # OK, works on sane cases. Now check whether nonexistent headers
4415 # can be detected and how.
4416 cat >conftest.$ac_ext <<_ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422 #include <ac_nonexistent.h>
4424 if { (ac_try="$ac_cpp conftest.$ac_ext"
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4432 grep -v '^ *+' conftest.er1 >conftest.err
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } >/dev/null; then
4437 if test -s conftest.err; then
4438 ac_cpp_err=$ac_cxx_preproc_warn_flag
4439 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4446 if test -z "$ac_cpp_err"; then
4447 # Broken: success on invalid input.
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 # Passes both tests.
4458 rm -f conftest.err conftest.$ac_ext
4461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4462 rm -f conftest.err conftest.$ac_ext
4463 if $ac_preproc_ok; then
4468 ac_cv_prog_CXXCPP=$CXXCPP
4471 CXXCPP=$ac_cv_prog_CXXCPP
4473 ac_cv_prog_CXXCPP=$CXXCPP
4475 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4476 echo "${ECHO_T}$CXXCPP" >&6; }
4478 for ac_cxx_preproc_warn_flag in '' yes
4480 # Use a header file that comes with gcc, so configuring glibc
4481 # with a fresh cross-compiler works.
4482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4483 # <limits.h> exists even on freestanding compilers.
4484 # On the NeXT, cc -E runs the code through the compiler's parser,
4485 # not just through cpp. "Syntax error" is here to catch this case.
4486 cat >conftest.$ac_ext <<_ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4493 # include <limits.h>
4495 # include <assert.h>
4499 if { (ac_try="$ac_cpp conftest.$ac_ext"
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4507 grep -v '^ *+' conftest.er1 >conftest.err
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } >/dev/null; then
4512 if test -s conftest.err; then
4513 ac_cpp_err=$ac_cxx_preproc_warn_flag
4514 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4521 if test -z "$ac_cpp_err"; then
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4527 # Broken: fails on valid input.
4531 rm -f conftest.err conftest.$ac_ext
4533 # OK, works on sane cases. Now check whether nonexistent headers
4534 # can be detected and how.
4535 cat >conftest.$ac_ext <<_ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 #include <ac_nonexistent.h>
4543 if { (ac_try="$ac_cpp conftest.$ac_ext"
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4551 grep -v '^ *+' conftest.er1 >conftest.err
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } >/dev/null; then
4556 if test -s conftest.err; then
4557 ac_cpp_err=$ac_cxx_preproc_warn_flag
4558 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4565 if test -z "$ac_cpp_err"; then
4566 # Broken: success on invalid input.
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4572 # Passes both tests.
4577 rm -f conftest.err conftest.$ac_ext
4580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4581 rm -f conftest.err conftest.$ac_ext
4582 if $ac_preproc_ok; then
4585 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4586 See \`config.log' for more details." >&5
4587 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4588 See \`config.log' for more details." >&2;}
4589 { (exit 1); exit 1; }; }
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598 for ac_prog in gawk mawk nawk awk
4600 # Extract the first word of "$ac_prog", so it can be a program name with args.
4601 set dummy $ac_prog; ac_word=$2
4602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4604 if test "${ac_cv_prog_AWK+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 if test -n "$AWK"; then
4608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_AWK="$ac_prog"
4618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 if test -n "$AWK"; then
4629 { echo "$as_me:$LINENO: result: $AWK" >&5
4630 echo "${ECHO_T}$AWK" >&6; }
4632 { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4637 test -n "$AWK" && break
4640 # Find a good install program. We prefer a C program (faster),
4641 # so one script is as good as another. But avoid the broken or
4642 # incompatible versions:
4643 # SysV /etc/install, /usr/sbin/install
4644 # SunOS /usr/etc/install
4645 # IRIX /sbin/install
4647 # AmigaOS /C/install, which installs bootblocks on floppy discs
4648 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4651 # OS/2's system install, which has a completely different semantic
4652 # ./install, which can be erroneously created by make from ./install.sh.
4653 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4654 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4655 if test -z "$INSTALL"; then
4656 if test "${ac_cv_path_install+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 test -z "$as_dir" && as_dir=.
4664 # Account for people who put trailing slashes in PATH elements.
4666 ./ | .// | /cC/* | \
4667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4668 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4671 # OSF1 and SCO ODT 3.0 have their own names for install.
4672 # Don't use installbsd from OSF since it installs stuff as root
4674 for ac_prog in ginstall scoinst install; do
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4677 if test $ac_prog = install &&
4678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4679 # AIX install. It has an incompatible calling convention.
4681 elif test $ac_prog = install &&
4682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4683 # program-specific install script used by HP pwplus--don't use.
4686 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
<