2 # From configure.ac Revision: 46507 .
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
841 ac_precious_vars='build_alias
855 # Initialize some variables set by options.
857 ac_init_version=false
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
867 program_transform_name=s,x,x,
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE}'
892 infodir='${datarootdir}/info'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
913 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 # Accept the important Cygnus configure options, so we can diagnose typos.
919 case $ac_dashdash$ac_option in
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
941 cache_file=config.cache ;;
943 -datadir | --datadir | --datadi | --datad)
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
955 -disable-* | --disable-*)
956 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960 { (exit 1); exit 1; }; }
961 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962 eval enable_$ac_feature=no ;;
964 -docdir | --docdir | --docdi | --doc | --do)
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 -enable-* | --enable-*)
975 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
978 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
979 { (exit 1); exit 1; }; }
980 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
981 eval enable_$ac_feature=\$ac_optarg ;;
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
996 -help | --help | --hel | --he | -h)
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 htmldir=$ac_optarg ;;
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1026 -libdir | --libdir | --libdi | --libd)
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1117 -psdir | --psdir | --psdi | --psd | --ps)
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 sbindir=$ac_optarg ;;
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 sharedstatedir=$ac_optarg ;;
1143 -site | --site | --sit)
1145 -site=* | --site=* | --sit=*)
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1172 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1175 { echo "$as_me: error: invalid package name: $ac_package" >&2
1176 { (exit 1); exit 1; }; }
1177 ac_package=`echo $ac_package| sed 's/-/_/g'`
1178 eval with_$ac_package=\$ac_optarg ;;
1180 -without-* | --without-*)
1181 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid package name: $ac_package" >&2
1185 { (exit 1); exit 1; }; }
1186 ac_package=`echo $ac_package | sed 's/-/_/g'`
1187 eval with_$ac_package=no ;;
1190 # Obsolete; use --with-x.
1193 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194 | --x-incl | --x-inc | --x-in | --x-i)
1195 ac_prev=x_includes ;;
1196 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198 x_includes=$ac_optarg ;;
1200 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202 ac_prev=x_libraries ;;
1203 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205 x_libraries=$ac_optarg ;;
1207 -*) { echo "$as_me: error: unrecognized option: $ac_option
1208 Try \`$0 --help' for more information." >&2
1209 { (exit 1); exit 1; }; }
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1216 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1217 { (exit 1); exit 1; }; }
1218 eval $ac_envvar=\$ac_optarg
1219 export $ac_envvar ;;
1222 # FIXME: should be removed in autoconf 3.0.
1223 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1232 if test -n "$ac_prev"; then
1233 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234 { echo "$as_me: error: missing argument to $ac_option" >&2
1235 { (exit 1); exit 1; }; }
1238 # Be sure to have absolute directory names.
1239 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir
1244 eval ac_val=\$$ac_var
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1250 { (exit 1); exit 1; }; }
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1258 target=$target_alias
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
1264 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265 If a cross compiler is detected then cross compile mode will be used." >&2
1266 elif test "x$build_alias" != "x$host_alias"; then
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274 test "$silent" = yes && exec 6>/dev/null
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 { echo "$as_me: error: Working directory cannot be determined" >&2
1281 { (exit 1); exit 1; }; }
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 { echo "$as_me: error: pwd does not report name of working directory" >&2
1284 { (exit 1); exit 1; }; }
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$0" ||
1292 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$0" : 'X\(//\)[^/]' \| \
1294 X"$0" : 'X\(//\)$' \| \
1295 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1319 ac_srcdir_defaulted=no
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1324 { (exit 1); exit 1; }; }
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1329 { (exit 1); exit 1; }; }
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 # Report the --help message.
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1355 \`configure' configures this package to adapt to many kinds of systems.
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1362 Defaults for the options are specified in brackets.
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1386 For better control, use the options below.
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 if test -n "$ac_init_help"; then
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --enable-dev-mode Turn on developer mode
1426 --disable-largefile omit support for large files
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1432 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1433 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1434 --with-curl=PATH use cURL files in PATH
1435 --with-curses=PATH use curses files in PATH
1436 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1438 --with-gsm=PATH use GSM files in PATH , or 'internal'
1439 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1440 --with-imap=PATH use UW IMAP Toolkit files in PATH
1441 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1442 --with-kde=PATH use KDE files in PATH
1443 --with-misdn=PATH use mISDN User Library files in PATH
1444 --with-nbs=PATH use Network Broadcast Sound files in PATH
1445 --with-ncurses=PATH use ncurses files in PATH
1446 --with-netsnmp=PATH use Net-SNMP files in PATH
1447 --with-newt=PATH use newt files in PATH
1448 --with-odbc=PATH use unixODBC files in PATH
1449 --with-ogg=PATH use OGG files in PATH
1450 --with-osptk=PATH use OSP Toolkit files in PATH
1451 --with-oss=PATH use Open Sound System files in PATH
1452 --with-popt=PATH use popt files in PATH
1453 --with-postgres=PATH use PostgreSQL files in PATH
1454 --with-pri=PATH use ISDN PRI files in PATH
1455 --with-ss7=PATH use ISDN SS7 files in PATH
1456 --with-pwlib=PATH use PWlib files in PATH
1457 --with-h323=PATH use OpenH323 files in PATH
1458 --with-qt=PATH use Qt files in PATH
1459 --with-radius=PATH use Radius Client files in PATH
1460 --with-speex=PATH use Speex files in PATH
1461 --with-sqlite=PATH use SQLite files in PATH
1462 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1463 --with-ssl=PATH use OpenSSL files in PATH
1464 --with-tds=PATH use FreeTDS files in PATH
1465 --with-termcap=PATH use Termcap files in PATH
1466 --with-tinfo=PATH use Term Info files in PATH
1467 --with-tonezone=PATH use tonezone files in PATH
1468 --with-vorbis=PATH use Vorbis files in PATH
1469 --with-vpb=PATH use Voicetronix API files in PATH
1470 --with-z=PATH use zlib files in PATH
1471 --with-zaptel=PATH use Zaptel files in PATH
1473 Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1483 CXXCPP C++ preprocessor
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" || continue
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1515 .) # We are building in place.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1539 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1549 generated by GNU Autoconf 2.60a
1551 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1552 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1560 cat >config.log <<_ACEOF
1561 This file contains any messages produced by compilers while
1562 running configure, to aid debugging if configure makes a mistake.
1564 It was created by $as_me, which was
1565 generated by GNU Autoconf 2.60a. Invocation command line was
1577 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1578 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1579 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1580 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1581 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1583 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1584 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1586 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1587 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1588 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1589 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1590 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1591 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1592 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 test -z "$as_dir" && as_dir=.
1601 echo "PATH: $as_dir"
1617 # Keep a trace of the command line.
1618 # Strip out --no-create and --no-recursion so they do not pile up.
1619 # Strip out --silent because we don't want to record it for future runs.
1620 # Also quote any args containing shell meta-characters.
1621 # Make two passes to allow for proper duplicate-argument suppression.
1625 ac_must_keep_next=false
1631 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1633 | -silent | --silent | --silen | --sile | --sil)
1636 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1639 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1641 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1642 if test $ac_must_keep_next = true; then
1643 ac_must_keep_next=false # Got value, back to normal.
1646 *=* | --config-cache | -C | -disable-* | --disable-* \
1647 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1648 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1649 | -with-* | --with-* | -without-* | --without-* | --x)
1650 case "$ac_configure_args0 " in
1651 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1654 -* ) ac_must_keep_next=true ;;
1657 ac_configure_args="$ac_configure_args '$ac_arg'"
1662 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1663 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1665 # When interrupted or exit'd, cleanup temporary files, and complete
1666 # config.log. We remove comments because anyway the quotes in there
1667 # would cause problems or look ugly.
1668 # WARNING: Use '\'' to represent an apostrophe within the trap.
1669 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1670 trap 'exit_status=$?
1671 # Save into config.log some information that might help in debugging.
1676 ## ---------------- ##
1677 ## Cache variables. ##
1678 ## ---------------- ##
1681 # The following way of writing the cache mishandles newlines in values,
1683 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1684 eval ac_val=\$$ac_var
1688 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1689 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1692 _ | IFS | as_nl) ;; #(
1693 *) $as_unset $ac_var ;;
1698 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1699 *${as_nl}ac_space=\ *)
1701 "s/'\''/'\''\\\\'\'''\''/g;
1702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1713 ## ----------------- ##
1714 ## Output variables. ##
1715 ## ----------------- ##
1718 for ac_var in $ac_subst_vars
1720 eval ac_val=\$$ac_var
1722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724 echo "$ac_var='\''$ac_val'\''"
1728 if test -n "$ac_subst_files"; then
1730 ## ------------------- ##
1731 ## File substitutions. ##
1732 ## ------------------- ##
1735 for ac_var in $ac_subst_files
1737 eval ac_val=\$$ac_var
1739 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741 echo "$ac_var='\''$ac_val'\''"
1746 if test -s confdefs.h; then
1756 test "$ac_signal" != 0 &&
1757 echo "$as_me: caught signal $ac_signal"
1758 echo "$as_me: exit $exit_status"
1760 rm -f core *.core core.conftest.* &&
1761 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1764 for ac_signal in 1 2 13 15; do
1765 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1769 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1770 rm -f -r conftest* confdefs.h
1772 # Predefined preprocessor variables.
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_NAME "$PACKAGE_NAME"
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_STRING "$PACKAGE_STRING"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1799 # Let the site file select an alternate cache file if it wants to.
1800 # Prefer explicitly selected file to automatically selected ones.
1801 if test -n "$CONFIG_SITE"; then
1802 set x "$CONFIG_SITE"
1803 elif test "x$prefix" != xNONE; then
1804 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1806 set x "$ac_default_prefix/share/config.site" \
1807 "$ac_default_prefix/etc/config.site"
1812 if test -r "$ac_site_file"; then
1813 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1814 echo "$as_me: loading site script $ac_site_file" >&6;}
1815 sed 's/^/| /' "$ac_site_file" >&5
1820 if test -r "$cache_file"; then
1821 # Some versions of bash will fail to source /dev/null (special
1822 # files actually), so we avoid doing that.
1823 if test -f "$cache_file"; then
1824 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1825 echo "$as_me: loading cache $cache_file" >&6;}
1827 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1828 *) . "./$cache_file";;
1832 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1833 echo "$as_me: creating cache $cache_file" >&6;}
1837 # Check that the precious variables saved in the cache have kept the same
1839 ac_cache_corrupted=false
1840 for ac_var in $ac_precious_vars; do
1841 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1842 eval ac_new_set=\$ac_env_${ac_var}_set
1843 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1844 eval ac_new_val=\$ac_env_${ac_var}_value
1845 case $ac_old_set,$ac_new_set in
1847 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1848 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1849 ac_cache_corrupted=: ;;
1851 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1852 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1853 ac_cache_corrupted=: ;;
1856 if test "x$ac_old_val" != "x$ac_new_val"; then
1857 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1858 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1859 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1860 echo "$as_me: former value: $ac_old_val" >&2;}
1861 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1862 echo "$as_me: current value: $ac_new_val" >&2;}
1863 ac_cache_corrupted=:
1866 # Pass precious variables to config.status.
1867 if test "$ac_new_set" = set; then
1869 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1870 *) ac_arg=$ac_var=$ac_new_val ;;
1872 case " $ac_configure_args " in
1873 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1874 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1878 if $ac_cache_corrupted; then
1879 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1880 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1881 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1882 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1883 { (exit 1); exit 1; }; }
1903 ac_cpp='$CPP $CPPFLAGS'
1904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910 # cross-compile macros
1912 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1913 if test -f "$ac_dir/install-sh"; then
1915 ac_install_sh="$ac_aux_dir/install-sh -c"
1917 elif test -f "$ac_dir/install.sh"; then
1919 ac_install_sh="$ac_aux_dir/install.sh -c"
1921 elif test -f "$ac_dir/shtool"; then
1923 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 if test -z "$ac_aux_dir"; then
1928 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1929 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1930 { (exit 1); exit 1; }; }
1933 # These three variables are undocumented and unsupported,
1934 # and are intended to be withdrawn in a future Autoconf release.
1935 # They can cause serious problems if a builder's source tree is in a directory
1936 # whose full name contains unusual characters.
1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1939 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1942 # Make sure we can run config.sub.
1943 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1944 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1945 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1946 { (exit 1); exit 1; }; }
1948 { echo "$as_me:$LINENO: checking build system type" >&5
1949 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1950 if test "${ac_cv_build+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 ac_build_alias=$build_alias
1954 test "x$ac_build_alias" = x &&
1955 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1956 test "x$ac_build_alias" = x &&
1957 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1958 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1959 { (exit 1); exit 1; }; }
1960 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1961 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1962 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1963 { (exit 1); exit 1; }; }
1966 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1967 echo "${ECHO_T}$ac_cv_build" >&6; }
1968 case $ac_cv_build in
1970 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1971 echo "$as_me: error: invalid value of canonical build" >&2;}
1972 { (exit 1); exit 1; }; };;
1975 ac_save_IFS=$IFS; IFS='-'
1981 # Remember, the first character of IFS is used to create $*,
1982 # except with old shells:
1985 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1988 { echo "$as_me:$LINENO: checking host system type" >&5
1989 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1990 if test "${ac_cv_host+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test "x$host_alias" = x; then
1994 ac_cv_host=$ac_cv_build
1996 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1997 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1998 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1999 { (exit 1); exit 1; }; }
2003 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2004 echo "${ECHO_T}$ac_cv_host" >&6; }
2007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2008 echo "$as_me: error: invalid value of canonical host" >&2;}
2009 { (exit 1); exit 1; }; };;
2012 ac_save_IFS=$IFS; IFS='-'
2018 # Remember, the first character of IFS is used to create $*,
2019 # except with old shells:
2022 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2026 # check existence of the package
2029 # specify output header file
2030 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2036 case "${host_os}" in
2038 ac_default_prefix=/usr/local
2039 CPPFLAGS=-I/usr/local/include
2040 LDFLAGS=-L/usr/local/lib
2043 ac_default_prefix=/usr
2044 if test ${sysconfdir} = '${prefix}/etc'; then
2047 if test ${mandir} = '${prefix}/man'; then
2048 mandir=/usr/share/man
2053 if test ${localstatedir} = '${prefix}/var'; then
2057 BUILD_PLATFORM=${build}
2058 BUILD_CPU=${build_cpu}
2059 BUILD_VENDOR=${build_vendor}
2060 BUILD_OS=${build_os}
2067 HOST_PLATFORM=${host}
2068 HOST_CPU=${host_cpu}
2069 HOST_VENDOR=${host_vendor}
2077 case "${host_os}" in
2098 if test -n "$ac_tool_prefix"; then
2099 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2100 set dummy ${ac_tool_prefix}uname; ac_word=$2
2101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2103 if test "${ac_cv_path_UNAME+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2118 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 UNAME=$ac_cv_path_UNAME
2130 if test -n "$UNAME"; then
2131 { echo "$as_me:$LINENO: result: $UNAME" >&5
2132 echo "${ECHO_T}$UNAME" >&6; }
2134 { echo "$as_me:$LINENO: result: no" >&5
2135 echo "${ECHO_T}no" >&6; }
2140 if test -z "$ac_cv_path_UNAME"; then
2142 # Extract the first word of "uname", so it can be a program name with args.
2143 set dummy uname; ac_word=$2
2144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 case $ac_pt_UNAME in
2151 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2161 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2173 if test -n "$ac_pt_UNAME"; then
2174 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2175 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2177 { echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6; }
2181 if test "x$ac_pt_UNAME" = x; then
2184 case $cross_compiling:$ac_tool_warned in
2186 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2187 whose name does not start with the host triplet. If you think this
2188 configuration is useful to you, please write to autoconf@gnu.org." >&5
2189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2190 whose name does not start with the host triplet. If you think this
2191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2192 ac_tool_warned=yes ;;
2197 UNAME="$ac_cv_path_UNAME"
2200 if test ! x"${UNAME}" = xNo; then
2201 PBX_OSREV=$(${UNAME} -r)
2205 # This needs to be before any macros that use the C compiler
2207 cat >>confdefs.h <<\_ACEOF
2208 #define _GNU_SOURCE 1
2219 # cross-compile checks
2220 if test "${cross_compiling}" = "yes";
2222 if test -n "$ac_tool_prefix"; then
2223 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2224 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2227 if test "${ac_cv_prog_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2240 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 if test -n "$CC"; then
2252 { echo "$as_me:$LINENO: result: $CC" >&5
2253 echo "${ECHO_T}$CC" >&6; }
2255 { echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6; }
2261 if test -z "$ac_cv_prog_CC"; then
2263 # Extract the first word of "gcc", so it can be a program name with args.
2264 set dummy gcc; ac_word=$2
2265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2267 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 if test -n "$ac_ct_CC"; then
2271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2280 ac_cv_prog_ac_ct_CC="gcc"
2281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2291 if test -n "$ac_ct_CC"; then
2292 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2293 echo "${ECHO_T}$ac_ct_CC" >&6; }
2295 { echo "$as_me:$LINENO: result: no" >&5
2296 echo "${ECHO_T}no" >&6; }
2299 if test "x$ac_ct_CC" = x; then
2302 case $cross_compiling:$ac_tool_warned in
2304 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2305 whose name does not start with the host triplet. If you think this
2306 configuration is useful to you, please write to autoconf@gnu.org." >&5
2307 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2308 whose name does not start with the host triplet. If you think this
2309 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2310 ac_tool_warned=yes ;;
2318 if test -n "$ac_tool_prefix"; then
2319 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2320 set dummy ${ac_tool_prefix}g++; ac_word=$2
2321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2323 if test "${ac_cv_prog_CXX+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 if test -n "$CXX"; then
2327 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 if test -n "$CXX"; then
2348 { echo "$as_me:$LINENO: result: $CXX" >&5
2349 echo "${ECHO_T}$CXX" >&6; }
2351 { echo "$as_me:$LINENO: result: no" >&5
2352 echo "${ECHO_T}no" >&6; }
2357 if test -z "$ac_cv_prog_CXX"; then
2359 # Extract the first word of "g++", so it can be a program name with args.
2360 set dummy g++; ac_word=$2
2361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 if test -n "$ac_ct_CXX"; then
2367 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_ac_ct_CXX="g++"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2387 if test -n "$ac_ct_CXX"; then
2388 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2389 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2395 if test "x$ac_ct_CXX" = x; then
2398 case $cross_compiling:$ac_tool_warned in
2400 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2401 whose name does not start with the host triplet. If you think this
2402 configuration is useful to you, please write to autoconf@gnu.org." >&5
2403 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2404 whose name does not start with the host triplet. If you think this
2405 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2406 ac_tool_warned=yes ;;
2411 CXX="$ac_cv_prog_CXX"
2414 if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2416 set dummy ${ac_tool_prefix}ld; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_LD+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$LD"; then
2423 ac_cv_prog_LD="$LD" # Let the user override the test.
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2432 ac_cv_prog_LD="${ac_tool_prefix}ld"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 if test -n "$LD"; then
2444 { echo "$as_me:$LINENO: result: $LD" >&5
2445 echo "${ECHO_T}$LD" >&6; }
2447 { echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6; }
2453 if test -z "$ac_cv_prog_LD"; then
2455 # Extract the first word of "ld", so it can be a program name with args.
2456 set dummy ld; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 if test -n "$ac_ct_LD"; then
2463 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2472 ac_cv_prog_ac_ct_LD="ld"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2483 if test -n "$ac_ct_LD"; then
2484 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2485 echo "${ECHO_T}$ac_ct_LD" >&6; }
2487 { echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6; }
2491 if test "x$ac_ct_LD" = x; then
2494 case $cross_compiling:$ac_tool_warned in
2496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2497 whose name does not start with the host triplet. If you think this
2498 configuration is useful to you, please write to autoconf@gnu.org." >&5
2499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2500 whose name does not start with the host triplet. If you think this
2501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2502 ac_tool_warned=yes ;;
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_RANLIB+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 if test -n "$RANLIB"; then
2519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 RANLIB=$ac_cv_prog_RANLIB
2539 if test -n "$RANLIB"; then
2540 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2541 echo "${ECHO_T}$RANLIB" >&6; }
2543 { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2549 if test -z "$ac_cv_prog_RANLIB"; then
2550 ac_ct_RANLIB=$RANLIB
2551 # Extract the first word of "ranlib", so it can be a program name with args.
2552 set dummy ranlib; ac_word=$2
2553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 if test -n "$ac_ct_RANLIB"; then
2559 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_ac_ct_RANLIB="ranlib"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2579 if test -n "$ac_ct_RANLIB"; then
2580 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2581 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2583 { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2587 if test "x$ac_ct_RANLIB" = x; then
2590 case $cross_compiling:$ac_tool_warned in
2592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2593 whose name does not start with the host triplet. If you think this
2594 configuration is useful to you, please write to autoconf@gnu.org." >&5
2595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2596 whose name does not start with the host triplet. If you think this
2597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2598 ac_tool_warned=yes ;;
2600 RANLIB=$ac_ct_RANLIB
2603 RANLIB="$ac_cv_prog_RANLIB"
2606 if test -n "$ac_tool_prefix"; then
2607 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2608 set dummy ${ac_tool_prefix}ar; ac_word=$2
2609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2611 if test "${ac_cv_prog_AR+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 if test -n "$AR"; then
2615 ac_cv_prog_AR="$AR" # Let the user override the test.
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_AR="${ac_tool_prefix}ar"
2625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 if test -n "$AR"; then
2636 { echo "$as_me:$LINENO: result: $AR" >&5
2637 echo "${ECHO_T}$AR" >&6; }
2639 { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2645 if test -z "$ac_cv_prog_AR"; then
2647 # Extract the first word of "ar", so it can be a program name with args.
2648 set dummy ar; ac_word=$2
2649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2651 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 if test -n "$ac_ct_AR"; then
2655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_ac_ct_AR="ar"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2675 if test -n "$ac_ct_AR"; then
2676 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2677 echo "${ECHO_T}$ac_ct_AR" >&6; }
2679 { echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6; }
2683 if test "x$ac_ct_AR" = x; then
2686 case $cross_compiling:$ac_tool_warned in
2688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2689 whose name does not start with the host triplet. If you think this
2690 configuration is useful to you, please write to autoconf@gnu.org." >&5
2691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2692 whose name does not start with the host triplet. If you think this
2693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2694 ac_tool_warned=yes ;;
2704 # Checks for programs.
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 if test -n "$ac_tool_prefix"; then
2711 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2712 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 if test -n "$CC"; then
2740 { echo "$as_me:$LINENO: result: $CC" >&5
2741 echo "${ECHO_T}$CC" >&6; }
2743 { echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6; }
2749 if test -z "$ac_cv_prog_CC"; then
2751 # Extract the first word of "gcc", so it can be a program name with args.
2752 set dummy gcc; ac_word=$2
2753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_ac_ct_CC="gcc"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779 if test -n "$ac_ct_CC"; then
2780 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2781 echo "${ECHO_T}$ac_ct_CC" >&6; }
2783 { echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6; }
2787 if test "x$ac_ct_CC" = x; then
2790 case $cross_compiling:$ac_tool_warned in
2792 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2793 whose name does not start with the host triplet. If you think this
2794 configuration is useful to you, please write to autoconf@gnu.org." >&5
2795 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2796 whose name does not start with the host triplet. If you think this
2797 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2798 ac_tool_warned=yes ;;
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809 set dummy ${ac_tool_prefix}cc; ac_word=$2
2810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2812 if test "${ac_cv_prog_CC+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_CC="${ac_tool_prefix}cc"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 if test -n "$CC"; then
2837 { echo "$as_me:$LINENO: result: $CC" >&5
2838 echo "${ECHO_T}$CC" >&6; }
2840 { echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6; }
2847 if test -z "$CC"; then
2848 # Extract the first word of "cc", so it can be a program name with args.
2849 set dummy cc; ac_word=$2
2850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2852 if test "${ac_cv_prog_CC+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2867 ac_prog_rejected=yes
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 if test $ac_prog_rejected = yes; then
2879 # We found a bogon in the path, so make sure we never use it.
2880 set dummy $ac_cv_prog_CC
2882 if test $# != 0; then
2883 # We chose a different compiler from the bogus one.
2884 # However, it has the same basename, so the bogon will be chosen
2885 # first if we set CC to just the basename; use the full file name.
2887 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2893 if test -n "$CC"; then
2894 { echo "$as_me:$LINENO: result: $CC" >&5
2895 echo "${ECHO_T}$CC" >&6; }
2897 { echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6; }
2903 if test -z "$CC"; then
2904 if test -n "$ac_tool_prefix"; then
2905 for ac_prog in cl.exe
2907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2908 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2911 if test "${ac_cv_prog_CC+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test -n "$CC"; then
2936 { echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6; }
2939 { echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6; }
2944 test -n "$CC" && break
2947 if test -z "$CC"; then
2949 for ac_prog in cl.exe
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy $ac_prog; ac_word=$2
2953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_ac_ct_CC="$ac_prog"
2969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979 if test -n "$ac_ct_CC"; then
2980 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2981 echo "${ECHO_T}$ac_ct_CC" >&6; }
2983 { echo "$as_me:$LINENO: result: no" >&5
2984 echo "${ECHO_T}no" >&6; }
2988 test -n "$ac_ct_CC" && break
2991 if test "x$ac_ct_CC" = x; then
2994 case $cross_compiling:$ac_tool_warned in
2996 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2997 whose name does not start with the host triplet. If you think this
2998 configuration is useful to you, please write to autoconf@gnu.org." >&5
2999 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3000 whose name does not start with the host triplet. If you think this
3001 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3002 ac_tool_warned=yes ;;
3011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." >&2;}
3015 { (exit 1); exit 1; }; }
3017 # Provide some information about the compiler.
3018 echo "$as_me:$LINENO: checking for C compiler version" >&5
3019 ac_compiler=`set X $ac_compile; echo $2`
3020 { (ac_try="$ac_compiler --version >&5"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compiler --version >&5") 2>&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }
3030 { (ac_try="$ac_compiler -v >&5"
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compiler -v >&5") 2>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }
3040 { (ac_try="$ac_compiler -V >&5"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compiler -V >&5") 2>&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 ac_clean_files_save=$ac_clean_files
3067 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3068 # Try to create an executable without -o first, disregard a.out.
3069 # It will help us diagnose broken compilers, and finding out an intuition
3071 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3072 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3073 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3075 # List of possible output files, starting from the most likely.
3076 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3077 # only as a last resort. b.out is created by i960 compilers.
3078 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3080 # The IRIX 6 linker writes into existing files which may not be
3081 # executable, retaining their permissions. Remove them first so a
3082 # subsequent execution test works.
3084 for ac_file in $ac_files
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3088 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3093 if { (ac_try="$ac_link_default"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_link_default") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; then
3103 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3104 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3105 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3106 # so that the user can short-circuit this test for compilers unknown to
3108 for ac_file in $ac_files ''
3110 test -f "$ac_file" || continue
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3115 # We found the default executable, but exeext='' is most
3119 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3121 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 # We set ac_cv_exeext here because the later test for it is not
3124 # safe: cross compilers may not add the suffix if given an `-o'
3125 # argument, so we may need to know it at that point already.
3126 # Even if this section looks crufty: it has the advantage of
3133 test "$ac_cv_exeext" = no && ac_cv_exeext=
3139 { echo "$as_me:$LINENO: result: $ac_file" >&5
3140 echo "${ECHO_T}$ac_file" >&6; }
3141 if test -z "$ac_file"; then
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3146 See \`config.log' for more details." >&5
3147 echo "$as_me: error: C compiler cannot create executables
3148 See \`config.log' for more details." >&2;}
3149 { (exit 77); exit 77; }; }
3152 ac_exeext=$ac_cv_exeext
3154 # Check that the compiler produces executables we can run. If not, either
3155 # the compiler is broken, or we cross compile.
3156 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3157 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3158 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3159 # If not cross compiling, check that we can run a simple program.
3160 if test "$cross_compiling" != yes; then
3161 if { ac_try='./$ac_file'
3162 { (case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_try") 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3173 if test "$cross_compiling" = maybe; then
3176 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3177 If you meant to cross compile, use \`--host'.
3178 See \`config.log' for more details." >&5
3179 echo "$as_me: error: cannot run C compiled programs.
3180 If you meant to cross compile, use \`--host'.
3181 See \`config.log' for more details." >&2;}
3182 { (exit 1); exit 1; }; }
3186 { echo "$as_me:$LINENO: result: yes" >&5
3187 echo "${ECHO_T}yes" >&6; }
3189 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3190 ac_clean_files=$ac_clean_files_save
3191 # Check that the compiler produces executables we can run. If not, either
3192 # the compiler is broken, or we cross compile.
3193 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3194 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3195 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3196 echo "${ECHO_T}$cross_compiling" >&6; }
3198 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3199 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3200 if { (ac_try="$ac_link"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_link") 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; then
3210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3211 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3212 # work properly (i.e., refer to `conftest.exe'), while it won't with
3214 for ac_file in conftest.exe conftest conftest.*; do
3215 test -f "$ac_file" || continue
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3225 See \`config.log' for more details." >&5
3226 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3227 See \`config.log' for more details." >&2;}
3228 { (exit 1); exit 1; }; }
3231 rm -f conftest$ac_cv_exeext
3232 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3233 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3235 rm -f conftest.$ac_ext
3236 EXEEXT=$ac_cv_exeext
3238 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3239 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3240 if test "${ac_cv_objext+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 cat >conftest.$ac_ext <<_ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3258 rm -f conftest.o conftest.obj
3259 if { (ac_try="$ac_compile"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_compile") 2>&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; then
3269 for ac_file in conftest.o conftest.obj conftest.*; do
3270 test -f "$ac_file" || continue;
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3273 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3290 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3291 echo "${ECHO_T}$ac_cv_objext" >&6; }
3292 OBJEXT=$ac_cv_objext
3294 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3295 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3296 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3365 GCC=`test $ac_compiler_gnu = yes && echo yes`
3366 ac_test_CFLAGS=${CFLAGS+set}
3367 ac_save_CFLAGS=$CFLAGS
3368 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3369 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3370 if test "${ac_cv_prog_cc_g+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 ac_save_c_werror_flag=$ac_c_werror_flag
3374 ac_c_werror_flag=yes
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3392 rm -f conftest.$ac_objext
3393 if { (ac_try="$ac_compile"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_compile") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3407 { (case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412 (eval "$ac_try") 2>&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; } &&
3416 { ac_try='test -s conftest.$ac_objext'
3417 { (case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_try") 2>&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3432 cat >conftest.$ac_ext <<_ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3447 rm -f conftest.$ac_objext
3448 if { (ac_try="$ac_compile"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_compile") 2>conftest.er1
3456 grep -v '^ *+' conftest.er1 >conftest.err
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3462 { (case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_try") 2>&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_try") 2>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_compile") 2>conftest.er1
3512 grep -v '^ *+' conftest.er1 >conftest.err
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3518 { (case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_try") 2>&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest.$ac_objext'
3528 { (case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_try") 2>&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_c_werror_flag=$ac_save_c_werror_flag
3554 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3555 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3556 if test "$ac_test_CFLAGS" = set; then
3557 CFLAGS=$ac_save_CFLAGS
3558 elif test $ac_cv_prog_cc_g = yes; then
3559 if test "$GCC" = yes; then
3565 if test "$GCC" = yes; then
3571 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3572 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3573 if test "${ac_cv_prog_cc_c89+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 ac_cv_prog_cc_c89=no
3578 cat >conftest.$ac_ext <<_ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h. */
3586 #include <sys/types.h>
3587 #include <sys/stat.h>
3588 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3589 struct buf { int x; };
3590 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3591 static char *e (p, i)
3597 static char *f (char * (*g) (char **, int), char **p, ...)
3602 s = g (p, va_arg (v,int));
3607 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3608 function prototypes and stuff, but not '\xHH' hex character constants.
3609 These don't provoke an error unfortunately, instead are silently treated
3610 as 'x'. The following induces an error, until -std is added to get
3611 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3612 array size at least. It's necessary to write '\x00'==0 to get something
3613 that's true only with -std. */
3614 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3617 inside strings and character constants. */
3619 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3621 int test (int i, double x);
3622 struct s1 {int (*f) (int a);};
3623 struct s2 {int (*f) (double a);};
3624 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3630 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3635 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3636 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638 CC="$ac_save_CC $ac_arg"
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3654 { (case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_try") 2>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_try") 2>&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 ac_cv_prog_cc_c89=$ac_arg
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3681 rm -f core conftest.err conftest.$ac_objext
3682 test "x$ac_cv_prog_cc_c89" != "xno" && break
3684 rm -f conftest.$ac_ext
3689 case "x$ac_cv_prog_cc_c89" in
3691 { echo "$as_me:$LINENO: result: none needed" >&5
3692 echo "${ECHO_T}none needed" >&6; } ;;
3694 { echo "$as_me:$LINENO: result: unsupported" >&5
3695 echo "${ECHO_T}unsupported" >&6; } ;;
3697 CC="$CC $ac_cv_prog_cc_c89"
3698 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3699 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 ac_cpp='$CXXCPP $CPPFLAGS'
3711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3714 if test -z "$CXX"; then
3715 if test -n "$CCC"; then
3718 if test -n "$ac_tool_prefix"; then
3719 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3725 if test "${ac_cv_prog_CXX+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 if test -n "$CXX"; then
3729 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3738 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 if test -n "$CXX"; then
3750 { echo "$as_me:$LINENO: result: $CXX" >&5
3751 echo "${ECHO_T}$CXX" >&6; }
3753 { echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6; }
3758 test -n "$CXX" && break
3761 if test -z "$CXX"; then
3763 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3765 # Extract the first word of "$ac_prog", so it can be a program name with args.
3766 set dummy $ac_prog; ac_word=$2
3767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3769 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 if test -n "$ac_ct_CXX"; then
3773 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3782 ac_cv_prog_ac_ct_CXX="$ac_prog"
3783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3793 if test -n "$ac_ct_CXX"; then
3794 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3795 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3797 { echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6; }
3802 test -n "$ac_ct_CXX" && break
3805 if test "x$ac_ct_CXX" = x; then
3808 case $cross_compiling:$ac_tool_warned in
3810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3811 whose name does not start with the host triplet. If you think this
3812 configuration is useful to you, please write to autoconf@gnu.org." >&5
3813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3814 whose name does not start with the host triplet. If you think this
3815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3816 ac_tool_warned=yes ;;
3824 # Provide some information about the compiler.
3825 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3826 ac_compiler=`set X $ac_compile; echo $2`
3827 { (ac_try="$ac_compiler --version >&5"
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_compiler --version >&5") 2>&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }
3837 { (ac_try="$ac_compiler -v >&5"
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843 (eval "$ac_compiler -v >&5") 2>&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }
3847 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }
3858 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3859 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3860 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 cat >conftest.$ac_ext <<_ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3881 rm -f conftest.$ac_objext
3882 if { (ac_try="$ac_compile"
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888 (eval "$ac_compile") 2>conftest.er1
3890 grep -v '^ *+' conftest.er1 >conftest.err
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3896 { (case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_try") 2>&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; } &&
3905 { ac_try='test -s conftest.$ac_objext'
3906 { (case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911 (eval "$ac_try") 2>&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; }; then
3917 echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3927 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3928 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3929 GXX=`test $ac_compiler_gnu = yes && echo yes`
3930 ac_test_CXXFLAGS=${CXXFLAGS+set}
3931 ac_save_CXXFLAGS=$CXXFLAGS
3932 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3933 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3934 if test "${ac_cv_prog_cxx_g+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3938 ac_cxx_werror_flag=yes
3941 cat >conftest.$ac_ext <<_ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3956 rm -f conftest.$ac_objext
3957 if { (ac_try="$ac_compile"
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_compile") 2>conftest.er1
3965 grep -v '^ *+' conftest.er1 >conftest.err
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3971 { (case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_try") 2>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_try") 2>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 ac_cv_prog_cxx_g=yes
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3996 cat >conftest.$ac_ext <<_ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4026 { (case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_try") 2>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_try") 2>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4050 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4076 grep -v '^ *+' conftest.er1 >conftest.err
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4082 { (case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_try") 2>&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try='test -s conftest.$ac_objext'
4092 { (case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_try") 2>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_cv_prog_cxx_g=yes
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4118 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4119 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4120 if test "$ac_test_CXXFLAGS" = set; then
4121 CXXFLAGS=$ac_save_CXXFLAGS
4122 elif test $ac_cv_prog_cxx_g = yes; then
4123 if test "$GXX" = yes; then
4129 if test "$GXX" = yes; then
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4147 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4148 # On Suns, sometimes $CPP names a directory.
4149 if test -n "$CPP" && test -d "$CPP"; then
4152 if test -z "$CPP"; then
4153 if test "${ac_cv_prog_CPP+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 # Double quotes because CPP needs to be expanded
4157 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4160 for ac_c_preproc_warn_flag in '' yes
4162 # Use a header file that comes with gcc, so configuring glibc
4163 # with a fresh cross-compiler works.
4164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4165 # <limits.h> exists even on freestanding compilers.
4166 # On the NeXT, cc -E runs the code through the compiler's parser,
4167 # not just through cpp. "Syntax error" is here to catch this case.
4168 cat >conftest.$ac_ext <<_ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4175 # include <limits.h>
4177 # include <assert.h>
4181 if { (ac_try="$ac_cpp conftest.$ac_ext"
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null; then
4194 if test -s conftest.err; then
4195 ac_cpp_err=$ac_c_preproc_warn_flag
4196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4203 if test -z "$ac_cpp_err"; then
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 # Broken: fails on valid input.
4213 rm -f conftest.err conftest.$ac_ext
4215 # OK, works on sane cases. Now check whether nonexistent headers
4216 # can be detected and how.
4217 cat >conftest.$ac_ext <<_ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <ac_nonexistent.h>
4225 if { (ac_try="$ac_cpp conftest.$ac_ext"
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4233 grep -v '^ *+' conftest.er1 >conftest.err
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } >/dev/null; then
4238 if test -s conftest.err; then
4239 ac_cpp_err=$ac_c_preproc_warn_flag
4240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4247 if test -z "$ac_cpp_err"; then
4248 # Broken: success on invalid input.
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 # Passes both tests.
4259 rm -f conftest.err conftest.$ac_ext
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4276 { echo "$as_me:$LINENO: result: $CPP" >&5
4277 echo "${ECHO_T}$CPP" >&6; }
4279 for ac_c_preproc_warn_flag in '' yes
4281 # Use a header file that comes with gcc, so configuring glibc
4282 # with a fresh cross-compiler works.
4283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284 # <limits.h> exists even on freestanding compilers.
4285 # On the NeXT, cc -E runs the code through the compiler's parser,
4286 # not just through cpp. "Syntax error" is here to catch this case.
4287 cat >conftest.$ac_ext <<_ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4294 # include <limits.h>
4296 # include <assert.h>
4300 if { (ac_try="$ac_cpp conftest.$ac_ext"
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4308 grep -v '^ *+' conftest.er1 >conftest.err
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } >/dev/null; then
4313 if test -s conftest.err; then
4314 ac_cpp_err=$ac_c_preproc_warn_flag
4315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4322 if test -z "$ac_cpp_err"; then
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 # Broken: fails on valid input.
4332 rm -f conftest.err conftest.$ac_ext
4334 # OK, works on sane cases. Now check whether nonexistent headers
4335 # can be detected and how.
4336 cat >conftest.$ac_ext <<_ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4342 #include <ac_nonexistent.h>
4344 if { (ac_try="$ac_cpp conftest.$ac_ext"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4352 grep -v '^ *+' conftest.er1 >conftest.err
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } >/dev/null; then
4357 if test -s conftest.err; then
4358 ac_cpp_err=$ac_c_preproc_warn_flag
4359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4366 if test -z "$ac_cpp_err"; then
4367 # Broken: success on invalid input.
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4373 # Passes both tests.
4378 rm -f conftest.err conftest.$ac_ext
4381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4382 rm -f conftest.err conftest.$ac_ext
4383 if $ac_preproc_ok; then
4386 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4387 See \`config.log' for more details." >&5
4388 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4389 See \`config.log' for more details." >&2;}
4390 { (exit 1); exit 1; }; }
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400 ac_cpp='$CXXCPP $CPPFLAGS'
4401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4404 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4405 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4406 if test -z "$CXXCPP"; then
4407 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 # Double quotes because CXXCPP needs to be expanded
4411 for CXXCPP in "$CXX -E" "/lib/cpp"
4414 for ac_cxx_preproc_warn_flag in '' yes
4416 # Use a header file that comes with gcc, so configuring glibc
4417 # with a fresh cross-compiler works.
4418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4419 # <limits.h> exists even on freestanding compilers.
4420 # On the NeXT, cc -E runs the code through the compiler's parser,
4421 # not just through cpp. "Syntax error" is here to catch this case.
4422 cat >conftest.$ac_ext <<_ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4429 # include <limits.h>
4431 # include <assert.h>
4435 if { (ac_try="$ac_cpp conftest.$ac_ext"
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4443 grep -v '^ *+' conftest.er1 >conftest.err
4445 cat conftest.err >&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } >/dev/null; then
4448 if test -s conftest.err; then
4449 ac_cpp_err=$ac_cxx_preproc_warn_flag
4450 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4457 if test -z "$ac_cpp_err"; then
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 # Broken: fails on valid input.
4467 rm -f conftest.err conftest.$ac_ext
4469 # OK, works on sane cases. Now check whether nonexistent headers
4470 # can be detected and how.
4471 cat >conftest.$ac_ext <<_ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 #include <ac_nonexistent.h>
4479 if { (ac_try="$ac_cpp conftest.$ac_ext"
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4487 grep -v '^ *+' conftest.er1 >conftest.err
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } >/dev/null; then
4492 if test -s conftest.err; then
4493 ac_cpp_err=$ac_cxx_preproc_warn_flag
4494 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4501 if test -z "$ac_cpp_err"; then
4502 # Broken: success on invalid input.
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 # Passes both tests.
4513 rm -f conftest.err conftest.$ac_ext
4516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4517 rm -f conftest.err conftest.$ac_ext
4518 if $ac_preproc_ok; then
4523 ac_cv_prog_CXXCPP=$CXXCPP
4526 CXXCPP=$ac_cv_prog_CXXCPP
4528 ac_cv_prog_CXXCPP=$CXXCPP
4530 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4531 echo "${ECHO_T}$CXXCPP" >&6; }
4533 for ac_cxx_preproc_warn_flag in '' yes
4535 # Use a header file that comes with gcc, so configuring glibc
4536 # with a fresh cross-compiler works.
4537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4538 # <limits.h> exists even on freestanding compilers.
4539 # On the NeXT, cc -E runs the code through the compiler's parser,
4540 # not just through cpp. "Syntax error" is here to catch this case.
4541 cat >conftest.$ac_ext <<_ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4548 # include <limits.h>
4550 # include <assert.h>
4554 if { (ac_try="$ac_cpp conftest.$ac_ext"
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4562 grep -v '^ *+' conftest.er1 >conftest.err
4564 cat conftest.err >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } >/dev/null; then
4567 if test -s conftest.err; then
4568 ac_cpp_err=$ac_cxx_preproc_warn_flag
4569 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4576 if test -z "$ac_cpp_err"; then
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4582 # Broken: fails on valid input.
4586 rm -f conftest.err conftest.$ac_ext
4588 # OK, works on sane cases. Now check whether nonexistent headers
4589 # can be detected and how.
4590 cat >conftest.$ac_ext <<_ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 #include <ac_nonexistent.h>
4598 if { (ac_try="$ac_cpp conftest.$ac_ext"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } >/dev/null; then
4611 if test -s conftest.err; then
4612 ac_cpp_err=$ac_cxx_preproc_warn_flag
4613 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4620 if test -z "$ac_cpp_err"; then
4621 # Broken: success on invalid input.
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 # Passes both tests.
4632 rm -f conftest.err conftest.$ac_ext
4635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4636 rm -f conftest.err conftest.$ac_ext
4637 if $ac_preproc_ok; then
4640 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4641 See \`config.log' for more details." >&5
4642 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4643 See \`config.log' for more details." >&2;}
4644 { (exit 1); exit 1; }; }
4648 ac_cpp='$CPP $CPPFLAGS'
4649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4654 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4655 if test "${lt_cv_path_SED+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 # Loop through the user's path and test for sed and gsed.
4659 # Then use that list of sed's as ones to test for truncation.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for lt_ac_prog in sed gsed; do
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4668 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4675 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4676 # along with /bin/sed that truncates output.
4677 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4678 test ! -f $lt_ac_sed && continue
4679 cat /dev/null > conftest.in
4681 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4682 # Check for GNU sed and select it if it is found.
4683 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4684 lt_cv_path_SED=$lt_ac_sed
4688 cat conftest.in conftest.in >conftest.tmp
4689 mv conftest.tmp conftest.in
4690 cp conftest.in conftest.nl
4692 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4693 cmp -s conftest.out conftest.nl || break
4694 # 10000 chars as input seems more than enough
4695 test $lt_ac_count -gt 10 && break
4696 lt_ac_count=`expr $lt_ac_count + 1`
4697 if test $lt_ac_count -gt $lt_ac_max; then
4698 lt_ac_max=$lt_ac_count
4699 lt_cv_path_SED=$lt_ac_sed