2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: gcc-bugs@gcc.gnu.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='cpplib'
582 PACKAGE_TARNAME
='cpplib'
584 PACKAGE_STRING
='cpplib '
585 PACKAGE_BUGREPORT
='gcc-bugs@gcc.gnu.org'
588 ac_unique_file
="ucnid.h"
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars
='LTLIBOBJS
715 program_transform_name
728 enable_option_checking
735 enable_maintainer_mode
737 enable_canonical_system_headers
740 enable_valgrind_annotations
742 ac_precious_vars
='build_alias
756 # Initialize some variables set by options.
758 ac_init_version
=false
759 ac_unrecognized_opts
=
761 # The variables have the same names as the options, with
762 # dashes changed to underlines.
770 program_transform_name
=s
,x
,x
,
778 # Installation directory options.
779 # These are left unexpanded so users can "make install exec_prefix=/foo"
780 # and all the variables that are supposed to be based on exec_prefix
781 # by default will actually change.
782 # Use braces instead of parens because sh, perl, etc. also accept them.
783 # (The list follows the same order as the GNU Coding Standards.)
784 bindir
='${exec_prefix}/bin'
785 sbindir
='${exec_prefix}/sbin'
786 libexecdir
='${exec_prefix}/libexec'
787 datarootdir
='${prefix}/share'
788 datadir
='${datarootdir}'
789 sysconfdir
='${prefix}/etc'
790 sharedstatedir
='${prefix}/com'
791 localstatedir
='${prefix}/var'
792 includedir
='${prefix}/include'
793 oldincludedir
='/usr/include'
794 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
795 infodir
='${datarootdir}/info'
800 libdir
='${exec_prefix}/lib'
801 localedir
='${datarootdir}/locale'
802 mandir
='${datarootdir}/man'
808 # If the previous option needs an argument, assign it.
809 if test -n "$ac_prev"; then
810 eval $ac_prev=\
$ac_option
816 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 # Accept the important Cygnus configure options, so we can diagnose typos.
823 case $ac_dashdash$ac_option in
827 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
829 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
832 -build |
--build |
--buil |
--bui |
--bu)
833 ac_prev
=build_alias
;;
834 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
835 build_alias
=$ac_optarg ;;
837 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
838 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
839 ac_prev
=cache_file
;;
840 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
841 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
842 cache_file
=$ac_optarg ;;
845 cache_file
=config.cache
;;
847 -datadir |
--datadir |
--datadi |
--datad)
849 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
850 datadir
=$ac_optarg ;;
852 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
853 |
--dataroo |
--dataro |
--datar)
854 ac_prev
=datarootdir
;;
855 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
856 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
857 datarootdir
=$ac_optarg ;;
859 -disable-* |
--disable-*)
860 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
863 as_fn_error $?
"invalid feature name: $ac_useropt"
864 ac_useropt_orig
=$ac_useropt
865 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
870 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871 ac_unrecognized_sep
=', ';;
873 eval enable_
$ac_useropt=no
;;
875 -docdir |
--docdir |
--docdi |
--doc |
--do)
877 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
880 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
882 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
885 -enable-* |
--enable-*)
886 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
889 as_fn_error $?
"invalid feature name: $ac_useropt"
890 ac_useropt_orig
=$ac_useropt
891 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
896 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897 ac_unrecognized_sep
=', ';;
899 eval enable_
$ac_useropt=\
$ac_optarg ;;
901 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
902 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
903 |
--exec |
--exe |
--ex)
904 ac_prev
=exec_prefix
;;
905 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
906 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
907 |
--exec=* |
--exe=* |
--ex=*)
908 exec_prefix
=$ac_optarg ;;
910 -gas |
--gas |
--ga |
--g)
911 # Obsolete; use --with-gas.
914 -help |
--help |
--hel |
--he |
-h)
916 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
917 ac_init_help
=recursive
;;
918 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
919 ac_init_help
=short
;;
921 -host |
--host |
--hos |
--ho)
922 ac_prev
=host_alias
;;
923 -host=* |
--host=* |
--hos=* |
--ho=*)
924 host_alias
=$ac_optarg ;;
926 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
928 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
930 htmldir
=$ac_optarg ;;
932 -includedir |
--includedir |
--includedi |
--included |
--include \
933 |
--includ |
--inclu |
--incl |
--inc)
934 ac_prev
=includedir
;;
935 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
936 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
937 includedir
=$ac_optarg ;;
939 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
941 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
942 infodir
=$ac_optarg ;;
944 -libdir |
--libdir |
--libdi |
--libd)
946 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
949 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
950 |
--libexe |
--libex |
--libe)
951 ac_prev
=libexecdir
;;
952 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
953 |
--libexe=* |
--libex=* |
--libe=*)
954 libexecdir
=$ac_optarg ;;
956 -localedir |
--localedir |
--localedi |
--localed |
--locale)
958 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
959 localedir
=$ac_optarg ;;
961 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
962 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
963 ac_prev
=localstatedir
;;
964 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
965 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
966 localstatedir
=$ac_optarg ;;
968 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
970 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
974 # Obsolete; use --without-fp.
977 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
978 |
--no-cr |
--no-c |
-n)
981 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
982 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
985 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
986 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
987 |
--oldin |
--oldi |
--old |
--ol |
--o)
988 ac_prev
=oldincludedir
;;
989 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
990 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
991 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
992 oldincludedir
=$ac_optarg ;;
994 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
996 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
999 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1000 |
--program-pre |
--program-pr |
--program-p)
1001 ac_prev
=program_prefix
;;
1002 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1003 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1004 program_prefix
=$ac_optarg ;;
1006 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1007 |
--program-suf |
--program-su |
--program-s)
1008 ac_prev
=program_suffix
;;
1009 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1010 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1011 program_suffix
=$ac_optarg ;;
1013 -program-transform-name |
--program-transform-name \
1014 |
--program-transform-nam |
--program-transform-na \
1015 |
--program-transform-n |
--program-transform- \
1016 |
--program-transform |
--program-transfor \
1017 |
--program-transfo |
--program-transf \
1018 |
--program-trans |
--program-tran \
1019 |
--progr-tra |
--program-tr |
--program-t)
1020 ac_prev
=program_transform_name
;;
1021 -program-transform-name=* |
--program-transform-name=* \
1022 |
--program-transform-nam=* |
--program-transform-na=* \
1023 |
--program-transform-n=* |
--program-transform-=* \
1024 |
--program-transform=* |
--program-transfor=* \
1025 |
--program-transfo=* |
--program-transf=* \
1026 |
--program-trans=* |
--program-tran=* \
1027 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1028 program_transform_name
=$ac_optarg ;;
1030 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1032 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1033 pdfdir
=$ac_optarg ;;
1035 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1037 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1040 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1041 |
-silent |
--silent |
--silen |
--sile |
--sil)
1044 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1046 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1048 sbindir
=$ac_optarg ;;
1050 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1051 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1052 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1054 ac_prev
=sharedstatedir
;;
1055 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1056 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1057 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1059 sharedstatedir
=$ac_optarg ;;
1061 -site |
--site |
--sit)
1063 -site=* |
--site=* |
--sit=*)
1066 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1068 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1069 srcdir
=$ac_optarg ;;
1071 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1072 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1073 ac_prev
=sysconfdir
;;
1074 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1075 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1076 sysconfdir
=$ac_optarg ;;
1078 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1079 ac_prev
=target_alias
;;
1080 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1081 target_alias
=$ac_optarg ;;
1083 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1086 -version |
--version |
--versio |
--versi |
--vers |
-V)
1087 ac_init_version
=: ;;
1090 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1093 as_fn_error $?
"invalid package name: $ac_useropt"
1094 ac_useropt_orig
=$ac_useropt
1095 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1100 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101 ac_unrecognized_sep
=', ';;
1103 eval with_
$ac_useropt=\
$ac_optarg ;;
1105 -without-* |
--without-*)
1106 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1109 as_fn_error $?
"invalid package name: $ac_useropt"
1110 ac_useropt_orig
=$ac_useropt
1111 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1116 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117 ac_unrecognized_sep
=', ';;
1119 eval with_
$ac_useropt=no
;;
1122 # Obsolete; use --with-x.
1125 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1126 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1127 ac_prev
=x_includes
;;
1128 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1129 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1130 x_includes
=$ac_optarg ;;
1132 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1133 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1134 ac_prev
=x_libraries
;;
1135 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1136 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1137 x_libraries
=$ac_optarg ;;
1139 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1140 Try \`$0 --help' for more information"
1144 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1145 # Reject names that are not valid shell variable names.
1146 case $ac_envvar in #(
1147 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1148 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1150 eval $ac_envvar=\
$ac_optarg
1151 export $ac_envvar ;;
1154 # FIXME: should be removed in autoconf 3.0.
1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164 if test -n "$ac_prev"; then
1165 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1166 as_fn_error $?
"missing argument to $ac_option"
1169 if test -n "$ac_unrecognized_opts"; then
1170 case $enable_option_checking in
1172 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177 # Check all directory arguments for consistency.
1178 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir
1183 eval ac_val
=\$
$ac_var
1184 # Remove trailing slashes.
1187 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188 eval $ac_var=\
$ac_val;;
1190 # Be sure to have absolute directory names.
1192 [\\/$
]* | ?
:[\\/]* ) continue;;
1193 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1195 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1203 target
=$target_alias
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x
; then
1207 if test "x$build_alias" = x
; then
1208 cross_compiling
=maybe
1209 elif test "x$build_alias" != "x$host_alias"; then
1215 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1217 test "$silent" = yes && exec 6>/dev
/null
1220 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di
=`ls -di .` &&
1222 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1223 as_fn_error $?
"working directory cannot be determined"
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225 as_fn_error $?
"pwd does not report name of working directory"
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230 ac_srcdir_defaulted
=yes
1231 # Try the directory containing this script, then the parent directory.
1232 ac_confdir
=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234 X"$as_myself" : 'X\(//\)[^/]' \| \
1235 X"$as_myself" : 'X\(//\)$' \| \
1236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1260 ac_srcdir_defaulted
=no
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1264 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1266 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1278 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 for ac_var
in $ac_precious_vars; do
1281 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1282 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1283 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1284 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1288 # Report the --help message.
1290 if test "$ac_init_help" = "long"; then
1291 # Omit some internal or obsolete options to make the list less imposing.
1292 # This message is too long to be a string in the A/UX 3.1 sh.
1294 \`configure' configures cpplib to adapt to many kinds of systems.
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE. See below for descriptions of some of the useful variables.
1301 Defaults for the options are specified in brackets.
1304 -h, --help display this help and exit
1305 --help=short display options specific to this package
1306 --help=recursive display the short help of all the included packages
1307 -V, --version display version information and exit
1308 -q, --quiet, --silent do not print \`checking ...' messages
1309 --cache-file=FILE cache test results in FILE [disabled]
1310 -C, --config-cache alias for \`--cache-file=config.cache'
1311 -n, --no-create do not create output files
1312 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314 Installation directories:
1315 --prefix=PREFIX install architecture-independent files in PREFIX
1316 [$ac_default_prefix]
1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1325 For better control, use the options below.
1327 Fine tuning of the installation directories:
1328 --bindir=DIR user executables [EPREFIX/bin]
1329 --sbindir=DIR system admin executables [EPREFIX/sbin]
1330 --libexecdir=DIR program executables [EPREFIX/libexec]
1331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
1352 --build=BUILD configure
for building on BUILD
[guessed
]
1353 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1354 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1358 if test -n "$ac_init_help"; then
1359 case $ac_init_help in
1360 short | recursive
) echo "Configuration of cpplib :";;
1365 --disable-option-checking ignore unrecognized
--enable/--with options
1366 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1367 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1368 --disable-largefile omit support
for large files
1369 --enable-werror-always enable -Werror despite compiler version
1370 --disable-rpath do not hardcode runtime library paths
1371 --enable-maintainer-mode enable rules only needed by maintainers
1372 --enable-checking[=LIST
]
1373 enable expensive run-time checks. With LIST
, enable
1374 only specific categories of checks. Categories are
:
1375 yes,no
,all
,none
,release. Flags are
: misc
,valgrind or
1377 --enable-canonical-system-headers
1378 enable or disable system headers canonicalization
1379 --enable-host-shared build
host code as shared libraries
1380 --enable-cet enable Intel CET
in host libraries
[default
=auto
]
1381 --enable-valgrind-annotations
1382 enable valgrind runtime interaction
1385 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1386 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1387 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1388 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1389 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1390 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1392 Some influential environment variables:
1393 CC C compiler command
1394 CFLAGS C compiler flags
1395 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1396 nonstandard directory <lib dir>
1397 LIBS libraries to pass to the linker, e.g. -l<library>
1398 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1399 you have headers in a nonstandard directory <include dir>
1400 CXX C++ compiler command
1401 CXXFLAGS C++ compiler flags
1404 Use these variables to override the choices made by `configure' or to
help
1405 it to
find libraries and programs with nonstandard names
/locations.
1407 Report bugs to
<gcc-bugs@gcc.gnu.org
>.
1412 if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
1414 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1415 test -d "$ac_dir" ||
1416 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1421 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1423 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1424 # A ".." for each directory in $ac_dir_suffix.
1425 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1426 case $ac_top_builddir_sub in
1427 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1428 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1431 ac_abs_top_builddir
=$ac_pwd
1432 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1433 # for backward compatibility:
1434 ac_top_builddir
=$ac_top_build_prefix
1437 .
) # We are building in place.
1439 ac_top_srcdir
=$ac_top_builddir_sub
1440 ac_abs_top_srcdir
=$ac_pwd ;;
1441 [\\/]* | ?
:[\\/]* ) # Absolute name.
1442 ac_srcdir
=$srcdir$ac_dir_suffix;
1443 ac_top_srcdir
=$srcdir
1444 ac_abs_top_srcdir
=$srcdir ;;
1446 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1448 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1450 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1452 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1453 # Check for guested configure.
1454 if test -f "$ac_srcdir/configure.gnu"; then
1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457 elif test -f "$ac_srcdir/configure"; then
1459 $SHELL "$ac_srcdir/configure" --help=recursive
1461 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1467 test -n "$ac_init_help" && exit $ac_status
1468 if $ac_init_version; then
1471 generated by GNU Autoconf
2.69
1473 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1474 This configure
script is free software
; the Free Software Foundation
1475 gives unlimited permission to copy
, distribute and modify it.
1480 ## ------------------------ ##
1481 ## Autoconf initialization. ##
1482 ## ------------------------ ##
1484 # ac_fn_c_try_compile LINENO
1485 # --------------------------
1486 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1487 ac_fn_c_try_compile
()
1489 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1490 rm -f conftest.
$ac_objext
1491 if { { ac_try
="$ac_compile"
1493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_compile") 2>conftest.err
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && {
1507 test -z "$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1509 } && test -s conftest.$ac_objext; then :
1512 $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.$ac_ext >&5
1517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518 as_fn_set_status $ac_retval
1520 } # ac_fn_c_try_compile
1522 # ac_fn_cxx_try_compile LINENO
1523 # ----------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_cxx_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1532 *) ac_try_echo
=$ac_try;;
1534 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1538 if test -s conftest.err
; then
1539 grep -v '^ *+' conftest.err
>conftest.er1
1540 cat conftest.er1
>&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_cxx_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.
$ac_objext; then :
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.
$ac_ext >&5
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status
$ac_retval
1558 } # ac_fn_cxx_try_compile
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1565 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1566 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } > conftest.i && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600 # the include files in INCLUDES and setting the cache variable VAR
1602 ac_fn_c_check_header_mongrel ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if eval \${$3+:} false; then :
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if eval \${$3+:} false; then :
1609 $as_echo_n "(cached) " >&6
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1615 # Is the header compilable?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617 $as_echo_n "checking $2 usability... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_header_compiler=yes
1626 ac_header_compiler=no
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630 $as_echo "$ac_header_compiler" >&6; }
1632 # Is the header present?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634 $as_echo_n "checking $2 presence... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1639 if ac_fn_c_try_cpp "$LINENO"; then :
1640 ac_header_preproc=yes
1642 ac_header_preproc=no
1644 rm -f conftest.err conftest.i conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646 $as_echo "$ac_header_preproc" >&6; }
1648 # So? What about this header?
1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1660 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1664 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1667 ( $as_echo "## ----------------------------------- ##
1668 ## Report this to gcc-bugs@gcc.gnu.org ##
1669 ## ----------------------------------- ##"
1670 ) | sed "s/^/$as_me: WARNING: /" >&2
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676 $as_echo_n "(cached) " >&6
1678 eval "$3=\$ac_header_compiler"
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 } # ac_fn_c_check_header_mongrel
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_link"
1697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1698 *) ac_try_echo
=$ac_try;;
1700 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>&5
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1706 { { case "(($ac_try" in
1707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_try") 2>&5
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; }; }; then :
1718 $as_echo "$as_me: program exited with status $ac_status" >&5
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1722 ac_retval=$ac_status
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1730 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists and can be compiled using the include files in
1733 # INCLUDES, setting the cache variable VAR accordingly.
1734 ac_fn_c_check_header_compile ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1747 if ac_fn_c_try_compile "$LINENO"; then :
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 } # ac_fn_c_check_header_compile
1761 # ac_fn_c_try_link LINENO
1762 # -----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext conftest$ac_exeext
1768 if { { ac_try="$ac_link"
1770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1771 *) ac_try_echo
=$ac_try;;
1773 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>conftest.err
1777 if test -s conftest.err
; then
1778 grep -v '^ *+' conftest.err
>conftest.er1
1779 cat conftest.er1
>&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest
$ac_exeext && {
1787 test "$cross_compiling" = yes ||
1788 test -x conftest
$ac_exeext
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.
$ac_ext >&5
1797 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799 # interfere with the next link command; also delete a directory that is
1800 # left behind by Apple's compiler. We do this before executing the actions.
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status
$ac_retval
1805 } # ac_fn_c_try_link
1807 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1808 # -------------------------------------------
1809 # Tests whether TYPE exists after having included INCLUDES, setting cache
1810 # variable VAR accordingly.
1811 ac_fn_c_check_type
()
1813 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \
${$3+:} false
; then :
1817 $as_echo_n "(cached) " >&6
1820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1832 if ac_fn_c_try_compile
"$LINENO"; then :
1833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1845 if ac_fn_c_try_compile
"$LINENO"; then :
1850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_type
1861 # ac_fn_c_find_uintX_t LINENO BITS VAR
1862 # ------------------------------------
1863 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1865 ac_fn_c_find_uintX_t
()
1867 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1869 $as_echo_n "checking for uint$2_t... " >&6; }
1870 if eval \
${$3+:} false
; then :
1871 $as_echo_n "(cached) " >&6
1874 # Order is important - never check a type that is potentially smaller
1875 # than half of the expected target width.
1876 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
1877 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 $ac_includes_default
1884 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1886 return test_array [0];
1892 if ac_fn_c_try_compile
"$LINENO"; then :
1897 eval "$3=\$ac_type" ;;
1900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1901 if eval test \"x\$
"$3"\" = x
"no"; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 } # ac_fn_c_find_uintX_t
1915 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1916 # --------------------------------------------
1917 # Tries to find the compile-time value of EXPR in a program that includes
1918 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1920 ac_fn_c_compute_int
()
1922 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1923 if test "$cross_compiling" = yes; then
1924 # Depending upon the size, compute the lo and hi bounds.
1925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1931 static int test_array [1 - 2 * !(($2) >= 0)];
1933 return test_array [0];
1939 if ac_fn_c_try_compile
"$LINENO"; then :
1942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1948 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1950 return test_array [0];
1956 if ac_fn_c_try_compile
"$LINENO"; then :
1957 ac_hi
=$ac_mid; break
1959 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1960 if test $ac_lo -le $ac_mid; then
1964 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1975 static int test_array [1 - 2 * !(($2) < 0)];
1977 return test_array [0];
1983 if ac_fn_c_try_compile
"$LINENO"; then :
1986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1992 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1994 return test_array [0];
2000 if ac_fn_c_try_compile
"$LINENO"; then :
2001 ac_lo
=$ac_mid; break
2003 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2004 if test $ac_mid -le $ac_hi; then
2008 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2018 # Binary search between lo and hi bounds.
2019 while test "x$ac_lo" != "x$ac_hi"; do
2020 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2027 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029 return test_array [0];
2035 if ac_fn_c_try_compile
"$LINENO"; then :
2038 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2043 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2050 static long int longval () { return $2; }
2051 static unsigned long int ulongval () { return $2; }
2058 FILE *f = fopen ("conftest.val", "w");
2063 long int i = longval ();
2066 fprintf (f, "%ld", i);
2070 unsigned long int i = ulongval ();
2073 fprintf (f, "%lu", i);
2075 /* Do not output a trailing newline, as this causes \r\n confusion
2076 on some platforms. */
2077 return ferror (f) || fclose (f) != 0;
2083 if ac_fn_c_try_run
"$LINENO"; then :
2084 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2088 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2089 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094 as_fn_set_status
$ac_retval
2096 } # ac_fn_c_compute_int
2098 # ac_fn_c_check_func LINENO FUNC VAR
2099 # ----------------------------------
2100 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2101 ac_fn_c_check_func
()
2103 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2105 $as_echo_n "checking for $2... " >&6; }
2106 if eval \
${$3+:} false
; then :
2107 $as_echo_n "(cached) " >&6
2109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2111 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2113 #define $2 innocuous_$2
2115 /* System header to define __stub macros and hopefully few prototypes,
2116 which can conflict with char $2 (); below.
2117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2118 <limits.h> exists even on freestanding compilers. */
2121 # include <limits.h>
2123 # include <assert.h>
2128 /* Override any GCC internal prototype to avoid an error.
2129 Use char because int might match the return type of a GCC
2130 builtin and then its argument prototype would still apply. */
2135 /* The GNU C library defines this for functions which it implements
2136 to always fail with ENOSYS. Some functions are actually named
2137 something starting with __ and the normal name is an alias. */
2138 #if defined __stub_$2 || defined __stub___$2
2150 if ac_fn_c_try_link
"$LINENO"; then :
2155 rm -f core conftest.err conftest.
$ac_objext \
2156 conftest
$ac_exeext conftest.
$ac_ext
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163 } # ac_fn_c_check_func
2165 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2166 # ---------------------------------------------
2167 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2169 ac_fn_c_check_decl
()
2171 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2172 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2173 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2175 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2176 if eval \
${$3+:} false
; then :
2177 $as_echo_n "(cached) " >&6
2179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 #ifndef $as_decl_name
2187 (void) $as_decl_use;
2189 (void) $as_decl_name;
2197 if ac_fn_c_try_compile
"$LINENO"; then :
2202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2206 $as_echo "$ac_res" >&6; }
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209 } # ac_fn_c_check_decl
2211 # ac_fn_cxx_try_link LINENO
2212 # -------------------------
2213 # Try to link conftest.$ac_ext, and return whether this succeeded.
2214 ac_fn_cxx_try_link
()
2216 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2217 rm -f conftest.
$ac_objext conftest
$ac_exeext
2218 if { { ac_try
="$ac_link"
2220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224 $as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_link") 2>conftest.err
2227 if test -s conftest.err; then
2228 grep -v '^ *+' conftest.err >conftest.er1
2229 cat conftest.er1 >&5
2230 mv -f conftest.er1 conftest.err
2232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2233 test $ac_status = 0; } && {
2234 test -z "$ac_cxx_werror_flag" ||
2235 test ! -s conftest.err
2236 } && test -s conftest$ac_exeext && {
2237 test "$cross_compiling" = yes ||
2238 test -x conftest$ac_exeext
2242 $as_echo "$as_me: failed program was:" >&5
2243 sed 's/^/| /' conftest.$ac_ext >&5
2247 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2248 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2249 # interfere with the next link command; also delete a directory that is
2250 # left behind by Apple's compiler. We do this before executing the actions.
2251 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253 as_fn_set_status $ac_retval
2255 } # ac_fn_cxx_try_link
2256 cat >config.log <<_ACEOF
2257 This file contains any messages produced by compilers while
2258 running configure, to aid debugging if configure makes a mistake.
2260 It was created by cpplib $as_me , which was
2261 generated by GNU Autoconf 2.69. Invocation command line was
2273 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2274 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2275 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2276 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2277 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2279 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2280 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2282 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2283 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2284 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2285 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2286 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2287 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2288 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 test -z "$as_dir" && as_dir=.
2297 $as_echo "PATH: $as_dir"
2313 # Keep a trace of the command line.
2314 # Strip out --no-create and --no-recursion so they do not pile up.
2315 # Strip out --silent because we don't want to record it for future runs.
2316 # Also quote any args containing shell meta-characters.
2317 # Make two passes to allow for proper duplicate-argument suppression.
2321 ac_must_keep_next=false
2327 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2329 | -silent | --silent | --silen | --sile | --sil)
2332 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2335 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2337 as_fn_append ac_configure_args1 " '$ac_arg'"
2338 if test $ac_must_keep_next = true; then
2339 ac_must_keep_next=false # Got value, back to normal.
2342 *=* | --config-cache | -C | -disable-* | --disable-* \
2343 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2344 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2345 | -with-* | --with-* | -without-* | --without-* | --x)
2346 case "$ac_configure_args0 " in
2347 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350 -* ) ac_must_keep_next=true ;;
2353 as_fn_append ac_configure_args " '$ac_arg'"
2358 { ac_configure_args0=; unset ac_configure_args0;}
2359 { ac_configure_args1=; unset ac_configure_args1;}
2361 # When interrupted or exit'd, cleanup temporary files, and complete
2362 # config.log. We remove comments because anyway the quotes in there
2363 # would cause problems or look ugly.
2364 # WARNING: Use '\'' to represent an apostrophe within the trap.
2365 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2366 trap 'exit_status=$?
2367 # Save into config.log some information that might help in debugging.
2371 $as_echo "## ---------------- ##
2372 ## Cache variables. ##
2373 ## ---------------- ##"
2375 # The following way of writing the cache mishandles newlines in values,
2377 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2378 eval ac_val=\$$ac_var
2382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386 _ | IFS | as_nl) ;; #(
2387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2388 *) { eval $ac_var=; unset $ac_var;} ;;
2393 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2394 *${as_nl}ac_space=\ *)
2396 "s/'\''/'\''\\\\'\'''\''/g;
2397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2407 $as_echo "## ----------------- ##
2408 ## Output variables. ##
2409 ## ----------------- ##"
2411 for ac_var in $ac_subst_vars
2413 eval ac_val=\$$ac_var
2415 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 $as_echo "$ac_var='\''$ac_val'\''"
2421 if test -n "$ac_subst_files"; then
2422 $as_echo "## ------------------- ##
2423 ## File substitutions. ##
2424 ## ------------------- ##"
2426 for ac_var in $ac_subst_files
2428 eval ac_val=\$$ac_var
2430 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 $as_echo "$ac_var='\''$ac_val'\''"
2437 if test -s confdefs.h; then
2438 $as_echo "## ----------- ##
2445 test "$ac_signal" != 0 &&
2446 $as_echo "$as_me: caught signal $ac_signal"
2447 $as_echo "$as_me: exit $exit_status"
2449 rm -f core *.core core.conftest.* &&
2450 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453 for ac_signal in 1 2 13 15; do
2454 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2458 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2459 rm -f -r conftest* confdefs.h
2461 $as_echo "/* confdefs.h */" > confdefs.h
2463 # Predefined preprocessor variables.
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_NAME "$PACKAGE_NAME"
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_STRING "$PACKAGE_STRING"
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_URL "$PACKAGE_URL"
2490 # Let the site file select an alternate cache file if it wants to.
2491 # Prefer an explicitly selected file to automatically selected ones.
2494 if test -n "$CONFIG_SITE"; then
2495 # We do not want a PATH search for config.site.
2496 case $CONFIG_SITE in #((
2497 -*) ac_site_file1=./$CONFIG_SITE;;
2498 */*) ac_site_file1=$CONFIG_SITE;;
2499 *) ac_site_file1=./$CONFIG_SITE;;
2501 elif test "x$prefix" != xNONE; then
2502 ac_site_file1=$prefix/share/config.site
2503 ac_site_file2=$prefix/etc/config.site
2505 ac_site_file1=$ac_default_prefix/share/config.site
2506 ac_site_file2=$ac_default_prefix/etc/config.site
2508 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510 test "x$ac_site_file" = xNONE && continue
2511 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2513 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2514 sed 's/^/| /' "$ac_site_file" >&5
2516 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2518 as_fn_error $? "failed to load site
script $ac_site_file
2519 See \
`config.log' for more details" "$LINENO" 5; }
2523 if test -r "$cache_file"; then
2524 # Some versions of bash will fail to source /dev/null (special files
2525 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2526 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2528 $as_echo "$as_me: loading cache $cache_file" >&6;}
2530 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2531 *) . "./$cache_file";;
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2536 $as_echo "$as_me: creating cache $cache_file" >&6;}
2540 # Check that the precious variables saved in the cache have kept the same
2542 ac_cache_corrupted=false
2543 for ac_var in $ac_precious_vars; do
2544 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2545 eval ac_new_set=\$ac_env_${ac_var}_set
2546 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2547 eval ac_new_val=\$ac_env_${ac_var}_value
2548 case $ac_old_set,$ac_new_set in
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2551 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2552 ac_cache_corrupted=: ;;
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2555 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2559 if test "x$ac_old_val" != "x$ac_new_val"; then
2560 # differences in whitespace do not lead to failure.
2561 ac_old_val_w=`echo x
$ac_old_val`
2562 ac_new_val_w=`echo x
$ac_new_val`
2563 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2565 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2566 ac_cache_corrupted=:
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2569 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2570 eval $ac_var=\$ac_old_val
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2573 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2575 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2578 # Pass precious variables to config.status.
2579 if test "$ac_new_set" = set; then
2581 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2582 *) ac_arg=$ac_var=$ac_new_val ;;
2584 case " $ac_configure_args " in
2585 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2586 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2590 if $ac_cache_corrupted; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2594 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2595 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2597 ## -------------------- ##
2598 ## Main body of script. ##
2599 ## -------------------- ##
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2612 if test -f "$ac_dir/install-sh"; then
2614 ac_install_sh="$ac_aux_dir/install-sh -c"
2616 elif test -f "$ac_dir/install.sh"; then
2618 ac_install_sh="$ac_aux_dir/install.sh -c"
2620 elif test -f "$ac_dir/shtool"; then
2622 ac_install_sh="$ac_aux_dir/shtool install -c"
2626 if test -z "$ac_aux_dir"; then
2627 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2630 # These three variables are undocumented and unsupported,
2631 # and are intended to be withdrawn in a future Autoconf release.
2632 # They can cause serious problems if a builder's source tree is in a directory
2633 # whose full name contains unusual characters.
2634 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2635 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2636 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2639 # Make sure we can run config.sub.
2640 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2641 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2644 $as_echo_n "checking build system type... " >&6; }
2645 if ${ac_cv_build+:} false; then :
2646 $as_echo_n "(cached) " >&6
2648 ac_build_alias=$build_alias
2649 test "x$ac_build_alias" = x &&
2650 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2651 test "x$ac_build_alias" = x &&
2652 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2653 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2654 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2658 $as_echo "$ac_cv_build" >&6; }
2659 case $ac_cv_build in
2661 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2664 ac_save_IFS=$IFS; IFS='-'
2670 # Remember, the first character of IFS is used to create $*,
2671 # except with old shells:
2674 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2678 $as_echo_n "checking host system type... " >&6; }
2679 if ${ac_cv_host+:} false; then :
2680 $as_echo_n "(cached) " >&6
2682 if test "x$host_alias" = x; then
2683 ac_cv_host=$ac_cv_build
2685 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2686 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2691 $as_echo "$ac_cv_host" >&6; }
2694 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2697 ac_save_IFS=$IFS; IFS='-'
2703 # Remember, the first character of IFS is used to create $*,
2704 # except with old shells:
2707 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2711 $as_echo_n "checking target system type... " >&6; }
2712 if ${ac_cv_target+:} false; then :
2713 $as_echo_n "(cached) " >&6
2715 if test "x$target_alias" = x; then
2716 ac_cv_target=$ac_cv_host
2718 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2719 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2724 $as_echo "$ac_cv_target" >&6; }
2725 case $ac_cv_target in
2727 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2729 target=$ac_cv_target
2730 ac_save_IFS=$IFS; IFS='-'
2736 # Remember, the first character of IFS is used to create $*,
2737 # except with old shells:
2740 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2743 # The aliases save the names the user supplied, while $host etc.
2744 # will get canonicalized.
2745 test -n "$target_alias" &&
2746 test "$program_prefix$program_suffix$program_transform_name" = \
2748 program_prefix=${target_alias}-
2751 # Checks for programs.
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2753 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2755 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2756 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2757 $as_echo_n "(cached) " >&6
2759 cat >conftest.make <<\_ACEOF
2762 @echo '@@@%%%=$(MAKE)=@@@%%%'
2764 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2765 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2767 eval ac_cv_prog_make_${ac_make}_set=yes;;
2769 eval ac_cv_prog_make_${ac_make}_set=no;;
2773 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2775 $as_echo "yes" >&6; }
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 SET_MAKE="MAKE=${MAKE-make}"
2783 # Find a good install program. We prefer a C program (faster),
2784 # so one script is as good as another. But avoid the broken or
2785 # incompatible versions:
2786 # SysV /etc/install, /usr/sbin/install
2787 # SunOS /usr/etc/install
2788 # IRIX /sbin/install
2790 # AmigaOS /C/install, which installs bootblocks on floppy discs
2791 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2794 # OS/2's system install, which has a completely different semantic
2795 # ./install, which can be erroneously created by make from ./install.sh.
2796 # Reject install programs that cannot install multiple files.
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2798 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2799 if test -z "$INSTALL"; then
2800 if ${ac_cv_path_install+:} false; then :
2801 $as_echo_n "(cached) " >&6
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 # Account for people who put trailing slashes in PATH elements.
2809 case $as_dir/ in #((
2810 ./ | .// | /[cC]/* | \
2811 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2812 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2815 # OSF1 and SCO ODT 3.0 have their own names for install.
2816 # Don't use installbsd from OSF since it installs stuff as root
2818 for ac_prog in ginstall scoinst install; do
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2821 if test $ac_prog = install &&
2822 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2823 # AIX install. It has an incompatible calling convention.
2825 elif test $ac_prog = install &&
2826 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2827 # program-specific install script used by HP pwplus--don't use.
2830 rm -rf conftest.one conftest.two conftest.dir
2831 echo one > conftest.one
2832 echo two > conftest.two
2834 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2835 test -s conftest.one && test -s conftest.two &&
2836 test -s conftest.dir/conftest.one &&
2837 test -s conftest.dir/conftest.two
2839 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2852 rm -rf conftest.one conftest.two conftest.dir
2855 if test "${ac_cv_path_install+set}" = set; then
2856 INSTALL=$ac_cv_path_install
2858 # As a last resort, use the slow shell script. Don't cache a
2859 # value for INSTALL within a source directory, because that will
2860 # break other packages using the cache if that directory is
2861 # removed, or if the value is a relative name.
2862 INSTALL=$ac_install_sh
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2866 $as_echo "$INSTALL" >&6; }
2868 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2869 # It thinks the first close brace ends the variable substitution.
2870 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2872 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2874 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if ${ac_cv_prog_CC+:} false; then :
2887 $as_echo_n "(cached) " >&6
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2920 if test -z "$ac_cv_prog_CC"; then
2922 # Extract the first word of "gcc", so it can be a program name with args.
2923 set dummy gcc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2927 $as_echo_n "(cached) " >&6
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 ac_cv_prog_ac_ct_CC="gcc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2950 if test -n "$ac_ct_CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2952 $as_echo "$ac_ct_CC" >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2958 if test "x$ac_ct_CC" = x; then
2961 case $cross_compiling:$ac_tool_warned in
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965 ac_tool_warned=yes ;;
2973 if test -z "$CC"; then
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}cc; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_CC+:} false; then :
2980 $as_echo_n "(cached) " >&6
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_CC="${ac_tool_prefix}cc"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 if test -n "$CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005 $as_echo "$CC" >&6; }
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3014 if test -z "$CC"; then
3015 # Extract the first word of "cc", so it can be a program name with args.
3016 set dummy cc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if ${ac_cv_prog_CC+:} false; then :
3020 $as_echo_n "(cached) " >&6
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3034 ac_prog_rejected=yes
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 if test $ac_prog_rejected = yes; then
3046 # We found a bogon in the path, so make sure we never use it.
3047 set dummy $ac_cv_prog_CC
3049 if test $# != 0; then
3050 # We chose a different compiler from the bogus one.
3051 # However, it has the same basename, so the bogon will be chosen
3052 # first if we set CC to just the basename; use the full file name.
3054 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3070 if test -z "$CC"; then
3071 if test -n "$ac_tool_prefix"; then
3072 for ac_prog in cl.exe
3074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_CC+:} false; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3111 test -n "$CC" && break
3114 if test -z "$CC"; then
3116 for ac_prog in cl.exe
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3123 $as_echo_n "(cached) " >&6
3125 if test -n "$ac_ct_CC"; then
3126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_ac_ct_CC="$ac_prog"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146 if test -n "$ac_ct_CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148 $as_echo "$ac_ct_CC" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3155 test -n "$ac_ct_CC" && break
3158 if test "x$ac_ct_CC" = x; then
3161 case $cross_compiling:$ac_tool_warned in
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165 ac_tool_warned=yes ;;
3174 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3177 See \
`config.log' for more details" "$LINENO" 5; }
3179 # Provide some information about the compiler.
3180 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3183 for ac_option in --version -v -V -qversion; do
3184 { { ac_try="$ac_compiler $ac_option >&5"
3186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3187 *) ac_try_echo
=$ac_try;;
3189 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3193 if test -s conftest.err
; then
3195 ... rest of stderr output deleted ...
3196 10q' conftest.err
>conftest.er1
3197 cat conftest.er1
>&5
3199 rm -f conftest.er1 conftest.err
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }
3204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3215 ac_clean_files_save
=$ac_clean_files
3216 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3217 # Try to create an executable without -o first, disregard a.out.
3218 # It will help us diagnose broken compilers, and finding out an intuition
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3221 $as_echo_n "checking whether the C compiler works... " >&6; }
3222 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3224 # The possible output files:
3225 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3228 for ac_file
in $ac_files
3231 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3232 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3237 if { { ac_try
="$ac_link_default"
3239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_link_default") 2>&5
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }; then :
3248 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3249 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3250 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3251 # so that the user can short-circuit this test for compilers unknown to
3253 for ac_file in $ac_files ''
3255 test -f "$ac_file" || continue
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3260 # We found the default executable, but exeext='' is most
3264 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3266 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3268 # We set ac_cv_exeext here because the later test for it is not
3269 # safe: cross compilers may not add the suffix if given an `-o'
3270 # argument, so we may need to know it at that point already.
3271 # Even if this section looks crufty: it has the advantage of
3278 test "$ac_cv_exeext" = no && ac_cv_exeext=
3283 if test -z "$ac_file"; then :
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 $as_echo "$as_me: failed program was:" >&5
3287 sed 's
/^
/|
/' conftest.$ac_ext >&5
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3291 as_fn_error 77 "C compiler cannot create executables
3292 See \`config.log
' for more details" "$LINENO" 5; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3300 $as_echo "$ac_file" >&6; }
3301 ac_exeext=$ac_cv_exeext
3303 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3304 ac_clean_files=$ac_clean_files_save
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3306 $as_echo_n "checking for suffix of executables... " >&6; }
3307 if { { ac_try="$ac_link"
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_link") 2>&5
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3319 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3320 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3322 for ac_file
in conftest.exe conftest conftest.
*; do
3323 test -f "$ac_file" ||
continue
3325 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3326 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3335 See \`config.log' for more details" "$LINENO" 5; }
3337 rm -f conftest conftest
$ac_cv_exeext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3339 $as_echo "$ac_cv_exeext" >&6; }
3341 rm -f conftest.
$ac_ext
3342 EXEEXT
=$ac_cv_exeext
3344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3350 FILE *f = fopen ("conftest.out", "w");
3351 return ferror (f) || fclose (f) != 0;
3357 ac_clean_files
="$ac_clean_files conftest.out"
3358 # Check that the compiler produces executables we can run. If not, either
3359 # the compiler is broken, or we cross compile.
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3361 $as_echo_n "checking whether we are cross compiling... " >&6; }
3362 if test "$cross_compiling" != yes; then
3363 { { ac_try
="$ac_link"
3365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_link") 2>&5
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }
3374 if { ac_try='./conftest$ac_cv_exeext'
3375 { { case "(($ac_try" in
3376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3377 *) ac_try_echo
=$ac_try;;
3379 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_try") 2>&5
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; }; then
3387 if test "$cross_compiling" = maybe
; then
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error $?
"cannot run C compiled programs.
3393 If you meant to cross compile, use \`--host'.
3394 See \`config.log' for more details" "$LINENO" 5; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3399 $as_echo "$cross_compiling" >&6; }
3401 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3402 ac_clean_files
=$ac_clean_files_save
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3404 $as_echo_n "checking for suffix of object files... " >&6; }
3405 if ${ac_cv_objext+:} false
; then :
3406 $as_echo_n "(cached) " >&6
3408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3419 rm -f conftest.o conftest.obj
3420 if { { ac_try
="$ac_compile"
3422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_compile") 2>&5
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 for ac_file in conftest.o conftest.obj conftest.*; do
3432 test -f "$ac_file" || continue;
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3435 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3440 $as_echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3446 See \
`config.log' for more details" "$LINENO" 5; }
3448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3451 $as_echo "$ac_cv_objext" >&6; }
3452 OBJEXT=$ac_cv_objext
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3455 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3456 if ${ac_cv_c_compiler_gnu+:} false; then :
3457 $as_echo_n "(cached) " >&6
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3473 if ac_fn_c_try_compile "$LINENO"; then :
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3483 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3484 if test $ac_compiler_gnu = yes; then
3489 ac_test_CFLAGS=${CFLAGS+set}
3490 ac_save_CFLAGS=$CFLAGS
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3492 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3493 if ${ac_cv_prog_cc_g+:} false; then :
3494 $as_echo_n "(cached) " >&6
3496 ac_save_c_werror_flag=$ac_c_werror_flag
3497 ac_c_werror_flag=yes
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3511 if ac_fn_c_try_compile "$LINENO"; then :
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3526 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_c_werror_flag=$ac_save_c_werror_flag
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3542 if ac_fn_c_try_compile "$LINENO"; then :
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3553 $as_echo "$ac_cv_prog_cc_g" >&6; }
3554 if test "$ac_test_CFLAGS" = set; then
3555 CFLAGS=$ac_save_CFLAGS
3556 elif test $ac_cv_prog_cc_g = yes; then
3557 if test "$GCC" = yes; then
3563 if test "$GCC" = yes; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3570 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3571 if ${ac_cv_prog_cc_c89+:} false; then :
3572 $as_echo_n "(cached) " >&6
3574 ac_cv_prog_cc_c89=no
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3581 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3582 struct buf { int x; };
3583 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3584 static char *e (p, i)
3590 static char *f (char * (*g) (char **, int), char **p, ...)
3595 s = g (p, va_arg (v,int));
3600 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3601 function prototypes and stuff, but not '\xHH' hex character constants.
3602 These don't provoke an error unfortunately, instead are silently treated
3603 as 'x'. The following induces an error, until -std is added to get
3604 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3605 array size at least. It's necessary to write '\x00'==0 to get something
3606 that's true only with -std. */
3607 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3609 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3610 inside strings and character constants. */
3612 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3614 int test (int i, double x);
3615 struct s1 {int (*f) (int a);};
3616 struct s2 {int (*f) (double a);};
3617 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3628 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3629 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3631 CC="$ac_save_CC $ac_arg"
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633 ac_cv_prog_cc_c89=$ac_arg
3635 rm -f core conftest.err conftest.$ac_objext
3636 test "x$ac_cv_prog_cc_c89" != "xno" && break
3638 rm -f conftest.$ac_ext
3643 case "x$ac_cv_prog_cc_c89" in
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3646 $as_echo "none needed" >&6; } ;;
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3649 $as_echo "unsupported" >&6; } ;;
3651 CC="$CC $ac_cv_prog_cc_c89"
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3653 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3655 if test "x$ac_cv_prog_cc_c89" != xno; then :
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 ac_cpp='$CXXCPP $CPPFLAGS'
3667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3670 if test -z "$CXX"; then
3671 if test -n "$CCC"; then
3674 if test -n "$ac_tool_prefix"; then
3675 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if ${ac_cv_prog_CXX+:} false; then :
3682 $as_echo_n "(cached) " >&6
3684 if test -n "$CXX"; then
3685 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 if test -n "$CXX"; then
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3707 $as_echo "$CXX" >&6; }
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3714 test -n "$CXX" && break
3717 if test -z "$CXX"; then
3719 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3721 # Extract the first word of "$ac_prog", so it can be a program name with args.
3722 set dummy $ac_prog; ac_word=$2
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3726 $as_echo_n "(cached) " >&6
3728 if test -n "$ac_ct_CXX"; then
3729 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_ac_ct_CXX="$ac_prog"
3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3749 if test -n "$ac_ct_CXX"; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3751 $as_echo "$ac_ct_CXX" >&6; }
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3754 $as_echo "no" >&6; }
3758 test -n "$ac_ct_CXX" && break
3761 if test "x$ac_ct_CXX" = x; then
3764 case $cross_compiling:$ac_tool_warned in
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3768 ac_tool_warned=yes ;;
3776 # Provide some information about the compiler.
3777 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3780 for ac_option in --version -v -V -qversion; do
3781 { { ac_try="$ac_compiler $ac_option >&5"
3783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3784 *) ac_try_echo
=$ac_try;;
3786 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787 $as_echo "$ac_try_echo"; } >&5
3788 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3790 if test -s conftest.err
; then
3792 ... rest of stderr output deleted ...
3793 10q' conftest.err
>conftest.er1
3794 cat conftest.er1
>&5
3796 rm -f conftest.er1 conftest.err
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3802 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3803 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3804 $as_echo_n "(cached) " >&6
3806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3820 if ac_fn_cxx_try_compile
"$LINENO"; then :
3825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3826 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3830 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3831 if test $ac_compiler_gnu = yes; then
3836 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3837 ac_save_CXXFLAGS
=$CXXFLAGS
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3839 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3840 if ${ac_cv_prog_cxx_g+:} false
; then :
3841 $as_echo_n "(cached) " >&6
3843 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3844 ac_cxx_werror_flag
=yes
3847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3858 if ac_fn_cxx_try_compile
"$LINENO"; then :
3859 ac_cv_prog_cxx_g
=yes
3862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3873 if ac_fn_cxx_try_compile
"$LINENO"; then :
3876 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3889 if ac_fn_cxx_try_compile
"$LINENO"; then :
3890 ac_cv_prog_cxx_g
=yes
3892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3897 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3900 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3901 if test "$ac_test_CXXFLAGS" = set; then
3902 CXXFLAGS
=$ac_save_CXXFLAGS
3903 elif test $ac_cv_prog_cxx_g = yes; then
3904 if test "$GXX" = yes; then
3910 if test "$GXX" = yes; then
3917 ac_cpp
='$CPP $CPPFLAGS'
3918 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3922 if test -n "$ac_tool_prefix"; then
3923 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3924 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if ${ac_cv_prog_RANLIB+:} false
; then :
3928 $as_echo_n "(cached) " >&6
3930 if test -n "$RANLIB"; then
3931 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir
=.
3938 for ac_exec_ext
in '' $ac_executable_extensions; do
3939 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 RANLIB
=$ac_cv_prog_RANLIB
3951 if test -n "$RANLIB"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3953 $as_echo "$RANLIB" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3961 if test -z "$ac_cv_prog_RANLIB"; then
3962 ac_ct_RANLIB
=$RANLIB
3963 # Extract the first word of "ranlib", so it can be a program name with args.
3964 set dummy ranlib
; ac_word
=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3968 $as_echo_n "(cached) " >&6
3970 if test -n "$ac_ct_RANLIB"; then
3971 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir
=.
3978 for ac_exec_ext
in '' $ac_executable_extensions; do
3979 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3991 if test -n "$ac_ct_RANLIB"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3993 $as_echo "$ac_ct_RANLIB" >&6; }
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3999 if test "x$ac_ct_RANLIB" = x
; then
4002 case $cross_compiling:$ac_tool_warned in
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4006 ac_tool_warned
=yes ;;
4008 RANLIB
=$ac_ct_RANLIB
4011 RANLIB
="$ac_cv_prog_RANLIB"
4017 ac_cpp
='$CPP $CPPFLAGS'
4018 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4022 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4023 # On Suns, sometimes $CPP names a directory.
4024 if test -n "$CPP" && test -d "$CPP"; then
4027 if test -z "$CPP"; then
4028 if ${ac_cv_prog_CPP+:} false
; then :
4029 $as_echo_n "(cached) " >&6
4031 # Double quotes because CPP needs to be expanded
4032 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4035 for ac_c_preproc_warn_flag
in '' yes
4037 # Use a header file that comes with gcc, so configuring glibc
4038 # with a fresh cross-compiler works.
4039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4040 # <limits.h> exists even on freestanding compilers.
4041 # On the NeXT, cc -E runs the code through the compiler's parser,
4042 # not just through cpp. "Syntax error" is here to catch this case.
4043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4046 # include <limits.h>
4048 # include <assert.h>
4052 if ac_fn_c_try_cpp
"$LINENO"; then :
4055 # Broken: fails on valid input.
4058 rm -f conftest.err conftest.i conftest.
$ac_ext
4060 # OK, works on sane cases. Now check whether nonexistent headers
4061 # can be detected and how.
4062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064 #include <ac_nonexistent.h>
4066 if ac_fn_c_try_cpp
"$LINENO"; then :
4067 # Broken: success on invalid input.
4070 # Passes both tests.
4074 rm -f conftest.err conftest.i conftest.
$ac_ext
4077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4078 rm -f conftest.i conftest.err conftest.
$ac_ext
4079 if $ac_preproc_ok; then :
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4092 $as_echo "$CPP" >&6; }
4094 for ac_c_preproc_warn_flag
in '' yes
4096 # Use a header file that comes with gcc, so configuring glibc
4097 # with a fresh cross-compiler works.
4098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4099 # <limits.h> exists even on freestanding compilers.
4100 # On the NeXT, cc -E runs the code through the compiler's parser,
4101 # not just through cpp. "Syntax error" is here to catch this case.
4102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4105 # include <limits.h>
4107 # include <assert.h>
4111 if ac_fn_c_try_cpp
"$LINENO"; then :
4114 # Broken: fails on valid input.
4117 rm -f conftest.err conftest.i conftest.
$ac_ext
4119 # OK, works on sane cases. Now check whether nonexistent headers
4120 # can be detected and how.
4121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #include <ac_nonexistent.h>
4125 if ac_fn_c_try_cpp
"$LINENO"; then :
4126 # Broken: success on invalid input.
4129 # Passes both tests.
4133 rm -f conftest.err conftest.i conftest.
$ac_ext
4136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4137 rm -f conftest.i conftest.err conftest.
$ac_ext
4138 if $ac_preproc_ok; then :
4141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4143 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4144 See \`config.log' for more details" "$LINENO" 5; }
4148 ac_cpp
='$CPP $CPPFLAGS'
4149 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4155 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4156 if ${ac_cv_path_GREP+:} false
; then :
4157 $as_echo_n "(cached) " >&6
4159 if test -z "$GREP"; then
4160 ac_path_GREP_found
=false
4161 # Loop through the user's path and test for each of PROGNAME-LIST
4162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4163 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4166 test -z "$as_dir" && as_dir
=.
4167 for ac_prog
in grep ggrep
; do
4168 for ac_exec_ext
in '' $ac_executable_extensions; do
4169 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4170 as_fn_executable_p
"$ac_path_GREP" ||
continue
4171 # Check for GNU ac_path_GREP and select it if it is found.
4172 # Check for GNU $ac_path_GREP
4173 case `"$ac_path_GREP" --version 2>&1` in
4175 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4178 $as_echo_n 0123456789 >"conftest.in"
4181 cat "conftest.in" "conftest.in" >"conftest.tmp"
4182 mv "conftest.tmp" "conftest.in"
4183 cp "conftest.in" "conftest.nl"
4184 $as_echo 'GREP' >> "conftest.nl"
4185 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4186 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4187 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4188 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4189 # Best one so far, save it but keep looking for a better one
4190 ac_cv_path_GREP
="$ac_path_GREP"
4191 ac_path_GREP_max
=$ac_count
4193 # 10*(2^10) chars as input seems more than enough
4194 test $ac_count -gt 10 && break
4196 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4199 $ac_path_GREP_found && break 3
4204 if test -z "$ac_cv_path_GREP"; then
4205 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4208 ac_cv_path_GREP
=$GREP
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4213 $as_echo "$ac_cv_path_GREP" >&6; }
4214 GREP
="$ac_cv_path_GREP"
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4218 $as_echo_n "checking for egrep... " >&6; }
4219 if ${ac_cv_path_EGREP+:} false
; then :
4220 $as_echo_n "(cached) " >&6
4222 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4223 then ac_cv_path_EGREP
="$GREP -E"
4225 if test -z "$EGREP"; then
4226 ac_path_EGREP_found
=false
4227 # Loop through the user's path and test for each of PROGNAME-LIST
4228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4229 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4232 test -z "$as_dir" && as_dir
=.
4233 for ac_prog
in egrep; do
4234 for ac_exec_ext
in '' $ac_executable_extensions; do
4235 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4236 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4237 # Check for GNU ac_path_EGREP and select it if it is found.
4238 # Check for GNU $ac_path_EGREP
4239 case `"$ac_path_EGREP" --version 2>&1` in
4241 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4244 $as_echo_n 0123456789 >"conftest.in"
4247 cat "conftest.in" "conftest.in" >"conftest.tmp"
4248 mv "conftest.tmp" "conftest.in"
4249 cp "conftest.in" "conftest.nl"
4250 $as_echo 'EGREP' >> "conftest.nl"
4251 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4252 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4253 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4254 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4255 # Best one so far, save it but keep looking for a better one
4256 ac_cv_path_EGREP
="$ac_path_EGREP"
4257 ac_path_EGREP_max
=$ac_count
4259 # 10*(2^10) chars as input seems more than enough
4260 test $ac_count -gt 10 && break
4262 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4265 $ac_path_EGREP_found && break 3
4270 if test -z "$ac_cv_path_EGREP"; then
4271 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4274 ac_cv_path_EGREP
=$EGREP
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4280 $as_echo "$ac_cv_path_EGREP" >&6; }
4281 EGREP
="$ac_cv_path_EGREP"
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4285 $as_echo_n "checking for ANSI C header files... " >&6; }
4286 if ${ac_cv_header_stdc+:} false
; then :
4287 $as_echo_n "(cached) " >&6
4289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4304 if ac_fn_c_try_compile
"$LINENO"; then :
4305 ac_cv_header_stdc
=yes
4307 ac_cv_header_stdc
=no
4309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4311 if test $ac_cv_header_stdc = yes; then
4312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319 $EGREP "memchr" >/dev
/null
2>&1; then :
4322 ac_cv_header_stdc
=no
4328 if test $ac_cv_header_stdc = yes; then
4329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4336 $EGREP "free" >/dev
/null
2>&1; then :
4339 ac_cv_header_stdc
=no
4345 if test $ac_cv_header_stdc = yes; then
4346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4347 if test "$cross_compiling" = yes; then :
4350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4354 #if ((' ' & 0x0FF) == 0x020)
4355 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4356 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4358 # define ISLOWER(c) \
4359 (('a' <= (c) && (c) <= 'i') \
4360 || ('j' <= (c) && (c) <= 'r') \
4361 || ('s' <= (c) && (c) <= 'z'))
4362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4370 for (i = 0; i < 256; i++)
4371 if (XOR (islower (i), ISLOWER (i))
4372 || toupper (i) != TOUPPER (i))
4377 if ac_fn_c_try_run
"$LINENO"; then :
4380 ac_cv_header_stdc
=no
4382 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4383 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4389 $as_echo "$ac_cv_header_stdc" >&6; }
4390 if test $ac_cv_header_stdc = yes; then
4392 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4396 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4397 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4398 inttypes.h stdint.h unistd.h
4400 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4401 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4403 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4404 cat >>confdefs.h
<<_ACEOF
4405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4414 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4415 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4422 if test "$MINIX" = yes; then
4424 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4427 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4430 $as_echo "#define _MINIX 1" >>confdefs.h
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4436 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4437 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4438 $as_echo_n "(cached) " >&6
4440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4443 # define __EXTENSIONS__ 1
4444 $ac_includes_default
4453 if ac_fn_c_try_compile
"$LINENO"; then :
4454 ac_cv_safe_to_define___extensions__
=yes
4456 ac_cv_safe_to_define___extensions__
=no
4458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4461 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4462 test $ac_cv_safe_to_define___extensions__ = yes &&
4463 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4465 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4467 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4469 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4471 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4474 # Check whether --enable-largefile was given.
4475 if test "${enable_largefile+set}" = set; then :
4476 enableval
=$enable_largefile;
4479 if test "$enable_largefile" != no
; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4482 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4483 if ${ac_cv_sys_largefile_CC+:} false
; then :
4484 $as_echo_n "(cached) " >&6
4486 ac_cv_sys_largefile_CC
=no
4487 if test "$GCC" != yes; then
4490 # IRIX 6.2 and later do not support large files by default,
4491 # so use the C compiler's -n32 option if that helps.
4492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494 #include <sys/types.h>
4495 /* Check that off_t can represent 2**63 - 1 correctly.
4496 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4497 since some C++ compilers masquerading as C compilers
4498 incorrectly reject 9223372036854775807. */
4499 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4500 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4501 && LARGE_OFF_T % 2147483647 == 1)
4511 if ac_fn_c_try_compile
"$LINENO"; then :
4514 rm -f core conftest.err conftest.
$ac_objext
4516 if ac_fn_c_try_compile
"$LINENO"; then :
4517 ac_cv_sys_largefile_CC
=' -n32'; break
4519 rm -f core conftest.err conftest.
$ac_objext
4523 rm -f conftest.
$ac_ext
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4527 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4528 if test "$ac_cv_sys_largefile_CC" != no
; then
4529 CC
=$CC$ac_cv_sys_largefile_CC
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4533 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4534 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4535 $as_echo_n "(cached) " >&6
4538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540 #include <sys/types.h>
4541 /* Check that off_t can represent 2**63 - 1 correctly.
4542 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4543 since some C++ compilers masquerading as C compilers
4544 incorrectly reject 9223372036854775807. */
4545 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4547 && LARGE_OFF_T % 2147483647 == 1)
4557 if ac_fn_c_try_compile
"$LINENO"; then :
4558 ac_cv_sys_file_offset_bits
=no
; break
4560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4563 #define _FILE_OFFSET_BITS 64
4564 #include <sys/types.h>
4565 /* Check that off_t can represent 2**63 - 1 correctly.
4566 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4567 since some C++ compilers masquerading as C compilers
4568 incorrectly reject 9223372036854775807. */
4569 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4570 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4571 && LARGE_OFF_T % 2147483647 == 1)
4581 if ac_fn_c_try_compile
"$LINENO"; then :
4582 ac_cv_sys_file_offset_bits
=64; break
4584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4585 ac_cv_sys_file_offset_bits
=unknown
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4590 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4591 case $ac_cv_sys_file_offset_bits in #(
4594 cat >>confdefs.h
<<_ACEOF
4595 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4600 if test $ac_cv_sys_file_offset_bits = unknown
; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4602 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4603 if ${ac_cv_sys_large_files+:} false
; then :
4604 $as_echo_n "(cached) " >&6
4607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 #include <sys/types.h>
4610 /* Check that off_t can represent 2**63 - 1 correctly.
4611 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4612 since some C++ compilers masquerading as C compilers
4613 incorrectly reject 9223372036854775807. */
4614 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4615 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4616 && LARGE_OFF_T % 2147483647 == 1)
4626 if ac_fn_c_try_compile
"$LINENO"; then :
4627 ac_cv_sys_large_files
=no
; break
4629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4632 #define _LARGE_FILES 1
4633 #include <sys/types.h>
4634 /* Check that off_t can represent 2**63 - 1 correctly.
4635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4636 since some C++ compilers masquerading as C compilers
4637 incorrectly reject 9223372036854775807. */
4638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4640 && LARGE_OFF_T % 2147483647 == 1)
4650 if ac_fn_c_try_compile
"$LINENO"; then :
4651 ac_cv_sys_large_files
=1; break
4653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4654 ac_cv_sys_large_files
=unknown
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4659 $as_echo "$ac_cv_sys_large_files" >&6; }
4660 case $ac_cv_sys_large_files in #(
4663 cat >>confdefs.h
<<_ACEOF
4664 #define _LARGE_FILES $ac_cv_sys_large_files
4675 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4676 for ac_prog
in aclocal
4678 # Extract the first word of "$ac_prog", so it can be a program name with args.
4679 set dummy
$ac_prog; ac_word
=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if ${ac_cv_prog_ACLOCAL+:} false
; then :
4683 $as_echo_n "(cached) " >&6
4685 if test -n "$ACLOCAL"; then
4686 ac_cv_prog_ACLOCAL
="$ACLOCAL" # Let the user override the test.
4688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir
=.
4693 for ac_exec_ext
in '' $ac_executable_extensions; do
4694 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4695 ac_cv_prog_ACLOCAL
="$ac_prog"
4696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 ACLOCAL
=$ac_cv_prog_ACLOCAL
4706 if test -n "$ACLOCAL"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4708 $as_echo "$ACLOCAL" >&6; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4715 test -n "$ACLOCAL" && break
4717 test -n "$ACLOCAL" || ACLOCAL
="$MISSING aclocal"
4719 for ac_prog
in autoconf
4721 # Extract the first word of "$ac_prog", so it can be a program name with args.
4722 set dummy
$ac_prog; ac_word
=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if ${ac_cv_prog_AUTOCONF+:} false
; then :
4726 $as_echo_n "(cached) " >&6
4728 if test -n "$AUTOCONF"; then
4729 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
4731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir
=.
4736 for ac_exec_ext
in '' $ac_executable_extensions; do
4737 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_AUTOCONF
="$ac_prog"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 AUTOCONF
=$ac_cv_prog_AUTOCONF
4749 if test -n "$AUTOCONF"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4751 $as_echo "$AUTOCONF" >&6; }
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4758 test -n "$AUTOCONF" && break
4760 test -n "$AUTOCONF" || AUTOCONF
="$MISSING autoconf"
4762 for ac_prog
in autoheader
4764 # Extract the first word of "$ac_prog", so it can be a program name with args.
4765 set dummy
$ac_prog; ac_word
=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_AUTOHEADER+:} false
; then :
4769 $as_echo_n "(cached) " >&6
4771 if test -n "$AUTOHEADER"; then
4772 ac_cv_prog_AUTOHEADER
="$AUTOHEADER" # Let the user override the test.
4774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir
=.
4779 for ac_exec_ext
in '' $ac_executable_extensions; do
4780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_AUTOHEADER
="$ac_prog"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 AUTOHEADER
=$ac_cv_prog_AUTOHEADER
4792 if test -n "$AUTOHEADER"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4794 $as_echo "$AUTOHEADER" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4801 test -n "$AUTOHEADER" && break
4803 test -n "$AUTOHEADER" || AUTOHEADER
="$MISSING autoheader"
4806 # Figure out what compiler warnings we can enable.
4807 # See config/warnings.m4 for details.
4810 ac_cpp
='$CPP $CPPFLAGS'
4811 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4816 save_CFLAGS
="$CFLAGS"
4817 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings \
4818 -Wmissing-format-attribute; do
4819 # Do the check with the no- prefix removed since gcc silently
4820 # accepts any -Wno-* option on purpose
4821 case $real_option in
4822 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4823 *) option
=$real_option ;;
4825 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4828 $as_echo_n "checking whether $CC supports $option... " >&6; }
4829 if eval \
${$as_acx_Woption+:} false
; then :
4830 $as_echo_n "(cached) " >&6
4833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4844 if ac_fn_c_try_compile
"$LINENO"; then :
4845 eval "$as_acx_Woption=yes"
4847 eval "$as_acx_Woption=no"
4849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4852 eval ac_res
=\$
$as_acx_Woption
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4854 $as_echo "$ac_res" >&6; }
4855 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4856 warn
="$warn${warn:+ }$real_option"
4859 CFLAGS
="$save_CFLAGS"
4861 ac_cpp
='$CPP $CPPFLAGS'
4862 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4868 ac_cpp
='$CPP $CPPFLAGS'
4869 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4874 save_CFLAGS
="$CFLAGS"
4875 for real_option
in -Wstrict-prototypes -Wmissing-prototypes \
4876 -Wold-style-definition -Wc++-compat; do
4877 # Do the check with the no- prefix removed since gcc silently
4878 # accepts any -Wno-* option on purpose
4879 case $real_option in
4880 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4881 *) option
=$real_option ;;
4883 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4886 $as_echo_n "checking whether $CC supports $option... " >&6; }
4887 if eval \
${$as_acx_Woption+:} false
; then :
4888 $as_echo_n "(cached) " >&6
4891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4902 if ac_fn_c_try_compile
"$LINENO"; then :
4903 eval "$as_acx_Woption=yes"
4905 eval "$as_acx_Woption=no"
4907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4910 eval ac_res
=\$
$as_acx_Woption
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4912 $as_echo "$ac_res" >&6; }
4913 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4914 c_warn
="$c_warn${c_warn:+ }$real_option"
4917 CFLAGS
="$save_CFLAGS"
4919 ac_cpp
='$CPP $CPPFLAGS'
4920 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4926 ac_cpp
='$CPP $CPPFLAGS'
4927 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4932 # Do the check with the no- prefix removed from the warning options
4933 # since gcc silently accepts any -Wno-* option on purpose
4934 if test "$GCC" = yes; then :
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
4936 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
4937 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false
; then :
4938 $as_echo_n "(cached) " >&6
4940 save_CFLAGS
="$CFLAGS"
4941 CFLAGS
="-pedantic -Wlong-long"
4942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4953 if ac_fn_c_try_compile
"$LINENO"; then :
4954 acx_cv_prog_cc_pedantic__Wlong_long
=yes
4956 acx_cv_prog_cc_pedantic__Wlong_long
=no
4958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4959 CFLAGS
="$save_CFLAGS"
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
4962 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
4963 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
4964 WARN_PEDANTIC
="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4969 ac_cpp
='$CPP $CPPFLAGS'
4970 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4976 # Disable exceptions and RTTI if building with g++
4978 ac_cpp
='$CPP $CPPFLAGS'
4979 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4984 save_CFLAGS
="$CFLAGS"
4985 for real_option
in -fno-exceptions -fno-rtti; do
4986 # Do the check with the no- prefix removed since gcc silently
4987 # accepts any -Wno-* option on purpose
4988 case $real_option in
4989 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4990 *) option
=$real_option ;;
4992 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4995 $as_echo_n "checking whether $CC supports $option... " >&6; }
4996 if eval \
${$as_acx_Woption+:} false
; then :
4997 $as_echo_n "(cached) " >&6
5000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5011 if ac_fn_c_try_compile
"$LINENO"; then :
5012 eval "$as_acx_Woption=yes"
5014 eval "$as_acx_Woption=no"
5016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5019 eval ac_res
=\$
$as_acx_Woption
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5021 $as_echo "$ac_res" >&6; }
5022 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5023 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
5026 CFLAGS
="$save_CFLAGS"
5028 ac_cpp
='$CPP $CPPFLAGS'
5029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5035 # Only enable with --enable-werror-always until existing warnings are
5038 ac_cpp
='$CPP $CPPFLAGS'
5039 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5044 # Check whether --enable-werror-always was given.
5045 if test "${enable_werror_always+set}" = set; then :
5046 enableval
=$enable_werror_always;
5048 enable_werror_always
=no
5051 if test $enable_werror_always = yes; then :
5052 WERROR
="$WERROR${WERROR:+ }-Werror"
5056 ac_cpp
='$CPP $CPPFLAGS'
5057 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5063 # Dependency checking.
5064 rm -rf .tst
2>/dev
/null
5065 mkdir .tst
2>/dev
/null
5066 if test -d .tst
; then
5071 rmdir .tst
2>/dev
/null
5073 DEPDIR
="${am__leading_dot}deps"
5075 ac_config_commands
="$ac_config_commands depdir"
5079 ac_cpp
='$CXXCPP $CPPFLAGS'
5080 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5089 if ac_fn_cxx_try_compile
"$LINENO"; then :
5092 as_fn_error $?
"C++ compiler missing or inoperational" "$LINENO" 5
5094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5096 ac_cpp
='$CPP $CPPFLAGS'
5097 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5101 depcc
="$CXX" am_compiler_list
=
5103 am_depcomp
=$ac_aux_dir/depcomp
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5105 $as_echo_n "checking dependency style of $depcc... " >&6; }
5106 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
5107 $as_echo_n "(cached) " >&6
5109 if test -f "$am_depcomp"; then
5110 # We make a subdir and do the tests there. Otherwise we can end up
5111 # making bogus files that we don't know about and never remove. For
5112 # instance it was reported that on HP-UX the gcc test will end up
5113 # making a dummy file named `D' -- because `-MD' means `put the output
5116 # Copy depcomp to subdir because otherwise we won't find it if we're
5117 # using a relative directory.
5118 cp "$am_depcomp" conftest.dir
5120 # We will build objects and dependencies in a subdirectory because
5121 # it helps to detect inapplicable dependency modes. For instance
5122 # both Tru64's cc and ICC support -MD to output dependencies as a
5123 # side effect of compilation, but ICC will put the dependencies in
5124 # the current directory while Tru64 will put them in the object
5128 am_cv_CXX_dependencies_compiler_type
=none
5129 if test "$am_compiler_list" = ""; then
5130 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5132 for depmode
in $am_compiler_list; do
5133 if test $depmode = none
; then break; fi
5135 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5136 # Setup a source with many dependencies, because some compilers
5137 # like to wrap large dependency lists on column 80 (with \), and
5138 # we should not choose a depcomp mode which is confused by this.
5140 # We need to recreate these files for each test, as the compiler may
5141 # overwrite some of them when testing with obscure command lines.
5142 # This happens at least with the AIX C compiler.
5144 for i
in 1 2 3 4 5 6; do
5145 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5146 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5147 # Solaris 8's {/usr,}/bin/sh.
5148 touch sub
/conftst
$i.h
5150 echo "include sub/conftest.Po" > confmf
5152 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5153 # mode. It turns out that the SunPro C++ compiler does not properly
5154 # handle `-M -o', and we need to detect this.
5155 depcmd
="depmode=$depmode \
5156 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5157 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5158 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5159 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5160 if env
$depcmd > conftest.err
2>&1 &&
5161 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5162 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5163 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5164 # icc doesn't choke on unknown options, it will just issue warnings
5165 # or remarks (even with -Werror). So we grep stderr for any message
5166 # that says an option was ignored or not supported.
5167 # When given -MP, icc 7.0 and 7.1 complain thusly:
5168 # icc: Command line warning: ignoring option '-M'; no argument required
5169 # The diagnosis changed in icc 8.0:
5170 # icc: Command line remark: option '-MP' not supported
5171 if (grep 'ignoring option' conftest.err ||
5172 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5173 am_cv_CXX_dependencies_compiler_type
=$depmode
5174 $as_echo "$as_me:$LINENO: success" >&5
5178 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5179 sed -e 's/^/| /' < conftest.err
>&5
5185 am_cv_CXX_dependencies_compiler_type
=none
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5190 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5191 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
5192 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
5193 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5198 # Checks for header files.
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5200 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5201 if ${ac_cv_header_time+:} false
; then :
5202 $as_echo_n "(cached) " >&6
5204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 #include <sys/types.h>
5207 #include <sys/time.h>
5213 if ((struct tm *) 0)
5219 if ac_fn_c_try_compile
"$LINENO"; then :
5220 ac_cv_header_time
=yes
5222 ac_cv_header_time
=no
5224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5227 $as_echo "$ac_cv_header_time" >&6; }
5228 if test $ac_cv_header_time = yes; then
5230 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5235 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5236 if ${gcc_cv_header_string+:} false
; then :
5237 $as_echo_n "(cached) " >&6
5239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5242 #include <strings.h>
5251 if ac_fn_c_try_compile
"$LINENO"; then :
5252 gcc_cv_header_string
=yes
5254 gcc_cv_header_string
=no
5256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5259 $as_echo "$gcc_cv_header_string" >&6; }
5260 if test $gcc_cv_header_string = yes; then
5262 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5267 for ac_header
in locale.h fcntl.h limits.h stddef.h \
5268 stdlib.h
strings.h string.h sys
/file.h unistd.h
5270 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5271 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5272 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5273 cat >>confdefs.h
<<_ACEOF
5274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5282 # Checks for typedefs, structures, and compiler characteristics.
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5284 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5285 if ${ac_cv_c_bigendian+:} false
; then :
5286 $as_echo_n "(cached) " >&6
5288 ac_cv_c_bigendian
=unknown
5289 # See if we're dealing with a universal compiler.
5290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 #ifndef __APPLE_CC__
5293 not a universal capable compiler
5298 if ac_fn_c_try_compile
"$LINENO"; then :
5300 # Check for potential -arch flags. It is not universal unless
5301 # there are at least two -arch flags with different values.
5304 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5305 if test -n "$ac_prev"; then
5307 i?
86 | x86_64 | ppc | ppc64
)
5308 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5311 ac_cv_c_bigendian
=universal
5317 elif test "x$ac_word" = "x-arch"; then
5322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5323 if test $ac_cv_c_bigendian = unknown
; then
5324 # See if sys/param.h defines the BYTE_ORDER macro.
5325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 #include <sys/types.h>
5328 #include <sys/param.h>
5333 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5334 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5343 if ac_fn_c_try_compile
"$LINENO"; then :
5344 # It does; now see whether it defined to BIG_ENDIAN or not.
5345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 #include <sys/types.h>
5348 #include <sys/param.h>
5353 #if BYTE_ORDER != BIG_ENDIAN
5361 if ac_fn_c_try_compile
"$LINENO"; then :
5362 ac_cv_c_bigendian
=yes
5364 ac_cv_c_bigendian
=no
5366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5370 if test $ac_cv_c_bigendian = unknown
; then
5371 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5379 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5387 if ac_fn_c_try_compile
"$LINENO"; then :
5388 # It does; now see whether it defined to _BIG_ENDIAN or not.
5389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5404 if ac_fn_c_try_compile
"$LINENO"; then :
5405 ac_cv_c_bigendian
=yes
5407 ac_cv_c_bigendian
=no
5409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5413 if test $ac_cv_c_bigendian = unknown
; then
5414 # Compile a test program.
5415 if test "$cross_compiling" = yes; then :
5416 # Try to guess by grepping values from an object file.
5417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 short int ascii_mm[] =
5420 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5421 short int ascii_ii[] =
5422 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5423 int use_ascii (int i) {
5424 return ascii_mm[i] + ascii_ii[i];
5426 short int ebcdic_ii[] =
5427 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5428 short int ebcdic_mm[] =
5429 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5430 int use_ebcdic (int i) {
5431 return ebcdic_mm[i] + ebcdic_ii[i];
5438 return use_ascii (foo) == use_ebcdic (foo);
5443 if ac_fn_c_try_compile
"$LINENO"; then :
5444 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5445 ac_cv_c_bigendian
=yes
5447 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5448 if test "$ac_cv_c_bigendian" = unknown
; then
5449 ac_cv_c_bigendian
=no
5451 # finding both strings is unlikely to happen, but who knows?
5452 ac_cv_c_bigendian
=unknown
5456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 $ac_includes_default
5465 /* Are we little or big endian? From Harbison&Steele. */
5469 char c[sizeof (long int)];
5472 return u.c[sizeof (long int) - 1] == 1;
5478 if ac_fn_c_try_run
"$LINENO"; then :
5479 ac_cv_c_bigendian
=no
5481 ac_cv_c_bigendian
=yes
5483 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5484 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5490 $as_echo "$ac_cv_c_bigendian" >&6; }
5491 case $ac_cv_c_bigendian in #(
5493 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5499 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5503 as_fn_error $?
"unknown endianness
5504 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5508 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5509 if ${ac_cv_c_const+:} false
; then :
5510 $as_echo_n "(cached) " >&6
5512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5520 /* Ultrix mips cc rejects this sort of thing. */
5521 typedef int charset[2];
5522 const charset cs = { 0, 0 };
5523 /* SunOS 4.1.1 cc rejects this. */
5524 char const *const *pcpcc;
5526 /* NEC SVR4.0.2 mips cc rejects this. */
5527 struct point {int x, y;};
5528 static struct point const zero = {0,0};
5529 /* AIX XL C 1.02.0.0 rejects this.
5530 It does not let you subtract one const X* pointer from another in
5531 an arm of an if-expression whose if-part is not a constant
5533 const char *g = "string";
5534 pcpcc = &g + (g ? g-g : 0);
5535 /* HPUX 7.0 cc rejects these. */
5537 ppc = (char**) pcpcc;
5538 pcpcc = (char const *const *) ppc;
5539 { /* SCO 3.2v4 cc rejects this sort of thing. */
5542 char const *s = 0 ? (char *) 0 : (char const *) 0;
5547 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5549 const int *foo = &x[0];
5552 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5553 typedef const int *iptr;
5557 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5558 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5559 struct s { int j; const int *ap[3]; } bx;
5560 struct s *b = &bx; b->j = 5;
5562 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5566 return !cs[0] && !zero.x;
5573 if ac_fn_c_try_compile
"$LINENO"; then :
5578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5581 $as_echo "$ac_cv_c_const" >&6; }
5582 if test $ac_cv_c_const = no
; then
5584 $as_echo "#define const /**/" >>confdefs.h
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5589 $as_echo_n "checking for inline... " >&6; }
5590 if ${ac_cv_c_inline+:} false
; then :
5591 $as_echo_n "(cached) " >&6
5594 for ac_kw
in inline __inline__ __inline
; do
5595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5599 static $ac_kw foo_t static_foo () {return 0; }
5600 $ac_kw foo_t foo () {return 0; }
5604 if ac_fn_c_try_compile
"$LINENO"; then :
5605 ac_cv_c_inline
=$ac_kw
5607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5608 test "$ac_cv_c_inline" != no
&& break
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5613 $as_echo "$ac_cv_c_inline" >&6; }
5615 case $ac_cv_c_inline in
5618 case $ac_cv_c_inline in
5620 *) ac_val
=$ac_cv_c_inline;;
5622 cat >>confdefs.h
<<_ACEOF
5624 #define inline $ac_val
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5631 $as_echo_n "checking for obstacks... " >&6; }
5632 if ${ac_cv_func_obstack+:} false
; then :
5633 $as_echo_n "(cached) " >&6
5635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 $ac_includes_default
5638 #include "obstack.h"
5643 #define obstack_chunk_alloc malloc
5644 #define obstack_chunk_free free
5645 obstack_init (&mem);
5646 obstack_free (&mem, 0);
5651 if ac_fn_c_try_link
"$LINENO"; then :
5652 ac_cv_func_obstack
=yes
5654 ac_cv_func_obstack
=no
5656 rm -f core conftest.err conftest.
$ac_objext \
5657 conftest
$ac_exeext conftest.
$ac_ext
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5660 $as_echo "$ac_cv_func_obstack" >&6; }
5661 if test $ac_cv_func_obstack = yes; then
5663 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5666 case " $LIBOBJS " in
5667 *" obstack.$ac_objext "* ) ;;
5668 *) LIBOBJS
="$LIBOBJS obstack.$ac_objext"
5674 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5675 if test "x$ac_cv_type_off_t" = xyes
; then :
5679 cat >>confdefs.h
<<_ACEOF
5680 #define off_t long int
5685 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5686 if test "x$ac_cv_type_size_t" = xyes
; then :
5690 cat >>confdefs.h
<<_ACEOF
5691 #define size_t unsigned int
5696 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5697 if test "x$ac_cv_type_ssize_t" = xyes
; then :
5701 cat >>confdefs.h
<<_ACEOF
5708 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5709 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
5711 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5714 for ac_type
in 'unsigned int' 'unsigned long int' \
5715 'unsigned long long int'; do
5716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 $ac_includes_default
5722 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5724 return test_array [0];
5730 if ac_fn_c_try_compile
"$LINENO"; then :
5732 cat >>confdefs.h
<<_ACEOF
5733 #define uintptr_t $ac_type
5738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5739 test -z "$ac_type" && break
5744 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5745 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
5749 cat >>confdefs.h
<<_ACEOF
5750 #define ptrdiff_t int
5755 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5756 case $ac_cv_c_uint64_t in #(
5760 $as_echo "#define _UINT64_T 1" >>confdefs.h
5763 cat >>confdefs.h
<<_ACEOF
5764 #define uint64_t $ac_cv_c_uint64_t
5769 if test x
"$ac_cv_c_uint64_t" = x
"no"; then
5770 as_fn_error $?
"uint64_t not found" "$LINENO" 5
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5773 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5774 if ${ac_cv_struct_tm+:} false
; then :
5775 $as_echo_n "(cached) " >&6
5777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #include <sys/types.h>
5786 int *p = &tm.tm_sec;
5792 if ac_fn_c_try_compile
"$LINENO"; then :
5793 ac_cv_struct_tm
=time.h
5795 ac_cv_struct_tm
=sys
/time.h
5797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5800 $as_echo "$ac_cv_struct_tm" >&6; }
5801 if test $ac_cv_struct_tm = sys
/time.h
; then
5803 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5807 # The cast to long int works around a bug in the HP C Compiler
5808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5810 # This bug is HP SR number 8606223364.
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5812 $as_echo_n "checking size of int... " >&6; }
5813 if ${ac_cv_sizeof_int+:} false
; then :
5814 $as_echo_n "(cached) " >&6
5816 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5819 if test "$ac_cv_type_int" = yes; then
5820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822 as_fn_error
77 "cannot compute sizeof (int)
5823 See \`config.log' for more details" "$LINENO" 5; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5831 $as_echo "$ac_cv_sizeof_int" >&6; }
5835 cat >>confdefs.h
<<_ACEOF
5836 #define SIZEOF_INT $ac_cv_sizeof_int
5840 # The cast to long int works around a bug in the HP C Compiler
5841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5843 # This bug is HP SR number 8606223364.
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5845 $as_echo_n "checking size of long... " >&6; }
5846 if ${ac_cv_sizeof_long+:} false
; then :
5847 $as_echo_n "(cached) " >&6
5849 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5852 if test "$ac_cv_type_long" = yes; then
5853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5855 as_fn_error
77 "cannot compute sizeof (long)
5856 See \`config.log' for more details" "$LINENO" 5; }
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5864 $as_echo "$ac_cv_sizeof_long" >&6; }
5868 cat >>confdefs.h
<<_ACEOF
5869 #define SIZEOF_LONG $ac_cv_sizeof_long
5874 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
5876 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5877 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5878 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5879 cat >>confdefs.h
<<_ACEOF
5880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5886 ac_fn_c_check_decl
"$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5887 if test "x$ac_cv_have_decl_abort" = xyes
; then :
5893 cat >>confdefs.h
<<_ACEOF
5894 #define HAVE_DECL_ABORT $ac_have_decl
5896 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5897 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
5903 cat >>confdefs.h
<<_ACEOF
5904 #define HAVE_DECL_ASPRINTF $ac_have_decl
5906 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
5907 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
5908 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
5914 cat >>confdefs.h
<<_ACEOF
5915 #define HAVE_DECL_BASENAME $ac_have_decl
5917 ac_fn_c_check_decl
"$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5918 if test "x$ac_cv_have_decl_errno" = xyes
; then :
5924 cat >>confdefs.h
<<_ACEOF
5925 #define HAVE_DECL_ERRNO $ac_have_decl
5927 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
5928 if test "x$ac_cv_have_decl_getopt" = xyes
; then :
5934 cat >>confdefs.h
<<_ACEOF
5935 #define HAVE_DECL_GETOPT $ac_have_decl
5937 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5938 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
5944 cat >>confdefs.h
<<_ACEOF
5945 #define HAVE_DECL_VASPRINTF $ac_have_decl
5948 ac_fn_c_check_decl
"$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5949 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes
; then :
5955 cat >>confdefs.h
<<_ACEOF
5956 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5958 ac_fn_c_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5959 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
; then :
5965 cat >>confdefs.h
<<_ACEOF
5966 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5968 ac_fn_c_check_decl
"$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5969 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes
; then :
5975 cat >>confdefs.h
<<_ACEOF
5976 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5978 ac_fn_c_check_decl
"$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5979 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes
; then :
5985 cat >>confdefs.h
<<_ACEOF
5986 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5988 ac_fn_c_check_decl
"$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5989 if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes
; then :
5995 cat >>confdefs.h
<<_ACEOF
5996 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5998 ac_fn_c_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5999 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
; then :
6005 cat >>confdefs.h
<<_ACEOF
6006 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6008 ac_fn_c_check_decl
"$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6009 if test "x$ac_cv_have_decl_fileno_unlocked" = xyes
; then :
6015 cat >>confdefs.h
<<_ACEOF
6016 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6018 ac_fn_c_check_decl
"$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6019 if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes
; then :
6025 cat >>confdefs.h
<<_ACEOF
6026 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6028 ac_fn_c_check_decl
"$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6029 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes
; then :
6035 cat >>confdefs.h
<<_ACEOF
6036 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6038 ac_fn_c_check_decl
"$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6039 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes
; then :
6045 cat >>confdefs.h
<<_ACEOF
6046 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6048 ac_fn_c_check_decl
"$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6049 if test "x$ac_cv_have_decl_fread_unlocked" = xyes
; then :
6055 cat >>confdefs.h
<<_ACEOF
6056 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6058 ac_fn_c_check_decl
"$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6059 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes
; then :
6065 cat >>confdefs.h
<<_ACEOF
6066 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6068 ac_fn_c_check_decl
"$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6069 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes
; then :
6075 cat >>confdefs.h
<<_ACEOF
6076 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6078 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6079 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
6085 cat >>confdefs.h
<<_ACEOF
6086 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6088 ac_fn_c_check_decl
"$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6089 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes
; then :
6095 cat >>confdefs.h
<<_ACEOF
6096 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6098 ac_fn_c_check_decl
"$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6099 if test "x$ac_cv_have_decl_putc_unlocked" = xyes
; then :
6105 cat >>confdefs.h
<<_ACEOF
6106 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6110 # Checks for library functions.
6111 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6112 # for constant arguments. Useless!
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6114 $as_echo_n "checking for working alloca.h... " >&6; }
6115 if ${ac_cv_working_alloca_h+:} false
; then :
6116 $as_echo_n "(cached) " >&6
6118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6124 char *p = (char *) alloca (2 * sizeof (int));
6130 if ac_fn_c_try_link
"$LINENO"; then :
6131 ac_cv_working_alloca_h
=yes
6133 ac_cv_working_alloca_h
=no
6135 rm -f core conftest.err conftest.
$ac_objext \
6136 conftest
$ac_exeext conftest.
$ac_ext
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6139 $as_echo "$ac_cv_working_alloca_h" >&6; }
6140 if test $ac_cv_working_alloca_h = yes; then
6142 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6147 $as_echo_n "checking for alloca... " >&6; }
6148 if ${ac_cv_func_alloca_works+:} false
; then :
6149 $as_echo_n "(cached) " >&6
6151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6154 # define alloca __builtin_alloca
6157 # include <malloc.h>
6158 # define alloca _alloca
6160 # ifdef HAVE_ALLOCA_H
6161 # include <alloca.h>
6166 # ifndef alloca /* predefined by HP cc +Olibcalls */
6167 void *alloca (size_t);
6177 char *p = (char *) alloca (1);
6183 if ac_fn_c_try_link
"$LINENO"; then :
6184 ac_cv_func_alloca_works
=yes
6186 ac_cv_func_alloca_works
=no
6188 rm -f core conftest.err conftest.
$ac_objext \
6189 conftest
$ac_exeext conftest.
$ac_ext
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6192 $as_echo "$ac_cv_func_alloca_works" >&6; }
6194 if test $ac_cv_func_alloca_works = yes; then
6196 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6199 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6200 # that cause trouble. Some versions do not even contain alloca or
6201 # contain a buggy version. If you still want to use their alloca,
6202 # use ar to extract alloca.o from them instead of compiling alloca.c.
6204 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6206 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6210 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6211 if ${ac_cv_os_cray+:} false
; then :
6212 $as_echo_n "(cached) " >&6
6214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 #if defined CRAY && ! defined CRAY2
6223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6224 $EGREP "webecray" >/dev
/null
2>&1; then :
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6233 $as_echo "$ac_cv_os_cray" >&6; }
6234 if test $ac_cv_os_cray = yes; then
6235 for ac_func
in _getb67 GETB67 getb67
; do
6236 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6237 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6238 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6240 cat >>confdefs.h
<<_ACEOF
6241 #define CRAY_STACKSEG_END $ac_func
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6251 $as_echo_n "checking stack direction for C alloca... " >&6; }
6252 if ${ac_cv_c_stack_direction+:} false
; then :
6253 $as_echo_n "(cached) " >&6
6255 if test "$cross_compiling" = yes; then :
6256 ac_cv_c_stack_direction
=0
6258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260 $ac_includes_default
6262 find_stack_direction (int *addr, int depth)
6267 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6268 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6273 main (int argc, char **argv)
6275 return find_stack_direction (0, argc + !argv + 20) < 0;
6278 if ac_fn_c_try_run
"$LINENO"; then :
6279 ac_cv_c_stack_direction
=1
6281 ac_cv_c_stack_direction
=-1
6283 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6284 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6289 $as_echo "$ac_cv_c_stack_direction" >&6; }
6290 cat >>confdefs.h
<<_ACEOF
6291 #define STACK_DIRECTION $ac_cv_c_stack_direction
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6298 $as_echo_n "checking for ANSI C header files... " >&6; }
6299 if ${ac_cv_header_stdc+:} false
; then :
6300 $as_echo_n "(cached) " >&6
6302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6317 if ac_fn_c_try_compile
"$LINENO"; then :
6318 ac_cv_header_stdc
=yes
6320 ac_cv_header_stdc
=no
6322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6324 if test $ac_cv_header_stdc = yes; then
6325 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6332 $EGREP "memchr" >/dev
/null
2>&1; then :
6335 ac_cv_header_stdc
=no
6341 if test $ac_cv_header_stdc = yes; then
6342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6349 $EGREP "free" >/dev
/null
2>&1; then :
6352 ac_cv_header_stdc
=no
6358 if test $ac_cv_header_stdc = yes; then
6359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6360 if test "$cross_compiling" = yes; then :
6363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6367 #if ((' ' & 0x0FF) == 0x020)
6368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6371 # define ISLOWER(c) \
6372 (('a' <= (c) && (c) <= 'i') \
6373 || ('j' <= (c) && (c) <= 'r') \
6374 || ('s' <= (c) && (c) <= 'z'))
6375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6383 for (i = 0; i < 256; i++)
6384 if (XOR (islower (i), ISLOWER (i))
6385 || toupper (i) != TOUPPER (i))
6390 if ac_fn_c_try_run
"$LINENO"; then :
6393 ac_cv_header_stdc
=no
6395 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6396 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6402 $as_echo "$ac_cv_header_stdc" >&6; }
6403 if test $ac_cv_header_stdc = yes; then
6405 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6411 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6412 if ${am_cv_langinfo_codeset+:} false
; then :
6413 $as_echo_n "(cached) " >&6
6415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 #include <langinfo.h>
6421 char* cs = nl_langinfo(CODESET);
6426 if ac_fn_c_try_link
"$LINENO"; then :
6427 am_cv_langinfo_codeset
=yes
6429 am_cv_langinfo_codeset
=no
6431 rm -f core conftest.err conftest.
$ac_objext \
6432 conftest
$ac_exeext conftest.
$ac_ext
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6436 $as_echo "$am_cv_langinfo_codeset" >&6; }
6437 if test $am_cv_langinfo_codeset = yes; then
6439 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6443 # If we haven't got the data from the intl directory,
6444 # assume NLS is disabled.
6453 if test -f ..
/intl
/config.intl
; then
6454 . ..
/intl
/config.intl
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6457 $as_echo_n "checking whether NLS is requested... " >&6; }
6458 if test x
"$USE_NLS" != xyes
; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6463 $as_echo "yes" >&6; }
6465 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6469 $as_echo_n "checking for catalogs to be installed... " >&6; }
6470 # Look for .po and .gmo files in the source directory.
6473 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6474 # If there aren't any .gmo files the shell will give us the
6475 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6477 case "$cat" in *\
**)
6480 # The quadruple backslash is collapsed to a double backslash
6481 # by the backticks, then collapsed again by the double quotes,
6482 # leaving us with one backslash in the sed expression (right
6483 # before the dot that mustn't act as a wildcard).
6484 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6485 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6486 # The user is allowed to set LINGUAS to a list of languages to
6487 # install catalogs for. If it's empty that means "all of them."
6488 if test "x$LINGUAS" = x
; then
6489 CATALOGS
="$CATALOGS $cat"
6490 XLINGUAS
="$XLINGUAS $lang"
6492 case "$LINGUAS" in *$lang*)
6493 CATALOGS
="$CATALOGS $cat"
6494 XLINGUAS
="$XLINGUAS $lang"
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6501 $as_echo "$LINGUAS" >&6; }
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6515 $as_echo_n "checking for uchar... " >&6; }
6516 if ${gcc_cv_type_uchar+:} false
; then :
6517 $as_echo_n "(cached) " >&6
6519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6522 #include <sys/types.h>
6527 if ((uchar *)0) return 0;
6528 if (sizeof(uchar)) return 0;
6533 if ac_fn_c_try_compile
"$LINENO"; then :
6534 ac_cv_type_uchar
=yes
6538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6541 $as_echo "$gcc_cv_type_uchar" >&6; }
6542 if test $ac_cv_type_uchar = yes; then
6544 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6548 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6549 # iconv() prototype.
6551 ac_cpp
='$CXXCPP $CPPFLAGS'
6552 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6553 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6557 if test "X$prefix" = "XNONE"; then
6558 acl_final_prefix
="$ac_default_prefix"
6560 acl_final_prefix
="$prefix"
6562 if test "X$exec_prefix" = "XNONE"; then
6563 acl_final_exec_prefix
='${prefix}'
6565 acl_final_exec_prefix
="$exec_prefix"
6567 acl_save_prefix
="$prefix"
6568 prefix
="$acl_final_prefix"
6569 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6570 prefix
="$acl_save_prefix"
6573 # Check whether --with-gnu-ld was given.
6574 if test "${with_gnu_ld+set}" = set; then :
6575 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6580 # Prepare PATH_SEPARATOR.
6581 # The user is always right.
6582 if test "${PATH_SEPARATOR+set}" != set; then
6583 echo "#! /bin/sh" >conf$$.sh
6584 echo "exit 0" >>conf$$.sh
6586 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6594 if test "$GCC" = yes; then
6595 # Check if gcc -print-prog-name=ld gives a path.
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6597 $as_echo_n "checking for ld used by GCC... " >&6; }
6600 # gcc leaves a trailing carriage return which upsets mingw
6601 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6603 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6606 # Accept absolute paths.
6607 [\\/]* |
[A-Za-z
]:[\\/]*)
6608 re_direlt
='/[^/][^/]*/\.\./'
6609 # Canonicalize the path of ld
6610 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6611 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6612 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6614 test -z "$LD" && LD
="$ac_prog"
6617 # If it fails, then pretend we aren't using GCC.
6621 # If it is relative, then search for the first ld in PATH.
6625 elif test "$with_gnu_ld" = yes; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6627 $as_echo_n "checking for GNU ld... " >&6; }
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6630 $as_echo_n "checking for non-GNU ld... " >&6; }
6632 if ${acl_cv_path_LD+:} false
; then :
6633 $as_echo_n "(cached) " >&6
6635 if test -z "$LD"; then
6636 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6637 for ac_dir
in $PATH; do
6638 test -z "$ac_dir" && ac_dir
=.
6639 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6640 acl_cv_path_LD
="$ac_dir/$ac_prog"
6641 # Check to see if the program is GNU ld. I'd rather use --version,
6642 # but apparently some GNU ld's only accept -v.
6643 # Break only if it was the GNU/non-GNU ld that we prefer.
6644 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6645 test "$with_gnu_ld" != no
&& break
6647 test "$with_gnu_ld" != yes && break
6653 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6657 LD
="$acl_cv_path_LD"
6658 if test -n "$LD"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6660 $as_echo "$LD" >&6; }
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6665 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6667 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6668 if ${acl_cv_prog_gnu_ld+:} false
; then :
6669 $as_echo_n "(cached) " >&6
6671 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6672 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6673 acl_cv_prog_gnu_ld
=yes
6675 acl_cv_prog_gnu_ld
=no
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6679 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6680 with_gnu_ld
=$acl_cv_prog_gnu_ld
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6685 $as_echo_n "checking for shared library run path origin... " >&6; }
6686 if ${acl_cv_rpath+:} false
; then :
6687 $as_echo_n "(cached) " >&6
6690 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6691 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6698 $as_echo "$acl_cv_rpath" >&6; }
6700 libext
="$acl_cv_libext"
6701 shlibext
="$acl_cv_shlibext"
6702 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6703 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6704 hardcode_direct
="$acl_cv_hardcode_direct"
6705 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6706 # Check whether --enable-rpath was given.
6707 if test "${enable_rpath+set}" = set; then :
6708 enableval
=$enable_rpath; :
6722 acl_save_prefix
="$prefix"
6723 prefix
="$acl_final_prefix"
6724 acl_save_exec_prefix
="$exec_prefix"
6725 exec_prefix
="$acl_final_exec_prefix"
6727 eval additional_includedir
=\"$includedir\"
6728 eval additional_libdir
=\"$libdir\"
6730 exec_prefix
="$acl_save_exec_prefix"
6731 prefix
="$acl_save_prefix"
6734 # Check whether --with-libiconv-prefix was given.
6735 if test "${with_libiconv_prefix+set}" = set; then :
6736 withval
=$with_libiconv_prefix;
6737 if test "X$withval" = "Xno"; then
6740 if test "X$withval" = "X"; then
6742 acl_save_prefix
="$prefix"
6743 prefix
="$acl_final_prefix"
6744 acl_save_exec_prefix
="$exec_prefix"
6745 exec_prefix
="$acl_final_exec_prefix"
6747 eval additional_includedir
=\"$includedir\"
6748 eval additional_libdir
=\"$libdir\"
6750 exec_prefix
="$acl_save_exec_prefix"
6751 prefix
="$acl_save_prefix"
6754 additional_includedir
="$withval/include"
6755 additional_libdir
="$withval/lib"
6762 # Check whether --with-libiconv-type was given.
6763 if test "${with_libiconv_type+set}" = set; then :
6764 withval
=$with_libiconv_type; with_libiconv_type
=$withval
6766 with_libiconv_type
=auto
6769 lib_type
=`eval echo \$with_libiconv_type`
6776 names_already_handled
=
6777 names_next_round
='iconv '
6778 while test -n "$names_next_round"; do
6779 names_this_round
="$names_next_round"
6781 for name
in $names_this_round; do
6783 for n
in $names_already_handled; do
6784 if test "$n" = "$name"; then
6789 if test -z "$already_handled"; then
6790 names_already_handled
="$names_already_handled $name"
6791 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6792 eval value
=\"\
$HAVE_LIB$uppername\"
6793 if test -n "$value"; then
6794 if test "$value" = yes; then
6795 eval value
=\"\
$LIB$uppername\"
6796 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
6797 eval value
=\"\
$LTLIB$uppername\"
6798 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
6807 if test $use_additional = yes; then
6808 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
6809 found_dir
="$additional_libdir"
6810 found_so
="$additional_libdir/lib$name.$shlibext"
6811 if test -f "$additional_libdir/lib$name.la"; then
6812 found_la
="$additional_libdir/lib$name.la"
6814 elif test x
$lib_type != xshared
; then
6815 if test -f "$additional_libdir/lib$name.$libext"; then
6816 found_dir
="$additional_libdir"
6817 found_a
="$additional_libdir/lib$name.$libext"
6818 if test -f "$additional_libdir/lib$name.la"; then
6819 found_la
="$additional_libdir/lib$name.la"
6824 if test "X$found_dir" = "X"; then
6825 for x
in $LDFLAGS $LTLIBICONV; do
6827 acl_save_prefix
="$prefix"
6828 prefix
="$acl_final_prefix"
6829 acl_save_exec_prefix
="$exec_prefix"
6830 exec_prefix
="$acl_final_exec_prefix"
6832 exec_prefix
="$acl_save_exec_prefix"
6833 prefix
="$acl_save_prefix"
6837 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6838 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
6840 found_so
="$dir/lib$name.$shlibext"
6841 if test -f "$dir/lib$name.la"; then
6842 found_la
="$dir/lib$name.la"
6844 elif test x
$lib_type != xshared
; then
6845 if test -f "$dir/lib$name.$libext"; then
6847 found_a
="$dir/lib$name.$libext"
6848 if test -f "$dir/lib$name.la"; then
6849 found_la
="$dir/lib$name.la"
6855 if test "X$found_dir" != "X"; then
6860 if test "X$found_dir" != "X"; then
6861 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6862 if test "X$found_so" != "X"; then
6863 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
6864 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6867 for x
in $ltrpathdirs; do
6868 if test "X$x" = "X$found_dir"; then
6873 if test -z "$haveit"; then
6874 ltrpathdirs
="$ltrpathdirs $found_dir"
6876 if test "$hardcode_direct" = yes; then
6877 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6879 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6880 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6882 for x
in $rpathdirs; do
6883 if test "X$x" = "X$found_dir"; then
6888 if test -z "$haveit"; then
6889 rpathdirs
="$rpathdirs $found_dir"
6893 for x
in $LDFLAGS $LIBICONV; do
6895 acl_save_prefix
="$prefix"
6896 prefix
="$acl_final_prefix"
6897 acl_save_exec_prefix
="$exec_prefix"
6898 exec_prefix
="$acl_final_exec_prefix"
6900 exec_prefix
="$acl_save_exec_prefix"
6901 prefix
="$acl_save_prefix"
6903 if test "X$x" = "X-L$found_dir"; then
6908 if test -z "$haveit"; then
6909 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6911 if test "$hardcode_minus_L" != no
; then
6912 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6914 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
6920 if test "X$found_a" != "X"; then
6921 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
6923 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6926 additional_includedir
=
6927 case "$found_dir" in
6929 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6930 additional_includedir
="$basedir/include"
6933 if test "X$additional_includedir" != "X"; then
6934 if test "X$additional_includedir" != "X/usr/include"; then
6936 if test "X$additional_includedir" = "X/usr/local/include"; then
6937 if test -n "$GCC"; then
6939 linux
*) haveit
=yes;;
6943 if test -z "$haveit"; then
6944 for x
in $CPPFLAGS $INCICONV; do
6946 acl_save_prefix
="$prefix"
6947 prefix
="$acl_final_prefix"
6948 acl_save_exec_prefix
="$exec_prefix"
6949 exec_prefix
="$acl_final_exec_prefix"
6951 exec_prefix
="$acl_save_exec_prefix"
6952 prefix
="$acl_save_prefix"
6954 if test "X$x" = "X-I$additional_includedir"; then
6959 if test -z "$haveit"; then
6960 if test -d "$additional_includedir"; then
6961 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6967 if test -n "$found_la"; then
6968 save_libdir
="$libdir"
6970 */* |
*\\*) .
"$found_la" ;;
6971 *) .
"./$found_la" ;;
6973 libdir
="$save_libdir"
6974 for dep
in $dependency_libs; do
6977 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6978 if test "X$additional_libdir" != "X/usr/lib"; then
6980 if test "X$additional_libdir" = "X/usr/local/lib"; then
6981 if test -n "$GCC"; then
6983 linux
*) haveit
=yes;;
6987 if test -z "$haveit"; then
6989 for x
in $LDFLAGS $LIBICONV; do
6991 acl_save_prefix
="$prefix"
6992 prefix
="$acl_final_prefix"
6993 acl_save_exec_prefix
="$exec_prefix"
6994 exec_prefix
="$acl_final_exec_prefix"
6996 exec_prefix
="$acl_save_exec_prefix"
6997 prefix
="$acl_save_prefix"
6999 if test "X$x" = "X-L$additional_libdir"; then
7004 if test -z "$haveit"; then
7005 if test -d "$additional_libdir"; then
7006 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7010 for x
in $LDFLAGS $LTLIBICONV; do
7012 acl_save_prefix
="$prefix"
7013 prefix
="$acl_final_prefix"
7014 acl_save_exec_prefix
="$exec_prefix"
7015 exec_prefix
="$acl_final_exec_prefix"
7017 exec_prefix
="$acl_save_exec_prefix"
7018 prefix
="$acl_save_prefix"
7020 if test "X$x" = "X-L$additional_libdir"; then
7025 if test -z "$haveit"; then
7026 if test -d "$additional_libdir"; then
7027 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7034 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7035 if test "$enable_rpath" != no
; then
7037 for x
in $rpathdirs; do
7038 if test "X$x" = "X$dir"; then
7043 if test -z "$haveit"; then
7044 rpathdirs
="$rpathdirs $dir"
7047 for x
in $ltrpathdirs; do
7048 if test "X$x" = "X$dir"; then
7053 if test -z "$haveit"; then
7054 ltrpathdirs
="$ltrpathdirs $dir"
7059 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7062 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7065 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7066 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7072 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
7073 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7074 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7076 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7077 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7084 if test "X$rpathdirs" != "X"; then
7085 if test -n "$hardcode_libdir_separator"; then
7087 for found_dir
in $rpathdirs; do
7088 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7090 acl_save_libdir
="$libdir"
7092 eval flag
=\"$hardcode_libdir_flag_spec\"
7093 libdir
="$acl_save_libdir"
7094 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7096 for found_dir
in $rpathdirs; do
7097 acl_save_libdir
="$libdir"
7099 eval flag
=\"$hardcode_libdir_flag_spec\"
7100 libdir
="$acl_save_libdir"
7101 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7105 if test "X$ltrpathdirs" != "X"; then
7106 for found_dir
in $ltrpathdirs; do
7107 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7118 $as_echo_n "checking for iconv... " >&6; }
7119 if ${am_cv_func_iconv+:} false
; then :
7120 $as_echo_n "(cached) " >&6
7123 am_cv_func_iconv
="no, consider installing GNU libiconv"
7125 am_save_CPPFLAGS
="$CPPFLAGS"
7126 CPPFLAGS
="$CPPFLAGS $INCICONV"
7127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7134 iconv_t cd = iconv_open("","");
7135 iconv(cd,NULL,NULL,NULL,NULL);
7141 if ac_fn_cxx_try_link
"$LINENO"; then :
7142 am_cv_func_iconv
=yes
7144 rm -f core conftest.err conftest.
$ac_objext \
7145 conftest
$ac_exeext conftest.
$ac_ext
7146 CPPFLAGS
="$am_save_CPPFLAGS"
7148 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
7149 for _libs
in .libs _libs
; do
7150 am_save_CPPFLAGS
="$CPPFLAGS"
7151 am_save_LIBS
="$LIBS"
7152 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
7153 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7161 iconv_t cd = iconv_open("","");
7162 iconv(cd,NULL,NULL,NULL,NULL);
7168 if ac_fn_cxx_try_link
"$LINENO"; then :
7169 INCICONV
="-I../libiconv/include"
7170 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
7171 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
7173 am_cv_func_iconv
=yes
7175 rm -f core conftest.err conftest.
$ac_objext \
7176 conftest
$ac_exeext conftest.
$ac_ext
7177 CPPFLAGS
="$am_save_CPPFLAGS"
7178 LIBS
="$am_save_LIBS"
7179 if test "$am_cv_func_iconv" = "yes"; then
7185 if test "$am_cv_func_iconv" != yes; then
7186 am_save_CPPFLAGS
="$CPPFLAGS"
7187 am_save_LIBS
="$LIBS"
7188 CPPFLAGS
="$CPPFLAGS $INCICONV"
7189 LIBS
="$LIBS $LIBICONV"
7190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7197 iconv_t cd = iconv_open("","");
7198 iconv(cd,NULL,NULL,NULL,NULL);
7204 if ac_fn_cxx_try_link
"$LINENO"; then :
7206 am_cv_func_iconv
=yes
7208 rm -f core conftest.err conftest.
$ac_objext \
7209 conftest
$ac_exeext conftest.
$ac_ext
7210 CPPFLAGS
="$am_save_CPPFLAGS"
7211 LIBS
="$am_save_LIBS"
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7216 $as_echo "$am_cv_func_iconv" >&6; }
7217 if test "$am_cv_func_iconv" = yes; then
7219 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7222 if test "$am_cv_lib_iconv" = yes; then
7224 for element
in $INCICONV; do
7226 for x
in $CPPFLAGS; do
7228 acl_save_prefix
="$prefix"
7229 prefix
="$acl_final_prefix"
7230 acl_save_exec_prefix
="$exec_prefix"
7231 exec_prefix
="$acl_final_exec_prefix"
7233 exec_prefix
="$acl_save_exec_prefix"
7234 prefix
="$acl_save_prefix"
7236 if test "X$x" = "X$element"; then
7241 if test -z "$haveit"; then
7242 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7247 $as_echo_n "checking how to link with libiconv... " >&6; }
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7249 $as_echo "$LIBICONV" >&6; }
7257 if test "$am_cv_func_iconv" = yes; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7259 $as_echo_n "checking for iconv declaration... " >&6; }
7260 if ${am_cv_proto_iconv+:} false
; then :
7261 $as_echo_n "(cached) " >&6
7264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7273 #if defined(__STDC__) || defined(__cplusplus)
7274 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7287 if ac_fn_cxx_try_compile
"$LINENO"; then :
7288 am_cv_proto_iconv_arg1
=""
7290 am_cv_proto_iconv_arg1
="const"
7292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7293 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);"
7296 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7298 }$am_cv_proto_iconv" >&5
7300 }$am_cv_proto_iconv" >&6; }
7302 cat >>confdefs.h
<<_ACEOF
7303 #define ICONV_CONST $am_cv_proto_iconv_arg1
7309 ac_cpp
='$CPP $CPPFLAGS'
7310 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7315 # More defines and substitutions.
7316 PACKAGE
="$PACKAGE_TARNAME"
7318 cat >>confdefs.h
<<_ACEOF
7319 #define PACKAGE "$PACKAGE"
7324 if test "x$enable_nls" != xno
; then
7325 USED_CATALOGS
='$(CATALOGS)'
7331 # Check whether --enable-maintainer-mode was given.
7332 if test "${enable_maintainer_mode+set}" = set; then :
7333 enableval
=$enable_maintainer_mode;
7335 enable_maintainer_mode
=no
7339 if test "x$enable_maintainer_mode" = xno
; then
7346 # Enable expensive internal checks
7348 if test -f $srcdir/..
/gcc
/DEV-PHASE \
7349 && test x
"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental
; then
7353 # Check whether --enable-checking was given.
7354 if test "${enable_checking+set}" = set; then :
7355 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7358 # Determine the default checks.
7359 if test x
$is_release = x
; then
7360 ac_checking_flags
=yes
7362 ac_checking_flags
=release
7366 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7367 for check
in release
$ac_checking_flags
7370 # these set all the flags to specific states
7371 yes|all
) ac_checking
=1 ; ac_assert_checking
=1 ; ac_valgrind_checking
= ;;
7372 no|none
) ac_checking
= ; ac_assert_checking
= ; ac_valgrind_checking
= ;;
7373 release
) ac_checking
= ; ac_assert_checking
=1 ; ac_valgrind_checking
= ;;
7374 # these enable particular checks
7375 assert
) ac_assert_checking
=1 ;;
7376 misc
) ac_checking
=1 ;;
7377 valgrind
) ac_valgrind_checking
=1 ;;
7384 if test x
$ac_checking != x
; then
7386 $as_echo "#define CHECKING_P 1" >>confdefs.h
7389 $as_echo "#define CHECKING_P 0" >>confdefs.h
7393 if test x
$ac_assert_checking != x
; then
7395 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7399 if test x
$ac_valgrind_checking != x
; then
7401 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7405 # Check whether --enable-canonical-system-headers was given.
7406 if test "${enable_canonical_system_headers+set}" = set; then :
7407 enableval
=$enable_canonical_system_headers;
7409 enable_canonical_system_headers
=yes
7412 if test $enable_canonical_system_headers != no
; then
7414 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7426 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7431 if ac_fn_c_try_compile
"$LINENO"; then :
7433 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7439 # Enable --enable-host-shared.
7440 # Check whether --enable-host-shared was given.
7441 if test "${enable_host_shared+set}" = set; then :
7442 enableval
=$enable_host_shared; PICFLAG
=-fPIC
7449 # Enable Intel CET on Intel CET enabled host if jit is enabled.
7450 # Check whether --enable-cet was given.
7451 if test "${enable_cet+set}" = set; then :
7452 enableval
=$enable_cet;
7453 case "$enableval" in
7455 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
7464 $as_echo_n "checking for CET support... " >&6; }
7467 i
[34567]86-*-linux* | x86_64-
*-linux*)
7469 save_CFLAGS
="$CFLAGS"
7470 CFLAGS
="$CFLAGS -fcf-protection"
7471 case "$enable_cet" in
7473 # Check if target supports multi-byte NOPs
7474 # and if assembler supports CET insn.
7475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7482 #if !defined(__SSE2__)
7483 #error target does not support multi-byte NOPs
7492 if ac_fn_c_try_compile
"$LINENO"; then :
7497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7500 # Check if assembler supports CET.
7501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7512 if ac_fn_c_try_compile
"$LINENO"; then :
7515 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
7517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7520 CFLAGS
="$save_CFLAGS"
7528 save_CFLAGS
="$CFLAGS"
7529 CFLAGS
="$CFLAGS -fcf-protection=none"
7530 save_LDFLAGS
="$LDFLAGS"
7531 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
7532 if test x
$may_have_cet = xyes
; then
7533 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
7534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7545 if ac_fn_c_try_link
"$LINENO"; then :
7550 rm -f core conftest.err conftest.
$ac_objext \
7551 conftest
$ac_exeext conftest.
$ac_ext
7554 if test x
$may_have_cet = xyes
; then
7555 if test x
$cross_compiling = xno
; then
7556 if test "$cross_compiling" = yes; then :
7557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7559 as_fn_error $?
"cannot run test program while cross compiling
7560 See \`config.log' for more details" "$LINENO" 5; }
7562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7571 __attribute__ ((noinline, noclone))
7572 xxx (void (*f) (void))
7578 __attribute__ ((noinline, noclone))
7592 if ac_fn_c_try_run
"$LINENO"; then :
7597 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7598 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7601 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
7602 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
7606 # Enable CET in cross compiler if possible so that it will run on both
7607 # CET and non-CET hosts.
7610 if test x
$enable_cet = xyes
; then
7611 CET_HOST_FLAGS
="-fcf-protection"
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7613 $as_echo "yes" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7618 CFLAGS
="$save_CFLAGS"
7619 LDFLAGS
="$save_LDFLAGS"
7621 case x
$enable_languages in
7630 # Check whether --enable-valgrind-annotations was given.
7631 if test "${enable_valgrind_annotations+set}" = set; then :
7632 enableval
=$enable_valgrind_annotations;
7634 enable_valgrind_annotations
=no
7637 if test x
$enable_valgrind_annotations != xno \
7638 ||
test x
$ac_valgrind_checking != x
; then
7639 if (test $have_valgrind_h = no \
7640 && test $gcc_cv_header_memcheck_h = no \
7641 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7642 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7645 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7651 ac_config_headers
="$ac_config_headers config.h:config.in"
7653 ac_config_files
="$ac_config_files Makefile"
7655 cat >confcache
<<\_ACEOF
7656 # This file is a shell script that caches the results of configure
7657 # tests run on this system so they can be shared between configure
7658 # scripts and configure runs, see configure's option --config-cache.
7659 # It is not useful on other systems. If it contains results you don't
7660 # want to keep, you may remove or edit it.
7662 # config.status only pays attention to the cache file if you give it
7663 # the --recheck option to rerun configure.
7665 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7666 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7671 # The following way of writing the cache mishandles newlines in values,
7672 # but we know of no workaround that is simple, portable, and efficient.
7673 # So, we kill variables containing newlines.
7674 # Ultrix sh set writes to stderr and can't be redirected directly,
7675 # and sets the high bit in the cache file unless we assign to the vars.
7677 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7678 eval ac_val
=\$
$ac_var
7682 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7683 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7686 _ | IFS | as_nl
) ;; #(
7687 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7688 *) { eval $ac_var=; unset $ac_var;} ;;
7694 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7695 *${as_nl}ac_space
=\
*)
7696 # `set' does not quote correctly, so add quotes: double-quote
7697 # substitution turns \\\\ into \\, and sed turns \\ into \.
7700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7703 # `set' quotes correctly as required by POSIX, so do not add quotes.
7704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7713 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7715 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7717 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7718 if test -w "$cache_file"; then
7719 if test "x$cache_file" != "x/dev/null"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7721 $as_echo "$as_me: updating cache $cache_file" >&6;}
7722 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7723 cat confcache
>"$cache_file"
7725 case $cache_file in #(
7727 mv -f confcache
"$cache_file"$$
&&
7728 mv -f "$cache_file"$$
"$cache_file" ;; #(
7730 mv -f confcache
"$cache_file" ;;
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7736 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7741 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7742 # Let make expand exec_prefix.
7743 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7745 DEFS
=-DHAVE_CONFIG_H
7750 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7751 # 1. Remove the extension, and $U if already installed.
7752 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7753 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7755 # will be set to the directory where LIBOBJS objects are built.
7756 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7757 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7761 LTLIBOBJS
=$ac_ltlibobjs
7766 : "${CONFIG_STATUS=./config.status}"
7768 ac_clean_files_save
=$ac_clean_files
7769 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7771 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7773 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7775 # Generated by $as_me.
7776 # Run this file to recreate the current configuration.
7777 # Compiler output produced by configure, useful for debugging
7778 # configure, is in config.log if it exists.
7784 SHELL=\${CONFIG_SHELL-$SHELL}
7787 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7788 ## -------------------- ##
7789 ## M4sh Initialization. ##
7790 ## -------------------- ##
7792 # Be more Bourne compatible
7793 DUALCASE
=1; export DUALCASE
# for MKS sh
7794 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7797 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7798 # is contrary to our usage. Disable this feature.
7799 alias -g '${1+"$@"}'='"$@"'
7800 setopt NO_GLOB_SUBST
7802 case `(set -o) 2>/dev/null` in #(
7814 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7815 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7818 # Prefer a ksh shell builtin over an external printf program on Solaris,
7819 # but without wasting forks for bash or zsh.
7820 if test -z "$BASH_VERSION$ZSH_VERSION" \
7821 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7822 as_echo='print
-r --'
7823 as_echo_n='print
-rn --'
7824 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7825 as_echo='printf %s
\n'
7826 as_echo_n='printf %s
'
7828 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7829 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7830 as_echo_n='/usr
/ucb
/echo -n'
7832 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7833 as_echo_n_body='eval
7837 expr "X$arg" : "X\\(.*\\)$as_nl";
7838 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7840 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7842 export as_echo_n_body
7843 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7846 as_echo='sh
-c $as_echo_body as_echo
'
7849 # The user is always right.
7850 if test "${PATH_SEPARATOR+set}" != set; then
7852 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7853 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7860 # We need space, tab and new line, in precisely that order. Quoting is
7861 # there to prevent editors from complaining about space-tab.
7862 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7863 # splitting by setting IFS to empty value.)
7866 # Find who we are. Look in the path if we contain no directory separator.
7869 *[\\/]* ) as_myself=$0 ;;
7870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 test -z "$as_dir" && as_dir=.
7875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7881 # We did not find ourselves, most probably we were run as `sh COMMAND'
7882 # in which case we are not to be found in the path.
7883 if test "x$as_myself" = x
; then
7886 if test ! -f "$as_myself"; then
7887 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7891 # Unset variables that we do not need and which cause bugs (e.g. in
7892 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7893 # suppresses any "Segmentation fault" message there. '((' could
7894 # trigger a bug in pdksh 5.2.14.
7895 for as_var
in BASH_ENV ENV MAIL MAILPATH
7896 do eval test x\
${$as_var+set} = xset \
7897 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7910 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7913 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7914 # ----------------------------------------
7915 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7916 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7917 # script with STATUS, using 1 if that was 0.
7920 as_status
=$1; test $as_status -eq 0 && as_status
=1
7922 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7923 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7925 $as_echo "$as_me: error: $2" >&2
7926 as_fn_exit
$as_status
7930 # as_fn_set_status STATUS
7931 # -----------------------
7932 # Set $? to STATUS, without forking.
7936 } # as_fn_set_status
7940 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7950 # Portably unset VAR.
7953 { eval $1=; unset $1;}
7955 as_unset
=as_fn_unset
7956 # as_fn_append VAR VALUE
7957 # ----------------------
7958 # Append the text in VALUE to the end of the definition contained in VAR. Take
7959 # advantage of any shell optimizations that allow amortized linear growth over
7960 # repeated appends, instead of the typical quadratic growth present in naive
7962 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7963 eval 'as_fn_append ()
7974 # as_fn_arith ARG...
7975 # ------------------
7976 # Perform arithmetic evaluation on the ARGs, and store the result in the
7977 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7978 # must be portable across $(()) and expr.
7979 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7980 eval 'as_fn_arith ()
7987 as_val
=`expr "$@" || test $? -eq 1`
7992 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7993 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7999 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8000 as_basename
=basename
8005 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8011 as_me
=`$as_basename -- "$0" ||
8012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8013 X"$0" : 'X\(//\)$' \| \
8014 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8016 sed '/^.*\/\([^/][^/]*\)\/*$/{
8030 # Avoid depending upon Character Ranges.
8031 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8032 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8033 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8034 as_cr_digits
='0123456789'
8035 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8037 ECHO_C
= ECHO_N
= ECHO_T
=
8038 case `echo -n x` in #(((((
8040 case `echo 'xy\c'` in
8041 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8043 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8050 rm -f conf$$ conf$$.exe conf$$.
file
8051 if test -d conf$$.dir
; then
8052 rm -f conf$$.dir
/conf$$.
file
8055 mkdir conf$$.dir
2>/dev
/null
8057 if (echo >conf$$.
file) 2>/dev
/null
; then
8058 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8060 # ... but there are two gotchas:
8061 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8062 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8063 # In both cases, we have to default to `cp -pR'.
8064 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8066 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8074 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8075 rmdir conf$$.dir
2>/dev
/null
8080 # Create "$as_dir" as a directory, including parents if necessary.
8085 -*) as_dir
=.
/$as_dir;;
8087 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8091 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8092 *) as_qdir
=$as_dir;;
8094 as_dirs
="'$as_qdir' $as_dirs"
8095 as_dir
=`$as_dirname -- "$as_dir" ||
8096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8097 X"$as_dir" : 'X\(//\)[^/]' \| \
8098 X"$as_dir" : 'X\(//\)$' \| \
8099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8100 $as_echo X"$as_dir" |
8101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8118 test -d "$as_dir" && break
8120 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8121 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8125 if mkdir
-p .
2>/dev
/null
; then
8126 as_mkdir_p
='mkdir -p "$as_dir"'
8128 test -d .
/-p && rmdir .
/-p
8133 # as_fn_executable_p FILE
8134 # -----------------------
8135 # Test if FILE is an executable regular file.
8136 as_fn_executable_p
()
8138 test -f "$1" && test -x "$1"
8139 } # as_fn_executable_p
8141 as_executable_p
=as_fn_executable_p
8143 # Sed expression to map a string onto a valid CPP name.
8144 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8146 # Sed expression to map a string onto a valid variable name.
8147 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8151 ## ----------------------------------- ##
8152 ## Main body of $CONFIG_STATUS script. ##
8153 ## ----------------------------------- ##
8155 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8158 # Save the log message, to keep $0 and so on meaningful, and to
8159 # report actual input values of CONFIG_FILES etc. instead of their
8160 # values after options handling.
8162 This file was extended by cpplib $as_me , which was
8163 generated by GNU Autoconf 2.69. Invocation command line was
8165 CONFIG_FILES = $CONFIG_FILES
8166 CONFIG_HEADERS = $CONFIG_HEADERS
8167 CONFIG_LINKS = $CONFIG_LINKS
8168 CONFIG_COMMANDS = $CONFIG_COMMANDS
8171 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8176 case $ac_config_files in *"
8177 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8180 case $ac_config_headers in *"
8181 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8186 # Files that config.status was made for.
8187 config_files="$ac_config_files"
8188 config_headers="$ac_config_headers"
8189 config_commands="$ac_config_commands"
8193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8195 \`$as_me' instantiates files and other configuration actions
8196 from templates according to the current configuration. Unless the files
8197 and actions are specified as TAGs, all are instantiated by default.
8199 Usage: $0 [OPTION]... [TAG]...
8201 -h, --help print this help, then exit
8202 -V, --version print version number and configuration settings, then exit
8203 --config print configuration, then exit
8204 -q, --quiet, --silent
8205 do not print progress messages
8206 -d, --debug don't remove temporary files
8207 --recheck update $as_me by reconfiguring in the same conditions
8208 --file=FILE[:TEMPLATE]
8209 instantiate the configuration file FILE
8210 --header=FILE[:TEMPLATE]
8211 instantiate the configuration header FILE
8213 Configuration files:
8216 Configuration headers:
8219 Configuration commands:
8222 Report bugs to <gcc-bugs@gcc.gnu.org>."
8225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8226 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8228 cpplib config.status
8229 configured by $0, generated by GNU Autoconf 2.69,
8230 with options \\"\$ac_cs_config\\"
8232 Copyright (C) 2012 Free Software Foundation, Inc.
8233 This config.status script is free software; the Free Software Foundation
8234 gives unlimited permission to copy, distribute and modify it."
8239 test -n "\$AWK" || AWK=awk
8242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8243 # The default lists apply if the user does not specify any file.
8249 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8250 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8254 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8266 # Handling of the options.
8267 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8269 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8270 $as_echo "$ac_cs_version"; exit ;;
8271 --config |
--confi |
--conf |
--con |
--co |
--c )
8272 $as_echo "$ac_cs_config"; exit ;;
8273 --debug |
--debu |
--deb |
--de |
--d |
-d )
8275 --file |
--fil |
--fi |
--f )
8278 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8279 '') as_fn_error $?
"missing file argument" ;;
8281 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8282 ac_need_defaults
=false
;;
8283 --header |
--heade |
--head |
--hea )
8286 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8288 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8289 ac_need_defaults
=false
;;
8291 # Conflict between --help and --header
8292 as_fn_error $?
"ambiguous option: \`$1'
8293 Try \`$0 --help' for more information.";;
8294 --help |
--hel |
-h )
8295 $as_echo "$ac_cs_usage"; exit ;;
8296 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8297 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8301 -*) as_fn_error $?
"unrecognized option: \`$1'
8302 Try \`$0 --help' for more information." ;;
8304 *) as_fn_append ac_config_targets
" $1"
8305 ac_need_defaults
=false
;;
8311 ac_configure_extra_args
=
8313 if $ac_cs_silent; then
8315 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8320 if \$ac_cs_recheck; then
8321 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8323 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8324 CONFIG_SHELL='$SHELL'
8330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8334 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8335 ## Running $as_me. ##
8341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8345 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8351 # Handling of arguments.
8352 for ac_config_target
in $ac_config_targets
8354 case $ac_config_target in
8355 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
8356 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8357 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8359 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8364 # If the user did not use the arguments to specify the items to instantiate,
8365 # then the envvar interface is used. Set only those that are not.
8366 # We use the long form for the default assignment because of an extremely
8367 # bizarre bug on SunOS 4.1.3.
8368 if $ac_need_defaults; then
8369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8370 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8371 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8374 # Have a temporary directory for convenience. Make it in the build tree
8375 # simply because there is no reason against having it here, and in addition,
8376 # creating and moving files from /tmp can sometimes cause problems.
8377 # Hook for its removal unless debugging.
8378 # Note that there is a small window in which the directory will not be cleaned:
8379 # after its creation but before its name has been assigned to `$tmp'.
8383 trap 'exit_status=$?
8385 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8387 trap 'as_fn_exit 1' 1 2 13 15
8389 # Create a (secure) tmp directory for tmp files.
8392 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8396 tmp
=.
/conf$$
-$RANDOM
8397 (umask 077 && mkdir
"$tmp")
8398 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8401 # Set up the scripts for CONFIG_FILES section.
8402 # No need to generate them if there are no CONFIG_FILES.
8403 # This happens for instance with `./config.status config.h'.
8404 if test -n "$CONFIG_FILES"; then
8407 ac_cr
=`echo X | tr X '\015'`
8408 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8409 # But we know of no other shell where ac_cr would be empty at this
8410 # point, so we can use a bashism as a fallback.
8411 if test "x$ac_cr" = x
; then
8412 eval ac_cr
=\$
\'\\r
\'
8414 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8415 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8421 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8426 echo "cat >conf$$subs.awk <<_ACEOF" &&
8427 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8430 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8431 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8433 for ac_last_try in false false false false false :; do
8434 . ./conf$$subs.sh ||
8435 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8437 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8438 if test $ac_delim_n = $ac_delim_num; then
8440 elif $ac_last_try; then
8441 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8443 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8449 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8453 s/^/S["/; s
/!.
*/"]=/
8463 s/\(.\{148\}\)..*/\1/
8465 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8470 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8477 s/\(.\{148\}\)..*/\1/
8479 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8483 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8488 ' <conf$$subs.awk | sed '
8493 ' >>$CONFIG_STATUS || ac_write_fail=1
8494 rm -f conf$$subs.awk
8495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8497 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8498 for (key in S) S_is_set[key] = 1
8504 nfields = split(line, field, "@
")
8506 len = length(field[1])
8507 for (i = 2; i < nfields; i++) {
8509 keylen = length(key)
8510 if (S_is_set[key]) {
8512 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8513 len += length(value) + length(field[++i])
8524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8525 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8526 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8529 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8530 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8533 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8534 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8535 # trailing colons and then remove the whole line if VPATH becomes empty
8536 # (actually we leave an empty line to preserve line numbers).
8537 if test "x
$srcdir" = x.; then
8538 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8557 fi # test -n "$CONFIG_FILES"
8559 # Set up the scripts for CONFIG_HEADERS section.
8560 # No need to generate them if there are no CONFIG_HEADERS.
8561 # This happens for instance with `./config.status Makefile'.
8562 if test -n "$CONFIG_HEADERS"; then
8563 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8567 # Transform confdefs.h into an awk script `defines.awk', embedded as
8568 # here-document in config.status, that substitutes the proper values into
8569 # config.h.in to produce config.h.
8571 # Create a delimiter string that does not exist in confdefs.h, to ease
8572 # handling of long lines.
8574 for ac_last_try in false false :; do
8575 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8576 if test -z "$ac_tt"; then
8578 elif $ac_last_try; then
8579 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8581 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8585 # For the awk script, D is an array of macro values keyed by name,
8586 # likewise P contains macro parameters if any. Preserve backslash
8587 # newline sequences.
8589 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8591 s/.\{148\}/&'"$ac_delim"'/g
8594 s/^[ ]*#[ ]*define[ ][ ]*/ /
8601 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8603 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8607 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8608 D["\
1"]=" \
3\\\\\\n
"\\/p
8610 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8615 s/.\{148\}/&'"$ac_delim"'/g
8620 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8623 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8625 ' <confdefs.h | sed '
8626 s/'"$ac_delim"'/"\\\
8627 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8630 for (key in D) D_is_set[key] = 1
8633 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8635 split(line, arg, " ")
8636 if (arg[1] == "#") {
8640 defundef
= substr
(arg
[1], 2)
8643 split(mac1
, mac2
, "(") #)
8645 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8646 if (D_is_set
[macro
]) {
8647 # Preserve the white space surrounding the "#".
8648 print prefix
"define", macro P
[macro
] D
[macro
]
8651 # Replace #undef with comments. This is necessary, for example,
8652 # in the case of _POSIX_SOURCE, which is predefined and required
8653 # on some systems where configure will not decide to define it.
8654 if (defundef
== "undef") {
8655 print
"/*", prefix defundef
, macro
, "*/"
8663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8664 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8665 fi # test -n "$CONFIG_HEADERS"
8668 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8673 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8675 case $ac_mode$ac_tag in
8677 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8678 :[FH
]-) ac_tag
=-:-;;
8679 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8696 -) ac_f
="$ac_tmp/stdin";;
8697 *) # Look for the file first in the build tree, then in the source tree
8698 # (if the path is not absolute). The absolute path cannot be DOS-style,
8699 # because $ac_f cannot contain `:'.
8703 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8705 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8707 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8708 as_fn_append ac_file_inputs
" '$ac_f'"
8711 # Let's still pretend it is `configure' which instantiates (i.e., don't
8712 # use $as_me), people would be surprised to read:
8713 # /* config.h. Generated by config.status. */
8714 configure_input
='Generated from '`
8715 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8717 if test x
"$ac_file" != x-
; then
8718 configure_input
="$ac_file. $configure_input"
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8720 $as_echo "$as_me: creating $ac_file" >&6;}
8722 # Neutralize special characters interpreted by sed in replacement strings.
8723 case $configure_input in #(
8724 *\
&* |
*\|
* |
*\\* )
8725 ac_sed_conf_input
=`$as_echo "$configure_input" |
8726 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8727 *) ac_sed_conf_input
=$configure_input;;
8731 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8732 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8737 ac_dir
=`$as_dirname -- "$ac_file" ||
8738 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8739 X"$ac_file" : 'X\(//\)[^/]' \| \
8740 X"$ac_file" : 'X\(//\)$' \| \
8741 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8742 $as_echo X"$ac_file" |
8743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8760 as_dir
="$ac_dir"; as_fn_mkdir_p
8764 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8766 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8767 # A ".." for each directory in $ac_dir_suffix.
8768 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8769 case $ac_top_builddir_sub in
8770 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8771 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8774 ac_abs_top_builddir
=$ac_pwd
8775 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8776 # for backward compatibility:
8777 ac_top_builddir
=$ac_top_build_prefix
8780 .
) # We are building in place.
8782 ac_top_srcdir
=$ac_top_builddir_sub
8783 ac_abs_top_srcdir
=$ac_pwd ;;
8784 [\\/]* | ?
:[\\/]* ) # Absolute name.
8785 ac_srcdir
=$srcdir$ac_dir_suffix;
8786 ac_top_srcdir
=$srcdir
8787 ac_abs_top_srcdir
=$srcdir ;;
8789 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8790 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8791 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8793 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8803 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8804 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8809 # If the template does not know about datarootdir, expand it.
8810 # FIXME: This hack should be removed a few years after 2.60.
8811 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8822 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8823 *datarootdir
*) ac_datarootdir_seen
=yes;;
8824 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8826 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8829 ac_datarootdir_hack='
8830 s&@datadir@&$datadir&g
8831 s&@docdir@&$docdir&g
8832 s&@infodir@&$infodir&g
8833 s&@localedir@&$localedir&g
8834 s&@mandir@&$mandir&g
8835 s&\\\${datarootdir}&$datarootdir&g' ;;
8839 # Neutralize VPATH when `$srcdir' = `.'.
8840 # Shell code in configure.ac might set extrasub.
8841 # FIXME: do we really want to maintain this feature?
8842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8843 ac_sed_extra="$ac_vpsub
8846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8848 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8849 s|@configure_input@|
$ac_sed_conf_input|
;t t
8850 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8851 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8852 s
&@srcdir@
&$ac_srcdir&;t t
8853 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8854 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8855 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8856 s
&@builddir@
&$ac_builddir&;t t
8857 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8858 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8859 s
&@INSTALL@
&$ac_INSTALL&;t t
8860 $ac_datarootdir_hack
8862 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8863 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8865 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8866 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8867 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8868 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8870 which seems to be undefined. Please make sure it is defined" >&5
8871 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8872 which seems to be undefined. Please make sure it is defined" >&2;}
8874 rm -f "$ac_tmp/stdin"
8876 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8877 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8885 if test x"$ac_file" != x-; then
8887 $as_echo "/* $configure_input */" \
8888 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8889 } >"$ac_tmp/config.h" \
8890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8891 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8893 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8896 mv "$ac_tmp/config.h" "$ac_file" \
8897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8900 $as_echo "/* $configure_input */" \
8901 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8902 || as_fn_error $? "could not create -" "$LINENO" 5
8906 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8907 $as_echo "$as_me: executing $ac_file commands" >&6;}
8912 case $ac_file$ac_mode in
8913 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8914 "config.h":H) echo timestamp > stamp-h1 ;;
8922 ac_clean_files=$ac_clean_files_save
8924 test $ac_write_fail = 0 ||
8925 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8928 # configure is writing to config.log, and then calls config.status.
8929 # config.status does its own redirection, appending to config.log.
8930 # Unfortunately, on DOS this fails, as config.log is still kept open
8931 # by configure, so config.status won't be able to
write to it
; its
8932 # output is simply discarded. So we exec the FD to /dev/null,
8933 # effectively closing config.log, so it can be properly (re)opened and
8934 # appended to by config.status. When coming back to configure, we
8935 # need to make the FD available again.
8936 if test "$no_create" != yes; then
8938 ac_config_status_args
=
8939 test "$silent" = yes &&
8940 ac_config_status_args
="$ac_config_status_args --quiet"
8942 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8944 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8945 # would make configure fail if this is the last instruction.
8946 $ac_cs_success || as_fn_exit
1
8948 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8950 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}