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
698 enable_build_with_cxx
703 enable_maintainer_mode
706 ac_precious_vars
='build_alias
721 # Initialize some variables set by options.
723 ac_init_version
=false
724 ac_unrecognized_opts
=
726 # The variables have the same names as the options, with
727 # dashes changed to underlines.
735 program_transform_name
=s
,x
,x
,
743 # Installation directory options.
744 # These are left unexpanded so users can "make install exec_prefix=/foo"
745 # and all the variables that are supposed to be based on exec_prefix
746 # by default will actually change.
747 # Use braces instead of parens because sh, perl, etc. also accept them.
748 # (The list follows the same order as the GNU Coding Standards.)
749 bindir
='${exec_prefix}/bin'
750 sbindir
='${exec_prefix}/sbin'
751 libexecdir
='${exec_prefix}/libexec'
752 datarootdir
='${prefix}/share'
753 datadir
='${datarootdir}'
754 sysconfdir
='${prefix}/etc'
755 sharedstatedir
='${prefix}/com'
756 localstatedir
='${prefix}/var'
757 includedir
='${prefix}/include'
758 oldincludedir
='/usr/include'
759 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
760 infodir
='${datarootdir}/info'
765 libdir
='${exec_prefix}/lib'
766 localedir
='${datarootdir}/locale'
767 mandir
='${datarootdir}/man'
773 # If the previous option needs an argument, assign it.
774 if test -n "$ac_prev"; then
775 eval $ac_prev=\
$ac_option
781 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785 # Accept the important Cygnus configure options, so we can diagnose typos.
787 case $ac_dashdash$ac_option in
791 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
793 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
796 -build |
--build |
--buil |
--bui |
--bu)
797 ac_prev
=build_alias
;;
798 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
799 build_alias
=$ac_optarg ;;
801 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
802 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
803 ac_prev
=cache_file
;;
804 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
805 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
806 cache_file
=$ac_optarg ;;
809 cache_file
=config.cache
;;
811 -datadir |
--datadir |
--datadi |
--datad)
813 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
814 datadir
=$ac_optarg ;;
816 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
817 |
--dataroo |
--dataro |
--datar)
818 ac_prev
=datarootdir
;;
819 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
820 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
821 datarootdir
=$ac_optarg ;;
823 -disable-* |
--disable-*)
824 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
825 # Reject names that are not valid shell variable names.
826 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
827 as_fn_error
"invalid feature name: $ac_useropt"
828 ac_useropt_orig
=$ac_useropt
829 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
830 case $ac_user_opts in
834 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
835 ac_unrecognized_sep
=', ';;
837 eval enable_
$ac_useropt=no
;;
839 -docdir |
--docdir |
--docdi |
--doc |
--do)
841 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
844 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
846 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
849 -enable-* |
--enable-*)
850 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
853 as_fn_error
"invalid feature name: $ac_useropt"
854 ac_useropt_orig
=$ac_useropt
855 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
860 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
861 ac_unrecognized_sep
=', ';;
863 eval enable_
$ac_useropt=\
$ac_optarg ;;
865 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
866 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
867 |
--exec |
--exe |
--ex)
868 ac_prev
=exec_prefix
;;
869 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
870 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
871 |
--exec=* |
--exe=* |
--ex=*)
872 exec_prefix
=$ac_optarg ;;
874 -gas |
--gas |
--ga |
--g)
875 # Obsolete; use --with-gas.
878 -help |
--help |
--hel |
--he |
-h)
880 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
881 ac_init_help
=recursive
;;
882 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
883 ac_init_help
=short
;;
885 -host |
--host |
--hos |
--ho)
886 ac_prev
=host_alias
;;
887 -host=* |
--host=* |
--hos=* |
--ho=*)
888 host_alias
=$ac_optarg ;;
890 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
892 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
894 htmldir
=$ac_optarg ;;
896 -includedir |
--includedir |
--includedi |
--included |
--include \
897 |
--includ |
--inclu |
--incl |
--inc)
898 ac_prev
=includedir
;;
899 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
900 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
901 includedir
=$ac_optarg ;;
903 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
905 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
906 infodir
=$ac_optarg ;;
908 -libdir |
--libdir |
--libdi |
--libd)
910 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
913 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
914 |
--libexe |
--libex |
--libe)
915 ac_prev
=libexecdir
;;
916 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
917 |
--libexe=* |
--libex=* |
--libe=*)
918 libexecdir
=$ac_optarg ;;
920 -localedir |
--localedir |
--localedi |
--localed |
--locale)
922 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
923 localedir
=$ac_optarg ;;
925 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
926 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
927 ac_prev
=localstatedir
;;
928 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
929 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
930 localstatedir
=$ac_optarg ;;
932 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
934 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
938 # Obsolete; use --without-fp.
941 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
942 |
--no-cr |
--no-c |
-n)
945 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
946 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
949 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
950 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
951 |
--oldin |
--oldi |
--old |
--ol |
--o)
952 ac_prev
=oldincludedir
;;
953 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
954 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
955 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
956 oldincludedir
=$ac_optarg ;;
958 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
960 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
963 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
964 |
--program-pre |
--program-pr |
--program-p)
965 ac_prev
=program_prefix
;;
966 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
967 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
968 program_prefix
=$ac_optarg ;;
970 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
971 |
--program-suf |
--program-su |
--program-s)
972 ac_prev
=program_suffix
;;
973 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
974 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
975 program_suffix
=$ac_optarg ;;
977 -program-transform-name |
--program-transform-name \
978 |
--program-transform-nam |
--program-transform-na \
979 |
--program-transform-n |
--program-transform- \
980 |
--program-transform |
--program-transfor \
981 |
--program-transfo |
--program-transf \
982 |
--program-trans |
--program-tran \
983 |
--progr-tra |
--program-tr |
--program-t)
984 ac_prev
=program_transform_name
;;
985 -program-transform-name=* |
--program-transform-name=* \
986 |
--program-transform-nam=* |
--program-transform-na=* \
987 |
--program-transform-n=* |
--program-transform-=* \
988 |
--program-transform=* |
--program-transfor=* \
989 |
--program-transfo=* |
--program-transf=* \
990 |
--program-trans=* |
--program-tran=* \
991 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
992 program_transform_name
=$ac_optarg ;;
994 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
996 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
999 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1001 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1004 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1005 |
-silent |
--silent |
--silen |
--sile |
--sil)
1008 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1010 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1012 sbindir
=$ac_optarg ;;
1014 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1015 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1016 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1018 ac_prev
=sharedstatedir
;;
1019 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1020 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1021 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1023 sharedstatedir
=$ac_optarg ;;
1025 -site |
--site |
--sit)
1027 -site=* |
--site=* |
--sit=*)
1030 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1032 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1033 srcdir
=$ac_optarg ;;
1035 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1036 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1037 ac_prev
=sysconfdir
;;
1038 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1039 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1040 sysconfdir
=$ac_optarg ;;
1042 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1043 ac_prev
=target_alias
;;
1044 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1045 target_alias
=$ac_optarg ;;
1047 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1050 -version |
--version |
--versio |
--versi |
--vers |
-V)
1051 ac_init_version
=: ;;
1054 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1057 as_fn_error
"invalid package name: $ac_useropt"
1058 ac_useropt_orig
=$ac_useropt
1059 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1064 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1065 ac_unrecognized_sep
=', ';;
1067 eval with_
$ac_useropt=\
$ac_optarg ;;
1069 -without-* |
--without-*)
1070 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1073 as_fn_error
"invalid package name: $ac_useropt"
1074 ac_useropt_orig
=$ac_useropt
1075 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1080 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1081 ac_unrecognized_sep
=', ';;
1083 eval with_
$ac_useropt=no
;;
1086 # Obsolete; use --with-x.
1089 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1090 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1091 ac_prev
=x_includes
;;
1092 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1093 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1094 x_includes
=$ac_optarg ;;
1096 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1097 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1098 ac_prev
=x_libraries
;;
1099 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1100 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1101 x_libraries
=$ac_optarg ;;
1103 -*) as_fn_error
"unrecognized option: \`$ac_option'
1104 Try \`$0 --help' for more information."
1108 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 case $ac_envvar in #(
1111 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1112 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1114 eval $ac_envvar=\
$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 if test -n "$ac_prev"; then
1129 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1130 as_fn_error
"missing argument to $ac_option"
1133 if test -n "$ac_unrecognized_opts"; then
1134 case $enable_option_checking in
1136 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1137 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1141 # Check all directory arguments for consistency.
1142 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1143 datadir sysconfdir sharedstatedir localstatedir includedir \
1144 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1145 libdir localedir mandir
1147 eval ac_val
=\$
$ac_var
1148 # Remove trailing slashes.
1151 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1152 eval $ac_var=\
$ac_val;;
1154 # Be sure to have absolute directory names.
1156 [\\/$
]* | ?
:[\\/]* ) continue;;
1157 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1159 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1162 # There might be people who depend on the old broken behavior: `$host'
1163 # used to hold the argument of --host etc.
1164 # FIXME: To remove some day.
1167 target
=$target_alias
1169 # FIXME: To remove some day.
1170 if test "x$host_alias" != x
; then
1171 if test "x$build_alias" = x
; then
1172 cross_compiling
=maybe
1173 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1174 If a cross compiler is detected then cross compile mode will be used." >&2
1175 elif test "x$build_alias" != "x$host_alias"; then
1181 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1183 test "$silent" = yes && exec 6>/dev
/null
1186 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di
=`ls -di .` &&
1188 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1189 as_fn_error
"working directory cannot be determined"
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 as_fn_error
"pwd does not report name of working directory"
1194 # Find the source files, if location was not specified.
1195 if test -z "$srcdir"; then
1196 ac_srcdir_defaulted
=yes
1197 # Try the directory containing this script, then the parent directory.
1198 ac_confdir
=`$as_dirname -- "$as_myself" ||
1199 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200 X"$as_myself" : 'X\(//\)[^/]' \| \
1201 X"$as_myself" : 'X\(//\)$' \| \
1202 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203 $as_echo X"$as_myself" |
1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1226 ac_srcdir_defaulted
=no
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1230 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1232 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1234 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1236 # When building in place, set srcdir=.
1237 if test "$ac_abs_confdir" = "$ac_pwd"; then
1240 # Remove unnecessary trailing slashes from srcdir.
1241 # Double slashes in file names in object file debugging info
1242 # mess up M-x gdb in Emacs.
1244 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1246 for ac_var
in $ac_precious_vars; do
1247 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1249 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1254 # Report the --help message.
1256 if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1260 \`configure' configures cpplib to adapt to many kinds of systems.
1262 Usage: $0 [OPTION]... [VAR=VALUE]...
1264 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265 VAR=VALUE. See below for descriptions of some of the useful variables.
1267 Defaults for the options are specified in brackets.
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
1274 -q, --quiet, --silent do not print \`checking...' messages
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for \`--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1280 Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
1282 [$ac_default_prefix]
1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1286 By default, \`make install' will install all the files in
1287 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1288 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289 for instance \`--prefix=\$HOME'.
1291 For better control, use the options below.
1293 Fine tuning of the installation directories:
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --libdir=DIR object code libraries [EPREFIX/lib]
1301 --includedir=DIR C header files [PREFIX/include]
1302 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1303 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1304 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1305 --infodir=DIR info documentation [DATAROOTDIR/info]
1306 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1307 --mandir=DIR man documentation [DATAROOTDIR/man]
1308 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1309 --htmldir=DIR html documentation [DOCDIR]
1310 --dvidir=DIR dvi documentation [DOCDIR]
1311 --pdfdir=DIR pdf documentation [DOCDIR]
1312 --psdir=DIR ps documentation [DOCDIR]
1318 --build=BUILD configure
for building on BUILD
[guessed
]
1319 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1320 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1324 if test -n "$ac_init_help"; then
1325 case $ac_init_help in
1326 short | recursive
) echo "Configuration of cpplib :";;
1331 --disable-option-checking ignore unrecognized
--enable/--with options
1332 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1333 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1334 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1335 --enable-werror-always enable -Werror despite compiler version
1336 --disable-rpath do not hardcode runtime library paths
1337 --enable-maintainer-mode enable rules only needed by maintainers
1338 --enable-checking enable expensive run-time checks
1341 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1342 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1343 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1344 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1345 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1347 Some influential environment variables:
1348 CC C compiler command
1349 CFLAGS C compiler flags
1350 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1351 nonstandard directory <lib dir>
1352 LIBS libraries to pass to the linker, e.g. -l<library>
1353 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1354 you have headers in a nonstandard directory <include dir>
1355 CXX C++ compiler command
1356 CXXFLAGS C++ compiler flags
1358 CXXCPP C++ preprocessor
1360 Use these variables to override the choices made by `configure' or to
help
1361 it to
find libraries and programs with nonstandard names
/locations.
1363 Report bugs to
<gcc-bugs@gcc.gnu.org
>.
1368 if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1371 test -d "$ac_dir" ||
1372 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1377 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1379 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1384 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1387 ac_abs_top_builddir
=$ac_pwd
1388 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir
=$ac_top_build_prefix
1393 .
) # We are building in place.
1395 ac_top_srcdir
=$ac_top_builddir_sub
1396 ac_abs_top_srcdir
=$ac_pwd ;;
1397 [\\/]* | ?
:[\\/]* ) # Absolute name.
1398 ac_srcdir
=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir
=$srcdir
1400 ac_abs_top_srcdir
=$srcdir ;;
1402 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1406 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1408 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1417 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1427 generated by GNU Autoconf
2.64
1429 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1430 This configure
script is free software
; the Free Software Foundation
1431 gives unlimited permission to copy
, distribute and modify it.
1436 ## ------------------------ ##
1437 ## Autoconf initialization. ##
1438 ## ------------------------ ##
1440 # ac_fn_c_try_compile LINENO
1441 # --------------------------
1442 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1443 ac_fn_c_try_compile
()
1445 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1446 rm -f conftest.
$ac_objext
1447 if { { ac_try
="$ac_compile"
1449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1450 *) ac_try_echo=$ac_try;;
1452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1453 $as_echo "$ac_try_echo"; } >&5
1454 (eval "$ac_compile") 2>conftest.err
1456 if test -s conftest.err; then
1457 grep -v '^ *+' conftest.err >conftest.er1
1458 cat conftest.er1 >&5
1459 mv -f conftest.er1 conftest.err
1461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1462 test $ac_status = 0; } && {
1463 test -z "$ac_c_werror_flag" ||
1464 test ! -s conftest.err
1465 } && test -s conftest.$ac_objext; then :
1468 $as_echo "$as_me: failed program was:" >&5
1469 sed 's/^/| /' conftest.$ac_ext >&5
1473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1476 } # ac_fn_c_try_compile
1478 # ac_fn_cxx_try_compile LINENO
1479 # ----------------------------
1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1481 ac_fn_cxx_try_compile ()
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 rm -f conftest.$ac_objext
1485 if { { ac_try="$ac_compile"
1487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1488 *) ac_try_echo
=$ac_try;;
1490 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_compile") 2>conftest.err
1494 if test -s conftest.err
; then
1495 grep -v '^ *+' conftest.err
>conftest.er1
1496 cat conftest.er1
>&5
1497 mv -f conftest.er1 conftest.err
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && {
1501 test -z "$ac_cxx_werror_flag" ||
1502 test ! -s conftest.err
1503 } && test -s conftest.
$ac_objext; then :
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.
$ac_ext >&5
1511 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1514 } # ac_fn_cxx_try_compile
1516 # ac_fn_c_try_cpp LINENO
1517 # ----------------------
1518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1521 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1522 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } >/dev/null && {
1538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1553 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1554 # -------------------------------------------------------
1555 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1556 # the include files in INCLUDES and setting the cache variable VAR
1558 ac_fn_c_check_header_mongrel ()
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563 $as_echo_n "checking for $2... " >&6; }
1564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1565 $as_echo_n "(cached) " >&6
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1569 $as_echo "$ac_res" >&6; }
1571 # Is the header compilable?
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1573 $as_echo_n "checking $2 usability... " >&6; }
1574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575 /* end confdefs.h. */
1579 if ac_fn_c_try_compile "$LINENO"; then :
1580 ac_header_compiler=yes
1582 ac_header_compiler=no
1584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1586 $as_echo "$ac_header_compiler" >&6; }
1588 # Is the header present?
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1590 $as_echo_n "checking $2 presence... " >&6; }
1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h. */
1595 if ac_fn_c_try_cpp "$LINENO"; then :
1596 ac_header_preproc=yes
1598 ac_header_preproc=no
1600 rm -f conftest.err conftest.$ac_ext
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1602 $as_echo "$ac_header_preproc" >&6; }
1604 # So? What about this header?
1605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1608 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1610 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1614 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1616 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1618 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1620 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1622 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1624 ## ----------------------------------- ##
1625 ## Report this to gcc-bugs@gcc.gnu.org ##
1626 ## ----------------------------------- ##
1628 ) | sed "s/^/$as_me: WARNING: /" >&2
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1634 $as_echo_n "(cached) " >&6
1636 eval "$3=\$ac_header_compiler"
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 } # ac_fn_c_check_header_mongrel
1646 # ac_fn_c_try_run LINENO
1647 # ----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1649 # that executables *can* be run.
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_link"
1655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1656 *) ac_try_echo
=$ac_try;;
1658 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>&5
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1664 { { case "(($ac_try" in
1665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_try") 2>&5
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; }; }; then :
1676 $as_echo "$as_me: program exited with status $ac_status" >&5
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1680 ac_retval=$ac_status
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists and can be compiled using the include files in
1691 # INCLUDES, setting the cache variable VAR accordingly.
1692 ac_fn_c_check_header_compile ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1698 $as_echo_n "(cached) " >&6
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1705 if ac_fn_c_try_compile "$LINENO"; then :
1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 } # ac_fn_c_check_header_compile
1719 # ac_fn_cxx_try_cpp LINENO
1720 # ------------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_cxx_try_cpp ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_cpp conftest.$ac_ext"
1727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1728 *) ac_try_echo
=$ac_try;;
1730 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1734 if test -s conftest.err
; then
1735 grep -v '^ *+' conftest.err
>conftest.er1
1736 cat conftest.er1
>&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } >/dev
/null
&& {
1741 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1742 test ! -s conftest.err
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.
$ac_ext >&5
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1754 } # ac_fn_cxx_try_cpp
1756 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1757 # ---------------------------------------------------------
1758 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1759 # the include files in INCLUDES and setting the cache variable VAR
1761 ac_fn_cxx_check_header_mongrel
()
1763 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1764 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768 $as_echo_n "(cached) " >&6
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1774 # Is the header compilable?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1776 $as_echo_n "checking $2 usability... " >&6; }
1777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1782 if ac_fn_cxx_try_compile
"$LINENO"; then :
1783 ac_header_compiler
=yes
1785 ac_header_compiler
=no
1787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1789 $as_echo "$ac_header_compiler" >&6; }
1791 # Is the header present?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1793 $as_echo_n "checking $2 presence... " >&6; }
1794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1798 if ac_fn_cxx_try_cpp
"$LINENO"; then :
1799 ac_header_preproc
=yes
1801 ac_header_preproc
=no
1803 rm -f conftest.err conftest.
$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1805 $as_echo "$ac_header_preproc" >&6; }
1807 # So? What about this header?
1808 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1811 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1817 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1819 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1821 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1823 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827 ## ----------------------------------- ##
1828 ## Report this to gcc-bugs@gcc.gnu.org ##
1829 ## ----------------------------------- ##
1831 ) |
sed "s/^/$as_me: WARNING: /" >&2
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 $as_echo_n "(cached) " >&6
1839 eval "$3=\$ac_header_compiler"
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1847 } # ac_fn_cxx_check_header_mongrel
1849 # ac_fn_cxx_try_link LINENO
1850 # -------------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_cxx_try_link
()
1854 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1855 rm -f conftest.
$ac_objext conftest
$ac_exeext
1856 if { { ac_try
="$ac_link"
1858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>conftest.err
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_cxx_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest$ac_exeext && {
1875 test "$cross_compiling" = yes ||
1876 $as_test_x conftest$ac_exeext
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1885 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1886 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1887 # interfere with the next link command; also delete a directory that is
1888 # left behind by Apple's compiler. We do this before executing the actions.
1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 } # ac_fn_cxx_try_link
1895 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1896 # ---------------------------------------------
1897 # Tests whether TYPE exists after having included INCLUDES, setting cache
1898 # variable VAR accordingly.
1899 ac_fn_cxx_check_type ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 $as_echo_n "(cached) " >&6
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1920 if ac_fn_cxx_try_compile "$LINENO"; then :
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1933 if ac_fn_cxx_try_compile "$LINENO"; then :
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947 } # ac_fn_cxx_check_type
1949 # ac_fn_cxx_try_run LINENO
1950 # ------------------------
1951 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1952 # that executables *can* be run.
1953 ac_fn_cxx_try_run ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 if { { ac_try="$ac_link"
1958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1959 *) ac_try_echo
=$ac_try;;
1961 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_link") 2>&5
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1967 { { case "(($ac_try" in
1968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_try") 2>&5
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; }; }; then :
1979 $as_echo "$as_me: program exited with status $ac_status" >&5
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1983 ac_retval=$ac_status
1985 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989 } # ac_fn_cxx_try_run
1991 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
1992 # ----------------------------------------------
1993 # Tries to find the compile-time value of EXPR in a program that includes
1994 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1996 ac_fn_cxx_compute_int ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if test "$cross_compiling" = yes; then
2000 # Depending upon the size, compute the lo and hi bounds.
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2007 static int test_array [1 - 2 * !(($2) >= 0)];
2014 if ac_fn_cxx_try_compile "$LINENO"; then :
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2023 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2030 if ac_fn_cxx_try_compile "$LINENO"; then :
2031 ac_hi=$ac_mid; break
2033 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2034 if test $ac_lo -le $ac_mid; then
2038 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2049 static int test_array [1 - 2 * !(($2) < 0)];
2056 if ac_fn_cxx_try_compile "$LINENO"; then :
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2065 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2072 if ac_fn_cxx_try_compile "$LINENO"; then :
2073 ac_lo=$ac_mid; break
2075 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2076 if test $ac_mid -le $ac_hi; then
2080 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 # Binary search between lo and hi bounds.
2091 while test "x$ac_lo" != "x$ac_hi"; do
2092 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2099 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106 if ac_fn_cxx_try_compile "$LINENO"; then :
2109 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2121 static long int longval () { return $2; }
2122 static unsigned long int ulongval () { return $2; }
2129 FILE *f = fopen ("conftest.val", "w");
2134 long int i = longval ();
2137 fprintf (f, "%ld", i);
2141 unsigned long int i = ulongval ();
2144 fprintf (f, "%lu", i);
2146 /* Do not output a trailing newline, as this causes \r\n confusion
2147 on some platforms. */
2148 return ferror (f) || fclose (f) != 0;
2154 if ac_fn_cxx_try_run "$LINENO"; then :
2155 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2160 conftest.$ac_objext conftest.beam conftest.$ac_ext
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2167 } # ac_fn_cxx_compute_int
2169 # ac_fn_cxx_check_func LINENO FUNC VAR
2170 # ------------------------------------
2171 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2172 ac_fn_cxx_check_func ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2178 $as_echo_n "(cached) " >&6
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2182 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2184 #define $2 innocuous_$2
2186 /* System header to define __stub macros and hopefully few prototypes,
2187 which can conflict with char $2 (); below.
2188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2189 <limits.h> exists even on freestanding compilers. */
2192 # include <limits.h>
2194 # include <assert.h>
2199 /* Override any GCC internal prototype to avoid an error.
2200 Use char because int might match the return type of a GCC
2201 builtin and then its argument prototype would still apply. */
2206 /* The GNU C library defines this for functions which it implements
2207 to always fail with ENOSYS. Some functions are actually named
2208 something starting with __ and the normal name is an alias. */
2209 #if defined __stub_$2 || defined __stub___$2
2221 if ac_fn_cxx_try_link "$LINENO"; then :
2226 rm -f core conftest.err conftest.$ac_objext \
2227 conftest$ac_exeext conftest.$ac_ext
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234 } # ac_fn_cxx_check_func
2236 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2237 # --------------------------------------
2238 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2239 ac_fn_cxx_check_decl ()
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2243 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2245 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2246 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2247 $as_echo_n "(cached) " >&6
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2255 #ifndef $as_decl_name
2257 (void) $as_decl_use;
2259 (void) $as_decl_name;
2267 if ac_fn_cxx_try_compile "$LINENO"; then :
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2279 } # ac_fn_cxx_check_decl
2280 cat >config.log <<_ACEOF
2281 This file contains any messages produced by compilers while
2282 running configure, to aid debugging if configure makes a mistake.
2284 It was created by cpplib $as_me , which was
2285 generated by GNU Autoconf 2.64. Invocation command line was
2297 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2298 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2299 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2300 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2301 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2303 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2304 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2306 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2307 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2308 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2309 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2310 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2311 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2312 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 test -z "$as_dir" && as_dir=.
2321 $as_echo "PATH: $as_dir"
2337 # Keep a trace of the command line.
2338 # Strip out --no-create and --no-recursion so they do not pile up.
2339 # Strip out --silent because we don't want to record it for future runs.
2340 # Also quote any args containing shell meta-characters.
2341 # Make two passes to allow for proper duplicate-argument suppression.
2345 ac_must_keep_next=false
2351 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2353 | -silent | --silent | --silen | --sile | --sil)
2356 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2359 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2361 as_fn_append ac_configure_args1 " '$ac_arg'"
2362 if test $ac_must_keep_next = true; then
2363 ac_must_keep_next=false # Got value, back to normal.
2366 *=* | --config-cache | -C | -disable-* | --disable-* \
2367 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2368 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2369 | -with-* | --with-* | -without-* | --without-* | --x)
2370 case "$ac_configure_args0 " in
2371 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2374 -* ) ac_must_keep_next=true ;;
2377 as_fn_append ac_configure_args " '$ac_arg'"
2382 { ac_configure_args0=; unset ac_configure_args0;}
2383 { ac_configure_args1=; unset ac_configure_args1;}
2385 # When interrupted or exit'd, cleanup temporary files, and complete
2386 # config.log. We remove comments because anyway the quotes in there
2387 # would cause problems or look ugly.
2388 # WARNING: Use '\'' to represent an apostrophe within the trap.
2389 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2390 trap 'exit_status=$?
2391 # Save into config.log some information that might help in debugging.
2396 ## ---------------- ##
2397 ## Cache variables. ##
2398 ## ---------------- ##
2401 # The following way of writing the cache mishandles newlines in values,
2403 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2404 eval ac_val=\$$ac_var
2408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2409 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2412 _ | IFS | as_nl) ;; #(
2413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2414 *) { eval $ac_var=; unset $ac_var;} ;;
2419 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2420 *${as_nl}ac_space=\ *)
2422 "s/'\''/'\''\\\\'\'''\''/g;
2423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2434 ## ----------------- ##
2435 ## Output variables. ##
2436 ## ----------------- ##
2439 for ac_var in $ac_subst_vars
2441 eval ac_val=\$$ac_var
2443 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2445 $as_echo "$ac_var='\''$ac_val'\''"
2449 if test -n "$ac_subst_files"; then
2451 ## ------------------- ##
2452 ## File substitutions. ##
2453 ## ------------------- ##
2456 for ac_var in $ac_subst_files
2458 eval ac_val=\$$ac_var
2460 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2462 $as_echo "$ac_var='\''$ac_val'\''"
2467 if test -s confdefs.h; then
2477 test "$ac_signal" != 0 &&
2478 $as_echo "$as_me: caught signal $ac_signal"
2479 $as_echo "$as_me: exit $exit_status"
2481 rm -f core *.core core.conftest.* &&
2482 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2485 for ac_signal in 1 2 13 15; do
2486 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2490 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2491 rm -f -r conftest* confdefs.h
2493 $as_echo "/* confdefs.h */" > confdefs.h
2495 # Predefined preprocessor variables.
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_NAME "$PACKAGE_NAME"
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_STRING "$PACKAGE_STRING"
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_URL "$PACKAGE_URL"
2522 # Let the site file select an alternate cache file if it wants to.
2523 # Prefer an explicitly selected file to automatically selected ones.
2526 if test -n "$CONFIG_SITE"; then
2527 ac_site_file1=$CONFIG_SITE
2528 elif test "x$prefix" != xNONE; then
2529 ac_site_file1=$prefix/share/config.site
2530 ac_site_file2=$prefix/etc/config.site
2532 ac_site_file1=$ac_default_prefix/share/config.site
2533 ac_site_file2=$ac_default_prefix/etc/config.site
2535 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2537 test "x$ac_site_file" = xNONE && continue
2538 if test -r "$ac_site_file"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2540 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2541 sed 's/^/| /' "$ac_site_file" >&5
2546 if test -r "$cache_file"; then
2547 # Some versions of bash will fail to source /dev/null (special
2548 # files actually), so we avoid doing that.
2549 if test -f "$cache_file"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2551 $as_echo "$as_me: loading cache $cache_file" >&6;}
2553 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2554 *) . "./$cache_file";;
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2559 $as_echo "$as_me: creating cache $cache_file" >&6;}
2563 # Check that the precious variables saved in the cache have kept the same
2565 ac_cache_corrupted=false
2566 for ac_var in $ac_precious_vars; do
2567 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2568 eval ac_new_set=\$ac_env_${ac_var}_set
2569 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2570 eval ac_new_val=\$ac_env_${ac_var}_value
2571 case $ac_old_set,$ac_new_set in
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2574 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2575 ac_cache_corrupted=: ;;
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2578 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2579 ac_cache_corrupted=: ;;
2582 if test "x$ac_old_val" != "x$ac_new_val"; then
2583 # differences in whitespace do not lead to failure.
2584 ac_old_val_w=`echo x
$ac_old_val`
2585 ac_new_val_w=`echo x
$ac_new_val`
2586 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2588 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2589 ac_cache_corrupted=:
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2592 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2593 eval $ac_var=\$ac_old_val
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2596 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2598 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2601 # Pass precious variables to config.status.
2602 if test "$ac_new_set" = set; then
2604 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2605 *) ac_arg=$ac_var=$ac_new_val ;;
2607 case " $ac_configure_args " in
2608 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2609 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2613 if $ac_cache_corrupted; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2617 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2618 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2620 ## -------------------- ##
2621 ## Main body of script. ##
2622 ## -------------------- ##
2625 ac_cpp='$CPP $CPPFLAGS'
2626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2638 for ac_t in install-sh install.sh shtool; do
2639 if test -f "$ac_dir/$ac_t"; then
2641 ac_install_sh="$ac_aux_dir/$ac_t -c"
2646 if test -z "$ac_aux_dir"; then
2647 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2650 # These three variables are undocumented and unsupported,
2651 # and are intended to be withdrawn in a future Autoconf release.
2652 # They can cause serious problems if a builder's source tree is in a directory
2653 # whose full name contains unusual characters.
2654 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2655 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2656 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2659 # Make sure we can run config.sub.
2660 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2661 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2664 $as_echo_n "checking build system type... " >&6; }
2665 if test "${ac_cv_build+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2668 ac_build_alias=$build_alias
2669 test "x$ac_build_alias" = x &&
2670 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2671 test "x$ac_build_alias" = x &&
2672 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2673 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2674 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2678 $as_echo "$ac_cv_build" >&6; }
2679 case $ac_cv_build in
2681 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2684 ac_save_IFS=$IFS; IFS='-'
2690 # Remember, the first character of IFS is used to create $*,
2691 # except with old shells:
2694 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2698 $as_echo_n "checking host system type... " >&6; }
2699 if test "${ac_cv_host+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
2702 if test "x$host_alias" = x; then
2703 ac_cv_host=$ac_cv_build
2705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2706 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2711 $as_echo "$ac_cv_host" >&6; }
2714 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2717 ac_save_IFS=$IFS; IFS='-'
2723 # Remember, the first character of IFS is used to create $*,
2724 # except with old shells:
2727 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2731 $as_echo_n "checking target system type... " >&6; }
2732 if test "${ac_cv_target+set}" = set; then :
2733 $as_echo_n "(cached) " >&6
2735 if test "x$target_alias" = x; then
2736 ac_cv_target=$ac_cv_host
2738 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2739 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2744 $as_echo "$ac_cv_target" >&6; }
2745 case $ac_cv_target in
2747 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2749 target=$ac_cv_target
2750 ac_save_IFS=$IFS; IFS='-'
2756 # Remember, the first character of IFS is used to create $*,
2757 # except with old shells:
2760 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2763 # The aliases save the names the user supplied, while $host etc.
2764 # will get canonicalized.
2765 test -n "$target_alias" &&
2766 test "$program_prefix$program_suffix$program_transform_name" = \
2768 program_prefix=${target_alias}-
2771 # Checks for programs.
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2773 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2775 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2776 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2777 $as_echo_n "(cached) " >&6
2779 cat >conftest.make <<\_ACEOF
2782 @echo '@@@%%%=$(MAKE)=@@@%%%'
2784 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2785 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2787 eval ac_cv_prog_make_${ac_make}_set=yes;;
2789 eval ac_cv_prog_make_${ac_make}_set=no;;
2793 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795 $as_echo "yes" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 SET_MAKE="MAKE=${MAKE-make}"
2803 # Find a good install program. We prefer a C program (faster),
2804 # so one script is as good as another. But avoid the broken or
2805 # incompatible versions:
2806 # SysV /etc/install, /usr/sbin/install
2807 # SunOS /usr/etc/install
2808 # IRIX /sbin/install
2810 # AmigaOS /C/install, which installs bootblocks on floppy discs
2811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2814 # OS/2's system install, which has a completely different semantic
2815 # ./install, which can be erroneously created by make from ./install.sh.
2816 # Reject install programs that cannot install multiple files.
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2818 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2819 if test -z "$INSTALL"; then
2820 if test "${ac_cv_path_install+set}" = set; then :
2821 $as_echo_n "(cached) " >&6
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 # Account for people who put trailing slashes in PATH elements.
2829 case $as_dir/ in #((
2830 ./ | .// | /[cC]/* | \
2831 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2832 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2835 # OSF1 and SCO ODT 3.0 have their own names for install.
2836 # Don't use installbsd from OSF since it installs stuff as root
2838 for ac_prog in ginstall scoinst install; do
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2841 if test $ac_prog = install &&
2842 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2843 # AIX install. It has an incompatible calling convention.
2845 elif test $ac_prog = install &&
2846 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2847 # program-specific install script used by HP pwplus--don't use.
2850 rm -rf conftest.one conftest.two conftest.dir
2851 echo one > conftest.one
2852 echo two > conftest.two
2854 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2855 test -s conftest.one && test -s conftest.two &&
2856 test -s conftest.dir/conftest.one &&
2857 test -s conftest.dir/conftest.two
2859 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2872 rm -rf conftest.one conftest.two conftest.dir
2875 if test "${ac_cv_path_install+set}" = set; then
2876 INSTALL=$ac_cv_path_install
2878 # As a last resort, use the slow shell script. Don't cache a
2879 # value for INSTALL within a source directory, because that will
2880 # break other packages using the cache if that directory is
2881 # removed, or if the value is a relative name.
2882 INSTALL=$ac_install_sh
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2886 $as_echo "$INSTALL" >&6; }
2888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2889 # It thinks the first close brace ends the variable substitution.
2890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 if test -n "$ac_tool_prefix"; then
2902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2903 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_CC+set}" = set; then :
2907 $as_echo_n "(cached) " >&6
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 if test -n "$CC"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932 $as_echo "$CC" >&6; }
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2940 if test -z "$ac_cv_prog_CC"; then
2942 # Extract the first word of "gcc", so it can be a program name with args.
2943 set dummy gcc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
2949 if test -n "$ac_ct_CC"; then
2950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_ac_ct_CC="gcc"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2970 if test -n "$ac_ct_CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2972 $as_echo "$ac_ct_CC" >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2978 if test "x$ac_ct_CC" = x; then
2981 case $cross_compiling:$ac_tool_warned in
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2985 ac_tool_warned=yes ;;
2993 if test -z "$CC"; then
2994 if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}cc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if test "${ac_cv_prog_CC+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_CC="${ac_tool_prefix}cc"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3034 if test -z "$CC"; then
3035 # Extract the first word of "cc", so it can be a program name with args.
3036 set dummy cc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if test "${ac_cv_prog_CC+set}" = set; then :
3040 $as_echo_n "(cached) " >&6
3042 if test -n "$CC"; then
3043 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3054 ac_prog_rejected=yes
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 if test $ac_prog_rejected = yes; then
3066 # We found a bogon in the path, so make sure we never use it.
3067 set dummy $ac_cv_prog_CC
3069 if test $# != 0; then
3070 # We chose a different compiler from the bogus one.
3071 # However, it has the same basename, so the bogon will be chosen
3072 # first if we set CC to just the basename; use the full file name.
3074 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3090 if test -z "$CC"; then
3091 if test -n "$ac_tool_prefix"; then
3092 for ac_prog in cl.exe
3094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_CC+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 if test -n "$CC"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3131 test -n "$CC" && break
3134 if test -z "$CC"; then
3136 for ac_prog in cl.exe
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3145 if test -n "$ac_ct_CC"; then
3146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_ac_ct_CC="$ac_prog"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3166 if test -n "$ac_ct_CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3168 $as_echo "$ac_ct_CC" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3175 test -n "$ac_ct_CC" && break
3178 if test "x$ac_ct_CC" = x; then
3181 case $cross_compiling:$ac_tool_warned in
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3185 ac_tool_warned=yes ;;
3194 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error "no acceptable C compiler found
in \
$PATH
3197 See \
`config.log' for more details." "$LINENO" 5; }
3199 # Provide some information about the compiler.
3200 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3203 for ac_option in --version -v -V -qversion; do
3204 { { ac_try="$ac_compiler $ac_option >&5"
3206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3207 *) ac_try_echo
=$ac_try;;
3209 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213 if test -s conftest.err
; then
3215 ... rest of stderr output deleted ...
3216 10q' conftest.err
>conftest.er1
3217 cat conftest.er1
>&5
3218 rm -f conftest.er1 conftest.err
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }
3224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3235 ac_clean_files_save
=$ac_clean_files
3236 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3237 # Try to create an executable without -o first, disregard a.out.
3238 # It will help us diagnose broken compilers, and finding out an intuition
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3241 $as_echo_n "checking for C compiler default output file name... " >&6; }
3242 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244 # The possible output files:
3245 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3248 for ac_file
in $ac_files
3251 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3252 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3257 if { { ac_try
="$ac_link_default"
3259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_link_default") 2>&5
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }; then :
3268 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3269 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3270 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3271 # so that the user can short-circuit this test for compilers unknown to
3273 for ac_file in $ac_files ''
3275 test -f "$ac_file" || continue
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3280 # We found the default executable, but exeext='' is most
3284 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3286 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288 # We set ac_cv_exeext here because the later test for it is not
3289 # safe: cross compilers may not add the suffix if given an `-o'
3290 # argument, so we may need to know it at that point already.
3291 # Even if this section looks crufty: it has the advantage of
3298 test "$ac_cv_exeext" = no && ac_cv_exeext=
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3304 $as_echo "$ac_file" >&6; }
3305 if test -z "$ac_file"; then :
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's
/^
/|
/' conftest.$ac_ext >&5
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3311 { as_fn_set_status 77
3312 as_fn_error "C compiler cannot create executables
3313 See \`config.log
' for more details." "$LINENO" 5; }; }
3315 ac_exeext=$ac_cv_exeext
3317 # Check that the compiler produces executables we can run. If not, either
3318 # the compiler is broken, or we cross compile.
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3320 $as_echo_n "checking whether the C compiler works... " >&6; }
3321 # If not cross compiling, check that we can run a simple program.
3322 if test "$cross_compiling" != yes; then
3323 if { ac_try='.
/$ac_file'
3324 { { case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_try") 2>&5
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; }; then
3336 if test "$cross_compiling" = maybe; then
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3341 as_fn_error "cannot run C compiled programs.
3342 If you meant to cross compile, use \`--host'.
3343 See \`config.log' for more details.
" "$LINENO" 5; }
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3348 $as_echo "yes" >&6; }
3350 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3351 ac_clean_files=$ac_clean_files_save
3352 # Check that the compiler produces executables we can run. If not, either
3353 # the compiler is broken, or we cross compile.
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3355 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3357 $as_echo "$cross_compiling" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3360 $as_echo_n "checking
for suffix of executables...
" >&6; }
3361 if { { ac_try="$ac_link"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_link") 2>&5
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3371 test $ac_status = 0; }; then :
3372 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3373 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3374 # work properly (i.e., refer to `conftest.exe'), while it won't with
3376 for ac_file in conftest.exe conftest conftest.*; do
3377 test -f "$ac_file" || continue
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3380 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388 as_fn_error "cannot compute suffix of executables: cannot compile and link
3389 See \`config.log' for more details.
" "$LINENO" 5; }
3391 rm -f conftest$ac_cv_exeext
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3393 $as_echo "$ac_cv_exeext" >&6; }
3395 rm -f conftest.$ac_ext
3396 EXEEXT=$ac_cv_exeext
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3399 $as_echo_n "checking
for suffix of object files...
" >&6; }
3400 if test "${ac_cv_objext+set}" = set; then :
3401 $as_echo_n "(cached
) " >&6
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3414 rm -f conftest.o conftest.obj
3415 if { { ac_try="$ac_compile"
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
3422 (eval "$ac_compile") 2>&5
3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3425 test $ac_status = 0; }; then :
3426 for ac_file in conftest.o conftest.obj conftest.*; do
3427 test -f "$ac_file" || continue;
3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3430 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3435 $as_echo "$as_me: failed program was
:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 as_fn_error "cannot compute suffix of object files: cannot compile
3441 See \`config.log' for more details.
" "$LINENO" 5; }
3443 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3446 $as_echo "$ac_cv_objext" >&6; }
3447 OBJEXT=$ac_cv_objext
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3450 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3451 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3452 $as_echo_n "(cached
) " >&6
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3468 if ac_fn_c_try_compile "$LINENO"; then :
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3478 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3479 if test $ac_compiler_gnu = yes; then
3484 ac_test_CFLAGS=${CFLAGS+set}
3485 ac_save_CFLAGS=$CFLAGS
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3487 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3488 if test "${ac_cv_prog_cc_g+set}" = set; then :
3489 $as_echo_n "(cached
) " >&6
3491 ac_save_c_werror_flag=$ac_c_werror_flag
3492 ac_c_werror_flag=yes
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3506 if ac_fn_c_try_compile "$LINENO"; then :
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3521 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_c_werror_flag=$ac_save_c_werror_flag
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3537 if ac_fn_c_try_compile "$LINENO"; then :
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 ac_c_werror_flag=$ac_save_c_werror_flag
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3548 $as_echo "$ac_cv_prog_cc_g" >&6; }
3549 if test "$ac_test_CFLAGS" = set; then
3550 CFLAGS=$ac_save_CFLAGS
3551 elif test $ac_cv_prog_cc_g = yes; then
3552 if test "$GCC" = yes; then
3558 if test "$GCC" = yes; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3565 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3566 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3567 $as_echo_n "(cached
) " >&6
3569 ac_cv_prog_cc_c89=no
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3575 #include <sys/types.h>
3576 #include <sys/stat.h>
3577 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3578 struct buf { int x; };
3579 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3580 static char *e (p, i)
3586 static char *f (char * (*g) (char **, int), char **p, ...)
3591 s = g (p, va_arg (v,int));
3596 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3597 function prototypes and stuff, but not '\xHH' hex character constants.
3598 These don't provoke an error unfortunately, instead are silently treated
3599 as 'x'. The following induces an error, until -std is added to get
3600 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3601 array size at least. It's necessary to write '\x00'==0 to get something
3602 that's true only with -std. */
3603 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3605 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3606 inside strings and character constants. */
3608 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3610 int test (int i, double x);
3611 struct s1 {int (*f) (int a);};
3612 struct s2 {int (*f) (double a);};
3613 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3624 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3625 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3627 CC="$ac_save_CC $ac_arg"
3628 if ac_fn_c_try_compile "$LINENO"; then :
3629 ac_cv_prog_cc_c89=$ac_arg
3631 rm -f core conftest.err conftest.$ac_objext
3632 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3634 rm -f conftest.$ac_ext
3639 case "x
$ac_cv_prog_cc_c89" in
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3642 $as_echo "none needed
" >&6; } ;;
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3645 $as_echo "unsupported
" >&6; } ;;
3647 CC="$CC $ac_cv_prog_cc_c89"
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3649 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3651 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662 ac_cpp='$CXXCPP $CPPFLAGS'
3663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3666 if test -z "$CXX"; then
3667 if test -n "$CCC"; then
3670 if test -n "$ac_tool_prefix"; then
3671 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3676 $as_echo_n "checking
for $ac_word...
" >&6; }
3677 if test "${ac_cv_prog_CXX+set}" = set; then :
3678 $as_echo_n "(cached
) " >&6
3680 if test -n "$CXX"; then
3681 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3690 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3701 if test -n "$CXX"; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
3703 $as_echo "$CXX" >&6; }
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3706 $as_echo "no
" >&6; }
3710 test -n "$CXX" && break
3713 if test -z "$CXX"; then
3715 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3717 # Extract the first word of "$ac_prog", so it can be a program name with args.
3718 set dummy $ac_prog; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3720 $as_echo_n "checking
for $ac_word...
" >&6; }
3721 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3722 $as_echo_n "(cached
) " >&6
3724 if test -n "$ac_ct_CXX"; then
3725 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 ac_cv_prog_ac_ct_CXX="$ac_prog"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3744 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3745 if test -n "$ac_ct_CXX"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
3747 $as_echo "$ac_ct_CXX" >&6; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3750 $as_echo "no
" >&6; }
3754 test -n "$ac_ct_CXX" && break
3757 if test "x
$ac_ct_CXX" = x; then
3760 case $cross_compiling:$ac_tool_warned in
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3763 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3764 ac_tool_warned=yes ;;
3772 # Provide some information about the compiler.
3773 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
3776 for ac_option in --version -v -V -qversion; do
3777 { { ac_try="$ac_compiler $ac_option >&5"
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3782 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3786 if test -s conftest.err; then
3788 ... rest of stderr output deleted ...
3789 10q' conftest.err >conftest.er1
3790 cat conftest.er1 >&5
3791 rm -f conftest.er1 conftest.err
3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3794 test $ac_status = 0; }
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
3798 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
3799 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3800 $as_echo_n "(cached
) " >&6
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3816 if ac_fn_cxx_try_compile "$LINENO"; then :
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
3826 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3827 if test $ac_compiler_gnu = yes; then
3832 ac_test_CXXFLAGS=${CXXFLAGS+set}
3833 ac_save_CXXFLAGS=$CXXFLAGS
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
3835 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
3836 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3837 $as_echo_n "(cached
) " >&6
3839 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3840 ac_cxx_werror_flag=yes
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3854 if ac_fn_cxx_try_compile "$LINENO"; then :
3855 ac_cv_prog_cxx_g=yes
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3869 if ac_fn_cxx_try_compile "$LINENO"; then :
3872 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3885 if ac_fn_cxx_try_compile "$LINENO"; then :
3886 ac_cv_prog_cxx_g=yes
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3896 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3897 if test "$ac_test_CXXFLAGS" = set; then
3898 CXXFLAGS=$ac_save_CXXFLAGS
3899 elif test $ac_cv_prog_cxx_g = yes; then
3900 if test "$GXX" = yes; then
3906 if test "$GXX" = yes; then
3913 ac_cpp='$CPP $CPPFLAGS'
3914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918 if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3922 $as_echo_n "checking
for $ac_word...
" >&6; }
3923 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3924 $as_echo_n "(cached
) " >&6
3926 if test -n "$RANLIB"; then
3927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3946 RANLIB=$ac_cv_prog_RANLIB
3947 if test -n "$RANLIB"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
3949 $as_echo "$RANLIB" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3952 $as_echo "no
" >&6; }
3957 if test -z "$ac_cv_prog_RANLIB"; then
3958 ac_ct_RANLIB=$RANLIB
3959 # Extract the first word of "ranlib
", so it can be a program name with args.
3960 set dummy ranlib; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3962 $as_echo_n "checking
for $ac_word...
" >&6; }
3963 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3964 $as_echo_n "(cached
) " >&6
3966 if test -n "$ac_ct_RANLIB"; then
3967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976 ac_cv_prog_ac_ct_RANLIB="ranlib
"
3977 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3987 if test -n "$ac_ct_RANLIB"; then
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
3989 $as_echo "$ac_ct_RANLIB" >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3992 $as_echo "no
" >&6; }
3995 if test "x
$ac_ct_RANLIB" = x; then
3998 case $cross_compiling:$ac_tool_warned in
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
4001 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
4002 ac_tool_warned=yes ;;
4004 RANLIB=$ac_ct_RANLIB
4007 RANLIB="$ac_cv_prog_RANLIB"
4011 # See if we are building gcc with C++.
4012 # Do this early so setting lang to C++ affects following tests
4013 # Check whether --enable-build-with-cxx was given.
4014 if test "${enable_build_with_cxx+set}" = set; then :
4015 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
4017 ENABLE_BUILD_WITH_CXX=no
4022 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4023 for ac_prog in aclocal
4025 # Extract the first word of "$ac_prog", so it can be a program name with args.
4026 set dummy $ac_prog; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4028 $as_echo_n "checking
for $ac_word...
" >&6; }
4029 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
4030 $as_echo_n "(cached
) " >&6
4032 if test -n "$ACLOCAL"; then
4033 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4042 ac_cv_prog_ACLOCAL="$ac_prog"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4052 ACLOCAL=$ac_cv_prog_ACLOCAL
4053 if test -n "$ACLOCAL"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ACLOCAL" >&5
4055 $as_echo "$ACLOCAL" >&6; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4058 $as_echo "no
" >&6; }
4062 test -n "$ACLOCAL" && break
4064 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal
"
4066 for ac_prog in autoconf
4068 # Extract the first word of "$ac_prog", so it can be a program name with args.
4069 set dummy $ac_prog; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4071 $as_echo_n "checking
for $ac_word...
" >&6; }
4072 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
4073 $as_echo_n "(cached
) " >&6
4075 if test -n "$AUTOCONF"; then
4076 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_AUTOCONF="$ac_prog"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4095 AUTOCONF=$ac_cv_prog_AUTOCONF
4096 if test -n "$AUTOCONF"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AUTOCONF" >&5
4098 $as_echo "$AUTOCONF" >&6; }
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4101 $as_echo "no
" >&6; }
4105 test -n "$AUTOCONF" && break
4107 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf
"
4109 for ac_prog in autoheader
4111 # Extract the first word of "$ac_prog", so it can be a program name with args.
4112 set dummy $ac_prog; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4114 $as_echo_n "checking
for $ac_word...
" >&6; }
4115 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
4116 $as_echo_n "(cached
) " >&6
4118 if test -n "$AUTOHEADER"; then
4119 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128 ac_cv_prog_AUTOHEADER="$ac_prog"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4138 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4139 if test -n "$AUTOHEADER"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AUTOHEADER" >&5
4141 $as_echo "$AUTOHEADER" >&6; }
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4144 $as_echo "no
" >&6; }
4148 test -n "$AUTOHEADER" && break
4150 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader
"
4153 # Figure out what compiler warnings we can enable.
4154 # See config/warnings.m4 for details.
4158 save_CFLAGS="$CFLAGS"
4159 for option in -W -Wall -Wwrite-strings \
4160 -Wmissing-format-attribute; do
4161 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_
$option" | $as_tr_sh`
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC supports
$option" >&5
4164 $as_echo_n "checking whether
$CC supports
$option...
" >&6; }
4165 if { as_var=$as_acx_Woption; eval "test \"\
${$as_var+set}\" = set"; }; then :
4166 $as_echo_n "(cached
) " >&6
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 eval "$as_acx_Woption=yes"
4183 eval "$as_acx_Woption=no
"
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 eval ac_res=\$$as_acx_Woption
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
4190 $as_echo "$ac_res" >&6; }
4191 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4192 warn="$warn${warn:+ }$option"
4195 CFLAGS="$save_CFLAGS"
4198 save_CFLAGS="$CFLAGS"
4199 for option in -Wstrict-prototypes -Wmissing-prototypes \
4200 -Wold-style-definition -Wc++-compat; do
4201 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_
$option" | $as_tr_sh`
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC supports
$option" >&5
4204 $as_echo_n "checking whether
$CC supports
$option...
" >&6; }
4205 if { as_var=$as_acx_Woption; eval "test \"\
${$as_var+set}\" = set"; }; then :
4206 $as_echo_n "(cached
) " >&6
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 eval "$as_acx_Woption=yes"
4223 eval "$as_acx_Woption=no
"
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 eval ac_res=\$$as_acx_Woption
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
4230 $as_echo "$ac_res" >&6; }
4231 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4232 c_warn="$c_warn${c_warn:+ }$option"
4235 CFLAGS="$save_CFLAGS"
4238 if test "$GCC" = yes; then :
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC supports
-pedantic -Wno-long-long" >&5
4240 $as_echo_n "checking whether
$CC supports
-pedantic -Wno-long-long...
" >&6; }
4241 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then :
4242 $as_echo_n "(cached
) " >&6
4244 save_CFLAGS="$CFLAGS"
4245 CFLAGS="-pedantic -Wno-long-long"
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 acx_cv_prog_cc_pedantic__Wno_long_long=yes
4260 acx_cv_prog_cc_pedantic__Wno_long_long=no
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263 CFLAGS="$save_CFLAGS"
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
4266 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long" >&6; }
4267 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then :
4268 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4274 # Only enable with --enable-werror-always until existing warnings are
4277 # Check whether --enable-werror-always was given.
4278 if test "${enable_werror_always+set}" = set; then :
4279 enableval=$enable_werror_always;
4281 enable_werror_always=no
4284 if test $enable_werror_always = yes; then :
4285 WERROR="$WERROR${WERROR:+ }-Werror"
4290 # Dependency checking.
4291 rm -rf .tst 2>/dev/null
4292 mkdir .tst 2>/dev/null
4293 if test -d .tst; then
4298 rmdir .tst 2>/dev/null
4300 DEPDIR="${am__leading_dot}deps
"
4302 ac_config_commands="$ac_config_commands depdir
"
4305 if test "$ENABLE_BUILD_WITH_CXX" = "no
"; then
4306 depcc="$CC" am_compiler_list=
4308 am_depcomp=$ac_aux_dir/depcomp
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of
$depcc" >&5
4310 $as_echo_n "checking dependency style of
$depcc...
" >&6; }
4311 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4312 $as_echo_n "(cached
) " >&6
4314 if test -f "$am_depcomp"; then
4315 # We make a subdir and do the tests there. Otherwise we can end up
4316 # making bogus files that we don't know about and never remove. For
4317 # instance it was reported that on HP-UX the gcc test will end up
4318 # making a dummy file named `D' -- because `-MD' means `put the output
4321 # Copy depcomp to subdir because otherwise we won't find it if we're
4322 # using a relative directory.
4323 cp "$am_depcomp" conftest.dir
4325 # We will build objects and dependencies in a subdirectory because
4326 # it helps to detect inapplicable dependency modes. For instance
4327 # both Tru64's cc and ICC support -MD to output dependencies as a
4328 # side effect of compilation, but ICC will put the dependencies in
4329 # the current directory while Tru64 will put them in the object
4333 am_cv_CC_dependencies_compiler_type=none
4334 if test "$am_compiler_list" = ""; then
4335 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4337 for depmode in $am_compiler_list; do
4338 if test $depmode = none; then break; fi
4340 $as_echo "$as_me:$LINENO: trying
$depmode" >&5
4341 # Setup a source with many dependencies, because some compilers
4342 # like to wrap large dependency lists on column 80 (with \), and
4343 # we should not choose a depcomp mode which is confused by this.
4345 # We need to recreate these files for each test, as the compiler may
4346 # overwrite some of them when testing with obscure command lines.
4347 # This happens at least with the AIX C compiler.
4349 for i in 1 2 3 4 5 6; do
4350 echo '#include "conftst
'$i'.h
"' >> sub/conftest.c
4351 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4352 # Solaris 8's {/usr,}/bin/sh.
4353 touch sub/conftst$i.h
4355 echo "include sub
/conftest.Po
" > confmf
4357 # We check with `-c' and `-o' for the sake of the "dashmstdout
"
4358 # mode. It turns out that the SunPro C++ compiler does not properly
4359 # handle `-M -o', and we need to detect this.
4360 depcmd="depmode
=$depmode \
4361 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
4362 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4363 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c
"
4364 echo "|
$depcmd" | sed -e 's/ */ /g' >&5
4365 if env $depcmd > conftest.err 2>&1 &&
4366 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4367 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4368 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4369 # icc doesn't choke on unknown options, it will just issue warnings
4370 # or remarks (even with -Werror). So we grep stderr for any message
4371 # that says an option was ignored or not supported.
4372 # When given -MP, icc 7.0 and 7.1 complain thusly:
4373 # icc: Command line warning: ignoring option '-M'; no argument required
4374 # The diagnosis changed in icc 8.0:
4375 # icc: Command line remark: option '-MP' not supported
4376 if (grep 'ignoring option' conftest.err ||
4377 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4378 am_cv_CC_dependencies_compiler_type=$depmode
4379 $as_echo "$as_me:$LINENO: success
" >&5
4383 $as_echo "$as_me:$LINENO: failure
, diagnostics are
:" >&5
4384 sed -e 's/^/| /' < conftest.err >&5
4390 am_cv_CC_dependencies_compiler_type=none
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $am_cv_CC_dependencies_compiler_type" >&5
4395 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4396 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4397 then as_fn_error "no usable dependency style found
" "$LINENO" 5
4398 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4404 ac_cpp='$CXXCPP $CPPFLAGS'
4405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4414 if ac_fn_cxx_try_compile "$LINENO"; then :
4417 as_fn_error "C
++ compiler missing or inoperational
" "$LINENO" 5
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_cpp='$CPP $CPPFLAGS'
4422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426 depcc="$CXX" am_compiler_list=
4428 am_depcomp=$ac_aux_dir/depcomp
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of
$depcc" >&5
4430 $as_echo_n "checking dependency style of
$depcc...
" >&6; }
4431 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4432 $as_echo_n "(cached
) " >&6
4434 if test -f "$am_depcomp"; then
4435 # We make a subdir and do the tests there. Otherwise we can end up
4436 # making bogus files that we don't know about and never remove. For
4437 # instance it was reported that on HP-UX the gcc test will end up
4438 # making a dummy file named `D' -- because `-MD' means `put the output
4441 # Copy depcomp to subdir because otherwise we won't find it if we're
4442 # using a relative directory.
4443 cp "$am_depcomp" conftest.dir
4445 # We will build objects and dependencies in a subdirectory because
4446 # it helps to detect inapplicable dependency modes. For instance
4447 # both Tru64's cc and ICC support -MD to output dependencies as a
4448 # side effect of compilation, but ICC will put the dependencies in
4449 # the current directory while Tru64 will put them in the object
4453 am_cv_CXX_dependencies_compiler_type=none
4454 if test "$am_compiler_list" = ""; then
4455 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4457 for depmode in $am_compiler_list; do
4458 if test $depmode = none; then break; fi
4460 $as_echo "$as_me:$LINENO: trying
$depmode" >&5
4461 # Setup a source with many dependencies, because some compilers
4462 # like to wrap large dependency lists on column 80 (with \), and
4463 # we should not choose a depcomp mode which is confused by this.
4465 # We need to recreate these files for each test, as the compiler may
4466 # overwrite some of them when testing with obscure command lines.
4467 # This happens at least with the AIX C compiler.
4469 for i in 1 2 3 4 5 6; do
4470 echo '#include "conftst
'$i'.h
"' >> sub/conftest.c
4471 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4472 # Solaris 8's {/usr,}/bin/sh.
4473 touch sub/conftst$i.h
4475 echo "include sub
/conftest.Po
" > confmf
4477 # We check with `-c' and `-o' for the sake of the "dashmstdout
"
4478 # mode. It turns out that the SunPro C++ compiler does not properly
4479 # handle `-M -o', and we need to detect this.
4480 depcmd="depmode
=$depmode \
4481 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
4482 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4483 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c
"
4484 echo "|
$depcmd" | sed -e 's/ */ /g' >&5
4485 if env $depcmd > conftest.err 2>&1 &&
4486 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4487 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4488 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4489 # icc doesn't choke on unknown options, it will just issue warnings
4490 # or remarks (even with -Werror). So we grep stderr for any message
4491 # that says an option was ignored or not supported.
4492 # When given -MP, icc 7.0 and 7.1 complain thusly:
4493 # icc: Command line warning: ignoring option '-M'; no argument required
4494 # The diagnosis changed in icc 8.0:
4495 # icc: Command line remark: option '-MP' not supported
4496 if (grep 'ignoring option' conftest.err ||
4497 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4498 am_cv_CXX_dependencies_compiler_type=$depmode
4499 $as_echo "$as_me:$LINENO: success
" >&5
4503 $as_echo "$as_me:$LINENO: failure
, diagnostics are
:" >&5
4504 sed -e 's/^/| /' < conftest.err >&5
4510 am_cv_CXX_dependencies_compiler_type=none
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $am_cv_CXX_dependencies_compiler_type" >&5
4515 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4516 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
4517 then as_fn_error "no usable dependency style found
" "$LINENO" 5
4518 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4524 # Checks for header files.
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
time.h and sys
/time.h may both be included
" >&5
4526 $as_echo_n "checking whether
time.h and sys
/time.h may both be included...
" >&6; }
4527 if test "${ac_cv_header_time+set}" = set; then :
4528 $as_echo_n "(cached
) " >&6
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 #include <sys/types.h>
4533 #include <sys/time.h>
4539 if ((struct tm *) 0)
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 ac_cv_header_time=yes
4548 ac_cv_header_time=no
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_time" >&5
4553 $as_echo "$ac_cv_header_time" >&6; }
4554 if test $ac_cv_header_time = yes; then
4556 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
4561 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
4562 if test "${gcc_cv_header_string+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4568 #include <strings.h>
4577 if ac_fn_c_try_compile
"$LINENO"; then :
4578 gcc_cv_header_string
=yes
4580 gcc_cv_header_string
=no
4582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
4585 $as_echo "$gcc_cv_header_string" >&6; }
4586 if test $gcc_cv_header_string = yes; then
4588 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
4593 # AC_CHECK_HEADERS is repeated to work around apparent autoconf 2.59 bug. If
4594 # AC_CHECK_HEADERS comes after the if clause, the last AC_LANG call gets used,
4595 # no matter which branch is taken.
4596 if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
4598 ac_cpp
='$CPP $CPPFLAGS'
4599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4604 ac_cpp
='$CPP $CPPFLAGS'
4605 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4609 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4610 # On Suns, sometimes $CPP names a directory.
4611 if test -n "$CPP" && test -d "$CPP"; then
4614 if test -z "$CPP"; then
4615 if test "${ac_cv_prog_CPP+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4618 # Double quotes because CPP needs to be expanded
4619 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4622 for ac_c_preproc_warn_flag
in '' yes
4624 # Use a header file that comes with gcc, so configuring glibc
4625 # with a fresh cross-compiler works.
4626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4627 # <limits.h> exists even on freestanding compilers.
4628 # On the NeXT, cc -E runs the code through the compiler's parser,
4629 # not just through cpp. "Syntax error" is here to catch this case.
4630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4633 # include <limits.h>
4635 # include <assert.h>
4639 if ac_fn_c_try_cpp
"$LINENO"; then :
4642 # Broken: fails on valid input.
4645 rm -f conftest.err conftest.
$ac_ext
4647 # OK, works on sane cases. Now check whether nonexistent headers
4648 # can be detected and how.
4649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4651 #include <ac_nonexistent.h>
4653 if ac_fn_c_try_cpp
"$LINENO"; then :
4654 # Broken: success on invalid input.
4657 # Passes both tests.
4661 rm -f conftest.err conftest.
$ac_ext
4664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4665 rm -f conftest.err conftest.
$ac_ext
4666 if $ac_preproc_ok; then :
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4679 $as_echo "$CPP" >&6; }
4681 for ac_c_preproc_warn_flag
in '' yes
4683 # Use a header file that comes with gcc, so configuring glibc
4684 # with a fresh cross-compiler works.
4685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4686 # <limits.h> exists even on freestanding compilers.
4687 # On the NeXT, cc -E runs the code through the compiler's parser,
4688 # not just through cpp. "Syntax error" is here to catch this case.
4689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4692 # include <limits.h>
4694 # include <assert.h>
4698 if ac_fn_c_try_cpp
"$LINENO"; then :
4701 # Broken: fails on valid input.
4704 rm -f conftest.err conftest.
$ac_ext
4706 # OK, works on sane cases. Now check whether nonexistent headers
4707 # can be detected and how.
4708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4710 #include <ac_nonexistent.h>
4712 if ac_fn_c_try_cpp
"$LINENO"; then :
4713 # Broken: success on invalid input.
4716 # Passes both tests.
4720 rm -f conftest.err conftest.
$ac_ext
4723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4724 rm -f conftest.err conftest.
$ac_ext
4725 if $ac_preproc_ok; then :
4728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4730 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4731 See \`config.log' for more details." "$LINENO" 5; }
4735 ac_cpp
='$CPP $CPPFLAGS'
4736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4742 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4743 if test "${ac_cv_path_GREP+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4746 if test -z "$GREP"; then
4747 ac_path_GREP_found
=false
4748 # Loop through the user's path and test for each of PROGNAME-LIST
4749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4750 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4753 test -z "$as_dir" && as_dir
=.
4754 for ac_prog
in grep ggrep
; do
4755 for ac_exec_ext
in '' $ac_executable_extensions; do
4756 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4757 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4758 # Check for GNU ac_path_GREP and select it if it is found.
4759 # Check for GNU $ac_path_GREP
4760 case `"$ac_path_GREP" --version 2>&1` in
4762 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4765 $as_echo_n 0123456789 >"conftest.in"
4768 cat "conftest.in" "conftest.in" >"conftest.tmp"
4769 mv "conftest.tmp" "conftest.in"
4770 cp "conftest.in" "conftest.nl"
4771 $as_echo 'GREP' >> "conftest.nl"
4772 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4773 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4774 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4775 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4776 # Best one so far, save it but keep looking for a better one
4777 ac_cv_path_GREP
="$ac_path_GREP"
4778 ac_path_GREP_max
=$ac_count
4780 # 10*(2^10) chars as input seems more than enough
4781 test $ac_count -gt 10 && break
4783 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4786 $ac_path_GREP_found && break 3
4791 if test -z "$ac_cv_path_GREP"; then
4792 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4795 ac_cv_path_GREP
=$GREP
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4800 $as_echo "$ac_cv_path_GREP" >&6; }
4801 GREP
="$ac_cv_path_GREP"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4805 $as_echo_n "checking for egrep... " >&6; }
4806 if test "${ac_cv_path_EGREP+set}" = set; then :
4807 $as_echo_n "(cached) " >&6
4809 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4810 then ac_cv_path_EGREP
="$GREP -E"
4812 if test -z "$EGREP"; then
4813 ac_path_EGREP_found
=false
4814 # Loop through the user's path and test for each of PROGNAME-LIST
4815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4816 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4819 test -z "$as_dir" && as_dir
=.
4820 for ac_prog
in egrep; do
4821 for ac_exec_ext
in '' $ac_executable_extensions; do
4822 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4823 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4824 # Check for GNU ac_path_EGREP and select it if it is found.
4825 # Check for GNU $ac_path_EGREP
4826 case `"$ac_path_EGREP" --version 2>&1` in
4828 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4831 $as_echo_n 0123456789 >"conftest.in"
4834 cat "conftest.in" "conftest.in" >"conftest.tmp"
4835 mv "conftest.tmp" "conftest.in"
4836 cp "conftest.in" "conftest.nl"
4837 $as_echo 'EGREP' >> "conftest.nl"
4838 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4839 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4840 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4841 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4842 # Best one so far, save it but keep looking for a better one
4843 ac_cv_path_EGREP
="$ac_path_EGREP"
4844 ac_path_EGREP_max
=$ac_count
4846 # 10*(2^10) chars as input seems more than enough
4847 test $ac_count -gt 10 && break
4849 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4852 $ac_path_EGREP_found && break 3
4857 if test -z "$ac_cv_path_EGREP"; then
4858 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4861 ac_cv_path_EGREP
=$EGREP
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4867 $as_echo "$ac_cv_path_EGREP" >&6; }
4868 EGREP
="$ac_cv_path_EGREP"
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4872 $as_echo_n "checking for ANSI C header files... " >&6; }
4873 if test "${ac_cv_header_stdc+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4891 if ac_fn_c_try_compile
"$LINENO"; then :
4892 ac_cv_header_stdc
=yes
4894 ac_cv_header_stdc
=no
4896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4898 if test $ac_cv_header_stdc = yes; then
4899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906 $EGREP "memchr" >/dev
/null
2>&1; then :
4909 ac_cv_header_stdc
=no
4915 if test $ac_cv_header_stdc = yes; then
4916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4923 $EGREP "free" >/dev
/null
2>&1; then :
4926 ac_cv_header_stdc
=no
4932 if test $ac_cv_header_stdc = yes; then
4933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4934 if test "$cross_compiling" = yes; then :
4937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4941 #if ((' ' & 0x0FF) == 0x020)
4942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4945 # define ISLOWER(c) \
4946 (('a' <= (c) && (c) <= 'i') \
4947 || ('j' <= (c) && (c) <= 'r') \
4948 || ('s' <= (c) && (c) <= 'z'))
4949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4957 for (i = 0; i < 256; i++)
4958 if (XOR (islower (i), ISLOWER (i))
4959 || toupper (i) != TOUPPER (i))
4964 if ac_fn_c_try_run
"$LINENO"; then :
4967 ac_cv_header_stdc
=no
4969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4970 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4976 $as_echo "$ac_cv_header_stdc" >&6; }
4977 if test $ac_cv_header_stdc = yes; then
4979 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4983 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4984 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4985 inttypes.h stdint.h unistd.h
4987 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4988 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4990 eval as_val
=\$
$as_ac_Header
4991 if test "x$as_val" = x
""yes; then :
4992 cat >>confdefs.h
<<_ACEOF
4993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5001 for ac_header
in locale.h fcntl.h limits.h stddef.h \
5002 stdlib.h
strings.h string.h sys
/file.h unistd.h
5004 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5005 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5006 eval as_val
=\$
$as_ac_Header
5007 if test "x$as_val" = x
""yes; then :
5008 cat >>confdefs.h
<<_ACEOF
5009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5018 ac_cpp
='$CXXCPP $CPPFLAGS'
5019 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5024 ac_cpp
='$CXXCPP $CPPFLAGS'
5025 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5026 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5027 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5029 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5030 if test -z "$CXXCPP"; then
5031 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5034 # Double quotes because CXXCPP needs to be expanded
5035 for CXXCPP
in "$CXX -E" "/lib/cpp"
5038 for ac_cxx_preproc_warn_flag
in '' yes
5040 # Use a header file that comes with gcc, so configuring glibc
5041 # with a fresh cross-compiler works.
5042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 # <limits.h> exists even on freestanding compilers.
5044 # On the NeXT, cc -E runs the code through the compiler's parser,
5045 # not just through cpp. "Syntax error" is here to catch this case.
5046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5049 # include <limits.h>
5051 # include <assert.h>
5055 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5058 # Broken: fails on valid input.
5061 rm -f conftest.err conftest.
$ac_ext
5063 # OK, works on sane cases. Now check whether nonexistent headers
5064 # can be detected and how.
5065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 #include <ac_nonexistent.h>
5069 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5070 # Broken: success on invalid input.
5073 # Passes both tests.
5077 rm -f conftest.err conftest.
$ac_ext
5080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081 rm -f conftest.err conftest.
$ac_ext
5082 if $ac_preproc_ok; then :
5087 ac_cv_prog_CXXCPP
=$CXXCPP
5090 CXXCPP
=$ac_cv_prog_CXXCPP
5092 ac_cv_prog_CXXCPP
=$CXXCPP
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5095 $as_echo "$CXXCPP" >&6; }
5097 for ac_cxx_preproc_warn_flag
in '' yes
5099 # Use a header file that comes with gcc, so configuring glibc
5100 # with a fresh cross-compiler works.
5101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5102 # <limits.h> exists even on freestanding compilers.
5103 # On the NeXT, cc -E runs the code through the compiler's parser,
5104 # not just through cpp. "Syntax error" is here to catch this case.
5105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5108 # include <limits.h>
5110 # include <assert.h>
5114 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5117 # Broken: fails on valid input.
5120 rm -f conftest.err conftest.
$ac_ext
5122 # OK, works on sane cases. Now check whether nonexistent headers
5123 # can be detected and how.
5124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 #include <ac_nonexistent.h>
5128 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5129 # Broken: success on invalid input.
5132 # Passes both tests.
5136 rm -f conftest.err conftest.
$ac_ext
5139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5140 rm -f conftest.err conftest.
$ac_ext
5141 if $ac_preproc_ok; then :
5144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5146 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5147 See \`config.log' for more details." "$LINENO" 5; }
5151 ac_cpp
='$CXXCPP $CPPFLAGS'
5152 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5157 for ac_header
in locale.h fcntl.h limits.h stddef.h \
5158 stdlib.h
strings.h string.h sys
/stat.h sys
/file.h unistd.h
5160 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5161 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5162 eval as_val
=\$
$as_ac_Header
5163 if test "x$as_val" = x
""yes; then :
5164 cat >>confdefs.h
<<_ACEOF
5165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5174 # Checks for typedefs, structures, and compiler characteristics.
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5176 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5177 if test "${ac_cv_c_const+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5186 /* FIXME: Include the comments suggested by Paul. */
5188 /* Ultrix mips cc rejects this. */
5189 typedef int charset[2];
5191 /* SunOS 4.1.1 cc rejects this. */
5192 char const *const *pcpcc;
5194 /* NEC SVR4.0.2 mips cc rejects this. */
5195 struct point {int x, y;};
5196 static struct point const zero = {0,0};
5197 /* AIX XL C 1.02.0.0 rejects this.
5198 It does not let you subtract one const X* pointer from another in
5199 an arm of an if-expression whose if-part is not a constant
5201 const char *g = "string";
5202 pcpcc = &g + (g ? g-g : 0);
5203 /* HPUX 7.0 cc rejects these. */
5205 ppc = (char**) pcpcc;
5206 pcpcc = (char const *const *) ppc;
5207 { /* SCO 3.2v4 cc rejects this. */
5209 char const *s = 0 ? (char *) 0 : (char const *) 0;
5214 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5216 const int *foo = &x[0];
5219 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5220 typedef const int *iptr;
5224 { /* AIX XL C 1.02.0.0 rejects this saying
5225 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5226 struct s { int j; const int *ap[3]; };
5227 struct s *b; b->j = 5;
5229 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5233 return !cs[0] && !zero.x;
5240 if ac_fn_cxx_try_compile
"$LINENO"; then :
5245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5248 $as_echo "$ac_cv_c_const" >&6; }
5249 if test $ac_cv_c_const = no
; then
5251 $as_echo "#define const /**/" >>confdefs.h
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5256 $as_echo_n "checking for inline... " >&6; }
5257 if test "${ac_cv_c_inline+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5261 for ac_kw
in inline __inline__ __inline
; do
5262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5266 static $ac_kw foo_t static_foo () {return 0; }
5267 $ac_kw foo_t foo () {return 0; }
5271 if ac_fn_cxx_try_compile
"$LINENO"; then :
5272 ac_cv_c_inline
=$ac_kw
5274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5275 test "$ac_cv_c_inline" != no
&& break
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5280 $as_echo "$ac_cv_c_inline" >&6; }
5282 case $ac_cv_c_inline in
5285 case $ac_cv_c_inline in
5287 *) ac_val
=$ac_cv_c_inline;;
5289 cat >>confdefs.h
<<_ACEOF
5291 #define inline $ac_val
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5298 $as_echo_n "checking for obstacks... " >&6; }
5299 if test "${ac_cv_func_obstack+set}" = set; then :
5300 $as_echo_n "(cached) " >&6
5302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 $ac_includes_default
5305 #include "obstack.h"
5310 #define obstack_chunk_alloc malloc
5311 #define obstack_chunk_free free
5312 obstack_init (&mem);
5313 obstack_free (&mem, 0);
5318 if ac_fn_cxx_try_link
"$LINENO"; then :
5319 ac_cv_func_obstack
=yes
5321 ac_cv_func_obstack
=no
5323 rm -f core conftest.err conftest.
$ac_objext \
5324 conftest
$ac_exeext conftest.
$ac_ext
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5327 $as_echo "$ac_cv_func_obstack" >&6; }
5328 if test $ac_cv_func_obstack = yes; then
5330 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5333 case " $LIBOBJS " in
5334 *" obstack.$ac_objext "* ) ;;
5335 *) LIBOBJS
="$LIBOBJS obstack.$ac_objext"
5341 ac_fn_cxx_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5342 if test "x$ac_cv_type_off_t" = x
""yes; then :
5346 cat >>confdefs.h
<<_ACEOF
5347 #define off_t long int
5352 ac_fn_cxx_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5353 if test "x$ac_cv_type_size_t" = x
""yes; then :
5357 cat >>confdefs.h
<<_ACEOF
5358 #define size_t unsigned int
5363 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5364 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
5368 cat >>confdefs.h
<<_ACEOF
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5375 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5376 if test "${ac_cv_struct_tm+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #include <sys/types.h>
5388 int *p = &tm.tm_sec;
5394 if ac_fn_cxx_try_compile
"$LINENO"; then :
5395 ac_cv_struct_tm
=time.h
5397 ac_cv_struct_tm
=sys
/time.h
5399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5402 $as_echo "$ac_cv_struct_tm" >&6; }
5403 if test $ac_cv_struct_tm = sys
/time.h
; then
5405 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5409 # The cast to long int works around a bug in the HP C Compiler
5410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5412 # This bug is HP SR number 8606223364.
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5414 $as_echo_n "checking size of int... " >&6; }
5415 if test "${ac_cv_sizeof_int+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5418 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5421 if test "$ac_cv_type_int" = yes; then
5422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5424 { as_fn_set_status
77
5425 as_fn_error
"cannot compute sizeof (int)
5426 See \`config.log' for more details." "$LINENO" 5; }; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5434 $as_echo "$ac_cv_sizeof_int" >&6; }
5438 cat >>confdefs.h
<<_ACEOF
5439 #define SIZEOF_INT $ac_cv_sizeof_int
5443 # The cast to long int works around a bug in the HP C Compiler
5444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5446 # This bug is HP SR number 8606223364.
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5448 $as_echo_n "checking size of long... " >&6; }
5449 if test "${ac_cv_sizeof_long+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
5452 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5455 if test "$ac_cv_type_long" = yes; then
5456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5458 { as_fn_set_status
77
5459 as_fn_error
"cannot compute sizeof (long)
5460 See \`config.log' for more details." "$LINENO" 5; }; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5468 $as_echo "$ac_cv_sizeof_long" >&6; }
5472 cat >>confdefs.h
<<_ACEOF
5473 #define SIZEOF_LONG $ac_cv_sizeof_long
5478 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
5480 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5481 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5482 eval as_val
=\$
$as_ac_var
5483 if test "x$as_val" = x
""yes; then :
5484 cat >>confdefs.h
<<_ACEOF
5485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5491 ac_fn_cxx_check_decl
"$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5492 if test "x$ac_cv_have_decl_abort" = x
""yes; then :
5498 cat >>confdefs.h
<<_ACEOF
5499 #define HAVE_DECL_ABORT $ac_have_decl
5501 ac_fn_cxx_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5502 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
5508 cat >>confdefs.h
<<_ACEOF
5509 #define HAVE_DECL_ASPRINTF $ac_have_decl
5511 ac_fn_cxx_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5512 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
5518 cat >>confdefs.h
<<_ACEOF
5519 #define HAVE_DECL_BASENAME $ac_have_decl
5521 ac_fn_cxx_check_decl
"$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5522 if test "x$ac_cv_have_decl_errno" = x
""yes; then :
5528 cat >>confdefs.h
<<_ACEOF
5529 #define HAVE_DECL_ERRNO $ac_have_decl
5531 ac_fn_cxx_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
5532 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
5538 cat >>confdefs.h
<<_ACEOF
5539 #define HAVE_DECL_GETOPT $ac_have_decl
5541 ac_fn_cxx_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5542 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
5548 cat >>confdefs.h
<<_ACEOF
5549 #define HAVE_DECL_VASPRINTF $ac_have_decl
5552 ac_fn_cxx_check_decl
"$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5553 if test "x$ac_cv_have_decl_clearerr_unlocked" = x
""yes; then :
5559 cat >>confdefs.h
<<_ACEOF
5560 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5562 ac_fn_cxx_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5563 if test "x$ac_cv_have_decl_feof_unlocked" = x
""yes; then :
5569 cat >>confdefs.h
<<_ACEOF
5570 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5572 ac_fn_cxx_check_decl
"$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5573 if test "x$ac_cv_have_decl_ferror_unlocked" = x
""yes; then :
5579 cat >>confdefs.h
<<_ACEOF
5580 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5582 ac_fn_cxx_check_decl
"$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5583 if test "x$ac_cv_have_decl_fflush_unlocked" = x
""yes; then :
5589 cat >>confdefs.h
<<_ACEOF
5590 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5592 ac_fn_cxx_check_decl
"$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5593 if test "x$ac_cv_have_decl_fgetc_unlocked" = x
""yes; then :
5599 cat >>confdefs.h
<<_ACEOF
5600 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5602 ac_fn_cxx_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5603 if test "x$ac_cv_have_decl_fgets_unlocked" = x
""yes; then :
5609 cat >>confdefs.h
<<_ACEOF
5610 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
5612 ac_fn_cxx_check_decl
"$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
5613 if test "x$ac_cv_have_decl_fileno_unlocked" = x
""yes; then :
5619 cat >>confdefs.h
<<_ACEOF
5620 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
5622 ac_fn_cxx_check_decl
"$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
5623 if test "x$ac_cv_have_decl_fprintf_unlocked" = x
""yes; then :
5629 cat >>confdefs.h
<<_ACEOF
5630 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
5632 ac_fn_cxx_check_decl
"$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
5633 if test "x$ac_cv_have_decl_fputc_unlocked" = x
""yes; then :
5639 cat >>confdefs.h
<<_ACEOF
5640 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
5642 ac_fn_cxx_check_decl
"$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
5643 if test "x$ac_cv_have_decl_fputs_unlocked" = x
""yes; then :
5649 cat >>confdefs.h
<<_ACEOF
5650 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
5652 ac_fn_cxx_check_decl
"$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
5653 if test "x$ac_cv_have_decl_fread_unlocked" = x
""yes; then :
5659 cat >>confdefs.h
<<_ACEOF
5660 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
5662 ac_fn_cxx_check_decl
"$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
5663 if test "x$ac_cv_have_decl_fwrite_unlocked" = x
""yes; then :
5669 cat >>confdefs.h
<<_ACEOF
5670 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
5672 ac_fn_cxx_check_decl
"$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
5673 if test "x$ac_cv_have_decl_getchar_unlocked" = x
""yes; then :
5679 cat >>confdefs.h
<<_ACEOF
5680 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
5682 ac_fn_cxx_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
5683 if test "x$ac_cv_have_decl_getc_unlocked" = x
""yes; then :
5689 cat >>confdefs.h
<<_ACEOF
5690 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
5692 ac_fn_cxx_check_decl
"$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
5693 if test "x$ac_cv_have_decl_putchar_unlocked" = x
""yes; then :
5699 cat >>confdefs.h
<<_ACEOF
5700 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
5702 ac_fn_cxx_check_decl
"$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
5703 if test "x$ac_cv_have_decl_putc_unlocked" = x
""yes; then :
5709 cat >>confdefs.h
<<_ACEOF
5710 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
5714 # Checks for library functions.
5715 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5716 # for constant arguments. Useless!
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5718 $as_echo_n "checking for working alloca.h... " >&6; }
5719 if test "${ac_cv_working_alloca_h+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5728 char *p = (char *) alloca (2 * sizeof (int));
5734 if ac_fn_cxx_try_link
"$LINENO"; then :
5735 ac_cv_working_alloca_h
=yes
5737 ac_cv_working_alloca_h
=no
5739 rm -f core conftest.err conftest.
$ac_objext \
5740 conftest
$ac_exeext conftest.
$ac_ext
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5743 $as_echo "$ac_cv_working_alloca_h" >&6; }
5744 if test $ac_cv_working_alloca_h = yes; then
5746 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5751 $as_echo_n "checking for alloca... " >&6; }
5752 if test "${ac_cv_func_alloca_works+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5758 # define alloca __builtin_alloca
5761 # include <malloc.h>
5762 # define alloca _alloca
5764 # ifdef HAVE_ALLOCA_H
5765 # include <alloca.h>
5770 # ifndef alloca /* predefined by HP cc +Olibcalls */
5781 char *p = (char *) alloca (1);
5787 if ac_fn_cxx_try_link
"$LINENO"; then :
5788 ac_cv_func_alloca_works
=yes
5790 ac_cv_func_alloca_works
=no
5792 rm -f core conftest.err conftest.
$ac_objext \
5793 conftest
$ac_exeext conftest.
$ac_ext
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5796 $as_echo "$ac_cv_func_alloca_works" >&6; }
5798 if test $ac_cv_func_alloca_works = yes; then
5800 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5803 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5804 # that cause trouble. Some versions do not even contain alloca or
5805 # contain a buggy version. If you still want to use their alloca,
5806 # use ar to extract alloca.o from them instead of compiling alloca.c.
5808 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5810 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5814 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5815 if test "${ac_cv_os_cray+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 #if defined CRAY && ! defined CRAY2
5827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5828 $EGREP "webecray" >/dev
/null
2>&1; then :
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5837 $as_echo "$ac_cv_os_cray" >&6; }
5838 if test $ac_cv_os_cray = yes; then
5839 for ac_func
in _getb67 GETB67 getb67
; do
5840 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5841 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5842 eval as_val
=\$
$as_ac_var
5843 if test "x$as_val" = x
""yes; then :
5845 cat >>confdefs.h
<<_ACEOF
5846 #define CRAY_STACKSEG_END $ac_func
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5856 $as_echo_n "checking stack direction for C alloca... " >&6; }
5857 if test "${ac_cv_c_stack_direction+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5860 if test "$cross_compiling" = yes; then :
5861 ac_cv_c_stack_direction
=0
5863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 $ac_includes_default
5867 find_stack_direction ()
5869 static char *addr = 0;
5874 return find_stack_direction ();
5877 return (&dummy > addr) ? 1 : -1;
5883 return find_stack_direction () < 0;
5886 if ac_fn_cxx_try_run
"$LINENO"; then :
5887 ac_cv_c_stack_direction
=1
5889 ac_cv_c_stack_direction
=-1
5891 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5892 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5897 $as_echo "$ac_cv_c_stack_direction" >&6; }
5898 cat >>confdefs.h
<<_ACEOF
5899 #define STACK_DIRECTION $ac_cv_c_stack_direction
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5906 $as_echo_n "checking for ANSI C header files... " >&6; }
5907 if test "${ac_cv_header_stdc+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5925 if ac_fn_cxx_try_compile
"$LINENO"; then :
5926 ac_cv_header_stdc
=yes
5928 ac_cv_header_stdc
=no
5930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5932 if test $ac_cv_header_stdc = yes; then
5933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5940 $EGREP "memchr" >/dev
/null
2>&1; then :
5943 ac_cv_header_stdc
=no
5949 if test $ac_cv_header_stdc = yes; then
5950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5957 $EGREP "free" >/dev
/null
2>&1; then :
5960 ac_cv_header_stdc
=no
5966 if test $ac_cv_header_stdc = yes; then
5967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5968 if test "$cross_compiling" = yes; then :
5971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5975 #if ((' ' & 0x0FF) == 0x020)
5976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5979 # define ISLOWER(c) \
5980 (('a' <= (c) && (c) <= 'i') \
5981 || ('j' <= (c) && (c) <= 'r') \
5982 || ('s' <= (c) && (c) <= 'z'))
5983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5991 for (i = 0; i < 256; i++)
5992 if (XOR (islower (i), ISLOWER (i))
5993 || toupper (i) != TOUPPER (i))
5998 if ac_fn_cxx_try_run
"$LINENO"; then :
6001 ac_cv_header_stdc
=no
6003 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6004 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6010 $as_echo "$ac_cv_header_stdc" >&6; }
6011 if test $ac_cv_header_stdc = yes; then
6013 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6019 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6020 if test "${am_cv_langinfo_codeset+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
6023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 #include <langinfo.h>
6029 char* cs = nl_langinfo(CODESET);
6034 if ac_fn_cxx_try_link
"$LINENO"; then :
6035 am_cv_langinfo_codeset
=yes
6037 am_cv_langinfo_codeset
=no
6039 rm -f core conftest.err conftest.
$ac_objext \
6040 conftest
$ac_exeext conftest.
$ac_ext
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6044 $as_echo "$am_cv_langinfo_codeset" >&6; }
6045 if test $am_cv_langinfo_codeset = yes; then
6047 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6051 # If we haven't got the data from the intl directory,
6052 # assume NLS is disabled.
6061 if test -f ..
/intl
/config.intl
; then
6062 . ..
/intl
/config.intl
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6065 $as_echo_n "checking whether NLS is requested... " >&6; }
6066 if test x
"$USE_NLS" != xyes
; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6071 $as_echo "yes" >&6; }
6073 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6077 $as_echo_n "checking for catalogs to be installed... " >&6; }
6078 # Look for .po and .gmo files in the source directory.
6081 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6082 # If there aren't any .gmo files the shell will give us the
6083 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6085 case "$cat" in *\
**)
6088 # The quadruple backslash is collapsed to a double backslash
6089 # by the backticks, then collapsed again by the double quotes,
6090 # leaving us with one backslash in the sed expression (right
6091 # before the dot that mustn't act as a wildcard).
6092 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6093 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6094 # The user is allowed to set LINGUAS to a list of languages to
6095 # install catalogs for. If it's empty that means "all of them."
6096 if test "x$LINGUAS" = x
; then
6097 CATALOGS
="$CATALOGS $cat"
6098 XLINGUAS
="$XLINGUAS $lang"
6100 case "$LINGUAS" in *$lang*)
6101 CATALOGS
="$CATALOGS $cat"
6102 XLINGUAS
="$XLINGUAS $lang"
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6109 $as_echo "$LINGUAS" >&6; }
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6123 $as_echo_n "checking for uchar... " >&6; }
6124 if test "${gcc_cv_type_uchar+set}" = set; then :
6125 $as_echo_n "(cached) " >&6
6127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6130 #include <sys/types.h>
6135 if ((uchar *)0) return 0;
6136 if (sizeof(uchar)) return 0;
6141 if ac_fn_cxx_try_compile
"$LINENO"; then :
6142 ac_cv_type_uchar
=yes
6146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6149 $as_echo "$gcc_cv_type_uchar" >&6; }
6150 if test $ac_cv_type_uchar = yes; then
6152 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6157 if test "X$prefix" = "XNONE"; then
6158 acl_final_prefix
="$ac_default_prefix"
6160 acl_final_prefix
="$prefix"
6162 if test "X$exec_prefix" = "XNONE"; then
6163 acl_final_exec_prefix
='${prefix}'
6165 acl_final_exec_prefix
="$exec_prefix"
6167 acl_save_prefix
="$prefix"
6168 prefix
="$acl_final_prefix"
6169 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6170 prefix
="$acl_save_prefix"
6173 # Check whether --with-gnu-ld was given.
6174 if test "${with_gnu_ld+set}" = set; then :
6175 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6180 # Prepare PATH_SEPARATOR.
6181 # The user is always right.
6182 if test "${PATH_SEPARATOR+set}" != set; then
6183 echo "#! /bin/sh" >conf$$.sh
6184 echo "exit 0" >>conf$$.sh
6186 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6194 if test "$GCC" = yes; then
6195 # Check if gcc -print-prog-name=ld gives a path.
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6197 $as_echo_n "checking for ld used by GCC... " >&6; }
6200 # gcc leaves a trailing carriage return which upsets mingw
6201 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6203 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6206 # Accept absolute paths.
6207 [\\/]* |
[A-Za-z
]:[\\/]*)
6208 re_direlt
='/[^/][^/]*/\.\./'
6209 # Canonicalize the path of ld
6210 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6211 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6212 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6214 test -z "$LD" && LD
="$ac_prog"
6217 # If it fails, then pretend we aren't using GCC.
6221 # If it is relative, then search for the first ld in PATH.
6225 elif test "$with_gnu_ld" = yes; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6227 $as_echo_n "checking for GNU ld... " >&6; }
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6230 $as_echo_n "checking for non-GNU ld... " >&6; }
6232 if test "${acl_cv_path_LD+set}" = set; then :
6233 $as_echo_n "(cached) " >&6
6235 if test -z "$LD"; then
6236 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6237 for ac_dir
in $PATH; do
6238 test -z "$ac_dir" && ac_dir
=.
6239 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6240 acl_cv_path_LD
="$ac_dir/$ac_prog"
6241 # Check to see if the program is GNU ld. I'd rather use --version,
6242 # but apparently some GNU ld's only accept -v.
6243 # Break only if it was the GNU/non-GNU ld that we prefer.
6244 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6245 test "$with_gnu_ld" != no
&& break
6247 test "$with_gnu_ld" != yes && break
6253 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6257 LD
="$acl_cv_path_LD"
6258 if test -n "$LD"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6260 $as_echo "$LD" >&6; }
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6265 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6267 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6268 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6271 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6272 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6273 acl_cv_prog_gnu_ld
=yes
6275 acl_cv_prog_gnu_ld
=no
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6279 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6280 with_gnu_ld
=$acl_cv_prog_gnu_ld
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6285 $as_echo_n "checking for shared library run path origin... " >&6; }
6286 if test "${acl_cv_rpath+set}" = set; then :
6287 $as_echo_n "(cached) " >&6
6290 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6291 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6298 $as_echo "$acl_cv_rpath" >&6; }
6300 libext
="$acl_cv_libext"
6301 shlibext
="$acl_cv_shlibext"
6302 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6303 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6304 hardcode_direct
="$acl_cv_hardcode_direct"
6305 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6306 # Check whether --enable-rpath was given.
6307 if test "${enable_rpath+set}" = set; then :
6308 enableval
=$enable_rpath; :
6322 acl_save_prefix
="$prefix"
6323 prefix
="$acl_final_prefix"
6324 acl_save_exec_prefix
="$exec_prefix"
6325 exec_prefix
="$acl_final_exec_prefix"
6327 eval additional_includedir
=\"$includedir\"
6328 eval additional_libdir
=\"$libdir\"
6330 exec_prefix
="$acl_save_exec_prefix"
6331 prefix
="$acl_save_prefix"
6334 # Check whether --with-libiconv-prefix was given.
6335 if test "${with_libiconv_prefix+set}" = set; then :
6336 withval
=$with_libiconv_prefix;
6337 if test "X$withval" = "Xno"; then
6340 if test "X$withval" = "X"; then
6342 acl_save_prefix
="$prefix"
6343 prefix
="$acl_final_prefix"
6344 acl_save_exec_prefix
="$exec_prefix"
6345 exec_prefix
="$acl_final_exec_prefix"
6347 eval additional_includedir
=\"$includedir\"
6348 eval additional_libdir
=\"$libdir\"
6350 exec_prefix
="$acl_save_exec_prefix"
6351 prefix
="$acl_save_prefix"
6354 additional_includedir
="$withval/include"
6355 additional_libdir
="$withval/lib"
6366 names_already_handled
=
6367 names_next_round
='iconv '
6368 while test -n "$names_next_round"; do
6369 names_this_round
="$names_next_round"
6371 for name
in $names_this_round; do
6373 for n
in $names_already_handled; do
6374 if test "$n" = "$name"; then
6379 if test -z "$already_handled"; then
6380 names_already_handled
="$names_already_handled $name"
6381 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6382 eval value
=\"\
$HAVE_LIB$uppername\"
6383 if test -n "$value"; then
6384 if test "$value" = yes; then
6385 eval value
=\"\
$LIB$uppername\"
6386 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
6387 eval value
=\"\
$LTLIB$uppername\"
6388 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
6397 if test $use_additional = yes; then
6398 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6399 found_dir
="$additional_libdir"
6400 found_so
="$additional_libdir/lib$name.$shlibext"
6401 if test -f "$additional_libdir/lib$name.la"; then
6402 found_la
="$additional_libdir/lib$name.la"
6405 if test -f "$additional_libdir/lib$name.$libext"; then
6406 found_dir
="$additional_libdir"
6407 found_a
="$additional_libdir/lib$name.$libext"
6408 if test -f "$additional_libdir/lib$name.la"; then
6409 found_la
="$additional_libdir/lib$name.la"
6414 if test "X$found_dir" = "X"; then
6415 for x
in $LDFLAGS $LTLIBICONV; do
6417 acl_save_prefix
="$prefix"
6418 prefix
="$acl_final_prefix"
6419 acl_save_exec_prefix
="$exec_prefix"
6420 exec_prefix
="$acl_final_exec_prefix"
6422 exec_prefix
="$acl_save_exec_prefix"
6423 prefix
="$acl_save_prefix"
6427 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6428 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6430 found_so
="$dir/lib$name.$shlibext"
6431 if test -f "$dir/lib$name.la"; then
6432 found_la
="$dir/lib$name.la"
6435 if test -f "$dir/lib$name.$libext"; then
6437 found_a
="$dir/lib$name.$libext"
6438 if test -f "$dir/lib$name.la"; then
6439 found_la
="$dir/lib$name.la"
6445 if test "X$found_dir" != "X"; then
6450 if test "X$found_dir" != "X"; then
6451 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6452 if test "X$found_so" != "X"; then
6453 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
6454 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6457 for x
in $ltrpathdirs; do
6458 if test "X$x" = "X$found_dir"; then
6463 if test -z "$haveit"; then
6464 ltrpathdirs
="$ltrpathdirs $found_dir"
6466 if test "$hardcode_direct" = yes; then
6467 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6469 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6470 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6472 for x
in $rpathdirs; do
6473 if test "X$x" = "X$found_dir"; then
6478 if test -z "$haveit"; then
6479 rpathdirs
="$rpathdirs $found_dir"
6483 for x
in $LDFLAGS $LIBICONV; do
6485 acl_save_prefix
="$prefix"
6486 prefix
="$acl_final_prefix"
6487 acl_save_exec_prefix
="$exec_prefix"
6488 exec_prefix
="$acl_final_exec_prefix"
6490 exec_prefix
="$acl_save_exec_prefix"
6491 prefix
="$acl_save_prefix"
6493 if test "X$x" = "X-L$found_dir"; then
6498 if test -z "$haveit"; then
6499 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6501 if test "$hardcode_minus_L" != no
; then
6502 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6504 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
6510 if test "X$found_a" != "X"; then
6511 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
6513 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6516 additional_includedir
=
6517 case "$found_dir" in
6519 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6520 additional_includedir
="$basedir/include"
6523 if test "X$additional_includedir" != "X"; then
6524 if test "X$additional_includedir" != "X/usr/include"; then
6526 if test "X$additional_includedir" = "X/usr/local/include"; then
6527 if test -n "$GCC"; then
6529 linux
*) haveit
=yes;;
6533 if test -z "$haveit"; then
6534 for x
in $CPPFLAGS $INCICONV; do
6536 acl_save_prefix
="$prefix"
6537 prefix
="$acl_final_prefix"
6538 acl_save_exec_prefix
="$exec_prefix"
6539 exec_prefix
="$acl_final_exec_prefix"
6541 exec_prefix
="$acl_save_exec_prefix"
6542 prefix
="$acl_save_prefix"
6544 if test "X$x" = "X-I$additional_includedir"; then
6549 if test -z "$haveit"; then
6550 if test -d "$additional_includedir"; then
6551 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6557 if test -n "$found_la"; then
6558 save_libdir
="$libdir"
6560 */* |
*\\*) .
"$found_la" ;;
6561 *) .
"./$found_la" ;;
6563 libdir
="$save_libdir"
6564 for dep
in $dependency_libs; do
6567 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6568 if test "X$additional_libdir" != "X/usr/lib"; then
6570 if test "X$additional_libdir" = "X/usr/local/lib"; then
6571 if test -n "$GCC"; then
6573 linux
*) haveit
=yes;;
6577 if test -z "$haveit"; then
6579 for x
in $LDFLAGS $LIBICONV; do
6581 acl_save_prefix
="$prefix"
6582 prefix
="$acl_final_prefix"
6583 acl_save_exec_prefix
="$exec_prefix"
6584 exec_prefix
="$acl_final_exec_prefix"
6586 exec_prefix
="$acl_save_exec_prefix"
6587 prefix
="$acl_save_prefix"
6589 if test "X$x" = "X-L$additional_libdir"; then
6594 if test -z "$haveit"; then
6595 if test -d "$additional_libdir"; then
6596 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6600 for x
in $LDFLAGS $LTLIBICONV; do
6602 acl_save_prefix
="$prefix"
6603 prefix
="$acl_final_prefix"
6604 acl_save_exec_prefix
="$exec_prefix"
6605 exec_prefix
="$acl_final_exec_prefix"
6607 exec_prefix
="$acl_save_exec_prefix"
6608 prefix
="$acl_save_prefix"
6610 if test "X$x" = "X-L$additional_libdir"; then
6615 if test -z "$haveit"; then
6616 if test -d "$additional_libdir"; then
6617 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6624 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
6625 if test "$enable_rpath" != no
; then
6627 for x
in $rpathdirs; do
6628 if test "X$x" = "X$dir"; then
6633 if test -z "$haveit"; then
6634 rpathdirs
="$rpathdirs $dir"
6637 for x
in $ltrpathdirs; do
6638 if test "X$x" = "X$dir"; then
6643 if test -z "$haveit"; then
6644 ltrpathdirs
="$ltrpathdirs $dir"
6649 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6652 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6655 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
6656 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6662 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
6663 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6669 if test "X$rpathdirs" != "X"; then
6670 if test -n "$hardcode_libdir_separator"; then
6672 for found_dir
in $rpathdirs; do
6673 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6675 acl_save_libdir
="$libdir"
6677 eval flag
=\"$hardcode_libdir_flag_spec\"
6678 libdir
="$acl_save_libdir"
6679 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
6681 for found_dir
in $rpathdirs; do
6682 acl_save_libdir
="$libdir"
6684 eval flag
=\"$hardcode_libdir_flag_spec\"
6685 libdir
="$acl_save_libdir"
6686 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
6690 if test "X$ltrpathdirs" != "X"; then
6691 for found_dir
in $ltrpathdirs; do
6692 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6702 am_save_CPPFLAGS
="$CPPFLAGS"
6704 for element
in $INCICONV; do
6706 for x
in $CPPFLAGS; do
6708 acl_save_prefix
="$prefix"
6709 prefix
="$acl_final_prefix"
6710 acl_save_exec_prefix
="$exec_prefix"
6711 exec_prefix
="$acl_final_exec_prefix"
6713 exec_prefix
="$acl_save_exec_prefix"
6714 prefix
="$acl_save_prefix"
6716 if test "X$x" = "X$element"; then
6721 if test -z "$haveit"; then
6722 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6728 $as_echo_n "checking for iconv... " >&6; }
6729 if test "${am_cv_func_iconv+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
6733 am_cv_func_iconv
="no, consider installing GNU libiconv"
6735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6742 iconv_t cd = iconv_open("","");
6743 iconv(cd,NULL,NULL,NULL,NULL);
6749 if ac_fn_cxx_try_link
"$LINENO"; then :
6750 am_cv_func_iconv
=yes
6752 rm -f core conftest.err conftest.
$ac_objext \
6753 conftest
$ac_exeext conftest.
$ac_ext
6754 if test "$am_cv_func_iconv" != yes; then
6755 am_save_LIBS
="$LIBS"
6756 LIBS
="$LIBS $LIBICONV"
6757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6764 iconv_t cd = iconv_open("","");
6765 iconv(cd,NULL,NULL,NULL,NULL);
6771 if ac_fn_cxx_try_link
"$LINENO"; then :
6773 am_cv_func_iconv
=yes
6775 rm -f core conftest.err conftest.
$ac_objext \
6776 conftest
$ac_exeext conftest.
$ac_ext
6777 LIBS
="$am_save_LIBS"
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6782 $as_echo "$am_cv_func_iconv" >&6; }
6783 if test "$am_cv_func_iconv" = yes; then
6785 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6788 if test "$am_cv_lib_iconv" = yes; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6790 $as_echo_n "checking how to link with libiconv... " >&6; }
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6792 $as_echo "$LIBICONV" >&6; }
6794 CPPFLAGS
="$am_save_CPPFLAGS"
6801 if test "$am_cv_func_iconv" = yes; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6803 $as_echo_n "checking for iconv declaration... " >&6; }
6804 if test "${am_cv_proto_iconv+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6817 #if defined(__STDC__) || defined(__cplusplus)
6818 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6831 if ac_fn_cxx_try_compile
"$LINENO"; then :
6832 am_cv_proto_iconv_arg1
=""
6834 am_cv_proto_iconv_arg1
="const"
6836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6837 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);"
6840 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6842 }$am_cv_proto_iconv" >&5
6844 }$am_cv_proto_iconv" >&6; }
6846 cat >>confdefs.h
<<_ACEOF
6847 #define ICONV_CONST $am_cv_proto_iconv_arg1
6853 # More defines and substitutions.
6854 PACKAGE
="$PACKAGE_TARNAME"
6856 cat >>confdefs.h
<<_ACEOF
6857 #define PACKAGE "$PACKAGE"
6862 if test "x$enable_nls" != xno
; then
6863 USED_CATALOGS
='$(CATALOGS)'
6869 # Check whether --enable-maintainer-mode was given.
6870 if test "${enable_maintainer_mode+set}" = set; then :
6871 enableval
=$enable_maintainer_mode;
6873 enable_maintainer_mode
=no
6877 if test "x$enable_maintainer_mode" = xno
; then
6884 # Check whether --enable-checking was given.
6885 if test "${enable_checking+set}" = set; then :
6886 enableval
=$enable_checking;
6892 if test $enable_checking != no
; then
6894 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6902 arm
*-*-symbianelf* | \
6906 i
[34567]86-*-darwin* | \
6907 i
[34567]86-*-solaris2.1
[0-9]* | \
6908 i
[34567]86-w64-mingw* | \
6916 sh
[123456789lbe
]*-*-* | sh-
*-*)
6917 need_64bit_hwint
=yes ;;
6918 i
[34567]86-*-linux*)
6919 if test "x$enable_targets" = xall
; then
6920 need_64bit_hwint
=yes
6926 need_64bit_hwint
=no
;;
6929 case $need_64bit_hwint:$ac_cv_sizeof_long in
6930 *:8 | no
:*) host_wide_int
=long
;;
6931 *) host_wide_int
='long long' ;;
6936 cat >>confdefs.h
<<_ACEOF
6937 #define HOST_WIDE_INT $host_wide_int
6943 ac_config_headers
="$ac_config_headers config.h:config.in"
6945 ac_config_files
="$ac_config_files Makefile"
6947 cat >confcache
<<\_ACEOF
6948 # This file is a shell script that caches the results of configure
6949 # tests run on this system so they can be shared between configure
6950 # scripts and configure runs, see configure's option --config-cache.
6951 # It is not useful on other systems. If it contains results you don't
6952 # want to keep, you may remove or edit it.
6954 # config.status only pays attention to the cache file if you give it
6955 # the --recheck option to rerun configure.
6957 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6958 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6963 # The following way of writing the cache mishandles newlines in values,
6964 # but we know of no workaround that is simple, portable, and efficient.
6965 # So, we kill variables containing newlines.
6966 # Ultrix sh set writes to stderr and can't be redirected directly,
6967 # and sets the high bit in the cache file unless we assign to the vars.
6969 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6970 eval ac_val
=\$
$ac_var
6974 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6975 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6978 _ | IFS | as_nl
) ;; #(
6979 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6980 *) { eval $ac_var=; unset $ac_var;} ;;
6986 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6987 *${as_nl}ac_space
=\
*)
6988 # `set' does not quote correctly, so add quotes: double-quote
6989 # substitution turns \\\\ into \\, and sed turns \\ into \.
6992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6995 # `set' quotes correctly as required by POSIX, so do not add quotes.
6996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7007 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7009 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7010 if test -w "$cache_file"; then
7011 test "x$cache_file" != "x/dev/null" &&
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7013 $as_echo "$as_me: updating cache $cache_file" >&6;}
7014 cat confcache
>$cache_file
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7017 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7022 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7023 # Let make expand exec_prefix.
7024 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7026 DEFS
=-DHAVE_CONFIG_H
7030 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7031 # 1. Remove the extension, and $U if already installed.
7032 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7033 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7034 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7035 # will be set to the directory where LIBOBJS objects are built.
7036 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7037 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7041 LTLIBOBJS
=$ac_ltlibobjs
7045 : ${CONFIG_STATUS=./config.status}
7047 ac_clean_files_save
=$ac_clean_files
7048 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7050 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7052 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7054 # Generated by $as_me.
7055 # Run this file to recreate the current configuration.
7056 # Compiler output produced by configure, useful for debugging
7057 # configure, is in config.log if it exists.
7063 SHELL=\${CONFIG_SHELL-$SHELL}
7066 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7067 ## -------------------- ##
7068 ## M4sh Initialization. ##
7069 ## -------------------- ##
7071 # Be more Bourne compatible
7072 DUALCASE
=1; export DUALCASE
# for MKS sh
7073 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7076 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7077 # is contrary to our usage. Disable this feature.
7078 alias -g '${1+"$@"}'='"$@"'
7079 setopt NO_GLOB_SUBST
7081 case `(set -o) 2>/dev/null` in #(
7093 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7094 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7095 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7096 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7097 # Prefer a ksh shell builtin over an external printf program on Solaris,
7098 # but without wasting forks for bash or zsh.
7099 if test -z "$BASH_VERSION$ZSH_VERSION" \
7100 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7101 as_echo='print
-r --'
7102 as_echo_n='print
-rn --'
7103 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7104 as_echo='printf %s
\n'
7105 as_echo_n='printf %s
'
7107 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7108 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7109 as_echo_n='/usr
/ucb
/echo -n'
7111 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7112 as_echo_n_body='eval
7116 expr "X$arg" : "X\\(.*\\)$as_nl";
7117 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7119 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7121 export as_echo_n_body
7122 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7125 as_echo='sh
-c $as_echo_body as_echo
'
7128 # The user is always right.
7129 if test "${PATH_SEPARATOR+set}" != set; then
7131 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7132 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7139 # We need space, tab and new line, in precisely that order. Quoting is
7140 # there to prevent editors from complaining about space-tab.
7141 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7142 # splitting by setting IFS to empty value.)
7145 # Find who we are. Look in the path if we contain no directory separator.
7147 *[\\/]* ) as_myself=$0 ;;
7148 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7159 # We did not find ourselves, most probably we were run as `sh COMMAND'
7160 # in which case we are not to be found in the path.
7161 if test "x$as_myself" = x
; then
7164 if test ! -f "$as_myself"; then
7165 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7169 # Unset variables that we do not need and which cause bugs (e.g. in
7170 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7171 # suppresses any "Segmentation fault" message there. '((' could
7172 # trigger a bug in pdksh 5.2.14.
7173 for as_var
in BASH_ENV ENV MAIL MAILPATH
7174 do eval test x\
${$as_var+set} = xset \
7175 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7188 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7191 # as_fn_error ERROR [LINENO LOG_FD]
7192 # ---------------------------------
7193 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7194 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7195 # script with status $?, using 1 if that was 0.
7198 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7200 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7201 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7203 $as_echo "$as_me: error: $1" >&2
7204 as_fn_exit
$as_status
7208 # as_fn_set_status STATUS
7209 # -----------------------
7210 # Set $? to STATUS, without forking.
7214 } # as_fn_set_status
7218 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7228 # Portably unset VAR.
7231 { eval $1=; unset $1;}
7233 as_unset
=as_fn_unset
7234 # as_fn_append VAR VALUE
7235 # ----------------------
7236 # Append the text in VALUE to the end of the definition contained in VAR. Take
7237 # advantage of any shell optimizations that allow amortized linear growth over
7238 # repeated appends, instead of the typical quadratic growth present in naive
7240 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7241 eval 'as_fn_append ()
7252 # as_fn_arith ARG...
7253 # ------------------
7254 # Perform arithmetic evaluation on the ARGs, and store the result in the
7255 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7256 # must be portable across $(()) and expr.
7257 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7258 eval 'as_fn_arith ()
7265 as_val
=`expr "$@" || test $? -eq 1`
7270 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7271 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7277 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7278 as_basename
=basename
7283 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7289 as_me
=`$as_basename -- "$0" ||
7290 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7291 X"$0" : 'X\(//\)$' \| \
7292 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7294 sed '/^.*\/\([^/][^/]*\)\/*$/{
7308 # Avoid depending upon Character Ranges.
7309 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7310 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7311 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7312 as_cr_digits
='0123456789'
7313 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7315 ECHO_C
= ECHO_N
= ECHO_T
=
7316 case `echo -n x` in #(((((
7318 case `echo 'xy\c'` in
7319 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7321 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7328 rm -f conf$$ conf$$.exe conf$$.
file
7329 if test -d conf$$.dir
; then
7330 rm -f conf$$.dir
/conf$$.
file
7333 mkdir conf$$.dir
2>/dev
/null
7335 if (echo >conf$$.
file) 2>/dev
/null
; then
7336 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7338 # ... but there are two gotchas:
7339 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7340 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7341 # In both cases, we have to default to `cp -p'.
7342 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7344 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7352 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7353 rmdir conf$$.dir
2>/dev
/null
7358 # Create "$as_dir" as a directory, including parents if necessary.
7363 -*) as_dir
=.
/$as_dir;;
7365 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7369 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7370 *) as_qdir
=$as_dir;;
7372 as_dirs
="'$as_qdir' $as_dirs"
7373 as_dir
=`$as_dirname -- "$as_dir" ||
7374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7375 X"$as_dir" : 'X\(//\)[^/]' \| \
7376 X"$as_dir" : 'X\(//\)$' \| \
7377 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7378 $as_echo X"$as_dir" |
7379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7396 test -d "$as_dir" && break
7398 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7399 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
7403 if mkdir
-p .
2>/dev
/null
; then
7404 as_mkdir_p
='mkdir -p "$as_dir"'
7406 test -d .
/-p && rmdir .
/-p
7410 if test -x / >/dev
/null
2>&1; then
7413 if ls -dL / >/dev
/null
2>&1; then
7420 if test -d "$1"; then
7426 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7427 ???[sx]*):;;*)false;;esac;fi
7431 as_executable_p
=$as_test_x
7433 # Sed expression to map a string onto a valid CPP name.
7434 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7436 # Sed expression to map a string onto a valid variable name.
7437 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7441 ## ----------------------------------- ##
7442 ## Main body of $CONFIG_STATUS script. ##
7443 ## ----------------------------------- ##
7445 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7448 # Save the log message, to keep $0 and so on meaningful, and to
7449 # report actual input values of CONFIG_FILES etc. instead of their
7450 # values after options handling.
7452 This file was extended by cpplib $as_me , which was
7453 generated by GNU Autoconf 2.64. Invocation command line was
7455 CONFIG_FILES = $CONFIG_FILES
7456 CONFIG_HEADERS = $CONFIG_HEADERS
7457 CONFIG_LINKS = $CONFIG_LINKS
7458 CONFIG_COMMANDS = $CONFIG_COMMANDS
7461 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7466 case $ac_config_files in *"
7467 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7470 case $ac_config_headers in *"
7471 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7476 # Files that config.status was made for.
7477 config_files="$ac_config_files"
7478 config_headers="$ac_config_headers"
7479 config_commands="$ac_config_commands"
7483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7485 \`$as_me' instantiates files and other configuration actions
7486 from templates according to the current configuration. Unless the files
7487 and actions are specified as TAGs, all are instantiated by default.
7489 Usage: $0 [OPTION]... [TAG]...
7491 -h, --help print this help, then exit
7492 -V, --version print version number and configuration settings, then exit
7493 -q, --quiet, --silent
7494 do not print progress messages
7495 -d, --debug don't remove temporary files
7496 --recheck update $as_me by reconfiguring in the same conditions
7497 --file=FILE[:TEMPLATE]
7498 instantiate the configuration file FILE
7499 --header=FILE[:TEMPLATE]
7500 instantiate the configuration header FILE
7502 Configuration files:
7505 Configuration headers:
7508 Configuration commands:
7511 Report bugs to <gcc-bugs@gcc.gnu.org>."
7514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7516 cpplib config.status
7517 configured by $0, generated by GNU Autoconf 2.64,
7518 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7520 Copyright (C) 2009 Free Software Foundation, Inc.
7521 This config.status script is free software; the Free Software Foundation
7522 gives unlimited permission to copy, distribute and modify it."
7527 test -n "\$AWK" || AWK=awk
7530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7531 # The default lists apply if the user does not specify any file.
7537 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7538 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7549 # Handling of the options.
7550 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7552 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7553 $as_echo "$ac_cs_version"; exit ;;
7554 --debug |
--debu |
--deb |
--de |
--d |
-d )
7556 --file |
--fil |
--fi |
--f )
7559 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7561 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7562 ac_need_defaults
=false
;;
7563 --header |
--heade |
--head |
--hea )
7566 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7568 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7569 ac_need_defaults
=false
;;
7571 # Conflict between --help and --header
7572 as_fn_error
"ambiguous option: \`$1'
7573 Try \`$0 --help' for more information.";;
7574 --help |
--hel |
-h )
7575 $as_echo "$ac_cs_usage"; exit ;;
7576 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7577 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7581 -*) as_fn_error
"unrecognized option: \`$1'
7582 Try \`$0 --help' for more information." ;;
7584 *) as_fn_append ac_config_targets
" $1"
7585 ac_need_defaults
=false
;;
7591 ac_configure_extra_args
=
7593 if $ac_cs_silent; then
7595 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7600 if \$ac_cs_recheck; then
7601 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7603 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7604 CONFIG_SHELL='$SHELL'
7610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7614 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7615 ## Running $as_me. ##
7621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7625 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
7629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7631 # Handling of arguments.
7632 for ac_config_target
in $ac_config_targets
7634 case $ac_config_target in
7635 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
7636 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
7637 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7639 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7644 # If the user did not use the arguments to specify the items to instantiate,
7645 # then the envvar interface is used. Set only those that are not.
7646 # We use the long form for the default assignment because of an extremely
7647 # bizarre bug on SunOS 4.1.3.
7648 if $ac_need_defaults; then
7649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7650 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7651 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7654 # Have a temporary directory for convenience. Make it in the build tree
7655 # simply because there is no reason against having it here, and in addition,
7656 # creating and moving files from /tmp can sometimes cause problems.
7657 # Hook for its removal unless debugging.
7658 # Note that there is a small window in which the directory will not be cleaned:
7659 # after its creation but before its name has been assigned to `$tmp'.
7663 trap 'exit_status=$?
7664 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7666 trap 'as_fn_exit 1' 1 2 13 15
7668 # Create a (secure) tmp directory for tmp files.
7671 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7672 test -n "$tmp" && test -d "$tmp"
7675 tmp
=.
/conf$$
-$RANDOM
7676 (umask 077 && mkdir
"$tmp")
7677 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
7679 # Set up the scripts for CONFIG_FILES section.
7680 # No need to generate them if there are no CONFIG_FILES.
7681 # This happens for instance with `./config.status config.h'.
7682 if test -n "$CONFIG_FILES"; then
7685 ac_cr
=`echo X | tr X '\015'`
7686 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7687 # But we know of no other shell where ac_cr would be empty at this
7688 # point, so we can use a bashism as a fallback.
7689 if test "x$ac_cr" = x
; then
7690 eval ac_cr
=\$
\'\\r
\'
7692 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7693 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7699 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7704 echo "cat >conf$$subs.awk <<_ACEOF" &&
7705 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7708 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7709 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7711 for ac_last_try in false false false false false :; do
7712 . ./conf$$subs.sh ||
7713 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7715 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7716 if test $ac_delim_n = $ac_delim_num; then
7718 elif $ac_last_try; then
7719 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7721 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7727 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
7731 s/^/S["/; s
/!.
*/"]=/
7741 s/\(.\{148\}\).*/\1/
7743 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7748 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7755 s/\(.\{148\}\).*/\1/
7757 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7761 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7766 ' <conf$$subs.awk | sed '
7771 ' >>$CONFIG_STATUS || ac_write_fail=1
7772 rm -f conf$$subs.awk
7773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7775 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
7776 for (key in S) S_is_set[key] = 1
7782 nfields = split(line, field, "@
")
7784 len = length(field[1])
7785 for (i = 2; i < nfields; i++) {
7787 keylen = length(key)
7788 if (S_is_set[key]) {
7790 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7791 len += length(value) + length(field[++i])
7802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7803 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7804 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7807 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
7808 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
7811 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7812 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
7813 # trailing colons and then remove the whole line if VPATH becomes empty
7814 # (actually we leave an empty line to preserve line numbers).
7815 if test "x
$srcdir" = x.; then
7816 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7820 s/^\([^=]*=[ ]*\):*/\1/
7826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7827 fi # test -n "$CONFIG_FILES"
7829 # Set up the scripts for CONFIG_HEADERS section.
7830 # No need to generate them if there are no CONFIG_HEADERS.
7831 # This happens for instance with `./config.status Makefile'.
7832 if test -n "$CONFIG_HEADERS"; then
7833 cat >"$tmp/defines.
awk" <<\_ACAWK ||
7837 # Transform confdefs.h into an awk script `defines.awk', embedded as
7838 # here-document in config.status, that substitutes the proper values into
7839 # config.h.in to produce config.h.
7841 # Create a delimiter string that does not exist in confdefs.h, to ease
7842 # handling of long lines.
7844 for ac_last_try in false false :; do
7845 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
7846 if test -z "$ac_t"; then
7848 elif $ac_last_try; then
7849 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
7851 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7855 # For the awk script, D is an array of macro values keyed by name,
7856 # likewise P contains macro parameters if any. Preserve backslash
7857 # newline sequences.
7859 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7861 s/.\{148\}/&'"$ac_delim"'/g
7864 s/^[ ]*#[ ]*define[ ][ ]*/ /
7871 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7873 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7878 D["\
1"]=" \
3\\\\\\n
"\\/p
7880 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7885 s/.\{148\}/&'"$ac_delim"'/g
7890 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7893 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7895 ' <confdefs.h | sed '
7896 s/'"$ac_delim"'/"\\\
7897 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7900 for (key in D) D_is_set[key] = 1
7903 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7905 split(line, arg, " ")
7906 if (arg[1] == "#") {
7910 defundef
= substr
(arg
[1], 2)
7913 split(mac1
, mac2
, "(") #)
7915 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7916 if (D_is_set
[macro
]) {
7917 # Preserve the white space surrounding the "#".
7918 print prefix
"define", macro P
[macro
] D
[macro
]
7921 # Replace #undef with comments. This is necessary, for example,
7922 # in the case of _POSIX_SOURCE, which is predefined and required
7923 # on some systems where configure will not decide to define it.
7924 if (defundef
== "undef") {
7925 print
"/*", prefix defundef
, macro
, "*/"
7933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7934 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
7935 fi # test -n "$CONFIG_HEADERS"
7938 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7943 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7945 case $ac_mode$ac_tag in
7947 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7948 :[FH
]-) ac_tag
=-:-;;
7949 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7966 -) ac_f
="$tmp/stdin";;
7967 *) # Look for the file first in the build tree, then in the source tree
7968 # (if the path is not absolute). The absolute path cannot be DOS-style,
7969 # because $ac_f cannot contain `:'.
7973 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7975 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
7977 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7978 as_fn_append ac_file_inputs
" '$ac_f'"
7981 # Let's still pretend it is `configure' which instantiates (i.e., don't
7982 # use $as_me), people would be surprised to read:
7983 # /* config.h. Generated by config.status. */
7984 configure_input
='Generated from '`
7985 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7987 if test x
"$ac_file" != x-
; then
7988 configure_input
="$ac_file. $configure_input"
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7990 $as_echo "$as_me: creating $ac_file" >&6;}
7992 # Neutralize special characters interpreted by sed in replacement strings.
7993 case $configure_input in #(
7994 *\
&* |
*\|
* |
*\\* )
7995 ac_sed_conf_input
=`$as_echo "$configure_input" |
7996 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7997 *) ac_sed_conf_input
=$configure_input;;
8001 *:-:* |
*:-) cat >"$tmp/stdin" \
8002 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
8007 ac_dir
=`$as_dirname -- "$ac_file" ||
8008 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8009 X"$ac_file" : 'X\(//\)[^/]' \| \
8010 X"$ac_file" : 'X\(//\)$' \| \
8011 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8012 $as_echo X"$ac_file" |
8013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8030 as_dir
="$ac_dir"; as_fn_mkdir_p
8034 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8036 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8037 # A ".." for each directory in $ac_dir_suffix.
8038 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8039 case $ac_top_builddir_sub in
8040 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8041 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8044 ac_abs_top_builddir
=$ac_pwd
8045 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8046 # for backward compatibility:
8047 ac_top_builddir
=$ac_top_build_prefix
8050 .
) # We are building in place.
8052 ac_top_srcdir
=$ac_top_builddir_sub
8053 ac_abs_top_srcdir
=$ac_pwd ;;
8054 [\\/]* | ?
:[\\/]* ) # Absolute name.
8055 ac_srcdir
=$srcdir$ac_dir_suffix;
8056 ac_top_srcdir
=$srcdir
8057 ac_abs_top_srcdir
=$srcdir ;;
8059 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8060 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8061 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8063 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8073 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8074 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8079 # If the template does not know about datarootdir, expand it.
8080 # FIXME: This hack should be removed a few years after 2.60.
8081 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8092 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8093 *datarootdir
*) ac_datarootdir_seen
=yes;;
8094 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8096 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8099 ac_datarootdir_hack='
8100 s&@datadir@&$datadir&g
8101 s&@docdir@&$docdir&g
8102 s&@infodir@&$infodir&g
8103 s&@localedir@&$localedir&g
8104 s&@mandir@&$mandir&g
8105 s&\\\${datarootdir}&$datarootdir&g' ;;
8109 # Neutralize VPATH when `$srcdir' = `.'.
8110 # Shell code in configure.ac might set extrasub.
8111 # FIXME: do we really want to maintain this feature?
8112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8113 ac_sed_extra="$ac_vpsub
8116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8118 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8119 s|@configure_input@|
$ac_sed_conf_input|
;t t
8120 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8121 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8122 s
&@srcdir@
&$ac_srcdir&;t t
8123 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8124 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8125 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8126 s
&@builddir@
&$ac_builddir&;t t
8127 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8128 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8129 s
&@INSTALL@
&$ac_INSTALL&;t t
8130 $ac_datarootdir_hack
8132 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8133 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8135 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8136 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8137 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8139 which seems to be undefined. Please make sure it is defined." >&5
8140 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8141 which seems to be undefined. Please make sure it is defined." >&2;}
8145 -) cat "$tmp/out" && rm -f "$tmp/out";;
8146 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8148 || as_fn_error "could not create $ac_file" "$LINENO" 5
8154 if test x"$ac_file" != x-; then
8156 $as_echo "/* $configure_input */" \
8157 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8158 } >"$tmp/config.h" \
8159 || as_fn_error "could not create $ac_file" "$LINENO" 5
8160 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8162 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8165 mv "$tmp/config.h" "$ac_file" \
8166 || as_fn_error "could not create $ac_file" "$LINENO" 5
8169 $as_echo "/* $configure_input */" \
8170 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8171 || as_fn_error "could not create -" "$LINENO" 5
8175 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8176 $as_echo "$as_me: executing $ac_file commands" >&6;}
8181 case $ac_file$ac_mode in
8182 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8183 "config.h":H) echo timestamp > stamp-h1 ;;
8191 ac_clean_files=$ac_clean_files_save
8193 test $ac_write_fail = 0 ||
8194 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8197 # configure is writing to config.log, and then calls config.status.
8198 # config.status does its own redirection, appending to config.log.
8199 # Unfortunately, on DOS this fails, as config.log is still kept open
8200 # by configure, so config.status won't be able to
write to it
; its
8201 # output is simply discarded. So we exec the FD to /dev/null,
8202 # effectively closing config.log, so it can be properly (re)opened and
8203 # appended to by config.status. When coming back to configure, we
8204 # need to make the FD available again.
8205 if test "$no_create" != yes; then
8207 ac_config_status_args
=
8208 test "$silent" = yes &&
8209 ac_config_status_args
="$ac_config_status_args --quiet"
8211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8214 # would make configure fail if this is the last instruction.
8215 $ac_cs_success || as_fn_exit $?
8217 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8219 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}