2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: gcc-bugs@gcc.gnu.org about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
241 SHELL
=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE
= GREP_OPTIONS
=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir
=.
/$as_dir;;
286 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
290 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs
="'$as_qdir' $as_dirs"
294 as_dir
=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
320 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
355 as_val
=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status
=$?
; test $as_status -eq 0 && as_status
=1
369 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit
$as_status
376 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
383 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
395 as_me
=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits
='0123456789'
419 as_cr_alnum
=$as_cr_Letters$as_cr_digits
422 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
423 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x
"$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C
= ECHO_N
= ECHO_T
=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
466 rm -f conf$$ conf$$.exe conf$$.
file
467 if test -d conf$$.dir
; then
468 rm -f conf$$.dir
/conf$$.
file
471 mkdir conf$$.dir
2>/dev
/null
473 if (echo >conf$$.
file) 2>/dev
/null
; then
474 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
482 elif ln conf$$.
file conf$$
2>/dev
/null
; then
490 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
491 rmdir conf$$.dir
2>/dev
/null
493 if mkdir
-p .
2>/dev
/null
; then
494 as_mkdir_p
='mkdir -p "$as_dir"'
496 test -d .
/-p && rmdir .
/-p
500 if test -x / >/dev
/null
2>&1; then
503 if ls -dL / >/dev
/null
2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p
=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev
/null
6>&1
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
550 PACKAGE_NAME
='cpplib'
551 PACKAGE_TARNAME
='cpplib'
553 PACKAGE_STRING
='cpplib '
554 PACKAGE_BUGREPORT
='gcc-bugs@gcc.gnu.org'
557 ac_unique_file
="ucnid.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_subst_vars
='LTLIBOBJS
629 ENABLE_BUILD_WITH_CXX
684 program_transform_name
697 enable_option_checking
699 enable_build_with_cxx
704 enable_maintainer_mode
707 ac_precious_vars
='build_alias
722 # Initialize some variables set by options.
724 ac_init_version
=false
725 ac_unrecognized_opts
=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
736 program_transform_name
=s
,x
,x
,
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir
='${exec_prefix}/bin'
751 sbindir
='${exec_prefix}/sbin'
752 libexecdir
='${exec_prefix}/libexec'
753 datarootdir
='${prefix}/share'
754 datadir
='${datarootdir}'
755 sysconfdir
='${prefix}/etc'
756 sharedstatedir
='${prefix}/com'
757 localstatedir
='${prefix}/var'
758 includedir
='${prefix}/include'
759 oldincludedir
='/usr/include'
760 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir
='${datarootdir}/info'
766 libdir
='${exec_prefix}/lib'
767 localedir
='${datarootdir}/locale'
768 mandir
='${datarootdir}/man'
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\
$ac_option
782 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 # Accept the important Cygnus configure options, so we can diagnose typos.
788 case $ac_dashdash$ac_option in
792 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
794 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
797 -build |
--build |
--buil |
--bui |
--bu)
798 ac_prev
=build_alias
;;
799 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
800 build_alias
=$ac_optarg ;;
802 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
803 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
804 ac_prev
=cache_file
;;
805 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
806 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
807 cache_file
=$ac_optarg ;;
810 cache_file
=config.cache
;;
812 -datadir |
--datadir |
--datadi |
--datad)
814 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
815 datadir
=$ac_optarg ;;
817 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
818 |
--dataroo |
--dataro |
--datar)
819 ac_prev
=datarootdir
;;
820 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
821 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
822 datarootdir
=$ac_optarg ;;
824 -disable-* |
--disable-*)
825 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
828 as_fn_error
"invalid feature name: $ac_useropt"
829 ac_useropt_orig
=$ac_useropt
830 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in
835 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
836 ac_unrecognized_sep
=', ';;
838 eval enable_
$ac_useropt=no
;;
840 -docdir |
--docdir |
--docdi |
--doc |
--do)
842 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
845 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
847 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
850 -enable-* |
--enable-*)
851 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
854 as_fn_error
"invalid feature name: $ac_useropt"
855 ac_useropt_orig
=$ac_useropt
856 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857 case $ac_user_opts in
861 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
862 ac_unrecognized_sep
=', ';;
864 eval enable_
$ac_useropt=\
$ac_optarg ;;
866 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
867 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
868 |
--exec |
--exe |
--ex)
869 ac_prev
=exec_prefix
;;
870 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
871 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
872 |
--exec=* |
--exe=* |
--ex=*)
873 exec_prefix
=$ac_optarg ;;
875 -gas |
--gas |
--ga |
--g)
876 # Obsolete; use --with-gas.
879 -help |
--help |
--hel |
--he |
-h)
881 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
882 ac_init_help
=recursive
;;
883 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
884 ac_init_help
=short
;;
886 -host |
--host |
--hos |
--ho)
887 ac_prev
=host_alias
;;
888 -host=* |
--host=* |
--hos=* |
--ho=*)
889 host_alias
=$ac_optarg ;;
891 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
893 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
895 htmldir
=$ac_optarg ;;
897 -includedir |
--includedir |
--includedi |
--included |
--include \
898 |
--includ |
--inclu |
--incl |
--inc)
899 ac_prev
=includedir
;;
900 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
901 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
902 includedir
=$ac_optarg ;;
904 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
906 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
907 infodir
=$ac_optarg ;;
909 -libdir |
--libdir |
--libdi |
--libd)
911 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
914 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
915 |
--libexe |
--libex |
--libe)
916 ac_prev
=libexecdir
;;
917 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
918 |
--libexe=* |
--libex=* |
--libe=*)
919 libexecdir
=$ac_optarg ;;
921 -localedir |
--localedir |
--localedi |
--localed |
--locale)
923 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
924 localedir
=$ac_optarg ;;
926 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
927 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
928 ac_prev
=localstatedir
;;
929 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
930 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
931 localstatedir
=$ac_optarg ;;
933 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
935 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
939 # Obsolete; use --without-fp.
942 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
943 |
--no-cr |
--no-c |
-n)
946 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
947 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
950 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
951 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
952 |
--oldin |
--oldi |
--old |
--ol |
--o)
953 ac_prev
=oldincludedir
;;
954 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
955 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
956 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
957 oldincludedir
=$ac_optarg ;;
959 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
961 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
964 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
965 |
--program-pre |
--program-pr |
--program-p)
966 ac_prev
=program_prefix
;;
967 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
968 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
969 program_prefix
=$ac_optarg ;;
971 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
972 |
--program-suf |
--program-su |
--program-s)
973 ac_prev
=program_suffix
;;
974 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
975 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
976 program_suffix
=$ac_optarg ;;
978 -program-transform-name |
--program-transform-name \
979 |
--program-transform-nam |
--program-transform-na \
980 |
--program-transform-n |
--program-transform- \
981 |
--program-transform |
--program-transfor \
982 |
--program-transfo |
--program-transf \
983 |
--program-trans |
--program-tran \
984 |
--progr-tra |
--program-tr |
--program-t)
985 ac_prev
=program_transform_name
;;
986 -program-transform-name=* |
--program-transform-name=* \
987 |
--program-transform-nam=* |
--program-transform-na=* \
988 |
--program-transform-n=* |
--program-transform-=* \
989 |
--program-transform=* |
--program-transfor=* \
990 |
--program-transfo=* |
--program-transf=* \
991 |
--program-trans=* |
--program-tran=* \
992 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
993 program_transform_name
=$ac_optarg ;;
995 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
997 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1000 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1002 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1005 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1006 |
-silent |
--silent |
--silen |
--sile |
--sil)
1009 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1011 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1013 sbindir
=$ac_optarg ;;
1015 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1016 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1017 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1019 ac_prev
=sharedstatedir
;;
1020 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1021 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1022 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1024 sharedstatedir
=$ac_optarg ;;
1026 -site |
--site |
--sit)
1028 -site=* |
--site=* |
--sit=*)
1031 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1033 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1034 srcdir
=$ac_optarg ;;
1036 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1037 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1038 ac_prev
=sysconfdir
;;
1039 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1040 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1041 sysconfdir
=$ac_optarg ;;
1043 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1044 ac_prev
=target_alias
;;
1045 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1046 target_alias
=$ac_optarg ;;
1048 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1051 -version |
--version |
--versio |
--versi |
--vers |
-V)
1052 ac_init_version
=: ;;
1055 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1058 as_fn_error
"invalid package name: $ac_useropt"
1059 ac_useropt_orig
=$ac_useropt
1060 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1065 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1066 ac_unrecognized_sep
=', ';;
1068 eval with_
$ac_useropt=\
$ac_optarg ;;
1070 -without-* |
--without-*)
1071 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1074 as_fn_error
"invalid package name: $ac_useropt"
1075 ac_useropt_orig
=$ac_useropt
1076 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1081 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1082 ac_unrecognized_sep
=', ';;
1084 eval with_
$ac_useropt=no
;;
1087 # Obsolete; use --with-x.
1090 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1091 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1092 ac_prev
=x_includes
;;
1093 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1094 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1095 x_includes
=$ac_optarg ;;
1097 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1098 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1099 ac_prev
=x_libraries
;;
1100 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1101 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1102 x_libraries
=$ac_optarg ;;
1104 -*) as_fn_error
"unrecognized option: \`$ac_option'
1105 Try \`$0 --help' for more information."
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 case $ac_envvar in #(
1112 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1113 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1115 eval $ac_envvar=\
$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1122 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 if test -n "$ac_prev"; then
1130 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1131 as_fn_error
"missing argument to $ac_option"
1134 if test -n "$ac_unrecognized_opts"; then
1135 case $enable_option_checking in
1137 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1138 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1142 # Check all directory arguments for consistency.
1143 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val
=\$
$ac_var
1149 # Remove trailing slashes.
1152 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1153 eval $ac_var=\
$ac_val;;
1155 # Be sure to have absolute directory names.
1157 [\\/$
]* | ?
:[\\/]* ) continue;;
1158 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1160 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1168 target
=$target_alias
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x
; then
1172 if test "x$build_alias" = x
; then
1173 cross_compiling
=maybe
1174 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1175 If a cross compiler is detected then cross compile mode will be used." >&2
1176 elif test "x$build_alias" != "x$host_alias"; then
1182 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1184 test "$silent" = yes && exec 6>/dev
/null
1187 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1188 ac_ls_di
=`ls -di .` &&
1189 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1190 as_fn_error
"working directory cannot be determined"
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192 as_fn_error
"pwd does not report name of working directory"
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197 ac_srcdir_defaulted
=yes
1198 # Try the directory containing this script, then the parent directory.
1199 ac_confdir
=`$as_dirname -- "$as_myself" ||
1200 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201 X"$as_myself" : 'X\(//\)[^/]' \| \
1202 X"$as_myself" : 'X\(//\)$' \| \
1203 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1204 $as_echo X"$as_myself" |
1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1227 ac_srcdir_defaulted
=no
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1231 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1233 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1235 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1237 # When building in place, set srcdir=.
1238 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241 # Remove unnecessary trailing slashes from srcdir.
1242 # Double slashes in file names in object file debugging info
1243 # mess up M-x gdb in Emacs.
1245 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1247 for ac_var
in $ac_precious_vars; do
1248 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1249 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1250 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1251 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1255 # Report the --help message.
1257 if test "$ac_init_help" = "long"; then
1258 # Omit some internal or obsolete options to make the list less imposing.
1259 # This message is too long to be a string in the A/UX 3.1 sh.
1261 \`configure' configures cpplib to adapt to many kinds of systems.
1263 Usage: $0 [OPTION]... [VAR=VALUE]...
1265 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1266 VAR=VALUE. See below for descriptions of some of the useful variables.
1268 Defaults for the options are specified in brackets.
1271 -h, --help display this help and exit
1272 --help=short display options specific to this package
1273 --help=recursive display the short help of all the included packages
1274 -V, --version display version information and exit
1275 -q, --quiet, --silent do not print \`checking...' messages
1276 --cache-file=FILE cache test results in FILE [disabled]
1277 -C, --config-cache alias for \`--cache-file=config.cache'
1278 -n, --no-create do not create output files
1279 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1281 Installation directories:
1282 --prefix=PREFIX install architecture-independent files in PREFIX
1283 [$ac_default_prefix]
1284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1287 By default, \`make install' will install all the files in
1288 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1289 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1290 for instance \`--prefix=\$HOME'.
1292 For better control, use the options below.
1294 Fine tuning of the installation directories:
1295 --bindir=DIR user executables [EPREFIX/bin]
1296 --sbindir=DIR system admin executables [EPREFIX/sbin]
1297 --libexecdir=DIR program executables [EPREFIX/libexec]
1298 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1299 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1300 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1301 --libdir=DIR object code libraries [EPREFIX/lib]
1302 --includedir=DIR C header files [PREFIX/include]
1303 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1306 --infodir=DIR info documentation [DATAROOTDIR/info]
1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1308 --mandir=DIR man documentation [DATAROOTDIR/man]
1309 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1310 --htmldir=DIR html documentation [DOCDIR]
1311 --dvidir=DIR dvi documentation [DOCDIR]
1312 --pdfdir=DIR pdf documentation [DOCDIR]
1313 --psdir=DIR ps documentation [DOCDIR]
1319 --build=BUILD configure
for building on BUILD
[guessed
]
1320 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1321 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1325 if test -n "$ac_init_help"; then
1326 case $ac_init_help in
1327 short | recursive
) echo "Configuration of cpplib :";;
1332 --disable-option-checking ignore unrecognized
--enable/--with options
1333 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1334 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1335 --disable-largefile omit support
for large files
1336 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1337 --enable-werror-always enable -Werror despite compiler version
1338 --disable-rpath do not hardcode runtime library paths
1339 --enable-maintainer-mode enable rules only needed by maintainers
1340 --enable-checking enable expensive run-time checks
1343 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1344 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1345 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1346 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1347 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1349 Some influential environment variables:
1350 CC C compiler command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1353 nonstandard directory <lib dir>
1354 LIBS libraries to pass to the linker, e.g. -l<library>
1355 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1356 you have headers in a nonstandard directory <include dir>
1357 CXX C++ compiler command
1358 CXXFLAGS C++ compiler flags
1360 CXXCPP C++ preprocessor
1362 Use these variables to override the choices made by `configure' or to
help
1363 it to
find libraries and programs with nonstandard names
/locations.
1365 Report bugs to
<gcc-bugs@gcc.gnu.org
>.
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1373 test -d "$ac_dir" ||
1374 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1379 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1381 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1382 # A ".." for each directory in $ac_dir_suffix.
1383 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1384 case $ac_top_builddir_sub in
1385 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1386 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1389 ac_abs_top_builddir
=$ac_pwd
1390 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1391 # for backward compatibility:
1392 ac_top_builddir
=$ac_top_build_prefix
1395 .
) # We are building in place.
1397 ac_top_srcdir
=$ac_top_builddir_sub
1398 ac_abs_top_srcdir
=$ac_pwd ;;
1399 [\\/]* | ?
:[\\/]* ) # Absolute name.
1400 ac_srcdir
=$srcdir$ac_dir_suffix;
1401 ac_top_srcdir
=$srcdir
1402 ac_abs_top_srcdir
=$srcdir ;;
1404 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1405 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1406 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1408 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1410 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1411 # Check for guested configure.
1412 if test -f "$ac_srcdir/configure.gnu"; then
1414 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1415 elif test -f "$ac_srcdir/configure"; then
1417 $SHELL "$ac_srcdir/configure" --help=recursive
1419 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1421 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1425 test -n "$ac_init_help" && exit $ac_status
1426 if $ac_init_version; then
1429 generated by GNU Autoconf
2.64
1431 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1432 This configure
script is free software
; the Free Software Foundation
1433 gives unlimited permission to copy
, distribute and modify it.
1438 ## ------------------------ ##
1439 ## Autoconf initialization. ##
1440 ## ------------------------ ##
1442 # ac_fn_c_try_compile LINENO
1443 # --------------------------
1444 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1445 ac_fn_c_try_compile
()
1447 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1448 rm -f conftest.
$ac_objext
1449 if { { ac_try
="$ac_compile"
1451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1452 *) ac_try_echo=$ac_try;;
1454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1455 $as_echo "$ac_try_echo"; } >&5
1456 (eval "$ac_compile") 2>conftest.err
1458 if test -s conftest.err; then
1459 grep -v '^ *+' conftest.err >conftest.er1
1460 cat conftest.er1 >&5
1461 mv -f conftest.er1 conftest.err
1463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1464 test $ac_status = 0; } && {
1465 test -z "$ac_c_werror_flag" ||
1466 test ! -s conftest.err
1467 } && test -s conftest.$ac_objext; then :
1470 $as_echo "$as_me: failed program was:" >&5
1471 sed 's/^/| /' conftest.$ac_ext >&5
1475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1478 } # ac_fn_c_try_compile
1480 # ac_fn_cxx_try_compile LINENO
1481 # ----------------------------
1482 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_cxx_try_compile ()
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1490 *) ac_try_echo
=$ac_try;;
1492 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1496 if test -s conftest.err
; then
1497 grep -v '^ *+' conftest.err
>conftest.er1
1498 cat conftest.er1
>&5
1499 mv -f conftest.er1 conftest.err
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_cxx_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.
$ac_objext; then :
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.
$ac_ext >&5
1513 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1516 } # ac_fn_cxx_try_compile
1518 # ac_fn_c_try_cpp LINENO
1519 # ----------------------
1520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1523 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1524 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } >/dev/null && {
1540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1555 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1556 # -------------------------------------------------------
1557 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1558 # the include files in INCLUDES and setting the cache variable VAR
1560 ac_fn_c_check_header_mongrel ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565 $as_echo_n "checking for $2... " >&6; }
1566 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1567 $as_echo_n "(cached) " >&6
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1573 # Is the header compilable?
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1575 $as_echo_n "checking $2 usability... " >&6; }
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1581 if ac_fn_c_try_compile "$LINENO"; then :
1582 ac_header_compiler=yes
1584 ac_header_compiler=no
1586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1588 $as_echo "$ac_header_compiler" >&6; }
1590 # Is the header present?
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1592 $as_echo_n "checking $2 presence... " >&6; }
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1597 if ac_fn_c_try_cpp "$LINENO"; then :
1598 ac_header_preproc=yes
1600 ac_header_preproc=no
1602 rm -f conftest.err conftest.$ac_ext
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1604 $as_echo "$ac_header_preproc" >&6; }
1606 # So? What about this header?
1607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1610 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1616 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1618 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1620 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1622 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1626 ## ----------------------------------- ##
1627 ## Report this to gcc-bugs@gcc.gnu.org ##
1628 ## ----------------------------------- ##
1630 ) | sed "s/^/$as_me: WARNING: /" >&2
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 $as_echo_n "checking for $2... " >&6; }
1635 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1636 $as_echo_n "(cached) " >&6
1638 eval "$3=\$ac_header_compiler"
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 } # ac_fn_c_check_header_mongrel
1648 # ac_fn_c_try_run LINENO
1649 # ----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1651 # that executables *can* be run.
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_link"
1657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1658 *) ac_try_echo
=$ac_try;;
1660 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>&5
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1666 { { case "(($ac_try" in
1667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_try") 2>&5
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; }; }; then :
1678 $as_echo "$as_me: program exited with status $ac_status" >&5
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1682 ac_retval=$ac_status
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691 # -------------------------------------------------------
1692 # Tests whether HEADER exists and can be compiled using the include files in
1693 # INCLUDES, setting the cache variable VAR accordingly.
1694 ac_fn_c_check_header_compile ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1700 $as_echo_n "(cached) " >&6
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1707 if ac_fn_c_try_compile "$LINENO"; then :
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719 } # ac_fn_c_check_header_compile
1721 # ac_fn_cxx_try_cpp LINENO
1722 # ------------------------
1723 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_cxx_try_cpp ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_cpp conftest.$ac_ext"
1729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1730 *) ac_try_echo
=$ac_try;;
1732 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1736 if test -s conftest.err
; then
1737 grep -v '^ *+' conftest.err
>conftest.er1
1738 cat conftest.er1
>&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } >/dev
/null
&& {
1743 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1744 test ! -s conftest.err
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.
$ac_ext >&5
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1756 } # ac_fn_cxx_try_cpp
1758 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1759 # ---------------------------------------------------------
1760 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1761 # the include files in INCLUDES and setting the cache variable VAR
1763 ac_fn_cxx_check_header_mongrel
()
1765 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1766 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 $as_echo_n "(cached) " >&6
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1776 # Is the header compilable?
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1778 $as_echo_n "checking $2 usability... " >&6; }
1779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1784 if ac_fn_cxx_try_compile
"$LINENO"; then :
1785 ac_header_compiler
=yes
1787 ac_header_compiler
=no
1789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1791 $as_echo "$ac_header_compiler" >&6; }
1793 # Is the header present?
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1795 $as_echo_n "checking $2 presence... " >&6; }
1796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1800 if ac_fn_cxx_try_cpp
"$LINENO"; then :
1801 ac_header_preproc
=yes
1803 ac_header_preproc
=no
1805 rm -f conftest.err conftest.
$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1807 $as_echo "$ac_header_preproc" >&6; }
1809 # So? What about this header?
1810 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1813 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1819 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1821 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1823 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1825 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829 ## ----------------------------------- ##
1830 ## Report this to gcc-bugs@gcc.gnu.org ##
1831 ## ----------------------------------- ##
1833 ) |
sed "s/^/$as_me: WARNING: /" >&2
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1841 eval "$3=\$ac_header_compiler"
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1849 } # ac_fn_cxx_check_header_mongrel
1851 # ac_fn_cxx_try_run LINENO
1852 # ------------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1855 ac_fn_cxx_try_run
()
1857 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1858 if { { ac_try
="$ac_link"
1860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>&5
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869 { { case "(($ac_try" in
1870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1871 *) ac_try_echo
=$ac_try;;
1873 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_try") 2>&5
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; }; }; then :
1881 $as_echo "$as_me: program exited with status $ac_status" >&5
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.
$ac_ext >&5
1885 ac_retval
=$ac_status
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1891 } # ac_fn_cxx_try_run
1893 # ac_fn_cxx_try_link LINENO
1894 # -------------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_link
()
1898 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1899 rm -f conftest.
$ac_objext conftest
$ac_exeext
1900 if { { ac_try
="$ac_link"
1902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_cxx_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 $as_test_x conftest$ac_exeext
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937 } # ac_fn_cxx_try_link
1939 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1940 # ---------------------------------------------
1941 # Tests whether TYPE exists after having included INCLUDES, setting cache
1942 # variable VAR accordingly.
1943 ac_fn_cxx_check_type ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1964 if ac_fn_cxx_try_compile "$LINENO"; then :
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1977 if ac_fn_cxx_try_compile "$LINENO"; then :
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991 } # ac_fn_cxx_check_type
1993 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
1994 # ----------------------------------------------
1995 # Tries to find the compile-time value of EXPR in a program that includes
1996 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1998 ac_fn_cxx_compute_int ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 if test "$cross_compiling" = yes; then
2002 # Depending upon the size, compute the lo and hi bounds.
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2009 static int test_array [1 - 2 * !(($2) >= 0)];
2016 if ac_fn_cxx_try_compile "$LINENO"; then :
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2025 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2032 if ac_fn_cxx_try_compile "$LINENO"; then :
2033 ac_hi=$ac_mid; break
2035 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2036 if test $ac_lo -le $ac_mid; then
2040 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2051 static int test_array [1 - 2 * !(($2) < 0)];
2058 if ac_fn_cxx_try_compile "$LINENO"; then :
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2067 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2074 if ac_fn_cxx_try_compile "$LINENO"; then :
2075 ac_lo=$ac_mid; break
2077 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2078 if test $ac_mid -le $ac_hi; then
2082 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 # Binary search between lo and hi bounds.
2093 while test "x$ac_lo" != "x$ac_hi"; do
2094 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2101 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108 if ac_fn_cxx_try_compile "$LINENO"; then :
2111 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2123 static long int longval () { return $2; }
2124 static unsigned long int ulongval () { return $2; }
2131 FILE *f = fopen ("conftest.val", "w");
2136 long int i = longval ();
2139 fprintf (f, "%ld", i);
2143 unsigned long int i = ulongval ();
2146 fprintf (f, "%lu", i);
2148 /* Do not output a trailing newline, as this causes \r\n confusion
2149 on some platforms. */
2150 return ferror (f) || fclose (f) != 0;
2156 if ac_fn_cxx_try_run "$LINENO"; then :
2157 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2162 conftest.$ac_objext conftest.beam conftest.$ac_ext
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2169 } # ac_fn_cxx_compute_int
2171 # ac_fn_cxx_check_func LINENO FUNC VAR
2172 # ------------------------------------
2173 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2174 ac_fn_cxx_check_func ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2180 $as_echo_n "(cached) " >&6
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2186 #define $2 innocuous_$2
2188 /* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char $2 (); below.
2190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2191 <limits.h> exists even on freestanding compilers. */
2194 # include <limits.h>
2196 # include <assert.h>
2201 /* Override any GCC internal prototype to avoid an error.
2202 Use char because int might match the return type of a GCC
2203 builtin and then its argument prototype would still apply. */
2208 /* The GNU C library defines this for functions which it implements
2209 to always fail with ENOSYS. Some functions are actually named
2210 something starting with __ and the normal name is an alias. */
2211 #if defined __stub_$2 || defined __stub___$2
2223 if ac_fn_cxx_try_link "$LINENO"; then :
2228 rm -f core conftest.err conftest.$ac_objext \
2229 conftest$ac_exeext conftest.$ac_ext
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236 } # ac_fn_cxx_check_func
2238 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2239 # --------------------------------------
2240 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2241 ac_fn_cxx_check_decl ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2245 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2247 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2248 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2249 $as_echo_n "(cached) " >&6
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2257 #ifndef $as_decl_name
2259 (void) $as_decl_use;
2261 (void) $as_decl_name;
2269 if ac_fn_cxx_try_compile "$LINENO"; then :
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2281 } # ac_fn_cxx_check_decl
2282 cat >config.log <<_ACEOF
2283 This file contains any messages produced by compilers while
2284 running configure, to aid debugging if configure makes a mistake.
2286 It was created by cpplib $as_me , which was
2287 generated by GNU Autoconf 2.64. Invocation command line was
2299 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2300 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2301 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2302 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2303 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2305 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2306 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2308 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2309 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2310 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2311 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2312 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2313 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2314 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir=.
2323 $as_echo "PATH: $as_dir"
2339 # Keep a trace of the command line.
2340 # Strip out --no-create and --no-recursion so they do not pile up.
2341 # Strip out --silent because we don't want to record it for future runs.
2342 # Also quote any args containing shell meta-characters.
2343 # Make two passes to allow for proper duplicate-argument suppression.
2347 ac_must_keep_next=false
2353 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2355 | -silent | --silent | --silen | --sile | --sil)
2358 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2361 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2363 as_fn_append ac_configure_args1 " '$ac_arg'"
2364 if test $ac_must_keep_next = true; then
2365 ac_must_keep_next=false # Got value, back to normal.
2368 *=* | --config-cache | -C | -disable-* | --disable-* \
2369 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2370 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2371 | -with-* | --with-* | -without-* | --without-* | --x)
2372 case "$ac_configure_args0 " in
2373 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2376 -* ) ac_must_keep_next=true ;;
2379 as_fn_append ac_configure_args " '$ac_arg'"
2384 { ac_configure_args0=; unset ac_configure_args0;}
2385 { ac_configure_args1=; unset ac_configure_args1;}
2387 # When interrupted or exit'd, cleanup temporary files, and complete
2388 # config.log. We remove comments because anyway the quotes in there
2389 # would cause problems or look ugly.
2390 # WARNING: Use '\'' to represent an apostrophe within the trap.
2391 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2392 trap 'exit_status=$?
2393 # Save into config.log some information that might help in debugging.
2398 ## ---------------- ##
2399 ## Cache variables. ##
2400 ## ---------------- ##
2403 # The following way of writing the cache mishandles newlines in values,
2405 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2406 eval ac_val=\$$ac_var
2410 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2411 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2414 _ | IFS | as_nl) ;; #(
2415 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2416 *) { eval $ac_var=; unset $ac_var;} ;;
2421 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2422 *${as_nl}ac_space=\ *)
2424 "s/'\''/'\''\\\\'\'''\''/g;
2425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2428 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2436 ## ----------------- ##
2437 ## Output variables. ##
2438 ## ----------------- ##
2441 for ac_var in $ac_subst_vars
2443 eval ac_val=\$$ac_var
2445 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 $as_echo "$ac_var='\''$ac_val'\''"
2451 if test -n "$ac_subst_files"; then
2453 ## ------------------- ##
2454 ## File substitutions. ##
2455 ## ------------------- ##
2458 for ac_var in $ac_subst_files
2460 eval ac_val=\$$ac_var
2462 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464 $as_echo "$ac_var='\''$ac_val'\''"
2469 if test -s confdefs.h; then
2479 test "$ac_signal" != 0 &&
2480 $as_echo "$as_me: caught signal $ac_signal"
2481 $as_echo "$as_me: exit $exit_status"
2483 rm -f core *.core core.conftest.* &&
2484 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2487 for ac_signal in 1 2 13 15; do
2488 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2493 rm -f -r conftest* confdefs.h
2495 $as_echo "/* confdefs.h */" > confdefs.h
2497 # Predefined preprocessor variables.
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_NAME "$PACKAGE_NAME"
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_STRING "$PACKAGE_STRING"
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_URL "$PACKAGE_URL"
2524 # Let the site file select an alternate cache file if it wants to.
2525 # Prefer an explicitly selected file to automatically selected ones.
2528 if test -n "$CONFIG_SITE"; then
2529 ac_site_file1=$CONFIG_SITE
2530 elif test "x$prefix" != xNONE; then
2531 ac_site_file1=$prefix/share/config.site
2532 ac_site_file2=$prefix/etc/config.site
2534 ac_site_file1=$ac_default_prefix/share/config.site
2535 ac_site_file2=$ac_default_prefix/etc/config.site
2537 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2539 test "x$ac_site_file" = xNONE && continue
2540 if test -r "$ac_site_file"; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2542 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2543 sed 's/^/| /' "$ac_site_file" >&5
2548 if test -r "$cache_file"; then
2549 # Some versions of bash will fail to source /dev/null (special
2550 # files actually), so we avoid doing that.
2551 if test -f "$cache_file"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2553 $as_echo "$as_me: loading cache $cache_file" >&6;}
2555 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2556 *) . "./$cache_file";;
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2561 $as_echo "$as_me: creating cache $cache_file" >&6;}
2565 # Check that the precious variables saved in the cache have kept the same
2567 ac_cache_corrupted=false
2568 for ac_var in $ac_precious_vars; do
2569 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2570 eval ac_new_set=\$ac_env_${ac_var}_set
2571 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2572 eval ac_new_val=\$ac_env_${ac_var}_value
2573 case $ac_old_set,$ac_new_set in
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2576 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2577 ac_cache_corrupted=: ;;
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2580 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2581 ac_cache_corrupted=: ;;
2584 if test "x$ac_old_val" != "x$ac_new_val"; then
2585 # differences in whitespace do not lead to failure.
2586 ac_old_val_w=`echo x
$ac_old_val`
2587 ac_new_val_w=`echo x
$ac_new_val`
2588 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2590 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2591 ac_cache_corrupted=:
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2594 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2595 eval $ac_var=\$ac_old_val
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2598 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2600 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2603 # Pass precious variables to config.status.
2604 if test "$ac_new_set" = set; then
2606 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2607 *) ac_arg=$ac_var=$ac_new_val ;;
2609 case " $ac_configure_args " in
2610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2611 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2615 if $ac_cache_corrupted; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2619 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2620 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2622 ## -------------------- ##
2623 ## Main body of script. ##
2624 ## -------------------- ##
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2640 for ac_t in install-sh install.sh shtool; do
2641 if test -f "$ac_dir/$ac_t"; then
2643 ac_install_sh="$ac_aux_dir/$ac_t -c"
2648 if test -z "$ac_aux_dir"; then
2649 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2652 # These three variables are undocumented and unsupported,
2653 # and are intended to be withdrawn in a future Autoconf release.
2654 # They can cause serious problems if a builder's source tree is in a directory
2655 # whose full name contains unusual characters.
2656 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2657 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2658 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2661 # Make sure we can run config.sub.
2662 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2663 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2666 $as_echo_n "checking build system type... " >&6; }
2667 if test "${ac_cv_build+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2670 ac_build_alias=$build_alias
2671 test "x$ac_build_alias" = x &&
2672 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2673 test "x$ac_build_alias" = x &&
2674 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2675 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2676 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2680 $as_echo "$ac_cv_build" >&6; }
2681 case $ac_cv_build in
2683 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2686 ac_save_IFS=$IFS; IFS='-'
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2696 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2700 $as_echo_n "checking host system type... " >&6; }
2701 if test "${ac_cv_host+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2704 if test "x$host_alias" = x; then
2705 ac_cv_host=$ac_cv_build
2707 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2708 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2713 $as_echo "$ac_cv_host" >&6; }
2716 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2719 ac_save_IFS=$IFS; IFS='-'
2725 # Remember, the first character of IFS is used to create $*,
2726 # except with old shells:
2729 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2733 $as_echo_n "checking target system type... " >&6; }
2734 if test "${ac_cv_target+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2737 if test "x$target_alias" = x; then
2738 ac_cv_target=$ac_cv_host
2740 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2741 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2746 $as_echo "$ac_cv_target" >&6; }
2747 case $ac_cv_target in
2749 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2751 target=$ac_cv_target
2752 ac_save_IFS=$IFS; IFS='-'
2758 # Remember, the first character of IFS is used to create $*,
2759 # except with old shells:
2762 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2765 # The aliases save the names the user supplied, while $host etc.
2766 # will get canonicalized.
2767 test -n "$target_alias" &&
2768 test "$program_prefix$program_suffix$program_transform_name" = \
2770 program_prefix=${target_alias}-
2773 # Checks for programs.
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2775 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2777 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2778 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2779 $as_echo_n "(cached) " >&6
2781 cat >conftest.make <<\_ACEOF
2784 @echo '@@@%%%=$(MAKE)=@@@%%%'
2786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2787 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2789 eval ac_cv_prog_make_${ac_make}_set=yes;;
2791 eval ac_cv_prog_make_${ac_make}_set=no;;
2795 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797 $as_echo "yes" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2802 SET_MAKE="MAKE=${MAKE-make}"
2805 # Find a good install program. We prefer a C program (faster),
2806 # so one script is as good as another. But avoid the broken or
2807 # incompatible versions:
2808 # SysV /etc/install, /usr/sbin/install
2809 # SunOS /usr/etc/install
2810 # IRIX /sbin/install
2812 # AmigaOS /C/install, which installs bootblocks on floppy discs
2813 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2814 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2815 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2816 # OS/2's system install, which has a completely different semantic
2817 # ./install, which can be erroneously created by make from ./install.sh.
2818 # Reject install programs that cannot install multiple files.
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2820 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2821 if test -z "$INSTALL"; then
2822 if test "${ac_cv_path_install+set}" = set; then :
2823 $as_echo_n "(cached) " >&6
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 # Account for people who put trailing slashes in PATH elements.
2831 case $as_dir/ in #((
2832 ./ | .// | /[cC]/* | \
2833 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2834 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2837 # OSF1 and SCO ODT 3.0 have their own names for install.
2838 # Don't use installbsd from OSF since it installs stuff as root
2840 for ac_prog in ginstall scoinst install; do
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2843 if test $ac_prog = install &&
2844 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2845 # AIX install. It has an incompatible calling convention.
2847 elif test $ac_prog = install &&
2848 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2849 # program-specific install script used by HP pwplus--don't use.
2852 rm -rf conftest.one conftest.two conftest.dir
2853 echo one > conftest.one
2854 echo two > conftest.two
2856 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2857 test -s conftest.one && test -s conftest.two &&
2858 test -s conftest.dir/conftest.one &&
2859 test -s conftest.dir/conftest.two
2861 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2874 rm -rf conftest.one conftest.two conftest.dir
2877 if test "${ac_cv_path_install+set}" = set; then
2878 INSTALL=$ac_cv_path_install
2880 # As a last resort, use the slow shell script. Don't cache a
2881 # value for INSTALL within a source directory, because that will
2882 # break other packages using the cache if that directory is
2883 # removed, or if the value is a relative name.
2884 INSTALL=$ac_install_sh
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2888 $as_echo "$INSTALL" >&6; }
2890 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2891 # It thinks the first close brace ends the variable substitution.
2892 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2894 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2896 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 if test -n "$ac_tool_prefix"; then
2904 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2905 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if test "${ac_cv_prog_CC+set}" = set; then :
2909 $as_echo_n "(cached) " >&6
2911 if test -n "$CC"; then
2912 ac_cv_prog_CC="$CC" # Let the user override the test.
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 if test -n "$CC"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2934 $as_echo "$CC" >&6; }
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2942 if test -z "$ac_cv_prog_CC"; then
2944 # Extract the first word of "gcc", so it can be a program name with args.
2945 set dummy gcc; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2951 if test -n "$ac_ct_CC"; then
2952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 ac_cv_prog_ac_ct_CC="gcc"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2972 if test -n "$ac_ct_CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2974 $as_echo "$ac_ct_CC" >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2980 if test "x$ac_ct_CC" = x; then
2983 case $cross_compiling:$ac_tool_warned in
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2987 ac_tool_warned=yes ;;
2995 if test -z "$CC"; then
2996 if test -n "$ac_tool_prefix"; then
2997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2998 set dummy ${ac_tool_prefix}cc; ac_word=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if test "${ac_cv_prog_CC+set}" = set; then :
3002 $as_echo_n "(cached) " >&6
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_CC="${ac_tool_prefix}cc"
3015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 if test -n "$CC"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3027 $as_echo "$CC" >&6; }
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3036 if test -z "$CC"; then
3037 # Extract the first word of "cc", so it can be a program name with args.
3038 set dummy cc; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3056 ac_prog_rejected=yes
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 if test $ac_prog_rejected = yes; then
3068 # We found a bogon in the path, so make sure we never use it.
3069 set dummy $ac_cv_prog_CC
3071 if test $# != 0; then
3072 # We chose a different compiler from the bogus one.
3073 # However, it has the same basename, so the bogon will be chosen
3074 # first if we set CC to just the basename; use the full file name.
3076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3082 if test -n "$CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3092 if test -z "$CC"; then
3093 if test -n "$ac_tool_prefix"; then
3094 for ac_prog in cl.exe
3096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 if test -n "$CC"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3133 test -n "$CC" && break
3136 if test -z "$CC"; then
3138 for ac_prog in cl.exe
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
3147 if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 ac_cv_prog_ac_ct_CC="$ac_prog"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3170 $as_echo "$ac_ct_CC" >&6; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3177 test -n "$ac_ct_CC" && break
3180 if test "x$ac_ct_CC" = x; then
3183 case $cross_compiling:$ac_tool_warned in
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3187 ac_tool_warned=yes ;;
3196 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error "no acceptable C compiler found
in \
$PATH
3199 See \
`config.log' for more details." "$LINENO" 5; }
3201 # Provide some information about the compiler.
3202 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3205 for ac_option in --version -v -V -qversion; do
3206 { { ac_try="$ac_compiler $ac_option >&5"
3208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3209 *) ac_try_echo
=$ac_try;;
3211 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3215 if test -s conftest.err
; then
3217 ... rest of stderr output deleted ...
3218 10q' conftest.err
>conftest.er1
3219 cat conftest.er1
>&5
3220 rm -f conftest.er1 conftest.err
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }
3226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3237 ac_clean_files_save
=$ac_clean_files
3238 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3239 # Try to create an executable without -o first, disregard a.out.
3240 # It will help us diagnose broken compilers, and finding out an intuition
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3243 $as_echo_n "checking for C compiler default output file name... " >&6; }
3244 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3246 # The possible output files:
3247 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3250 for ac_file
in $ac_files
3253 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3254 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3259 if { { ac_try
="$ac_link_default"
3261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link_default") 2>&5
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3271 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3272 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3273 # so that the user can short-circuit this test for compilers unknown to
3275 for ac_file in $ac_files ''
3277 test -f "$ac_file" || continue
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3282 # We found the default executable, but exeext='' is most
3286 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3290 # We set ac_cv_exeext here because the later test for it is not
3291 # safe: cross compilers may not add the suffix if given an `-o'
3292 # argument, so we may need to know it at that point already.
3293 # Even if this section looks crufty: it has the advantage of
3300 test "$ac_cv_exeext" = no && ac_cv_exeext=
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3306 $as_echo "$ac_file" >&6; }
3307 if test -z "$ac_file"; then :
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's
/^
/|
/' conftest.$ac_ext >&5
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3313 { as_fn_set_status 77
3314 as_fn_error "C compiler cannot create executables
3315 See \`config.log
' for more details." "$LINENO" 5; }; }
3317 ac_exeext=$ac_cv_exeext
3319 # Check that the compiler produces executables we can run. If not, either
3320 # the compiler is broken, or we cross compile.
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3322 $as_echo_n "checking whether the C compiler works... " >&6; }
3323 # If not cross compiling, check that we can run a simple program.
3324 if test "$cross_compiling" != yes; then
3325 if { ac_try='.
/$ac_file'
3326 { { case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_try") 2>&5
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; }; then
3338 if test "$cross_compiling" = maybe; then
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3343 as_fn_error "cannot run C compiled programs.
3344 If you meant to cross compile, use \`--host'.
3345 See \`config.log' for more details.
" "$LINENO" 5; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3350 $as_echo "yes" >&6; }
3352 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3353 ac_clean_files=$ac_clean_files_save
3354 # Check that the compiler produces executables we can run. If not, either
3355 # the compiler is broken, or we cross compile.
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3357 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3359 $as_echo "$cross_compiling" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3362 $as_echo_n "checking
for suffix of executables...
" >&6; }
3363 if { { ac_try="$ac_link"
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3368 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_link") 2>&5
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3373 test $ac_status = 0; }; then :
3374 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3375 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3376 # work properly (i.e., refer to `conftest.exe'), while it won't with
3378 for ac_file in conftest.exe conftest conftest.*; do
3379 test -f "$ac_file" || continue
3381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3382 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390 as_fn_error "cannot compute suffix of executables: cannot compile and link
3391 See \`config.log' for more details.
" "$LINENO" 5; }
3393 rm -f conftest$ac_cv_exeext
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3395 $as_echo "$ac_cv_exeext" >&6; }
3397 rm -f conftest.$ac_ext
3398 EXEEXT=$ac_cv_exeext
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3401 $as_echo_n "checking
for suffix of object files...
" >&6; }
3402 if test "${ac_cv_objext+set}" = set; then :
3403 $as_echo_n "(cached
) " >&6
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3416 rm -f conftest.o conftest.obj
3417 if { { ac_try="$ac_compile"
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3422 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_compile") 2>&5
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3427 test $ac_status = 0; }; then :
3428 for ac_file in conftest.o conftest.obj conftest.*; do
3429 test -f "$ac_file" || continue;
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3437 $as_echo "$as_me: failed program was
:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error "cannot compute suffix of object files: cannot compile
3443 See \`config.log' for more details.
" "$LINENO" 5; }
3445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3448 $as_echo "$ac_cv_objext" >&6; }
3449 OBJEXT=$ac_cv_objext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3452 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3453 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3454 $as_echo_n "(cached
) " >&6
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3470 if ac_fn_c_try_compile "$LINENO"; then :
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3480 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3481 if test $ac_compiler_gnu = yes; then
3486 ac_test_CFLAGS=${CFLAGS+set}
3487 ac_save_CFLAGS=$CFLAGS
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3489 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3490 if test "${ac_cv_prog_cc_g+set}" = set; then :
3491 $as_echo_n "(cached
) " >&6
3493 ac_save_c_werror_flag=$ac_c_werror_flag
3494 ac_c_werror_flag=yes
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3508 if ac_fn_c_try_compile "$LINENO"; then :
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3523 if ac_fn_c_try_compile "$LINENO"; then :
3526 ac_c_werror_flag=$ac_save_c_werror_flag
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3539 if ac_fn_c_try_compile "$LINENO"; then :
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3550 $as_echo "$ac_cv_prog_cc_g" >&6; }
3551 if test "$ac_test_CFLAGS" = set; then
3552 CFLAGS=$ac_save_CFLAGS
3553 elif test $ac_cv_prog_cc_g = yes; then
3554 if test "$GCC" = yes; then
3560 if test "$GCC" = yes; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3567 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3568 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3569 $as_echo_n "(cached
) " >&6
3571 ac_cv_prog_cc_c89=no
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3577 #include <sys/types.h>
3578 #include <sys/stat.h>
3579 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3580 struct buf { int x; };
3581 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3582 static char *e (p, i)
3588 static char *f (char * (*g) (char **, int), char **p, ...)
3593 s = g (p, va_arg (v,int));
3598 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3599 function prototypes and stuff, but not '\xHH' hex character constants.
3600 These don't provoke an error unfortunately, instead are silently treated
3601 as 'x'. The following induces an error, until -std is added to get
3602 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3603 array size at least. It's necessary to write '\x00'==0 to get something
3604 that's true only with -std. */
3605 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3607 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3608 inside strings and character constants. */
3610 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3612 int test (int i, double x);
3613 struct s1 {int (*f) (int a);};
3614 struct s2 {int (*f) (double a);};
3615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3621 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3626 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3627 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3629 CC="$ac_save_CC $ac_arg"
3630 if ac_fn_c_try_compile "$LINENO"; then :
3631 ac_cv_prog_cc_c89=$ac_arg
3633 rm -f core conftest.err conftest.$ac_objext
3634 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3636 rm -f conftest.$ac_ext
3641 case "x
$ac_cv_prog_cc_c89" in
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3644 $as_echo "none needed
" >&6; } ;;
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3647 $as_echo "unsupported
" >&6; } ;;
3649 CC="$CC $ac_cv_prog_cc_c89"
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3651 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3653 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664 ac_cpp='$CXXCPP $CPPFLAGS'
3665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3668 if test -z "$CXX"; then
3669 if test -n "$CCC"; then
3672 if test -n "$ac_tool_prefix"; then
3673 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3678 $as_echo_n "checking
for $ac_word...
" >&6; }
3679 if test "${ac_cv_prog_CXX+set}" = set; then :
3680 $as_echo_n "(cached
) " >&6
3682 if test -n "$CXX"; then
3683 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3703 if test -n "$CXX"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
3705 $as_echo "$CXX" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3708 $as_echo "no
" >&6; }
3712 test -n "$CXX" && break
3715 if test -z "$CXX"; then
3717 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3722 $as_echo_n "checking
for $ac_word...
" >&6; }
3723 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3724 $as_echo_n "(cached
) " >&6
3726 if test -n "$ac_ct_CXX"; then
3727 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_ac_ct_CXX="$ac_prog"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3746 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3747 if test -n "$ac_ct_CXX"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
3749 $as_echo "$ac_ct_CXX" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3752 $as_echo "no
" >&6; }
3756 test -n "$ac_ct_CXX" && break
3759 if test "x
$ac_ct_CXX" = x; then
3762 case $cross_compiling:$ac_tool_warned in
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3765 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3766 ac_tool_warned=yes ;;
3774 # Provide some information about the compiler.
3775 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
3778 for ac_option in --version -v -V -qversion; do
3779 { { ac_try="$ac_compiler $ac_option >&5"
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3788 if test -s conftest.err; then
3790 ... rest of stderr output deleted ...
3791 10q' conftest.err >conftest.er1
3792 cat conftest.er1 >&5
3793 rm -f conftest.er1 conftest.err
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3796 test $ac_status = 0; }
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
3800 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
3801 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3802 $as_echo_n "(cached
) " >&6
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3818 if ac_fn_cxx_try_compile "$LINENO"; then :
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
3828 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3829 if test $ac_compiler_gnu = yes; then
3834 ac_test_CXXFLAGS=${CXXFLAGS+set}
3835 ac_save_CXXFLAGS=$CXXFLAGS
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
3837 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
3838 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3839 $as_echo_n "(cached
) " >&6
3841 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3842 ac_cxx_werror_flag=yes
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3856 if ac_fn_cxx_try_compile "$LINENO"; then :
3857 ac_cv_prog_cxx_g=yes
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3871 if ac_fn_cxx_try_compile "$LINENO"; then :
3874 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3887 if ac_fn_cxx_try_compile "$LINENO"; then :
3888 ac_cv_prog_cxx_g=yes
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3898 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3899 if test "$ac_test_CXXFLAGS" = set; then
3900 CXXFLAGS=$ac_save_CXXFLAGS
3901 elif test $ac_cv_prog_cxx_g = yes; then
3902 if test "$GXX" = yes; then
3908 if test "$GXX" = yes; then
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 if test -n "$ac_tool_prefix"; then
3921 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
3922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3924 $as_echo_n "checking
for $ac_word...
" >&6; }
3925 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3926 $as_echo_n "(cached
) " >&6
3928 if test -n "$RANLIB"; then
3929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3948 RANLIB=$ac_cv_prog_RANLIB
3949 if test -n "$RANLIB"; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
3951 $as_echo "$RANLIB" >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3954 $as_echo "no
" >&6; }
3959 if test -z "$ac_cv_prog_RANLIB"; then
3960 ac_ct_RANLIB=$RANLIB
3961 # Extract the first word of "ranlib
", so it can be a program name with args.
3962 set dummy ranlib; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3964 $as_echo_n "checking
for $ac_word...
" >&6; }
3965 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3966 $as_echo_n "(cached
) " >&6
3968 if test -n "$ac_ct_RANLIB"; then
3969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978 ac_cv_prog_ac_ct_RANLIB="ranlib
"
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3989 if test -n "$ac_ct_RANLIB"; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
3991 $as_echo "$ac_ct_RANLIB" >&6; }
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3994 $as_echo "no
" >&6; }
3997 if test "x
$ac_ct_RANLIB" = x; then
4000 case $cross_compiling:$ac_tool_warned in
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
4003 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
4004 ac_tool_warned=yes ;;
4006 RANLIB=$ac_ct_RANLIB
4009 RANLIB="$ac_cv_prog_RANLIB"
4014 # Check whether --enable-largefile was given.
4015 if test "${enable_largefile+set}" = set; then :
4016 enableval=$enable_largefile;
4019 if test "$enable_largefile" != no; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for special C compiler options needed
for large files
" >&5
4022 $as_echo_n "checking
for special C compiler options needed
for large files...
" >&6; }
4023 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4024 $as_echo_n "(cached
) " >&6
4026 ac_cv_sys_largefile_CC=no
4027 if test "$GCC" != yes; then
4030 # IRIX 6.2 and later do not support large files by default,
4031 # so use the C compiler's -n32 option if that helps.
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034 #include <sys/types.h>
4035 /* Check that off_t can represent 2**63 - 1 correctly.
4036 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4037 since some C++ compilers masquerading as C compilers
4038 incorrectly reject 9223372036854775807. */
4039 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4040 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4041 && LARGE_OFF_T % 2147483647 == 1)
4051 if ac_fn_c_try_compile "$LINENO"; then :
4054 rm -f core conftest.err conftest.$ac_objext
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_sys_largefile_CC=' -n32'; break
4059 rm -f core conftest.err conftest.$ac_objext
4063 rm -f conftest.$ac_ext
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sys_largefile_CC" >&5
4067 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4068 if test "$ac_cv_sys_largefile_CC" != no; then
4069 CC=$CC$ac_cv_sys_largefile_CC
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
4073 $as_echo_n "checking
for _FILE_OFFSET_BITS value needed
for large files...
" >&6; }
4074 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4075 $as_echo_n "(cached
) " >&6
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <sys/types.h>
4081 /* Check that off_t can represent 2**63 - 1 correctly.
4082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4083 since some C++ compilers masquerading as C compilers
4084 incorrectly reject 9223372036854775807. */
4085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4087 && LARGE_OFF_T % 2147483647 == 1)
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_sys_file_offset_bits=no; break
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103 #define _FILE_OFFSET_BITS 64
4104 #include <sys/types.h>
4105 /* Check that off_t can represent 2**63 - 1 correctly.
4106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4107 since some C++ compilers masquerading as C compilers
4108 incorrectly reject 9223372036854775807. */
4109 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4111 && LARGE_OFF_T % 2147483647 == 1)
4121 if ac_fn_c_try_compile "$LINENO"; then :
4122 ac_cv_sys_file_offset_bits=64; break
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 ac_cv_sys_file_offset_bits=unknown
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sys_file_offset_bits" >&5
4130 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4131 case $ac_cv_sys_file_offset_bits in #(
4134 cat >>confdefs.h <<_ACEOF
4135 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4140 if test $ac_cv_sys_file_offset_bits = unknown; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for _LARGE_FILES value needed
for large files
" >&5
4142 $as_echo_n "checking
for _LARGE_FILES value needed
for large files...
" >&6; }
4143 if test "${ac_cv_sys_large_files+set}" = set; then :
4144 $as_echo_n "(cached
) " >&6
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #include <sys/types.h>
4150 /* Check that off_t can represent 2**63 - 1 correctly.
4151 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4152 since some C++ compilers masquerading as C compilers
4153 incorrectly reject 9223372036854775807. */
4154 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4155 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4156 && LARGE_OFF_T % 2147483647 == 1)
4166 if ac_fn_c_try_compile "$LINENO"; then :
4167 ac_cv_sys_large_files=no; break
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #define _LARGE_FILES 1
4173 #include <sys/types.h>
4174 /* Check that off_t can represent 2**63 - 1 correctly.
4175 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4176 since some C++ compilers masquerading as C compilers
4177 incorrectly reject 9223372036854775807. */
4178 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4180 && LARGE_OFF_T % 2147483647 == 1)
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_sys_large_files=1; break
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 ac_cv_sys_large_files=unknown
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sys_large_files" >&5
4199 $as_echo "$ac_cv_sys_large_files" >&6; }
4200 case $ac_cv_sys_large_files in #(
4203 cat >>confdefs.h <<_ACEOF
4204 #define _LARGE_FILES $ac_cv_sys_large_files
4213 # See if we are building gcc with C++.
4214 # Do this early so setting lang to C++ affects following tests
4215 # Check whether --enable-build-with-cxx was given.
4216 if test "${enable_build_with_cxx+set}" = set; then :
4217 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
4219 ENABLE_BUILD_WITH_CXX=no
4224 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4225 for ac_prog in aclocal
4227 # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy $ac_prog; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4230 $as_echo_n "checking
for $ac_word...
" >&6; }
4231 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
4232 $as_echo_n "(cached
) " >&6
4234 if test -n "$ACLOCAL"; then
4235 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 ac_cv_prog_ACLOCAL="$ac_prog"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4254 ACLOCAL=$ac_cv_prog_ACLOCAL
4255 if test -n "$ACLOCAL"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ACLOCAL" >&5
4257 $as_echo "$ACLOCAL" >&6; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4260 $as_echo "no
" >&6; }
4264 test -n "$ACLOCAL" && break
4266 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal
"
4268 for ac_prog in autoconf
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4273 $as_echo_n "checking
for $ac_word...
" >&6; }
4274 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
4275 $as_echo_n "(cached
) " >&6
4277 if test -n "$AUTOCONF"; then
4278 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_AUTOCONF="$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4297 AUTOCONF=$ac_cv_prog_AUTOCONF
4298 if test -n "$AUTOCONF"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AUTOCONF" >&5
4300 $as_echo "$AUTOCONF" >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4303 $as_echo "no
" >&6; }
4307 test -n "$AUTOCONF" && break
4309 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf
"
4311 for ac_prog in autoheader
4313 # Extract the first word of "$ac_prog", so it can be a program name with args.
4314 set dummy $ac_prog; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4316 $as_echo_n "checking
for $ac_word...
" >&6; }
4317 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
4318 $as_echo_n "(cached
) " >&6
4320 if test -n "$AUTOHEADER"; then
4321 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4330 ac_cv_prog_AUTOHEADER="$ac_prog"
4331 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4340 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4341 if test -n "$AUTOHEADER"; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AUTOHEADER" >&5
4343 $as_echo "$AUTOHEADER" >&6; }
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4346 $as_echo "no
" >&6; }
4350 test -n "$AUTOHEADER" && break
4352 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader
"
4355 # Figure out what compiler warnings we can enable.
4356 # See config/warnings.m4 for details.
4359 save_CFLAGS="$CFLAGS"
4360 for option in -W -Wall -Wwrite-strings \
4361 -Wmissing-format-attribute; do
4362 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_
$option" | $as_tr_sh`
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC supports
$option" >&5
4365 $as_echo_n "checking whether
$CC supports
$option...
" >&6; }
4366 if { as_var=$as_acx_Woption; eval "test \"\
${$as_var+set}\" = set"; }; then :
4367 $as_echo_n "(cached
) " >&6
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4381 if ac_fn_c_try_compile "$LINENO"; then :
4382 eval "$as_acx_Woption=yes"
4384 eval "$as_acx_Woption=no
"
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 eval ac_res=\$$as_acx_Woption
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
4391 $as_echo "$ac_res" >&6; }
4392 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4393 warn="$warn${warn:+ }$option"
4396 CFLAGS="$save_CFLAGS"
4399 save_CFLAGS="$CFLAGS"
4400 for option in -Wstrict-prototypes -Wmissing-prototypes \
4401 -Wold-style-definition -Wc++-compat; do
4402 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_
$option" | $as_tr_sh`
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC supports
$option" >&5
4405 $as_echo_n "checking whether
$CC supports
$option...
" >&6; }
4406 if { as_var=$as_acx_Woption; eval "test \"\
${$as_var+set}\" = set"; }; then :
4407 $as_echo_n "(cached
) " >&6
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4421 if ac_fn_c_try_compile "$LINENO"; then :
4422 eval "$as_acx_Woption=yes"
4424 eval "$as_acx_Woption=no
"
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 eval ac_res=\$$as_acx_Woption
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
4431 $as_echo "$ac_res" >&6; }
4432 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4433 c_warn="$c_warn${c_warn:+ }$option"
4436 CFLAGS="$save_CFLAGS"
4439 if test "$GCC" = yes; then :
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC supports
-pedantic -Wno-long-long" >&5
4441 $as_echo_n "checking whether
$CC supports
-pedantic -Wno-long-long...
" >&6; }
4442 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then :
4443 $as_echo_n "(cached
) " >&6
4445 save_CFLAGS="$CFLAGS"
4446 CFLAGS="-pedantic -Wno-long-long"
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4458 if ac_fn_c_try_compile "$LINENO"; then :
4459 acx_cv_prog_cc_pedantic__Wno_long_long=yes
4461 acx_cv_prog_cc_pedantic__Wno_long_long=no
4463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464 CFLAGS="$save_CFLAGS"
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
4467 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long" >&6; }
4468 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then :
4469 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4475 # Only enable with --enable-werror-always until existing warnings are
4478 # Check whether --enable-werror-always was given.
4479 if test "${enable_werror_always+set}" = set; then :
4480 enableval=$enable_werror_always;
4482 enable_werror_always=no
4485 if test $enable_werror_always = yes; then :
4486 WERROR="$WERROR${WERROR:+ }-Werror"
4491 # Dependency checking.
4492 rm -rf .tst 2>/dev/null
4493 mkdir .tst 2>/dev/null
4494 if test -d .tst; then
4499 rmdir .tst 2>/dev/null
4501 DEPDIR="${am__leading_dot}deps
"
4503 ac_config_commands="$ac_config_commands depdir
"
4506 if test "$ENABLE_BUILD_WITH_CXX" = "no
"; then
4507 depcc="$CC" am_compiler_list=
4509 am_depcomp=$ac_aux_dir/depcomp
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of
$depcc" >&5
4511 $as_echo_n "checking dependency style of
$depcc...
" >&6; }
4512 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4513 $as_echo_n "(cached
) " >&6
4515 if test -f "$am_depcomp"; then
4516 # We make a subdir and do the tests there. Otherwise we can end up
4517 # making bogus files that we don't know about and never remove. For
4518 # instance it was reported that on HP-UX the gcc test will end up
4519 # making a dummy file named `D' -- because `-MD' means `put the output
4522 # Copy depcomp to subdir because otherwise we won't find it if we're
4523 # using a relative directory.
4524 cp "$am_depcomp" conftest.dir
4526 # We will build objects and dependencies in a subdirectory because
4527 # it helps to detect inapplicable dependency modes. For instance
4528 # both Tru64's cc and ICC support -MD to output dependencies as a
4529 # side effect of compilation, but ICC will put the dependencies in
4530 # the current directory while Tru64 will put them in the object
4534 am_cv_CC_dependencies_compiler_type=none
4535 if test "$am_compiler_list" = ""; then
4536 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4538 for depmode in $am_compiler_list; do
4539 if test $depmode = none; then break; fi
4541 $as_echo "$as_me:$LINENO: trying
$depmode" >&5
4542 # Setup a source with many dependencies, because some compilers
4543 # like to wrap large dependency lists on column 80 (with \), and
4544 # we should not choose a depcomp mode which is confused by this.
4546 # We need to recreate these files for each test, as the compiler may
4547 # overwrite some of them when testing with obscure command lines.
4548 # This happens at least with the AIX C compiler.
4550 for i in 1 2 3 4 5 6; do
4551 echo '#include "conftst
'$i'.h
"' >> sub/conftest.c
4552 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4553 # Solaris 8's {/usr,}/bin/sh.
4554 touch sub/conftst$i.h
4556 echo "include sub
/conftest.Po
" > confmf
4558 # We check with `-c' and `-o' for the sake of the "dashmstdout
"
4559 # mode. It turns out that the SunPro C++ compiler does not properly
4560 # handle `-M -o', and we need to detect this.
4561 depcmd="depmode
=$depmode \
4562 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
4563 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4564 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c
"
4565 echo "|
$depcmd" | sed -e 's/ */ /g' >&5
4566 if env $depcmd > conftest.err 2>&1 &&
4567 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4568 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4569 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4570 # icc doesn't choke on unknown options, it will just issue warnings
4571 # or remarks (even with -Werror). So we grep stderr for any message
4572 # that says an option was ignored or not supported.
4573 # When given -MP, icc 7.0 and 7.1 complain thusly:
4574 # icc: Command line warning: ignoring option '-M'; no argument required
4575 # The diagnosis changed in icc 8.0:
4576 # icc: Command line remark: option '-MP' not supported
4577 if (grep 'ignoring option' conftest.err ||
4578 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4579 am_cv_CC_dependencies_compiler_type=$depmode
4580 $as_echo "$as_me:$LINENO: success
" >&5
4584 $as_echo "$as_me:$LINENO: failure
, diagnostics are
:" >&5
4585 sed -e 's/^/| /' < conftest.err >&5
4591 am_cv_CC_dependencies_compiler_type=none
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $am_cv_CC_dependencies_compiler_type" >&5
4596 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4597 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4598 then as_fn_error "no usable dependency style found
" "$LINENO" 5
4599 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4605 ac_cpp='$CXXCPP $CPPFLAGS'
4606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4615 if ac_fn_cxx_try_compile "$LINENO"; then :
4618 as_fn_error "C
++ compiler missing or inoperational
" "$LINENO" 5
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 ac_cpp='$CPP $CPPFLAGS'
4623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627 depcc="$CXX" am_compiler_list=
4629 am_depcomp=$ac_aux_dir/depcomp
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of
$depcc" >&5
4631 $as_echo_n "checking dependency style of
$depcc...
" >&6; }
4632 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4633 $as_echo_n "(cached
) " >&6
4635 if test -f "$am_depcomp"; then
4636 # We make a subdir and do the tests there. Otherwise we can end up
4637 # making bogus files that we don't know about and never remove. For
4638 # instance it was reported that on HP-UX the gcc test will end up
4639 # making a dummy file named `D' -- because `-MD' means `put the output
4642 # Copy depcomp to subdir because otherwise we won't find it if we're
4643 # using a relative directory.
4644 cp "$am_depcomp" conftest.dir
4646 # We will build objects and dependencies in a subdirectory because
4647 # it helps to detect inapplicable dependency modes. For instance
4648 # both Tru64's cc and ICC support -MD to output dependencies as a
4649 # side effect of compilation, but ICC will put the dependencies in
4650 # the current directory while Tru64 will put them in the object
4654 am_cv_CXX_dependencies_compiler_type=none
4655 if test "$am_compiler_list" = ""; then
4656 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4658 for depmode in $am_compiler_list; do
4659 if test $depmode = none; then break; fi
4661 $as_echo "$as_me:$LINENO: trying
$depmode" >&5
4662 # Setup a source with many dependencies, because some compilers
4663 # like to wrap large dependency lists on column 80 (with \), and
4664 # we should not choose a depcomp mode which is confused by this.
4666 # We need to recreate these files for each test, as the compiler may
4667 # overwrite some of them when testing with obscure command lines.
4668 # This happens at least with the AIX C compiler.
4670 for i in 1 2 3 4 5 6; do
4671 echo '#include "conftst
'$i'.h
"' >> sub/conftest.c
4672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4673 # Solaris 8's {/usr,}/bin/sh.
4674 touch sub/conftst$i.h
4676 echo "include sub
/conftest.Po
" > confmf
4678 # We check with `-c' and `-o' for the sake of the "dashmstdout
"
4679 # mode. It turns out that the SunPro C++ compiler does not properly
4680 # handle `-M -o', and we need to detect this.
4681 depcmd="depmode
=$depmode \
4682 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
4683 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4684 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c
"
4685 echo "|
$depcmd" | sed -e 's/ */ /g' >&5
4686 if env $depcmd > conftest.err 2>&1 &&
4687 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4688 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4689 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4690 # icc doesn't choke on unknown options, it will just issue warnings
4691 # or remarks (even with -Werror). So we grep stderr for any message
4692 # that says an option was ignored or not supported.
4693 # When given -MP, icc 7.0 and 7.1 complain thusly:
4694 # icc: Command line warning: ignoring option '-M'; no argument required
4695 # The diagnosis changed in icc 8.0:
4696 # icc: Command line remark: option '-MP' not supported
4697 if (grep 'ignoring option' conftest.err ||
4698 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4699 am_cv_CXX_dependencies_compiler_type=$depmode
4700 $as_echo "$as_me:$LINENO: success
" >&5
4704 $as_echo "$as_me:$LINENO: failure
, diagnostics are
:" >&5
4705 sed -e 's/^/| /' < conftest.err >&5
4711 am_cv_CXX_dependencies_compiler_type=none
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $am_cv_CXX_dependencies_compiler_type" >&5
4716 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4717 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
4718 then as_fn_error "no usable dependency style found
" "$LINENO" 5
4719 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4725 # Checks for header files.
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
time.h and sys
/time.h may both be included
" >&5
4727 $as_echo_n "checking whether
time.h and sys
/time.h may both be included...
" >&6; }
4728 if test "${ac_cv_header_time+set}" = set; then :
4729 $as_echo_n "(cached
) " >&6
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733 #include <sys/types.h>
4734 #include <sys/time.h>
4740 if ((struct tm *) 0)
4746 if ac_fn_c_try_compile "$LINENO"; then :
4747 ac_cv_header_time=yes
4749 ac_cv_header_time=no
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_time" >&5
4754 $as_echo "$ac_cv_header_time" >&6; }
4755 if test $ac_cv_header_time = yes; then
4757 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
4762 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
4763 if test "${gcc_cv_header_string+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
4766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4769 #include <strings.h>
4778 if ac_fn_c_try_compile
"$LINENO"; then :
4779 gcc_cv_header_string
=yes
4781 gcc_cv_header_string
=no
4783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
4786 $as_echo "$gcc_cv_header_string" >&6; }
4787 if test $gcc_cv_header_string = yes; then
4789 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
4794 # AC_CHECK_HEADERS is repeated to work around apparent autoconf 2.59 bug. If
4795 # AC_CHECK_HEADERS comes after the if clause, the last AC_LANG call gets used,
4796 # no matter which branch is taken.
4797 if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
4799 ac_cpp
='$CPP $CPPFLAGS'
4800 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4805 ac_cpp
='$CPP $CPPFLAGS'
4806 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4810 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4811 # On Suns, sometimes $CPP names a directory.
4812 if test -n "$CPP" && test -d "$CPP"; then
4815 if test -z "$CPP"; then
4816 if test "${ac_cv_prog_CPP+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4819 # Double quotes because CPP needs to be expanded
4820 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4823 for ac_c_preproc_warn_flag
in '' yes
4825 # Use a header file that comes with gcc, so configuring glibc
4826 # with a fresh cross-compiler works.
4827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4828 # <limits.h> exists even on freestanding compilers.
4829 # On the NeXT, cc -E runs the code through the compiler's parser,
4830 # not just through cpp. "Syntax error" is here to catch this case.
4831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4834 # include <limits.h>
4836 # include <assert.h>
4840 if ac_fn_c_try_cpp
"$LINENO"; then :
4843 # Broken: fails on valid input.
4846 rm -f conftest.err conftest.
$ac_ext
4848 # OK, works on sane cases. Now check whether nonexistent headers
4849 # can be detected and how.
4850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4852 #include <ac_nonexistent.h>
4854 if ac_fn_c_try_cpp
"$LINENO"; then :
4855 # Broken: success on invalid input.
4858 # Passes both tests.
4862 rm -f conftest.err conftest.
$ac_ext
4865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4866 rm -f conftest.err conftest.
$ac_ext
4867 if $ac_preproc_ok; then :
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4880 $as_echo "$CPP" >&6; }
4882 for ac_c_preproc_warn_flag
in '' yes
4884 # Use a header file that comes with gcc, so configuring glibc
4885 # with a fresh cross-compiler works.
4886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4887 # <limits.h> exists even on freestanding compilers.
4888 # On the NeXT, cc -E runs the code through the compiler's parser,
4889 # not just through cpp. "Syntax error" is here to catch this case.
4890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4893 # include <limits.h>
4895 # include <assert.h>
4899 if ac_fn_c_try_cpp
"$LINENO"; then :
4902 # Broken: fails on valid input.
4905 rm -f conftest.err conftest.
$ac_ext
4907 # OK, works on sane cases. Now check whether nonexistent headers
4908 # can be detected and how.
4909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 #include <ac_nonexistent.h>
4913 if ac_fn_c_try_cpp
"$LINENO"; then :
4914 # Broken: success on invalid input.
4917 # Passes both tests.
4921 rm -f conftest.err conftest.
$ac_ext
4924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4925 rm -f conftest.err conftest.
$ac_ext
4926 if $ac_preproc_ok; then :
4929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4931 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4932 See \`config.log' for more details." "$LINENO" 5; }
4936 ac_cpp
='$CPP $CPPFLAGS'
4937 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4938 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4939 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4943 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4944 if test "${ac_cv_path_GREP+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4947 if test -z "$GREP"; then
4948 ac_path_GREP_found
=false
4949 # Loop through the user's path and test for each of PROGNAME-LIST
4950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4951 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4954 test -z "$as_dir" && as_dir
=.
4955 for ac_prog
in grep ggrep
; do
4956 for ac_exec_ext
in '' $ac_executable_extensions; do
4957 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4958 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4959 # Check for GNU ac_path_GREP and select it if it is found.
4960 # Check for GNU $ac_path_GREP
4961 case `"$ac_path_GREP" --version 2>&1` in
4963 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4966 $as_echo_n 0123456789 >"conftest.in"
4969 cat "conftest.in" "conftest.in" >"conftest.tmp"
4970 mv "conftest.tmp" "conftest.in"
4971 cp "conftest.in" "conftest.nl"
4972 $as_echo 'GREP' >> "conftest.nl"
4973 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4974 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4975 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4976 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4977 # Best one so far, save it but keep looking for a better one
4978 ac_cv_path_GREP
="$ac_path_GREP"
4979 ac_path_GREP_max
=$ac_count
4981 # 10*(2^10) chars as input seems more than enough
4982 test $ac_count -gt 10 && break
4984 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4987 $ac_path_GREP_found && break 3
4992 if test -z "$ac_cv_path_GREP"; then
4993 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4996 ac_cv_path_GREP
=$GREP
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5001 $as_echo "$ac_cv_path_GREP" >&6; }
5002 GREP
="$ac_cv_path_GREP"
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5006 $as_echo_n "checking for egrep... " >&6; }
5007 if test "${ac_cv_path_EGREP+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
5010 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5011 then ac_cv_path_EGREP
="$GREP -E"
5013 if test -z "$EGREP"; then
5014 ac_path_EGREP_found
=false
5015 # Loop through the user's path and test for each of PROGNAME-LIST
5016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5017 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5020 test -z "$as_dir" && as_dir
=.
5021 for ac_prog
in egrep; do
5022 for ac_exec_ext
in '' $ac_executable_extensions; do
5023 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5024 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5025 # Check for GNU ac_path_EGREP and select it if it is found.
5026 # Check for GNU $ac_path_EGREP
5027 case `"$ac_path_EGREP" --version 2>&1` in
5029 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5032 $as_echo_n 0123456789 >"conftest.in"
5035 cat "conftest.in" "conftest.in" >"conftest.tmp"
5036 mv "conftest.tmp" "conftest.in"
5037 cp "conftest.in" "conftest.nl"
5038 $as_echo 'EGREP' >> "conftest.nl"
5039 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5040 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5041 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5042 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5043 # Best one so far, save it but keep looking for a better one
5044 ac_cv_path_EGREP
="$ac_path_EGREP"
5045 ac_path_EGREP_max
=$ac_count
5047 # 10*(2^10) chars as input seems more than enough
5048 test $ac_count -gt 10 && break
5050 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5053 $ac_path_EGREP_found && break 3
5058 if test -z "$ac_cv_path_EGREP"; then
5059 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5062 ac_cv_path_EGREP
=$EGREP
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5068 $as_echo "$ac_cv_path_EGREP" >&6; }
5069 EGREP
="$ac_cv_path_EGREP"
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5073 $as_echo_n "checking for ANSI C header files... " >&6; }
5074 if test "${ac_cv_header_stdc+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
5077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5092 if ac_fn_c_try_compile
"$LINENO"; then :
5093 ac_cv_header_stdc
=yes
5095 ac_cv_header_stdc
=no
5097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5099 if test $ac_cv_header_stdc = yes; then
5100 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5107 $EGREP "memchr" >/dev
/null
2>&1; then :
5110 ac_cv_header_stdc
=no
5116 if test $ac_cv_header_stdc = yes; then
5117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5124 $EGREP "free" >/dev
/null
2>&1; then :
5127 ac_cv_header_stdc
=no
5133 if test $ac_cv_header_stdc = yes; then
5134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5135 if test "$cross_compiling" = yes; then :
5138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5142 #if ((' ' & 0x0FF) == 0x020)
5143 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5144 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5146 # define ISLOWER(c) \
5147 (('a' <= (c) && (c) <= 'i') \
5148 || ('j' <= (c) && (c) <= 'r') \
5149 || ('s' <= (c) && (c) <= 'z'))
5150 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5153 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5158 for (i = 0; i < 256; i++)
5159 if (XOR (islower (i), ISLOWER (i))
5160 || toupper (i) != TOUPPER (i))
5165 if ac_fn_c_try_run
"$LINENO"; then :
5168 ac_cv_header_stdc
=no
5170 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5171 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5177 $as_echo "$ac_cv_header_stdc" >&6; }
5178 if test $ac_cv_header_stdc = yes; then
5180 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5184 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5185 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5186 inttypes.h stdint.h unistd.h
5188 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5189 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5191 eval as_val
=\$
$as_ac_Header
5192 if test "x$as_val" = x
""yes; then :
5193 cat >>confdefs.h
<<_ACEOF
5194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5202 for ac_header
in locale.h fcntl.h limits.h stddef.h \
5203 stdlib.h
strings.h string.h sys
/file.h unistd.h
5205 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5207 eval as_val
=\$
$as_ac_Header
5208 if test "x$as_val" = x
""yes; then :
5209 cat >>confdefs.h
<<_ACEOF
5210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5219 ac_cpp
='$CXXCPP $CPPFLAGS'
5220 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5225 ac_cpp
='$CXXCPP $CPPFLAGS'
5226 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5230 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5231 if test -z "$CXXCPP"; then
5232 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5235 # Double quotes because CXXCPP needs to be expanded
5236 for CXXCPP
in "$CXX -E" "/lib/cpp"
5239 for ac_cxx_preproc_warn_flag
in '' yes
5241 # Use a header file that comes with gcc, so configuring glibc
5242 # with a fresh cross-compiler works.
5243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5244 # <limits.h> exists even on freestanding compilers.
5245 # On the NeXT, cc -E runs the code through the compiler's parser,
5246 # not just through cpp. "Syntax error" is here to catch this case.
5247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5250 # include <limits.h>
5252 # include <assert.h>
5256 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5259 # Broken: fails on valid input.
5262 rm -f conftest.err conftest.
$ac_ext
5264 # OK, works on sane cases. Now check whether nonexistent headers
5265 # can be detected and how.
5266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 #include <ac_nonexistent.h>
5270 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5271 # Broken: success on invalid input.
5274 # Passes both tests.
5278 rm -f conftest.err conftest.
$ac_ext
5281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5282 rm -f conftest.err conftest.
$ac_ext
5283 if $ac_preproc_ok; then :
5288 ac_cv_prog_CXXCPP
=$CXXCPP
5291 CXXCPP
=$ac_cv_prog_CXXCPP
5293 ac_cv_prog_CXXCPP
=$CXXCPP
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5296 $as_echo "$CXXCPP" >&6; }
5298 for ac_cxx_preproc_warn_flag
in '' yes
5300 # Use a header file that comes with gcc, so configuring glibc
5301 # with a fresh cross-compiler works.
5302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5303 # <limits.h> exists even on freestanding compilers.
5304 # On the NeXT, cc -E runs the code through the compiler's parser,
5305 # not just through cpp. "Syntax error" is here to catch this case.
5306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5309 # include <limits.h>
5311 # include <assert.h>
5315 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5318 # Broken: fails on valid input.
5321 rm -f conftest.err conftest.
$ac_ext
5323 # OK, works on sane cases. Now check whether nonexistent headers
5324 # can be detected and how.
5325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 #include <ac_nonexistent.h>
5329 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5330 # Broken: success on invalid input.
5333 # Passes both tests.
5337 rm -f conftest.err conftest.
$ac_ext
5340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5341 rm -f conftest.err conftest.
$ac_ext
5342 if $ac_preproc_ok; then :
5345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5347 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5348 See \`config.log' for more details." "$LINENO" 5; }
5352 ac_cpp
='$CXXCPP $CPPFLAGS'
5353 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5358 for ac_header
in locale.h fcntl.h limits.h stddef.h \
5359 stdlib.h
strings.h string.h sys
/stat.h sys
/file.h unistd.h
5361 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5362 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5363 eval as_val
=\$
$as_ac_Header
5364 if test "x$as_val" = x
""yes; then :
5365 cat >>confdefs.h
<<_ACEOF
5366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5375 # Checks for typedefs, structures, and compiler characteristics.
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5377 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5378 if test "${ac_cv_c_bigendian+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5381 ac_cv_c_bigendian
=unknown
5382 # See if we're dealing with a universal compiler.
5383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #ifndef __APPLE_CC__
5386 not a universal capable compiler
5391 if ac_fn_cxx_try_compile
"$LINENO"; then :
5393 # Check for potential -arch flags. It is not universal unless
5394 # there are at least two -arch flags with different values.
5397 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5398 if test -n "$ac_prev"; then
5400 i?
86 | x86_64 | ppc | ppc64
)
5401 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5404 ac_cv_c_bigendian
=universal
5410 elif test "x$ac_word" = "x-arch"; then
5415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5416 if test $ac_cv_c_bigendian = unknown
; then
5417 # See if sys/param.h defines the BYTE_ORDER macro.
5418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 #include <sys/types.h>
5421 #include <sys/param.h>
5426 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5427 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5436 if ac_fn_cxx_try_compile
"$LINENO"; then :
5437 # It does; now see whether it defined to BIG_ENDIAN or not.
5438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 #include <sys/types.h>
5441 #include <sys/param.h>
5446 #if BYTE_ORDER != BIG_ENDIAN
5454 if ac_fn_cxx_try_compile
"$LINENO"; then :
5455 ac_cv_c_bigendian
=yes
5457 ac_cv_c_bigendian
=no
5459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5463 if test $ac_cv_c_bigendian = unknown
; then
5464 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5472 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5480 if ac_fn_cxx_try_compile
"$LINENO"; then :
5481 # It does; now see whether it defined to _BIG_ENDIAN or not.
5482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5497 if ac_fn_cxx_try_compile
"$LINENO"; then :
5498 ac_cv_c_bigendian
=yes
5500 ac_cv_c_bigendian
=no
5502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5506 if test $ac_cv_c_bigendian = unknown
; then
5507 # Compile a test program.
5508 if test "$cross_compiling" = yes; then :
5509 # Try to guess by grepping values from an object file.
5510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 short int ascii_mm[] =
5513 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5514 short int ascii_ii[] =
5515 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5516 int use_ascii (int i) {
5517 return ascii_mm[i] + ascii_ii[i];
5519 short int ebcdic_ii[] =
5520 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5521 short int ebcdic_mm[] =
5522 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5523 int use_ebcdic (int i) {
5524 return ebcdic_mm[i] + ebcdic_ii[i];
5531 return use_ascii (foo) == use_ebcdic (foo);
5536 if ac_fn_cxx_try_compile
"$LINENO"; then :
5537 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5538 ac_cv_c_bigendian
=yes
5540 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5541 if test "$ac_cv_c_bigendian" = unknown
; then
5542 ac_cv_c_bigendian
=no
5544 # finding both strings is unlikely to happen, but who knows?
5545 ac_cv_c_bigendian
=unknown
5549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 $ac_includes_default
5558 /* Are we little or big endian? From Harbison&Steele. */
5562 char c[sizeof (long int)];
5565 return u.c[sizeof (long int) - 1] == 1;
5571 if ac_fn_cxx_try_run
"$LINENO"; then :
5572 ac_cv_c_bigendian
=no
5574 ac_cv_c_bigendian
=yes
5576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5583 $as_echo "$ac_cv_c_bigendian" >&6; }
5584 case $ac_cv_c_bigendian in #(
5586 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5592 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5596 as_fn_error
"unknown endianness
5597 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5601 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5602 if test "${ac_cv_c_const+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5611 /* FIXME: Include the comments suggested by Paul. */
5613 /* Ultrix mips cc rejects this. */
5614 typedef int charset[2];
5616 /* SunOS 4.1.1 cc rejects this. */
5617 char const *const *pcpcc;
5619 /* NEC SVR4.0.2 mips cc rejects this. */
5620 struct point {int x, y;};
5621 static struct point const zero = {0,0};
5622 /* AIX XL C 1.02.0.0 rejects this.
5623 It does not let you subtract one const X* pointer from another in
5624 an arm of an if-expression whose if-part is not a constant
5626 const char *g = "string";
5627 pcpcc = &g + (g ? g-g : 0);
5628 /* HPUX 7.0 cc rejects these. */
5630 ppc = (char**) pcpcc;
5631 pcpcc = (char const *const *) ppc;
5632 { /* SCO 3.2v4 cc rejects this. */
5634 char const *s = 0 ? (char *) 0 : (char const *) 0;
5639 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5641 const int *foo = &x[0];
5644 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5645 typedef const int *iptr;
5649 { /* AIX XL C 1.02.0.0 rejects this saying
5650 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5651 struct s { int j; const int *ap[3]; };
5652 struct s *b; b->j = 5;
5654 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5658 return !cs[0] && !zero.x;
5665 if ac_fn_cxx_try_compile
"$LINENO"; then :
5670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5673 $as_echo "$ac_cv_c_const" >&6; }
5674 if test $ac_cv_c_const = no
; then
5676 $as_echo "#define const /**/" >>confdefs.h
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5681 $as_echo_n "checking for inline... " >&6; }
5682 if test "${ac_cv_c_inline+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
5686 for ac_kw
in inline __inline__ __inline
; do
5687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5691 static $ac_kw foo_t static_foo () {return 0; }
5692 $ac_kw foo_t foo () {return 0; }
5696 if ac_fn_cxx_try_compile
"$LINENO"; then :
5697 ac_cv_c_inline
=$ac_kw
5699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5700 test "$ac_cv_c_inline" != no
&& break
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5705 $as_echo "$ac_cv_c_inline" >&6; }
5707 case $ac_cv_c_inline in
5710 case $ac_cv_c_inline in
5712 *) ac_val
=$ac_cv_c_inline;;
5714 cat >>confdefs.h
<<_ACEOF
5716 #define inline $ac_val
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5723 $as_echo_n "checking for obstacks... " >&6; }
5724 if test "${ac_cv_func_obstack+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 $ac_includes_default
5730 #include "obstack.h"
5735 #define obstack_chunk_alloc malloc
5736 #define obstack_chunk_free free
5737 obstack_init (&mem);
5738 obstack_free (&mem, 0);
5743 if ac_fn_cxx_try_link
"$LINENO"; then :
5744 ac_cv_func_obstack
=yes
5746 ac_cv_func_obstack
=no
5748 rm -f core conftest.err conftest.
$ac_objext \
5749 conftest
$ac_exeext conftest.
$ac_ext
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5752 $as_echo "$ac_cv_func_obstack" >&6; }
5753 if test $ac_cv_func_obstack = yes; then
5755 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5758 case " $LIBOBJS " in
5759 *" obstack.$ac_objext "* ) ;;
5760 *) LIBOBJS
="$LIBOBJS obstack.$ac_objext"
5766 ac_fn_cxx_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5767 if test "x$ac_cv_type_off_t" = x
""yes; then :
5771 cat >>confdefs.h
<<_ACEOF
5772 #define off_t long int
5777 ac_fn_cxx_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5778 if test "x$ac_cv_type_size_t" = x
""yes; then :
5782 cat >>confdefs.h
<<_ACEOF
5783 #define size_t unsigned int
5788 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5789 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
5793 cat >>confdefs.h
<<_ACEOF
5800 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5801 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
5803 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5806 for ac_type
in 'unsigned int' 'unsigned long int' \
5807 'unsigned long long int'; do
5808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 $ac_includes_default
5814 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5821 if ac_fn_cxx_try_compile
"$LINENO"; then :
5823 cat >>confdefs.h
<<_ACEOF
5824 #define uintptr_t $ac_type
5829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5830 test -z "$ac_type" && break
5835 ac_fn_cxx_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5836 if test "x$ac_cv_type_ptrdiff_t" = x
""yes; then :
5840 cat >>confdefs.h
<<_ACEOF
5841 #define ptrdiff_t int
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5847 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5848 if test "${ac_cv_struct_tm+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #include <sys/types.h>
5860 int *p = &tm.tm_sec;
5866 if ac_fn_cxx_try_compile
"$LINENO"; then :
5867 ac_cv_struct_tm
=time.h
5869 ac_cv_struct_tm
=sys
/time.h
5871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5874 $as_echo "$ac_cv_struct_tm" >&6; }
5875 if test $ac_cv_struct_tm = sys
/time.h
; then
5877 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5881 # The cast to long int works around a bug in the HP C Compiler
5882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5884 # This bug is HP SR number 8606223364.
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5886 $as_echo_n "checking size of int... " >&6; }
5887 if test "${ac_cv_sizeof_int+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5890 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5893 if test "$ac_cv_type_int" = yes; then
5894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896 { as_fn_set_status
77
5897 as_fn_error
"cannot compute sizeof (int)
5898 See \`config.log' for more details." "$LINENO" 5; }; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5906 $as_echo "$ac_cv_sizeof_int" >&6; }
5910 cat >>confdefs.h
<<_ACEOF
5911 #define SIZEOF_INT $ac_cv_sizeof_int
5915 # The cast to long int works around a bug in the HP C Compiler
5916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5918 # This bug is HP SR number 8606223364.
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5920 $as_echo_n "checking size of long... " >&6; }
5921 if test "${ac_cv_sizeof_long+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5924 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5927 if test "$ac_cv_type_long" = yes; then
5928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5930 { as_fn_set_status
77
5931 as_fn_error
"cannot compute sizeof (long)
5932 See \`config.log' for more details." "$LINENO" 5; }; }
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5940 $as_echo "$ac_cv_sizeof_long" >&6; }
5944 cat >>confdefs.h
<<_ACEOF
5945 #define SIZEOF_LONG $ac_cv_sizeof_long
5950 for ac_func
in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
5952 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5953 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5954 eval as_val
=\$
$as_ac_var
5955 if test "x$as_val" = x
""yes; then :
5956 cat >>confdefs.h
<<_ACEOF
5957 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5963 ac_fn_cxx_check_decl
"$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5964 if test "x$ac_cv_have_decl_abort" = x
""yes; then :
5970 cat >>confdefs.h
<<_ACEOF
5971 #define HAVE_DECL_ABORT $ac_have_decl
5973 ac_fn_cxx_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5974 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
5980 cat >>confdefs.h
<<_ACEOF
5981 #define HAVE_DECL_ASPRINTF $ac_have_decl
5983 ac_fn_cxx_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5984 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
5990 cat >>confdefs.h
<<_ACEOF
5991 #define HAVE_DECL_BASENAME $ac_have_decl
5993 ac_fn_cxx_check_decl
"$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5994 if test "x$ac_cv_have_decl_errno" = x
""yes; then :
6000 cat >>confdefs.h
<<_ACEOF
6001 #define HAVE_DECL_ERRNO $ac_have_decl
6003 ac_fn_cxx_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
6004 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
6010 cat >>confdefs.h
<<_ACEOF
6011 #define HAVE_DECL_GETOPT $ac_have_decl
6013 ac_fn_cxx_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6014 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
6020 cat >>confdefs.h
<<_ACEOF
6021 #define HAVE_DECL_VASPRINTF $ac_have_decl
6024 ac_fn_cxx_check_decl
"$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
6025 if test "x$ac_cv_have_decl_clearerr_unlocked" = x
""yes; then :
6031 cat >>confdefs.h
<<_ACEOF
6032 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
6034 ac_fn_cxx_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
6035 if test "x$ac_cv_have_decl_feof_unlocked" = x
""yes; then :
6041 cat >>confdefs.h
<<_ACEOF
6042 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
6044 ac_fn_cxx_check_decl
"$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
6045 if test "x$ac_cv_have_decl_ferror_unlocked" = x
""yes; then :
6051 cat >>confdefs.h
<<_ACEOF
6052 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
6054 ac_fn_cxx_check_decl
"$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
6055 if test "x$ac_cv_have_decl_fflush_unlocked" = x
""yes; then :
6061 cat >>confdefs.h
<<_ACEOF
6062 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
6064 ac_fn_cxx_check_decl
"$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
6065 if test "x$ac_cv_have_decl_fgetc_unlocked" = x
""yes; then :
6071 cat >>confdefs.h
<<_ACEOF
6072 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
6074 ac_fn_cxx_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
6075 if test "x$ac_cv_have_decl_fgets_unlocked" = x
""yes; then :
6081 cat >>confdefs.h
<<_ACEOF
6082 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6084 ac_fn_cxx_check_decl
"$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6085 if test "x$ac_cv_have_decl_fileno_unlocked" = x
""yes; then :
6091 cat >>confdefs.h
<<_ACEOF
6092 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6094 ac_fn_cxx_check_decl
"$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6095 if test "x$ac_cv_have_decl_fprintf_unlocked" = x
""yes; then :
6101 cat >>confdefs.h
<<_ACEOF
6102 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6104 ac_fn_cxx_check_decl
"$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6105 if test "x$ac_cv_have_decl_fputc_unlocked" = x
""yes; then :
6111 cat >>confdefs.h
<<_ACEOF
6112 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6114 ac_fn_cxx_check_decl
"$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6115 if test "x$ac_cv_have_decl_fputs_unlocked" = x
""yes; then :
6121 cat >>confdefs.h
<<_ACEOF
6122 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6124 ac_fn_cxx_check_decl
"$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6125 if test "x$ac_cv_have_decl_fread_unlocked" = x
""yes; then :
6131 cat >>confdefs.h
<<_ACEOF
6132 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6134 ac_fn_cxx_check_decl
"$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6135 if test "x$ac_cv_have_decl_fwrite_unlocked" = x
""yes; then :
6141 cat >>confdefs.h
<<_ACEOF
6142 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6144 ac_fn_cxx_check_decl
"$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6145 if test "x$ac_cv_have_decl_getchar_unlocked" = x
""yes; then :
6151 cat >>confdefs.h
<<_ACEOF
6152 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6154 ac_fn_cxx_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6155 if test "x$ac_cv_have_decl_getc_unlocked" = x
""yes; then :
6161 cat >>confdefs.h
<<_ACEOF
6162 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6164 ac_fn_cxx_check_decl
"$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6165 if test "x$ac_cv_have_decl_putchar_unlocked" = x
""yes; then :
6171 cat >>confdefs.h
<<_ACEOF
6172 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6174 ac_fn_cxx_check_decl
"$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6175 if test "x$ac_cv_have_decl_putc_unlocked" = x
""yes; then :
6181 cat >>confdefs.h
<<_ACEOF
6182 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6186 # Checks for library functions.
6187 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6188 # for constant arguments. Useless!
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6190 $as_echo_n "checking for working alloca.h... " >&6; }
6191 if test "${ac_cv_working_alloca_h+set}" = set; then :
6192 $as_echo_n "(cached) " >&6
6194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6200 char *p = (char *) alloca (2 * sizeof (int));
6206 if ac_fn_cxx_try_link
"$LINENO"; then :
6207 ac_cv_working_alloca_h
=yes
6209 ac_cv_working_alloca_h
=no
6211 rm -f core conftest.err conftest.
$ac_objext \
6212 conftest
$ac_exeext conftest.
$ac_ext
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6215 $as_echo "$ac_cv_working_alloca_h" >&6; }
6216 if test $ac_cv_working_alloca_h = yes; then
6218 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6223 $as_echo_n "checking for alloca... " >&6; }
6224 if test "${ac_cv_func_alloca_works+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
6227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6230 # define alloca __builtin_alloca
6233 # include <malloc.h>
6234 # define alloca _alloca
6236 # ifdef HAVE_ALLOCA_H
6237 # include <alloca.h>
6242 # ifndef alloca /* predefined by HP cc +Olibcalls */
6253 char *p = (char *) alloca (1);
6259 if ac_fn_cxx_try_link
"$LINENO"; then :
6260 ac_cv_func_alloca_works
=yes
6262 ac_cv_func_alloca_works
=no
6264 rm -f core conftest.err conftest.
$ac_objext \
6265 conftest
$ac_exeext conftest.
$ac_ext
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6268 $as_echo "$ac_cv_func_alloca_works" >&6; }
6270 if test $ac_cv_func_alloca_works = yes; then
6272 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6275 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6276 # that cause trouble. Some versions do not even contain alloca or
6277 # contain a buggy version. If you still want to use their alloca,
6278 # use ar to extract alloca.o from them instead of compiling alloca.c.
6280 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6282 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6286 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6287 if test "${ac_cv_os_cray+set}" = set; then :
6288 $as_echo_n "(cached) " >&6
6290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292 #if defined CRAY && ! defined CRAY2
6299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6300 $EGREP "webecray" >/dev
/null
2>&1; then :
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6309 $as_echo "$ac_cv_os_cray" >&6; }
6310 if test $ac_cv_os_cray = yes; then
6311 for ac_func
in _getb67 GETB67 getb67
; do
6312 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6313 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6314 eval as_val
=\$
$as_ac_var
6315 if test "x$as_val" = x
""yes; then :
6317 cat >>confdefs.h
<<_ACEOF
6318 #define CRAY_STACKSEG_END $ac_func
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6328 $as_echo_n "checking stack direction for C alloca... " >&6; }
6329 if test "${ac_cv_c_stack_direction+set}" = set; then :
6330 $as_echo_n "(cached) " >&6
6332 if test "$cross_compiling" = yes; then :
6333 ac_cv_c_stack_direction
=0
6335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 $ac_includes_default
6339 find_stack_direction ()
6341 static char *addr = 0;
6346 return find_stack_direction ();
6349 return (&dummy > addr) ? 1 : -1;
6355 return find_stack_direction () < 0;
6358 if ac_fn_cxx_try_run
"$LINENO"; then :
6359 ac_cv_c_stack_direction
=1
6361 ac_cv_c_stack_direction
=-1
6363 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6364 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6369 $as_echo "$ac_cv_c_stack_direction" >&6; }
6370 cat >>confdefs.h
<<_ACEOF
6371 #define STACK_DIRECTION $ac_cv_c_stack_direction
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6378 $as_echo_n "checking for ANSI C header files... " >&6; }
6379 if test "${ac_cv_header_stdc+set}" = set; then :
6380 $as_echo_n "(cached) " >&6
6382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6397 if ac_fn_cxx_try_compile
"$LINENO"; then :
6398 ac_cv_header_stdc
=yes
6400 ac_cv_header_stdc
=no
6402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6404 if test $ac_cv_header_stdc = yes; then
6405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6412 $EGREP "memchr" >/dev
/null
2>&1; then :
6415 ac_cv_header_stdc
=no
6421 if test $ac_cv_header_stdc = yes; then
6422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6429 $EGREP "free" >/dev
/null
2>&1; then :
6432 ac_cv_header_stdc
=no
6438 if test $ac_cv_header_stdc = yes; then
6439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6440 if test "$cross_compiling" = yes; then :
6443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6447 #if ((' ' & 0x0FF) == 0x020)
6448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6451 # define ISLOWER(c) \
6452 (('a' <= (c) && (c) <= 'i') \
6453 || ('j' <= (c) && (c) <= 'r') \
6454 || ('s' <= (c) && (c) <= 'z'))
6455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6463 for (i = 0; i < 256; i++)
6464 if (XOR (islower (i), ISLOWER (i))
6465 || toupper (i) != TOUPPER (i))
6470 if ac_fn_cxx_try_run
"$LINENO"; then :
6473 ac_cv_header_stdc
=no
6475 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6476 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6482 $as_echo "$ac_cv_header_stdc" >&6; }
6483 if test $ac_cv_header_stdc = yes; then
6485 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6491 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6492 if test "${am_cv_langinfo_codeset+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
6495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6497 #include <langinfo.h>
6501 char* cs = nl_langinfo(CODESET);
6506 if ac_fn_cxx_try_link
"$LINENO"; then :
6507 am_cv_langinfo_codeset
=yes
6509 am_cv_langinfo_codeset
=no
6511 rm -f core conftest.err conftest.
$ac_objext \
6512 conftest
$ac_exeext conftest.
$ac_ext
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6516 $as_echo "$am_cv_langinfo_codeset" >&6; }
6517 if test $am_cv_langinfo_codeset = yes; then
6519 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6523 # If we haven't got the data from the intl directory,
6524 # assume NLS is disabled.
6533 if test -f ..
/intl
/config.intl
; then
6534 . ..
/intl
/config.intl
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6537 $as_echo_n "checking whether NLS is requested... " >&6; }
6538 if test x
"$USE_NLS" != xyes
; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6543 $as_echo "yes" >&6; }
6545 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6549 $as_echo_n "checking for catalogs to be installed... " >&6; }
6550 # Look for .po and .gmo files in the source directory.
6553 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6554 # If there aren't any .gmo files the shell will give us the
6555 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6557 case "$cat" in *\
**)
6560 # The quadruple backslash is collapsed to a double backslash
6561 # by the backticks, then collapsed again by the double quotes,
6562 # leaving us with one backslash in the sed expression (right
6563 # before the dot that mustn't act as a wildcard).
6564 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6565 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6566 # The user is allowed to set LINGUAS to a list of languages to
6567 # install catalogs for. If it's empty that means "all of them."
6568 if test "x$LINGUAS" = x
; then
6569 CATALOGS
="$CATALOGS $cat"
6570 XLINGUAS
="$XLINGUAS $lang"
6572 case "$LINGUAS" in *$lang*)
6573 CATALOGS
="$CATALOGS $cat"
6574 XLINGUAS
="$XLINGUAS $lang"
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6581 $as_echo "$LINGUAS" >&6; }
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6595 $as_echo_n "checking for uchar... " >&6; }
6596 if test "${gcc_cv_type_uchar+set}" = set; then :
6597 $as_echo_n "(cached) " >&6
6599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6602 #include <sys/types.h>
6607 if ((uchar *)0) return 0;
6608 if (sizeof(uchar)) return 0;
6613 if ac_fn_cxx_try_compile
"$LINENO"; then :
6614 ac_cv_type_uchar
=yes
6618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6621 $as_echo "$gcc_cv_type_uchar" >&6; }
6622 if test $ac_cv_type_uchar = yes; then
6624 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6629 if test "X$prefix" = "XNONE"; then
6630 acl_final_prefix
="$ac_default_prefix"
6632 acl_final_prefix
="$prefix"
6634 if test "X$exec_prefix" = "XNONE"; then
6635 acl_final_exec_prefix
='${prefix}'
6637 acl_final_exec_prefix
="$exec_prefix"
6639 acl_save_prefix
="$prefix"
6640 prefix
="$acl_final_prefix"
6641 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6642 prefix
="$acl_save_prefix"
6645 # Check whether --with-gnu-ld was given.
6646 if test "${with_gnu_ld+set}" = set; then :
6647 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6652 # Prepare PATH_SEPARATOR.
6653 # The user is always right.
6654 if test "${PATH_SEPARATOR+set}" != set; then
6655 echo "#! /bin/sh" >conf$$.sh
6656 echo "exit 0" >>conf$$.sh
6658 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6666 if test "$GCC" = yes; then
6667 # Check if gcc -print-prog-name=ld gives a path.
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6669 $as_echo_n "checking for ld used by GCC... " >&6; }
6672 # gcc leaves a trailing carriage return which upsets mingw
6673 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6675 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6678 # Accept absolute paths.
6679 [\\/]* |
[A-Za-z
]:[\\/]*)
6680 re_direlt
='/[^/][^/]*/\.\./'
6681 # Canonicalize the path of ld
6682 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6683 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6684 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6686 test -z "$LD" && LD
="$ac_prog"
6689 # If it fails, then pretend we aren't using GCC.
6693 # If it is relative, then search for the first ld in PATH.
6697 elif test "$with_gnu_ld" = yes; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6699 $as_echo_n "checking for GNU ld... " >&6; }
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6702 $as_echo_n "checking for non-GNU ld... " >&6; }
6704 if test "${acl_cv_path_LD+set}" = set; then :
6705 $as_echo_n "(cached) " >&6
6707 if test -z "$LD"; then
6708 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6709 for ac_dir
in $PATH; do
6710 test -z "$ac_dir" && ac_dir
=.
6711 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6712 acl_cv_path_LD
="$ac_dir/$ac_prog"
6713 # Check to see if the program is GNU ld. I'd rather use --version,
6714 # but apparently some GNU ld's only accept -v.
6715 # Break only if it was the GNU/non-GNU ld that we prefer.
6716 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6717 test "$with_gnu_ld" != no
&& break
6719 test "$with_gnu_ld" != yes && break
6725 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6729 LD
="$acl_cv_path_LD"
6730 if test -n "$LD"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6732 $as_echo "$LD" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6737 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6739 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6740 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6743 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6744 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6745 acl_cv_prog_gnu_ld
=yes
6747 acl_cv_prog_gnu_ld
=no
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6751 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6752 with_gnu_ld
=$acl_cv_prog_gnu_ld
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6757 $as_echo_n "checking for shared library run path origin... " >&6; }
6758 if test "${acl_cv_rpath+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
6762 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6763 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6770 $as_echo "$acl_cv_rpath" >&6; }
6772 libext
="$acl_cv_libext"
6773 shlibext
="$acl_cv_shlibext"
6774 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6775 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6776 hardcode_direct
="$acl_cv_hardcode_direct"
6777 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6778 # Check whether --enable-rpath was given.
6779 if test "${enable_rpath+set}" = set; then :
6780 enableval
=$enable_rpath; :
6794 acl_save_prefix
="$prefix"
6795 prefix
="$acl_final_prefix"
6796 acl_save_exec_prefix
="$exec_prefix"
6797 exec_prefix
="$acl_final_exec_prefix"
6799 eval additional_includedir
=\"$includedir\"
6800 eval additional_libdir
=\"$libdir\"
6802 exec_prefix
="$acl_save_exec_prefix"
6803 prefix
="$acl_save_prefix"
6806 # Check whether --with-libiconv-prefix was given.
6807 if test "${with_libiconv_prefix+set}" = set; then :
6808 withval
=$with_libiconv_prefix;
6809 if test "X$withval" = "Xno"; then
6812 if test "X$withval" = "X"; then
6814 acl_save_prefix
="$prefix"
6815 prefix
="$acl_final_prefix"
6816 acl_save_exec_prefix
="$exec_prefix"
6817 exec_prefix
="$acl_final_exec_prefix"
6819 eval additional_includedir
=\"$includedir\"
6820 eval additional_libdir
=\"$libdir\"
6822 exec_prefix
="$acl_save_exec_prefix"
6823 prefix
="$acl_save_prefix"
6826 additional_includedir
="$withval/include"
6827 additional_libdir
="$withval/lib"
6838 names_already_handled
=
6839 names_next_round
='iconv '
6840 while test -n "$names_next_round"; do
6841 names_this_round
="$names_next_round"
6843 for name
in $names_this_round; do
6845 for n
in $names_already_handled; do
6846 if test "$n" = "$name"; then
6851 if test -z "$already_handled"; then
6852 names_already_handled
="$names_already_handled $name"
6853 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6854 eval value
=\"\
$HAVE_LIB$uppername\"
6855 if test -n "$value"; then
6856 if test "$value" = yes; then
6857 eval value
=\"\
$LIB$uppername\"
6858 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
6859 eval value
=\"\
$LTLIB$uppername\"
6860 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
6869 if test $use_additional = yes; then
6870 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6871 found_dir
="$additional_libdir"
6872 found_so
="$additional_libdir/lib$name.$shlibext"
6873 if test -f "$additional_libdir/lib$name.la"; then
6874 found_la
="$additional_libdir/lib$name.la"
6877 if test -f "$additional_libdir/lib$name.$libext"; then
6878 found_dir
="$additional_libdir"
6879 found_a
="$additional_libdir/lib$name.$libext"
6880 if test -f "$additional_libdir/lib$name.la"; then
6881 found_la
="$additional_libdir/lib$name.la"
6886 if test "X$found_dir" = "X"; then
6887 for x
in $LDFLAGS $LTLIBICONV; do
6889 acl_save_prefix
="$prefix"
6890 prefix
="$acl_final_prefix"
6891 acl_save_exec_prefix
="$exec_prefix"
6892 exec_prefix
="$acl_final_exec_prefix"
6894 exec_prefix
="$acl_save_exec_prefix"
6895 prefix
="$acl_save_prefix"
6899 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6900 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6902 found_so
="$dir/lib$name.$shlibext"
6903 if test -f "$dir/lib$name.la"; then
6904 found_la
="$dir/lib$name.la"
6907 if test -f "$dir/lib$name.$libext"; then
6909 found_a
="$dir/lib$name.$libext"
6910 if test -f "$dir/lib$name.la"; then
6911 found_la
="$dir/lib$name.la"
6917 if test "X$found_dir" != "X"; then
6922 if test "X$found_dir" != "X"; then
6923 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6924 if test "X$found_so" != "X"; then
6925 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
6926 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6929 for x
in $ltrpathdirs; do
6930 if test "X$x" = "X$found_dir"; then
6935 if test -z "$haveit"; then
6936 ltrpathdirs
="$ltrpathdirs $found_dir"
6938 if test "$hardcode_direct" = yes; then
6939 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6941 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6942 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6944 for x
in $rpathdirs; do
6945 if test "X$x" = "X$found_dir"; then
6950 if test -z "$haveit"; then
6951 rpathdirs
="$rpathdirs $found_dir"
6955 for x
in $LDFLAGS $LIBICONV; do
6957 acl_save_prefix
="$prefix"
6958 prefix
="$acl_final_prefix"
6959 acl_save_exec_prefix
="$exec_prefix"
6960 exec_prefix
="$acl_final_exec_prefix"
6962 exec_prefix
="$acl_save_exec_prefix"
6963 prefix
="$acl_save_prefix"
6965 if test "X$x" = "X-L$found_dir"; then
6970 if test -z "$haveit"; then
6971 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6973 if test "$hardcode_minus_L" != no
; then
6974 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6976 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
6982 if test "X$found_a" != "X"; then
6983 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
6985 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6988 additional_includedir
=
6989 case "$found_dir" in
6991 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6992 additional_includedir
="$basedir/include"
6995 if test "X$additional_includedir" != "X"; then
6996 if test "X$additional_includedir" != "X/usr/include"; then
6998 if test "X$additional_includedir" = "X/usr/local/include"; then
6999 if test -n "$GCC"; then
7001 linux
*) haveit
=yes;;
7005 if test -z "$haveit"; then
7006 for x
in $CPPFLAGS $INCICONV; do
7008 acl_save_prefix
="$prefix"
7009 prefix
="$acl_final_prefix"
7010 acl_save_exec_prefix
="$exec_prefix"
7011 exec_prefix
="$acl_final_exec_prefix"
7013 exec_prefix
="$acl_save_exec_prefix"
7014 prefix
="$acl_save_prefix"
7016 if test "X$x" = "X-I$additional_includedir"; then
7021 if test -z "$haveit"; then
7022 if test -d "$additional_includedir"; then
7023 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7029 if test -n "$found_la"; then
7030 save_libdir
="$libdir"
7032 */* |
*\\*) .
"$found_la" ;;
7033 *) .
"./$found_la" ;;
7035 libdir
="$save_libdir"
7036 for dep
in $dependency_libs; do
7039 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7040 if test "X$additional_libdir" != "X/usr/lib"; then
7042 if test "X$additional_libdir" = "X/usr/local/lib"; then
7043 if test -n "$GCC"; then
7045 linux
*) haveit
=yes;;
7049 if test -z "$haveit"; then
7051 for x
in $LDFLAGS $LIBICONV; do
7053 acl_save_prefix
="$prefix"
7054 prefix
="$acl_final_prefix"
7055 acl_save_exec_prefix
="$exec_prefix"
7056 exec_prefix
="$acl_final_exec_prefix"
7058 exec_prefix
="$acl_save_exec_prefix"
7059 prefix
="$acl_save_prefix"
7061 if test "X$x" = "X-L$additional_libdir"; then
7066 if test -z "$haveit"; then
7067 if test -d "$additional_libdir"; then
7068 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7072 for x
in $LDFLAGS $LTLIBICONV; do
7074 acl_save_prefix
="$prefix"
7075 prefix
="$acl_final_prefix"
7076 acl_save_exec_prefix
="$exec_prefix"
7077 exec_prefix
="$acl_final_exec_prefix"
7079 exec_prefix
="$acl_save_exec_prefix"
7080 prefix
="$acl_save_prefix"
7082 if test "X$x" = "X-L$additional_libdir"; then
7087 if test -z "$haveit"; then
7088 if test -d "$additional_libdir"; then
7089 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7096 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7097 if test "$enable_rpath" != no
; then
7099 for x
in $rpathdirs; do
7100 if test "X$x" = "X$dir"; then
7105 if test -z "$haveit"; then
7106 rpathdirs
="$rpathdirs $dir"
7109 for x
in $ltrpathdirs; do
7110 if test "X$x" = "X$dir"; then
7115 if test -z "$haveit"; then
7116 ltrpathdirs
="$ltrpathdirs $dir"
7121 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7124 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7127 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7128 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7134 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7135 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7141 if test "X$rpathdirs" != "X"; then
7142 if test -n "$hardcode_libdir_separator"; then
7144 for found_dir
in $rpathdirs; do
7145 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7147 acl_save_libdir
="$libdir"
7149 eval flag
=\"$hardcode_libdir_flag_spec\"
7150 libdir
="$acl_save_libdir"
7151 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7153 for found_dir
in $rpathdirs; do
7154 acl_save_libdir
="$libdir"
7156 eval flag
=\"$hardcode_libdir_flag_spec\"
7157 libdir
="$acl_save_libdir"
7158 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7162 if test "X$ltrpathdirs" != "X"; then
7163 for found_dir
in $ltrpathdirs; do
7164 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7174 am_save_CPPFLAGS
="$CPPFLAGS"
7176 for element
in $INCICONV; do
7178 for x
in $CPPFLAGS; do
7180 acl_save_prefix
="$prefix"
7181 prefix
="$acl_final_prefix"
7182 acl_save_exec_prefix
="$exec_prefix"
7183 exec_prefix
="$acl_final_exec_prefix"
7185 exec_prefix
="$acl_save_exec_prefix"
7186 prefix
="$acl_save_prefix"
7188 if test "X$x" = "X$element"; then
7193 if test -z "$haveit"; then
7194 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7200 $as_echo_n "checking for iconv... " >&6; }
7201 if test "${am_cv_func_iconv+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7205 am_cv_func_iconv
="no, consider installing GNU libiconv"
7207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7214 iconv_t cd = iconv_open("","");
7215 iconv(cd,NULL,NULL,NULL,NULL);
7221 if ac_fn_cxx_try_link
"$LINENO"; then :
7222 am_cv_func_iconv
=yes
7224 rm -f core conftest.err conftest.
$ac_objext \
7225 conftest
$ac_exeext conftest.
$ac_ext
7226 if test "$am_cv_func_iconv" != yes; then
7227 am_save_LIBS
="$LIBS"
7228 LIBS
="$LIBS $LIBICONV"
7229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7236 iconv_t cd = iconv_open("","");
7237 iconv(cd,NULL,NULL,NULL,NULL);
7243 if ac_fn_cxx_try_link
"$LINENO"; then :
7245 am_cv_func_iconv
=yes
7247 rm -f core conftest.err conftest.
$ac_objext \
7248 conftest
$ac_exeext conftest.
$ac_ext
7249 LIBS
="$am_save_LIBS"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7254 $as_echo "$am_cv_func_iconv" >&6; }
7255 if test "$am_cv_func_iconv" = yes; then
7257 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7260 if test "$am_cv_lib_iconv" = yes; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7262 $as_echo_n "checking how to link with libiconv... " >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7264 $as_echo "$LIBICONV" >&6; }
7266 CPPFLAGS
="$am_save_CPPFLAGS"
7273 if test "$am_cv_func_iconv" = yes; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7275 $as_echo_n "checking for iconv declaration... " >&6; }
7276 if test "${am_cv_proto_iconv+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7289 #if defined(__STDC__) || defined(__cplusplus)
7290 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7303 if ac_fn_cxx_try_compile
"$LINENO"; then :
7304 am_cv_proto_iconv_arg1
=""
7306 am_cv_proto_iconv_arg1
="const"
7308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7309 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7312 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7314 }$am_cv_proto_iconv" >&5
7316 }$am_cv_proto_iconv" >&6; }
7318 cat >>confdefs.h
<<_ACEOF
7319 #define ICONV_CONST $am_cv_proto_iconv_arg1
7325 # More defines and substitutions.
7326 PACKAGE
="$PACKAGE_TARNAME"
7328 cat >>confdefs.h
<<_ACEOF
7329 #define PACKAGE "$PACKAGE"
7334 if test "x$enable_nls" != xno
; then
7335 USED_CATALOGS
='$(CATALOGS)'
7341 # Check whether --enable-maintainer-mode was given.
7342 if test "${enable_maintainer_mode+set}" = set; then :
7343 enableval
=$enable_maintainer_mode;
7345 enable_maintainer_mode
=no
7349 if test "x$enable_maintainer_mode" = xno
; then
7356 # Check whether --enable-checking was given.
7357 if test "${enable_checking+set}" = set; then :
7358 enableval
=$enable_checking;
7364 if test $enable_checking != no
; then
7366 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7374 arm
*-*-symbianelf* | \
7378 i
[34567]86-*-darwin* | \
7379 i
[34567]86-*-solaris2.1
[0-9]* | \
7380 i
[34567]86-w64-mingw* | \
7388 sh
[123456789lbe
]*-*-* | sh-
*-*)
7389 need_64bit_hwint
=yes ;;
7390 i
[34567]86-*-linux*)
7391 if test "x$enable_targets" = xall
; then
7392 need_64bit_hwint
=yes
7398 need_64bit_hwint
=no
;;
7401 case $need_64bit_hwint:$ac_cv_sizeof_long in
7402 *:8 | no
:*) host_wide_int
=long
;;
7403 *) host_wide_int
='long long' ;;
7408 cat >>confdefs.h
<<_ACEOF
7409 #define HOST_WIDE_INT $host_wide_int
7415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7421 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7426 if ac_fn_cxx_try_compile
"$LINENO"; then :
7428 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7436 ac_config_headers
="$ac_config_headers config.h:config.in"
7438 ac_config_files
="$ac_config_files Makefile"
7440 cat >confcache
<<\_ACEOF
7441 # This file is a shell script that caches the results of configure
7442 # tests run on this system so they can be shared between configure
7443 # scripts and configure runs, see configure's option --config-cache.
7444 # It is not useful on other systems. If it contains results you don't
7445 # want to keep, you may remove or edit it.
7447 # config.status only pays attention to the cache file if you give it
7448 # the --recheck option to rerun configure.
7450 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7451 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7456 # The following way of writing the cache mishandles newlines in values,
7457 # but we know of no workaround that is simple, portable, and efficient.
7458 # So, we kill variables containing newlines.
7459 # Ultrix sh set writes to stderr and can't be redirected directly,
7460 # and sets the high bit in the cache file unless we assign to the vars.
7462 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7463 eval ac_val
=\$
$ac_var
7467 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7471 _ | IFS | as_nl
) ;; #(
7472 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7473 *) { eval $ac_var=; unset $ac_var;} ;;
7479 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7480 *${as_nl}ac_space
=\
*)
7481 # `set' does not quote correctly, so add quotes: double-quote
7482 # substitution turns \\\\ into \\, and sed turns \\ into \.
7485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7488 # `set' quotes correctly as required by POSIX, so do not add quotes.
7489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7498 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7500 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7502 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7503 if test -w "$cache_file"; then
7504 test "x$cache_file" != "x/dev/null" &&
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7506 $as_echo "$as_me: updating cache $cache_file" >&6;}
7507 cat confcache
>$cache_file
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7510 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7515 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7516 # Let make expand exec_prefix.
7517 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7519 DEFS
=-DHAVE_CONFIG_H
7523 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7524 # 1. Remove the extension, and $U if already installed.
7525 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7526 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7527 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7528 # will be set to the directory where LIBOBJS objects are built.
7529 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7530 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7534 LTLIBOBJS
=$ac_ltlibobjs
7539 : ${CONFIG_STATUS=./config.status}
7541 ac_clean_files_save
=$ac_clean_files
7542 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7544 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7546 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7548 # Generated by $as_me.
7549 # Run this file to recreate the current configuration.
7550 # Compiler output produced by configure, useful for debugging
7551 # configure, is in config.log if it exists.
7557 SHELL=\${CONFIG_SHELL-$SHELL}
7560 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7561 ## -------------------- ##
7562 ## M4sh Initialization. ##
7563 ## -------------------- ##
7565 # Be more Bourne compatible
7566 DUALCASE
=1; export DUALCASE
# for MKS sh
7567 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7570 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7571 # is contrary to our usage. Disable this feature.
7572 alias -g '${1+"$@"}'='"$@"'
7573 setopt NO_GLOB_SUBST
7575 case `(set -o) 2>/dev/null` in #(
7587 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7588 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7589 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7590 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7591 # Prefer a ksh shell builtin over an external printf program on Solaris,
7592 # but without wasting forks for bash or zsh.
7593 if test -z "$BASH_VERSION$ZSH_VERSION" \
7594 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7595 as_echo='print
-r --'
7596 as_echo_n='print
-rn --'
7597 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7598 as_echo='printf %s
\n'
7599 as_echo_n='printf %s
'
7601 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7602 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7603 as_echo_n='/usr
/ucb
/echo -n'
7605 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7606 as_echo_n_body='eval
7610 expr "X$arg" : "X\\(.*\\)$as_nl";
7611 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7613 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7615 export as_echo_n_body
7616 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7619 as_echo='sh
-c $as_echo_body as_echo
'
7622 # The user is always right.
7623 if test "${PATH_SEPARATOR+set}" != set; then
7625 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7626 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7633 # We need space, tab and new line, in precisely that order. Quoting is
7634 # there to prevent editors from complaining about space-tab.
7635 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7636 # splitting by setting IFS to empty value.)
7639 # Find who we are. Look in the path if we contain no directory separator.
7641 *[\\/]* ) as_myself=$0 ;;
7642 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir=.
7647 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7653 # We did not find ourselves, most probably we were run as `sh COMMAND'
7654 # in which case we are not to be found in the path.
7655 if test "x$as_myself" = x
; then
7658 if test ! -f "$as_myself"; then
7659 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7663 # Unset variables that we do not need and which cause bugs (e.g. in
7664 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7665 # suppresses any "Segmentation fault" message there. '((' could
7666 # trigger a bug in pdksh 5.2.14.
7667 for as_var
in BASH_ENV ENV MAIL MAILPATH
7668 do eval test x\
${$as_var+set} = xset \
7669 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7682 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7685 # as_fn_error ERROR [LINENO LOG_FD]
7686 # ---------------------------------
7687 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7688 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7689 # script with status $?, using 1 if that was 0.
7692 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7694 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7695 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7697 $as_echo "$as_me: error: $1" >&2
7698 as_fn_exit
$as_status
7702 # as_fn_set_status STATUS
7703 # -----------------------
7704 # Set $? to STATUS, without forking.
7708 } # as_fn_set_status
7712 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7722 # Portably unset VAR.
7725 { eval $1=; unset $1;}
7727 as_unset
=as_fn_unset
7728 # as_fn_append VAR VALUE
7729 # ----------------------
7730 # Append the text in VALUE to the end of the definition contained in VAR. Take
7731 # advantage of any shell optimizations that allow amortized linear growth over
7732 # repeated appends, instead of the typical quadratic growth present in naive
7734 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7735 eval 'as_fn_append ()
7746 # as_fn_arith ARG...
7747 # ------------------
7748 # Perform arithmetic evaluation on the ARGs, and store the result in the
7749 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7750 # must be portable across $(()) and expr.
7751 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7752 eval 'as_fn_arith ()
7759 as_val
=`expr "$@" || test $? -eq 1`
7764 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7765 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7771 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7772 as_basename
=basename
7777 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7783 as_me
=`$as_basename -- "$0" ||
7784 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7785 X"$0" : 'X\(//\)$' \| \
7786 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7788 sed '/^.*\/\([^/][^/]*\)\/*$/{
7802 # Avoid depending upon Character Ranges.
7803 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7804 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7805 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7806 as_cr_digits
='0123456789'
7807 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7809 ECHO_C
= ECHO_N
= ECHO_T
=
7810 case `echo -n x` in #(((((
7812 case `echo 'xy\c'` in
7813 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7815 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7822 rm -f conf$$ conf$$.exe conf$$.
file
7823 if test -d conf$$.dir
; then
7824 rm -f conf$$.dir
/conf$$.
file
7827 mkdir conf$$.dir
2>/dev
/null
7829 if (echo >conf$$.
file) 2>/dev
/null
; then
7830 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7832 # ... but there are two gotchas:
7833 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7834 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7835 # In both cases, we have to default to `cp -p'.
7836 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7838 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7846 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7847 rmdir conf$$.dir
2>/dev
/null
7852 # Create "$as_dir" as a directory, including parents if necessary.
7857 -*) as_dir
=.
/$as_dir;;
7859 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7863 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7864 *) as_qdir
=$as_dir;;
7866 as_dirs
="'$as_qdir' $as_dirs"
7867 as_dir
=`$as_dirname -- "$as_dir" ||
7868 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7869 X"$as_dir" : 'X\(//\)[^/]' \| \
7870 X"$as_dir" : 'X\(//\)$' \| \
7871 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7872 $as_echo X"$as_dir" |
7873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7890 test -d "$as_dir" && break
7892 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7893 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
7897 if mkdir
-p .
2>/dev
/null
; then
7898 as_mkdir_p
='mkdir -p "$as_dir"'
7900 test -d .
/-p && rmdir .
/-p
7904 if test -x / >/dev
/null
2>&1; then
7907 if ls -dL / >/dev
/null
2>&1; then
7914 if test -d "$1"; then
7920 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7921 ???[sx]*):;;*)false;;esac;fi
7925 as_executable_p
=$as_test_x
7927 # Sed expression to map a string onto a valid CPP name.
7928 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7930 # Sed expression to map a string onto a valid variable name.
7931 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7935 ## ----------------------------------- ##
7936 ## Main body of $CONFIG_STATUS script. ##
7937 ## ----------------------------------- ##
7939 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7942 # Save the log message, to keep $0 and so on meaningful, and to
7943 # report actual input values of CONFIG_FILES etc. instead of their
7944 # values after options handling.
7946 This file was extended by cpplib $as_me , which was
7947 generated by GNU Autoconf 2.64. Invocation command line was
7949 CONFIG_FILES = $CONFIG_FILES
7950 CONFIG_HEADERS = $CONFIG_HEADERS
7951 CONFIG_LINKS = $CONFIG_LINKS
7952 CONFIG_COMMANDS = $CONFIG_COMMANDS
7955 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7960 case $ac_config_files in *"
7961 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7964 case $ac_config_headers in *"
7965 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7970 # Files that config.status was made for.
7971 config_files="$ac_config_files"
7972 config_headers="$ac_config_headers"
7973 config_commands="$ac_config_commands"
7977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7979 \`$as_me' instantiates files and other configuration actions
7980 from templates according to the current configuration. Unless the files
7981 and actions are specified as TAGs, all are instantiated by default.
7983 Usage: $0 [OPTION]... [TAG]...
7985 -h, --help print this help, then exit
7986 -V, --version print version number and configuration settings, then exit
7987 -q, --quiet, --silent
7988 do not print progress messages
7989 -d, --debug don't remove temporary files
7990 --recheck update $as_me by reconfiguring in the same conditions
7991 --file=FILE[:TEMPLATE]
7992 instantiate the configuration file FILE
7993 --header=FILE[:TEMPLATE]
7994 instantiate the configuration header FILE
7996 Configuration files:
7999 Configuration headers:
8002 Configuration commands:
8005 Report bugs to <gcc-bugs@gcc.gnu.org>."
8008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8010 cpplib config.status
8011 configured by $0, generated by GNU Autoconf 2.64,
8012 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8014 Copyright (C) 2009 Free Software Foundation, Inc.
8015 This config.status script is free software; the Free Software Foundation
8016 gives unlimited permission to copy, distribute and modify it."
8021 test -n "\$AWK" || AWK=awk
8024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8025 # The default lists apply if the user does not specify any file.
8031 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8032 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8043 # Handling of the options.
8044 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8046 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8047 $as_echo "$ac_cs_version"; exit ;;
8048 --debug |
--debu |
--deb |
--de |
--d |
-d )
8050 --file |
--fil |
--fi |
--f )
8053 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8055 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8056 ac_need_defaults
=false
;;
8057 --header |
--heade |
--head |
--hea )
8060 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8062 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8063 ac_need_defaults
=false
;;
8065 # Conflict between --help and --header
8066 as_fn_error
"ambiguous option: \`$1'
8067 Try \`$0 --help' for more information.";;
8068 --help |
--hel |
-h )
8069 $as_echo "$ac_cs_usage"; exit ;;
8070 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8071 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8075 -*) as_fn_error
"unrecognized option: \`$1'
8076 Try \`$0 --help' for more information." ;;
8078 *) as_fn_append ac_config_targets
" $1"
8079 ac_need_defaults
=false
;;
8085 ac_configure_extra_args
=
8087 if $ac_cs_silent; then
8089 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8094 if \$ac_cs_recheck; then
8095 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8097 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8098 CONFIG_SHELL='$SHELL'
8104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8108 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8109 ## Running $as_me. ##
8115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8119 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8125 # Handling of arguments.
8126 for ac_config_target
in $ac_config_targets
8128 case $ac_config_target in
8129 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
8130 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8131 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8133 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8138 # If the user did not use the arguments to specify the items to instantiate,
8139 # then the envvar interface is used. Set only those that are not.
8140 # We use the long form for the default assignment because of an extremely
8141 # bizarre bug on SunOS 4.1.3.
8142 if $ac_need_defaults; then
8143 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8144 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8145 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8148 # Have a temporary directory for convenience. Make it in the build tree
8149 # simply because there is no reason against having it here, and in addition,
8150 # creating and moving files from /tmp can sometimes cause problems.
8151 # Hook for its removal unless debugging.
8152 # Note that there is a small window in which the directory will not be cleaned:
8153 # after its creation but before its name has been assigned to `$tmp'.
8157 trap 'exit_status=$?
8158 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8160 trap 'as_fn_exit 1' 1 2 13 15
8162 # Create a (secure) tmp directory for tmp files.
8165 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8166 test -n "$tmp" && test -d "$tmp"
8169 tmp
=.
/conf$$
-$RANDOM
8170 (umask 077 && mkdir
"$tmp")
8171 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
8173 # Set up the scripts for CONFIG_FILES section.
8174 # No need to generate them if there are no CONFIG_FILES.
8175 # This happens for instance with `./config.status config.h'.
8176 if test -n "$CONFIG_FILES"; then
8179 ac_cr
=`echo X | tr X '\015'`
8180 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8181 # But we know of no other shell where ac_cr would be empty at this
8182 # point, so we can use a bashism as a fallback.
8183 if test "x$ac_cr" = x
; then
8184 eval ac_cr
=\$
\'\\r
\'
8186 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8187 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8193 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8198 echo "cat >conf$$subs.awk <<_ACEOF" &&
8199 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8202 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8203 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8205 for ac_last_try in false false false false false :; do
8206 . ./conf$$subs.sh ||
8207 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8209 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8210 if test $ac_delim_n = $ac_delim_num; then
8212 elif $ac_last_try; then
8213 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
8215 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8221 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
8225 s/^/S["/; s
/!.
*/"]=/
8235 s/\(.\{148\}\).*/\1/
8237 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8242 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8249 s/\(.\{148\}\).*/\1/
8251 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8255 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8260 ' <conf$$subs.awk | sed '
8265 ' >>$CONFIG_STATUS || ac_write_fail=1
8266 rm -f conf$$subs.awk
8267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8269 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
8270 for (key in S) S_is_set[key] = 1
8276 nfields = split(line, field, "@
")
8278 len = length(field[1])
8279 for (i = 2; i < nfields; i++) {
8281 keylen = length(key)
8282 if (S_is_set[key]) {
8284 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8285 len += length(value) + length(field[++i])
8296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8297 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8298 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8301 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
8302 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
8305 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8306 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
8307 # trailing colons and then remove the whole line if VPATH becomes empty
8308 # (actually we leave an empty line to preserve line numbers).
8309 if test "x
$srcdir" = x.; then
8310 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8314 s/^\([^=]*=[ ]*\):*/\1/
8320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8321 fi # test -n "$CONFIG_FILES"
8323 # Set up the scripts for CONFIG_HEADERS section.
8324 # No need to generate them if there are no CONFIG_HEADERS.
8325 # This happens for instance with `./config.status Makefile'.
8326 if test -n "$CONFIG_HEADERS"; then
8327 cat >"$tmp/defines.
awk" <<\_ACAWK ||
8331 # Transform confdefs.h into an awk script `defines.awk', embedded as
8332 # here-document in config.status, that substitutes the proper values into
8333 # config.h.in to produce config.h.
8335 # Create a delimiter string that does not exist in confdefs.h, to ease
8336 # handling of long lines.
8338 for ac_last_try in false false :; do
8339 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
8340 if test -z "$ac_t"; then
8342 elif $ac_last_try; then
8343 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
8345 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8349 # For the awk script, D is an array of macro values keyed by name,
8350 # likewise P contains macro parameters if any. Preserve backslash
8351 # newline sequences.
8353 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8355 s/.\{148\}/&'"$ac_delim"'/g
8358 s/^[ ]*#[ ]*define[ ][ ]*/ /
8365 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8367 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8371 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8372 D["\
1"]=" \
3\\\\\\n
"\\/p
8374 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8379 s/.\{148\}/&'"$ac_delim"'/g
8384 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8387 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8389 ' <confdefs.h | sed '
8390 s/'"$ac_delim"'/"\\\
8391 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8394 for (key in D) D_is_set[key] = 1
8397 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8399 split(line, arg, " ")
8400 if (arg[1] == "#") {
8404 defundef
= substr
(arg
[1], 2)
8407 split(mac1
, mac2
, "(") #)
8409 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8410 if (D_is_set
[macro
]) {
8411 # Preserve the white space surrounding the "#".
8412 print prefix
"define", macro P
[macro
] D
[macro
]
8415 # Replace #undef with comments. This is necessary, for example,
8416 # in the case of _POSIX_SOURCE, which is predefined and required
8417 # on some systems where configure will not decide to define it.
8418 if (defundef
== "undef") {
8419 print
"/*", prefix defundef
, macro
, "*/"
8427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8428 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
8429 fi # test -n "$CONFIG_HEADERS"
8432 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8437 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8439 case $ac_mode$ac_tag in
8441 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8442 :[FH
]-) ac_tag
=-:-;;
8443 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8460 -) ac_f
="$tmp/stdin";;
8461 *) # Look for the file first in the build tree, then in the source tree
8462 # (if the path is not absolute). The absolute path cannot be DOS-style,
8463 # because $ac_f cannot contain `:'.
8467 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8469 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
8471 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8472 as_fn_append ac_file_inputs
" '$ac_f'"
8475 # Let's still pretend it is `configure' which instantiates (i.e., don't
8476 # use $as_me), people would be surprised to read:
8477 # /* config.h. Generated by config.status. */
8478 configure_input
='Generated from '`
8479 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8481 if test x
"$ac_file" != x-
; then
8482 configure_input
="$ac_file. $configure_input"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8484 $as_echo "$as_me: creating $ac_file" >&6;}
8486 # Neutralize special characters interpreted by sed in replacement strings.
8487 case $configure_input in #(
8488 *\
&* |
*\|
* |
*\\* )
8489 ac_sed_conf_input
=`$as_echo "$configure_input" |
8490 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8491 *) ac_sed_conf_input
=$configure_input;;
8495 *:-:* |
*:-) cat >"$tmp/stdin" \
8496 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8501 ac_dir
=`$as_dirname -- "$ac_file" ||
8502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8503 X"$ac_file" : 'X\(//\)[^/]' \| \
8504 X"$ac_file" : 'X\(//\)$' \| \
8505 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8506 $as_echo X"$ac_file" |
8507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8524 as_dir
="$ac_dir"; as_fn_mkdir_p
8528 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8530 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8531 # A ".." for each directory in $ac_dir_suffix.
8532 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8533 case $ac_top_builddir_sub in
8534 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8535 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8538 ac_abs_top_builddir
=$ac_pwd
8539 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8540 # for backward compatibility:
8541 ac_top_builddir
=$ac_top_build_prefix
8544 .
) # We are building in place.
8546 ac_top_srcdir
=$ac_top_builddir_sub
8547 ac_abs_top_srcdir
=$ac_pwd ;;
8548 [\\/]* | ?
:[\\/]* ) # Absolute name.
8549 ac_srcdir
=$srcdir$ac_dir_suffix;
8550 ac_top_srcdir
=$srcdir
8551 ac_abs_top_srcdir
=$srcdir ;;
8553 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8554 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8555 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8557 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8567 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8568 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8573 # If the template does not know about datarootdir, expand it.
8574 # FIXME: This hack should be removed a few years after 2.60.
8575 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8586 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8587 *datarootdir
*) ac_datarootdir_seen
=yes;;
8588 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8590 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8593 ac_datarootdir_hack='
8594 s&@datadir@&$datadir&g
8595 s&@docdir@&$docdir&g
8596 s&@infodir@&$infodir&g
8597 s&@localedir@&$localedir&g
8598 s&@mandir@&$mandir&g
8599 s&\\\${datarootdir}&$datarootdir&g' ;;
8603 # Neutralize VPATH when `$srcdir' = `.'.
8604 # Shell code in configure.ac might set extrasub.
8605 # FIXME: do we really want to maintain this feature?
8606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8607 ac_sed_extra="$ac_vpsub
8610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8612 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8613 s|@configure_input@|
$ac_sed_conf_input|
;t t
8614 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8615 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8616 s
&@srcdir@
&$ac_srcdir&;t t
8617 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8618 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8619 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8620 s
&@builddir@
&$ac_builddir&;t t
8621 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8622 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8623 s
&@INSTALL@
&$ac_INSTALL&;t t
8624 $ac_datarootdir_hack
8626 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8627 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8629 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8630 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8631 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8633 which seems to be undefined. Please make sure it is defined." >&5
8634 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8635 which seems to be undefined. Please make sure it is defined." >&2;}
8639 -) cat "$tmp/out" && rm -f "$tmp/out";;
8640 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8642 || as_fn_error "could not create $ac_file" "$LINENO" 5
8648 if test x"$ac_file" != x-; then
8650 $as_echo "/* $configure_input */" \
8651 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8652 } >"$tmp/config.h" \
8653 || as_fn_error "could not create $ac_file" "$LINENO" 5
8654 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8656 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8659 mv "$tmp/config.h" "$ac_file" \
8660 || as_fn_error "could not create $ac_file" "$LINENO" 5
8663 $as_echo "/* $configure_input */" \
8664 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8665 || as_fn_error "could not create -" "$LINENO" 5
8669 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8670 $as_echo "$as_me: executing $ac_file commands" >&6;}
8675 case $ac_file$ac_mode in
8676 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8677 "config.h":H) echo timestamp > stamp-h1 ;;
8685 ac_clean_files=$ac_clean_files_save
8687 test $ac_write_fail = 0 ||
8688 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8691 # configure is writing to config.log, and then calls config.status.
8692 # config.status does its own redirection, appending to config.log.
8693 # Unfortunately, on DOS this fails, as config.log is still kept open
8694 # by configure, so config.status won't be able to
write to it
; its
8695 # output is simply discarded. So we exec the FD to /dev/null,
8696 # effectively closing config.log, so it can be properly (re)opened and
8697 # appended to by config.status. When coming back to configure, we
8698 # need to make the FD available again.
8699 if test "$no_create" != yes; then
8701 ac_config_status_args
=
8702 test "$silent" = yes &&
8703 ac_config_status_args
="$ac_config_status_args --quiet"
8705 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8707 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8708 # would make configure fail if this is the last instruction.
8709 $ac_cs_success || as_fn_exit $?
8711 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8713 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}