2 # From configure.ac Revision: 42982 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60a.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
69 # Find who we are. Look in the path if we contain no directory separator.
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
160 if test $as_have_required = yes && (eval ":
170 as_func_ret_success () {
173 as_func_ret_failure () {
178 if as_func_success; then
182 echo as_func_success failed.
185 if as_func_failure; then
187 echo as_func_failure succeeded.
190 if as_func_ret_success; then
194 echo as_func_ret_success failed.
197 if as_func_ret_failure; then
199 echo as_func_ret_failure succeeded.
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 echo positional parameters were not saved.
209 test \$exitcode = 0) || { (exit 1); exit 1; }
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
256 CONFIG_SHELL=$as_shell
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
283 as_func_ret_success () {
286 as_func_ret_failure () {
291 if as_func_success; then
295 echo as_func_success failed.
298 if as_func_failure; then
300 echo as_func_failure succeeded.
303 if as_func_ret_success; then
307 echo as_func_ret_success failed.
310 if as_func_ret_failure; then
312 echo as_func_ret_failure succeeded.
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 echo positional parameters were not saved.
322 test $exitcode = 0) || { (exit 1); exit 1; }
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
363 (eval "as_func_return () {
372 as_func_ret_success () {
375 as_func_ret_failure () {
380 if as_func_success; then
384 echo as_func_success failed.
387 if as_func_failure; then
389 echo as_func_failure succeeded.
392 if as_func_ret_success; then
396 echo as_func_ret_success failed.
399 if as_func_ret_failure; then
401 echo as_func_ret_failure succeeded.
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 echo positional parameters were not saved.
411 test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 ECHO_C= ECHO_N= ECHO_T=
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
514 test -d ./-p && rmdir ./-p
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
525 if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 exec 7<&0 </dev/null 6>&1
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix=/usr/local
552 ac_config_libobj_dir=.
558 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Identity of this package.
567 ac_unique_file="asterisk"
568 ac_unique_file="main/asterisk.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
614 program_transform_name
820 ac_precious_vars='build_alias
834 # Initialize some variables set by options.
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
846 program_transform_name=s,x,x,
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE}'
871 infodir='${datarootdir}/info'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939 { (exit 1); exit 1; }; }
940 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941 eval enable_$ac_feature=no ;;
943 -docdir | --docdir | --docdi | --doc | --do)
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 -enable-* | --enable-*)
954 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958 { (exit 1); exit 1; }; }
959 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960 eval enable_$ac_feature=\$ac_optarg ;;
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
975 -help | --help | --hel | --he | -h)
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 htmldir=$ac_optarg ;;
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1005 -libdir | --libdir | --libdi | --libd)
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1096 -psdir | --psdir | --psdi | --psd | --ps)
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 sbindir=$ac_optarg ;;
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 sharedstatedir=$ac_optarg ;;
1122 -site | --site | --sit)
1124 -site=* | --site=* | --sit=*)
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1151 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package| sed 's/-/_/g'`
1157 eval with_$ac_package=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163 { echo "$as_me: error: invalid package name: $ac_package" >&2
1164 { (exit 1); exit 1; }; }
1165 ac_package=`echo $ac_package | sed 's/-/_/g'`
1166 eval with_$ac_package=no ;;
1169 # Obsolete; use --with-x.
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188 { (exit 1); exit 1; }; }
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196 { (exit 1); exit 1; }; }
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1201 # FIXME: should be removed in autoconf 3.0.
1202 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 { echo "$as_me: error: missing argument to $ac_option" >&2
1214 { (exit 1); exit 1; }; }
1217 # Be sure to have absolute directory names.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229 { (exit 1); exit 1; }; }
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 { echo "$as_me: error: Working directory cannot be determined" >&2
1260 { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 { echo "$as_me: error: pwd does not report name of working directory" >&2
1263 { (exit 1); exit 1; }; }
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$0" : 'X\(//\)[^/]' \| \
1273 X"$0" : 'X\(//\)$' \| \
1274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303 { (exit 1); exit 1; }; }
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308 { (exit 1); exit 1; }; }
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1334 \`configure' configures this package to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 if test -n "$ac_init_help"; then
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-dev-mode Turn on developer mode
1405 --disable-largefile omit support for large files
1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1410 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1411 --with-curses=PATH use curses files in PATH
1412 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1414 --with-gsm=PATH use GSM files in PATH , or 'internal'
1415 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1416 --with-imap=PATH use UW IMAP Toolkit files in PATH
1417 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1418 --with-kde=PATH use KDE files in PATH
1419 --with-misdn=PATH use mISDN User Library files in PATH
1420 --with-nbs=PATH use Network Broadcast Sound files in PATH
1421 --with-ncurses=PATH use ncurses files in PATH
1422 --with-netsnmp=PATH use Net-SNMP files in PATH
1423 --with-newt=PATH use newt files in PATH
1424 --with-odbc=PATH use unixODBC files in PATH
1425 --with-ogg=PATH use OGG files in PATH
1426 --with-osptk=PATH use OSP Toolkit files in PATH
1427 --with-oss=PATH use Open Sound System files in PATH
1428 --with-popt=PATH use popt files in PATH
1429 --with-postgres=PATH use PostgreSQL files in PATH
1430 --with-pri=PATH use ISDN PRI files in PATH
1431 --with-pwlib=PATH use PWlib files in PATH
1432 --with-qt=PATH use Qt files in PATH
1433 --with-radius=PATH use Radius Client files in PATH
1434 --with-speex=PATH use Speex files in PATH
1435 --with-sqlite=PATH use SQLite files in PATH
1436 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1437 --with-ssl=PATH use OpenSSL files in PATH
1438 --with-tds=PATH use FreeTDS files in PATH
1439 --with-termcap=PATH use Termcap files in PATH
1440 --with-tinfo=PATH use Term Info files in PATH
1441 --with-tonezone=PATH use tonezone files in PATH
1442 --with-vorbis=PATH use Vorbis files in PATH
1443 --with-vpb=PATH use Voicetronix API files in PATH
1444 --with-z=PATH use zlib files in PATH
1445 --with-zaptel=PATH use Zaptel files in PATH
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1454 CXX C++ compiler command
1455 CXXFLAGS C++ compiler flags
1457 CXXCPP C++ preprocessor
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" || continue
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1489 .) # We are building in place.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1513 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1523 generated by GNU Autoconf 2.60a
1525 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1526 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1534 cat >config.log <<_ACEOF
1535 This file contains any messages produced by compilers while
1536 running configure, to aid debugging if configure makes a mistake.
1538 It was created by $as_me, which was
1539 generated by GNU Autoconf 2.60a. Invocation command line was
1551 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1552 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1553 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1554 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1555 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1557 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1558 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1560 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1561 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1562 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1563 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1564 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1565 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1566 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 test -z "$as_dir" && as_dir=.
1575 echo "PATH: $as_dir"
1591 # Keep a trace of the command line.
1592 # Strip out --no-create and --no-recursion so they do not pile up.
1593 # Strip out --silent because we don't want to record it for future runs.
1594 # Also quote any args containing shell meta-characters.
1595 # Make two passes to allow for proper duplicate-argument suppression.
1599 ac_must_keep_next=false
1605 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1607 | -silent | --silent | --silen | --sile | --sil)
1610 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1613 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1615 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1616 if test $ac_must_keep_next = true; then
1617 ac_must_keep_next=false # Got value, back to normal.
1620 *=* | --config-cache | -C | -disable-* | --disable-* \
1621 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1622 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1623 | -with-* | --with-* | -without-* | --without-* | --x)
1624 case "$ac_configure_args0 " in
1625 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1628 -* ) ac_must_keep_next=true ;;
1631 ac_configure_args="$ac_configure_args '$ac_arg'"
1636 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1637 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1639 # When interrupted or exit'd, cleanup temporary files, and complete
1640 # config.log. We remove comments because anyway the quotes in there
1641 # would cause problems or look ugly.
1642 # WARNING: Use '\'' to represent an apostrophe within the trap.
1643 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1644 trap 'exit_status=$?
1645 # Save into config.log some information that might help in debugging.
1650 ## ---------------- ##
1651 ## Cache variables. ##
1652 ## ---------------- ##
1655 # The following way of writing the cache mishandles newlines in values,
1657 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1658 eval ac_val=\$$ac_var
1662 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1663 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1666 _ | IFS | as_nl) ;; #(
1667 *) $as_unset $ac_var ;;
1672 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1673 *${as_nl}ac_space=\ *)
1675 "s/'\''/'\''\\\\'\'''\''/g;
1676 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1687 ## ----------------- ##
1688 ## Output variables. ##
1689 ## ----------------- ##
1692 for ac_var in $ac_subst_vars
1694 eval ac_val=\$$ac_var
1696 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1698 echo "$ac_var='\''$ac_val'\''"
1702 if test -n "$ac_subst_files"; then
1704 ## ------------------- ##
1705 ## File substitutions. ##
1706 ## ------------------- ##
1709 for ac_var in $ac_subst_files
1711 eval ac_val=\$$ac_var
1713 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1715 echo "$ac_var='\''$ac_val'\''"
1720 if test -s confdefs.h; then
1730 test "$ac_signal" != 0 &&
1731 echo "$as_me: caught signal $ac_signal"
1732 echo "$as_me: exit $exit_status"
1734 rm -f core *.core core.conftest.* &&
1735 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1738 for ac_signal in 1 2 13 15; do
1739 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1743 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1744 rm -f -r conftest* confdefs.h
1746 # Predefined preprocessor variables.
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_NAME "$PACKAGE_NAME"
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_STRING "$PACKAGE_STRING"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1773 # Let the site file select an alternate cache file if it wants to.
1774 # Prefer explicitly selected file to automatically selected ones.
1775 if test -n "$CONFIG_SITE"; then
1776 set x "$CONFIG_SITE"
1777 elif test "x$prefix" != xNONE; then
1778 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1780 set x "$ac_default_prefix/share/config.site" \
1781 "$ac_default_prefix/etc/config.site"
1786 if test -r "$ac_site_file"; then
1787 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1788 echo "$as_me: loading site script $ac_site_file" >&6;}
1789 sed 's/^/| /' "$ac_site_file" >&5
1794 if test -r "$cache_file"; then
1795 # Some versions of bash will fail to source /dev/null (special
1796 # files actually), so we avoid doing that.
1797 if test -f "$cache_file"; then
1798 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1799 echo "$as_me: loading cache $cache_file" >&6;}
1801 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1802 *) . "./$cache_file";;
1806 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1807 echo "$as_me: creating cache $cache_file" >&6;}
1811 # Check that the precious variables saved in the cache have kept the same
1813 ac_cache_corrupted=false
1814 for ac_var in $ac_precious_vars; do
1815 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1816 eval ac_new_set=\$ac_env_${ac_var}_set
1817 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1818 eval ac_new_val=\$ac_env_${ac_var}_value
1819 case $ac_old_set,$ac_new_set in
1821 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1822 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1823 ac_cache_corrupted=: ;;
1825 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1826 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1827 ac_cache_corrupted=: ;;
1830 if test "x$ac_old_val" != "x$ac_new_val"; then
1831 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1832 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1833 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1834 echo "$as_me: former value: $ac_old_val" >&2;}
1835 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1836 echo "$as_me: current value: $ac_new_val" >&2;}
1837 ac_cache_corrupted=:
1840 # Pass precious variables to config.status.
1841 if test "$ac_new_set" = set; then
1843 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1844 *) ac_arg=$ac_var=$ac_new_val ;;
1846 case " $ac_configure_args " in
1847 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1848 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1852 if $ac_cache_corrupted; then
1853 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1854 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1855 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1856 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1857 { (exit 1); exit 1; }; }
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884 # cross-compile macros
1886 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1887 if test -f "$ac_dir/install-sh"; then
1889 ac_install_sh="$ac_aux_dir/install-sh -c"
1891 elif test -f "$ac_dir/install.sh"; then
1893 ac_install_sh="$ac_aux_dir/install.sh -c"
1895 elif test -f "$ac_dir/shtool"; then
1897 ac_install_sh="$ac_aux_dir/shtool install -c"
1901 if test -z "$ac_aux_dir"; then
1902 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1903 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1904 { (exit 1); exit 1; }; }
1907 # These three variables are undocumented and unsupported,
1908 # and are intended to be withdrawn in a future Autoconf release.
1909 # They can cause serious problems if a builder's source tree is in a directory
1910 # whose full name contains unusual characters.
1911 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1912 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1913 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1916 # Make sure we can run config.sub.
1917 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1918 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1919 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1920 { (exit 1); exit 1; }; }
1922 { echo "$as_me:$LINENO: checking build system type" >&5
1923 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1924 if test "${ac_cv_build+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 ac_build_alias=$build_alias
1928 test "x$ac_build_alias" = x &&
1929 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1930 test "x$ac_build_alias" = x &&
1931 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1932 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1933 { (exit 1); exit 1; }; }
1934 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1935 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1936 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1937 { (exit 1); exit 1; }; }
1940 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1941 echo "${ECHO_T}$ac_cv_build" >&6; }
1942 case $ac_cv_build in
1944 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1945 echo "$as_me: error: invalid value of canonical build" >&2;}
1946 { (exit 1); exit 1; }; };;
1949 ac_save_IFS=$IFS; IFS='-'
1955 # Remember, the first character of IFS is used to create $*,
1956 # except with old shells:
1959 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1962 { echo "$as_me:$LINENO: checking host system type" >&5
1963 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1964 if test "${ac_cv_host+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 if test "x$host_alias" = x; then
1968 ac_cv_host=$ac_cv_build
1970 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1971 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1972 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1973 { (exit 1); exit 1; }; }
1977 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1978 echo "${ECHO_T}$ac_cv_host" >&6; }
1981 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1982 echo "$as_me: error: invalid value of canonical host" >&2;}
1983 { (exit 1); exit 1; }; };;
1986 ac_save_IFS=$IFS; IFS='-'
1992 # Remember, the first character of IFS is used to create $*,
1993 # except with old shells:
1996 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2000 # check existence of the package
2003 # specify output header file
2004 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2010 case "${host_os}" in
2012 ac_default_prefix=/usr/local
2015 ac_default_prefix=/usr
2016 if test ${sysconfdir} = '${prefix}/etc'; then
2019 if test ${mandir} = '${prefix}/man'; then
2020 mandir=/usr/share/man
2025 if test ${localstatedir} = '${prefix}/var'; then
2029 BUILD_PLATFORM=${build}
2030 BUILD_CPU=${build_cpu}
2031 BUILD_VENDOR=${build_vendor}
2032 BUILD_OS=${build_os}
2039 HOST_PLATFORM=${host}
2040 HOST_CPU=${host_cpu}
2041 HOST_VENDOR=${host_vendor}
2050 if test -n "$ac_tool_prefix"; then
2051 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2052 set dummy ${ac_tool_prefix}uname; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_path_UNAME+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2070 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 UNAME=$ac_cv_path_UNAME
2082 if test -n "$UNAME"; then
2083 { echo "$as_me:$LINENO: result: $UNAME" >&5
2084 echo "${ECHO_T}$UNAME" >&6; }
2086 { echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6; }
2092 if test -z "$ac_cv_path_UNAME"; then
2094 # Extract the first word of "uname", so it can be a program name with args.
2095 set dummy uname; ac_word=$2
2096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2098 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 case $ac_pt_UNAME in
2103 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2113 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2125 if test -n "$ac_pt_UNAME"; then
2126 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2127 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2129 { echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6; }
2133 if test "x$ac_pt_UNAME" = x; then
2136 case $cross_compiling:$ac_tool_warned in
2138 { echo "$as_me:$LINENO: 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." >&5
2141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2142 whose name does not start with the host triplet. If you think this
2143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2144 ac_tool_warned=yes ;;
2149 UNAME="$ac_cv_path_UNAME"
2152 if test ! x"${UNAME}" = xNo; then
2153 PBX_OSREV=$(${UNAME} -r)
2157 # This needs to be before any macros that use the C compiler
2159 cat >>confdefs.h <<\_ACEOF
2160 #define _GNU_SOURCE 1
2171 # cross-compile checks
2172 if test "${cross_compiling}" = "yes";
2174 if test -n "$ac_tool_prefix"; then
2175 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2176 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2192 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 if test -n "$CC"; then
2204 { echo "$as_me:$LINENO: result: $CC" >&5
2205 echo "${ECHO_T}$CC" >&6; }
2207 { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2213 if test -z "$ac_cv_prog_CC"; then
2215 # Extract the first word of "gcc", so it can be a program name with args.
2216 set dummy gcc; ac_word=$2
2217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 if test -n "$ac_ct_CC"; then
2223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2232 ac_cv_prog_ac_ct_CC="gcc"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2243 if test -n "$ac_ct_CC"; then
2244 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2245 echo "${ECHO_T}$ac_ct_CC" >&6; }
2247 { echo "$as_me:$LINENO: result: no" >&5
2248 echo "${ECHO_T}no" >&6; }
2251 if test "x$ac_ct_CC" = x; then
2254 case $cross_compiling:$ac_tool_warned in
2256 { echo "$as_me:$LINENO: 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." >&5
2259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2260 whose name does not start with the host triplet. If you think this
2261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2262 ac_tool_warned=yes ;;
2270 if test -n "$ac_tool_prefix"; then
2271 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2272 set dummy ${ac_tool_prefix}g++; ac_word=$2
2273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2275 if test "${ac_cv_prog_CXX+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 if test -n "$CXX"; then
2279 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2288 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 if test -n "$CXX"; then
2300 { echo "$as_me:$LINENO: result: $CXX" >&5
2301 echo "${ECHO_T}$CXX" >&6; }
2303 { echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6; }
2309 if test -z "$ac_cv_prog_CXX"; then
2311 # Extract the first word of "g++", so it can be a program name with args.
2312 set dummy g++; ac_word=$2
2313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2315 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if test -n "$ac_ct_CXX"; then
2319 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2328 ac_cv_prog_ac_ct_CXX="g++"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2339 if test -n "$ac_ct_CXX"; then
2340 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2341 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2343 { echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6; }
2347 if test "x$ac_ct_CXX" = x; then
2350 case $cross_compiling:$ac_tool_warned in
2352 { echo "$as_me:$LINENO: 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." >&5
2355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2356 whose name does not start with the host triplet. If you think this
2357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2358 ac_tool_warned=yes ;;
2363 CXX="$ac_cv_prog_CXX"
2366 if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2368 set dummy ${ac_tool_prefix}ld; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_LD+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 if test -n "$LD"; then
2375 ac_cv_prog_LD="$LD" # Let the user override the test.
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2384 ac_cv_prog_LD="${ac_tool_prefix}ld"
2385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 if test -n "$LD"; then
2396 { echo "$as_me:$LINENO: result: $LD" >&5
2397 echo "${ECHO_T}$LD" >&6; }
2399 { echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6; }
2405 if test -z "$ac_cv_prog_LD"; then
2407 # Extract the first word of "ld", so it can be a program name with args.
2408 set dummy ld; ac_word=$2
2409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 if test -n "$ac_ct_LD"; then
2415 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2424 ac_cv_prog_ac_ct_LD="ld"
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2435 if test -n "$ac_ct_LD"; then
2436 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2437 echo "${ECHO_T}$ac_ct_LD" >&6; }
2439 { echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6; }
2443 if test "x$ac_ct_LD" = x; then
2446 case $cross_compiling:$ac_tool_warned in
2448 { echo "$as_me:$LINENO: 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." >&5
2451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2452 whose name does not start with the host triplet. If you think this
2453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2454 ac_tool_warned=yes ;;
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_RANLIB+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 if test -n "$RANLIB"; then
2471 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 RANLIB=$ac_cv_prog_RANLIB
2491 if test -n "$RANLIB"; then
2492 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2493 echo "${ECHO_T}$RANLIB" >&6; }
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2501 if test -z "$ac_cv_prog_RANLIB"; then
2502 ac_ct_RANLIB=$RANLIB
2503 # Extract the first word of "ranlib", so it can be a program name with args.
2504 set dummy ranlib; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 if test -n "$ac_ct_RANLIB"; then
2511 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_RANLIB="ranlib"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2531 if test -n "$ac_ct_RANLIB"; then
2532 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2533 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2535 { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2539 if test "x$ac_ct_RANLIB" = x; then
2542 case $cross_compiling:$ac_tool_warned in
2544 { echo "$as_me:$LINENO: 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." >&5
2547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2548 whose name does not start with the host triplet. If you think this
2549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2550 ac_tool_warned=yes ;;
2552 RANLIB=$ac_ct_RANLIB
2555 RANLIB="$ac_cv_prog_RANLIB"
2558 if test -n "$ac_tool_prefix"; then
2559 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2560 set dummy ${ac_tool_prefix}ar; ac_word=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_AR+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 if test -n "$AR"; then
2567 ac_cv_prog_AR="$AR" # Let the user override the test.
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_AR="${ac_tool_prefix}ar"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 if test -n "$AR"; then
2588 { echo "$as_me:$LINENO: result: $AR" >&5
2589 echo "${ECHO_T}$AR" >&6; }
2591 { echo "$as_me:$LINENO: result: no" >&5
2592 echo "${ECHO_T}no" >&6; }
2597 if test -z "$ac_cv_prog_AR"; then
2599 # Extract the first word of "ar", so it can be a program name with args.
2600 set dummy ar; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$ac_ct_AR"; then
2607 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2616 ac_cv_prog_ac_ct_AR="ar"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2627 if test -n "$ac_ct_AR"; then
2628 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2629 echo "${ECHO_T}$ac_ct_AR" >&6; }
2631 { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2635 if test "x$ac_ct_AR" = x; then
2638 case $cross_compiling:$ac_tool_warned in
2640 { echo "$as_me:$LINENO: 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." >&5
2643 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2644 whose name does not start with the host triplet. If you think this
2645 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2646 ac_tool_warned=yes ;;
2656 # Checks for programs.
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 if test -n "$CC"; then
2692 { echo "$as_me:$LINENO: result: $CC" >&5
2693 echo "${ECHO_T}$CC" >&6; }
2695 { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2701 if test -z "$ac_cv_prog_CC"; then
2703 # Extract the first word of "gcc", so it can be a program name with args.
2704 set dummy gcc; ac_word=$2
2705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 if test -n "$ac_ct_CC"; then
2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_ac_ct_CC="gcc"
2721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733 echo "${ECHO_T}$ac_ct_CC" >&6; }
2735 { echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6; }
2739 if test "x$ac_ct_CC" = x; then
2742 case $cross_compiling:$ac_tool_warned in
2744 { echo "$as_me:$LINENO: 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." >&5
2747 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2748 whose name does not start with the host triplet. If you think this
2749 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2750 ac_tool_warned=yes ;;
2758 if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
2760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2761 set dummy ${ac_tool_prefix}cc; ac_word=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_CC+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 if test -n "$CC"; then
2768 ac_cv_prog_CC="$CC" # Let the user override the test.
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_CC="${ac_tool_prefix}cc"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 if test -n "$CC"; then
2789 { echo "$as_me:$LINENO: result: $CC" >&5
2790 echo "${ECHO_T}$CC" >&6; }
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2799 if test -z "$CC"; then
2800 # Extract the first word of "cc", so it can be a program name with args.
2801 set dummy cc; ac_word=$2
2802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2819 ac_prog_rejected=yes
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 if test $ac_prog_rejected = yes; then
2831 # We found a bogon in the path, so make sure we never use it.
2832 set dummy $ac_cv_prog_CC
2834 if test $# != 0; then
2835 # We chose a different compiler from the bogus one.
2836 # However, it has the same basename, so the bogon will be chosen
2837 # first if we set CC to just the basename; use the full file name.
2839 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2845 if test -n "$CC"; then
2846 { echo "$as_me:$LINENO: result: $CC" >&5
2847 echo "${ECHO_T}$CC" >&6; }
2849 { echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6; }
2855 if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2857 for ac_prog in cl.exe
2859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2863 if test "${ac_cv_prog_CC+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 if test -n "$CC"; then
2888 { echo "$as_me:$LINENO: result: $CC" >&5
2889 echo "${ECHO_T}$CC" >&6; }
2891 { echo "$as_me:$LINENO: result: no" >&5
2892 echo "${ECHO_T}no" >&6; }
2896 test -n "$CC" && break
2899 if test -z "$CC"; then
2901 for ac_prog in cl.exe
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2904 set dummy $ac_prog; ac_word=$2
2905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 if test -n "$ac_ct_CC"; then
2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_ac_ct_CC="$ac_prog"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2931 if test -n "$ac_ct_CC"; then
2932 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2933 echo "${ECHO_T}$ac_ct_CC" >&6; }
2935 { echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6; }
2940 test -n "$ac_ct_CC" && break
2943 if test "x$ac_ct_CC" = x; then
2946 case $cross_compiling:$ac_tool_warned in
2948 { echo "$as_me:$LINENO: 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." >&5
2951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2952 whose name does not start with the host triplet. If you think this
2953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2954 ac_tool_warned=yes ;;
2963 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: no acceptable C compiler found in \$PATH
2966 See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2969 # Provide some information about the compiler.
2970 echo "$as_me:$LINENO: checking for C compiler version" >&5
2971 ac_compiler=`set X $ac_compile; echo $2`
2972 { (ac_try="$ac_compiler --version >&5"
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compiler --version >&5") 2>&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }
2982 { (ac_try="$ac_compiler -v >&5"
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compiler -v >&5") 2>&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }
2992 { (ac_try="$ac_compiler -V >&5"
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_compiler -V >&5") 2>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3018 ac_clean_files_save=$ac_clean_files
3019 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3020 # Try to create an executable without -o first, disregard a.out.
3021 # It will help us diagnose broken compilers, and finding out an intuition
3023 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3024 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3025 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3027 # List of possible output files, starting from the most likely.
3028 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3029 # only as a last resort. b.out is created by i960 compilers.
3030 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3032 # The IRIX 6 linker writes into existing files which may not be
3033 # executable, retaining their permissions. Remove them first so a
3034 # subsequent execution test works.
3036 for ac_file in $ac_files
3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3040 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3045 if { (ac_try="$ac_link_default"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_link_default") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; then
3055 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3056 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3057 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3058 # so that the user can short-circuit this test for compilers unknown to
3060 for ac_file in $ac_files ''
3062 test -f "$ac_file" || continue
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3067 # We found the default executable, but exeext='' is most
3071 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3075 # We set ac_cv_exeext here because the later test for it is not
3076 # safe: cross compilers may not add the suffix if given an `-o'
3077 # argument, so we may need to know it at that point already.
3078 # Even if this section looks crufty: it has the advantage of
3085 test "$ac_cv_exeext" = no && ac_cv_exeext=
3091 { echo "$as_me:$LINENO: result: $ac_file" >&5
3092 echo "${ECHO_T}$ac_file" >&6; }
3093 if test -z "$ac_file"; then
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C compiler cannot create executables
3100 See \`config.log' for more details." >&2;}
3101 { (exit 77); exit 77; }; }
3104 ac_exeext=$ac_cv_exeext
3106 # Check that the compiler produces executables we can run. If not, either
3107 # the compiler is broken, or we cross compile.
3108 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3109 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3110 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3111 # If not cross compiling, check that we can run a simple program.
3112 if test "$cross_compiling" != yes; then
3113 if { ac_try='./$ac_file'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3125 if test "$cross_compiling" = maybe; then
3128 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3129 If you meant to cross compile, use \`--host'.
3130 See \`config.log' for more details." >&5
3131 echo "$as_me: error: cannot run C compiled programs.
3132 If you meant to cross compile, use \`--host'.
3133 See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3138 { echo "$as_me:$LINENO: result: yes" >&5
3139 echo "${ECHO_T}yes" >&6; }
3141 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3142 ac_clean_files=$ac_clean_files_save
3143 # Check that the compiler produces executables we can run. If not, either
3144 # the compiler is broken, or we cross compile.
3145 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3146 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3147 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3148 echo "${ECHO_T}$cross_compiling" >&6; }
3150 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3151 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3152 if { (ac_try="$ac_link"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_link") 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; then
3162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3164 # work properly (i.e., refer to `conftest.exe'), while it won't with
3166 for ac_file in conftest.exe conftest conftest.*; do
3167 test -f "$ac_file" || continue
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3177 See \`config.log' for more details." >&5
3178 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3179 See \`config.log' for more details." >&2;}
3180 { (exit 1); exit 1; }; }
3183 rm -f conftest$ac_cv_exeext
3184 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3185 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3187 rm -f conftest.$ac_ext
3188 EXEEXT=$ac_cv_exeext
3190 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3191 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3192 if test "${ac_cv_objext+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3210 rm -f conftest.o conftest.obj
3211 if { (ac_try="$ac_compile"
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compile") 2>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; then
3221 for ac_file in conftest.o conftest.obj conftest.*; do
3222 test -f "$ac_file" || continue;
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3230 echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3233 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3234 See \`config.log' for more details." >&5
3235 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3236 See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }
3240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3242 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3243 echo "${ECHO_T}$ac_cv_objext" >&6; }
3244 OBJEXT=$ac_cv_objext
3246 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3247 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3248 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 cat >conftest.$ac_ext <<_ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3269 rm -f conftest.$ac_objext
3270 if { (ac_try="$ac_compile"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_compile") 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3284 { (case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_try") 2>&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest.$ac_objext'
3294 { (case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_try") 2>&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3315 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3316 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3317 GCC=`test $ac_compiler_gnu = yes && echo yes`
3318 ac_test_CFLAGS=${CFLAGS+set}
3319 ac_save_CFLAGS=$CFLAGS
3320 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3321 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3322 if test "${ac_cv_prog_cc_g+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 ac_save_c_werror_flag=$ac_c_werror_flag
3326 ac_c_werror_flag=yes
3329 cat >conftest.$ac_ext <<_ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3344 rm -f conftest.$ac_objext
3345 if { (ac_try="$ac_compile"
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_compile") 2>conftest.er1
3353 grep -v '^ *+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } &&
3358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3359 { (case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_try") 2>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; } &&
3368 { ac_try='test -s conftest.$ac_objext'
3369 { (case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_try") 2>&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3399 rm -f conftest.$ac_objext
3400 if { (ac_try="$ac_compile"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_compile") 2>conftest.er1
3408 grep -v '^ *+' conftest.er1 >conftest.err
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } &&
3413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3414 { (case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_try") 2>&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; } &&
3423 { ac_try='test -s conftest.$ac_objext'
3424 { (case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_try") 2>&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 ac_c_werror_flag=$ac_save_c_werror_flag
3440 cat >conftest.$ac_ext <<_ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3455 rm -f conftest.$ac_objext
3456 if { (ac_try="$ac_compile"
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_compile") 2>conftest.er1
3464 grep -v '^ *+' conftest.er1 >conftest.err
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
3469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3470 { (case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475 (eval "$ac_try") 2>&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; } &&
3479 { ac_try='test -s conftest.$ac_objext'
3480 { (case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_try") 2>&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_c_werror_flag=$ac_save_c_werror_flag
3506 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3507 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3508 if test "$ac_test_CFLAGS" = set; then
3509 CFLAGS=$ac_save_CFLAGS
3510 elif test $ac_cv_prog_cc_g = yes; then
3511 if test "$GCC" = yes; then
3517 if test "$GCC" = yes; then
3523 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3524 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3525 if test "${ac_cv_prog_cc_c89+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 ac_cv_prog_cc_c89=no
3530 cat >conftest.$ac_ext <<_ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3538 #include <sys/types.h>
3539 #include <sys/stat.h>
3540 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3541 struct buf { int x; };
3542 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3543 static char *e (p, i)
3549 static char *f (char * (*g) (char **, int), char **p, ...)
3554 s = g (p, va_arg (v,int));
3559 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3560 function prototypes and stuff, but not '\xHH' hex character constants.
3561 These don't provoke an error unfortunately, instead are silently treated
3562 as 'x'. The following induces an error, until -std is added to get
3563 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3564 array size at least. It's necessary to write '\x00'==0 to get something
3565 that's true only with -std. */
3566 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3568 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3569 inside strings and character constants. */
3571 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3573 int test (int i, double x);
3574 struct s1 {int (*f) (int a);};
3575 struct s2 {int (*f) (double a);};
3576 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3582 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3587 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3588 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3590 CC="$ac_save_CC $ac_arg"
3591 rm -f conftest.$ac_objext
3592 if { (ac_try="$ac_compile"
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_compile") 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3606 { (case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_try") 2>&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest.$ac_objext'
3616 { (case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_try") 2>&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 ac_cv_prog_cc_c89=$ac_arg
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3633 rm -f core conftest.err conftest.$ac_objext
3634 test "x$ac_cv_prog_cc_c89" != "xno" && break
3636 rm -f conftest.$ac_ext
3641 case "x$ac_cv_prog_cc_c89" in
3643 { echo "$as_me:$LINENO: result: none needed" >&5
3644 echo "${ECHO_T}none needed" >&6; } ;;
3646 { echo "$as_me:$LINENO: result: unsupported" >&5
3647 echo "${ECHO_T}unsupported" >&6; } ;;
3649 CC="$CC $ac_cv_prog_cc_c89"
3650 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3651 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662 ac_cpp='$CXXCPP $CPPFLAGS'
3663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3666 if test -z "$CXX"; then
3667 if test -n "$CCC"; then
3670 if test -n "$ac_tool_prefix"; then
3671 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3677 if test "${ac_cv_prog_CXX+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 if test -n "$CXX"; then
3681 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3690 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 if test -n "$CXX"; then
3702 { echo "$as_me:$LINENO: result: $CXX" >&5
3703 echo "${ECHO_T}$CXX" >&6; }
3705 { echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6; }
3710 test -n "$CXX" && break
3713 if test -z "$CXX"; then
3715 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3717 # Extract the first word of "$ac_prog", so it can be a program name with args.
3718 set dummy $ac_prog; ac_word=$2
3719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3721 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 if test -n "$ac_ct_CXX"; then
3725 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 ac_cv_prog_ac_ct_CXX="$ac_prog"
3735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3745 if test -n "$ac_ct_CXX"; then
3746 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3747 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3749 { echo "$as_me:$LINENO: result: no" >&5
3750 echo "${ECHO_T}no" >&6; }
3754 test -n "$ac_ct_CXX" && break
3757 if test "x$ac_ct_CXX" = x; then
3760 case $cross_compiling:$ac_tool_warned in
3762 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3763 whose name does not start with the host triplet. If you think this
3764 configuration is useful to you, please write to autoconf@gnu.org." >&5
3765 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3766 whose name does not start with the host triplet. If you think this
3767 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3768 ac_tool_warned=yes ;;
3776 # Provide some information about the compiler.
3777 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3778 ac_compiler=`set X $ac_compile; echo $2`
3779 { (ac_try="$ac_compiler --version >&5"
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785 (eval "$ac_compiler --version >&5") 2>&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }
3789 { (ac_try="$ac_compiler -v >&5"
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_compiler -v >&5") 2>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }
3799 { (ac_try="$ac_compiler -V >&5"
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_compiler -V >&5") 2>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }
3810 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3811 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3812 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 cat >conftest.$ac_ext <<_ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3842 grep -v '^ *+' conftest.er1 >conftest.err
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3879 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3880 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3881 GXX=`test $ac_compiler_gnu = yes && echo yes`
3882 ac_test_CXXFLAGS=${CXXFLAGS+set}
3883 ac_save_CXXFLAGS=$CXXFLAGS
3884 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3885 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3886 if test "${ac_cv_prog_cxx_g+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3890 ac_cxx_werror_flag=yes
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3908 rm -f conftest.$ac_objext
3909 if { (ac_try="$ac_compile"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_compile") 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3923 { (case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928 (eval "$ac_try") 2>&5
3930 echo "$as_me:$LINENO: \$? = $ac_status&q