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
716 program_transform_name
729 enable_option_checking
736 enable_maintainer_mode
738 enable_canonical_system_headers
741 enable_valgrind_annotations
743 ac_precious_vars
='build_alias
757 # Initialize some variables set by options.
759 ac_init_version
=false
760 ac_unrecognized_opts
=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
771 program_transform_name
=s
,x
,x
,
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir
='${exec_prefix}/bin'
786 sbindir
='${exec_prefix}/sbin'
787 libexecdir
='${exec_prefix}/libexec'
788 datarootdir
='${prefix}/share'
789 datadir
='${datarootdir}'
790 sysconfdir
='${prefix}/etc'
791 sharedstatedir
='${prefix}/com'
792 localstatedir
='${prefix}/var'
793 includedir
='${prefix}/include'
794 oldincludedir
='/usr/include'
795 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir
='${datarootdir}/info'
801 libdir
='${exec_prefix}/lib'
802 localedir
='${datarootdir}/locale'
803 mandir
='${datarootdir}/man'
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\
$ac_option
817 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822 # Accept the important Cygnus configure options, so we can diagnose typos.
824 case $ac_dashdash$ac_option in
828 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
830 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
833 -build |
--build |
--buil |
--bui |
--bu)
834 ac_prev
=build_alias
;;
835 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
836 build_alias
=$ac_optarg ;;
838 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
839 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
840 ac_prev
=cache_file
;;
841 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
842 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
843 cache_file
=$ac_optarg ;;
846 cache_file
=config.cache
;;
848 -datadir |
--datadir |
--datadi |
--datad)
850 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
851 datadir
=$ac_optarg ;;
853 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
854 |
--dataroo |
--dataro |
--datar)
855 ac_prev
=datarootdir
;;
856 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
857 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
858 datarootdir
=$ac_optarg ;;
860 -disable-* |
--disable-*)
861 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
864 as_fn_error $?
"invalid feature name: $ac_useropt"
865 ac_useropt_orig
=$ac_useropt
866 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
871 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872 ac_unrecognized_sep
=', ';;
874 eval enable_
$ac_useropt=no
;;
876 -docdir |
--docdir |
--docdi |
--doc |
--do)
878 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
881 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
883 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
886 -enable-* |
--enable-*)
887 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
890 as_fn_error $?
"invalid feature name: $ac_useropt"
891 ac_useropt_orig
=$ac_useropt
892 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
897 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898 ac_unrecognized_sep
=', ';;
900 eval enable_
$ac_useropt=\
$ac_optarg ;;
902 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
903 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
904 |
--exec |
--exe |
--ex)
905 ac_prev
=exec_prefix
;;
906 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
907 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
908 |
--exec=* |
--exe=* |
--ex=*)
909 exec_prefix
=$ac_optarg ;;
911 -gas |
--gas |
--ga |
--g)
912 # Obsolete; use --with-gas.
915 -help |
--help |
--hel |
--he |
-h)
917 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
918 ac_init_help
=recursive
;;
919 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
920 ac_init_help
=short
;;
922 -host |
--host |
--hos |
--ho)
923 ac_prev
=host_alias
;;
924 -host=* |
--host=* |
--hos=* |
--ho=*)
925 host_alias
=$ac_optarg ;;
927 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
929 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
931 htmldir
=$ac_optarg ;;
933 -includedir |
--includedir |
--includedi |
--included |
--include \
934 |
--includ |
--inclu |
--incl |
--inc)
935 ac_prev
=includedir
;;
936 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
937 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
938 includedir
=$ac_optarg ;;
940 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
942 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
943 infodir
=$ac_optarg ;;
945 -libdir |
--libdir |
--libdi |
--libd)
947 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
950 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
951 |
--libexe |
--libex |
--libe)
952 ac_prev
=libexecdir
;;
953 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
954 |
--libexe=* |
--libex=* |
--libe=*)
955 libexecdir
=$ac_optarg ;;
957 -localedir |
--localedir |
--localedi |
--localed |
--locale)
959 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
960 localedir
=$ac_optarg ;;
962 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
963 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
964 ac_prev
=localstatedir
;;
965 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
966 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
967 localstatedir
=$ac_optarg ;;
969 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
971 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
975 # Obsolete; use --without-fp.
978 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
979 |
--no-cr |
--no-c |
-n)
982 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
983 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
986 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
987 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
988 |
--oldin |
--oldi |
--old |
--ol |
--o)
989 ac_prev
=oldincludedir
;;
990 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
991 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
992 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
993 oldincludedir
=$ac_optarg ;;
995 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
997 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1000 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1001 |
--program-pre |
--program-pr |
--program-p)
1002 ac_prev
=program_prefix
;;
1003 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1004 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1005 program_prefix
=$ac_optarg ;;
1007 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1008 |
--program-suf |
--program-su |
--program-s)
1009 ac_prev
=program_suffix
;;
1010 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1011 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1012 program_suffix
=$ac_optarg ;;
1014 -program-transform-name |
--program-transform-name \
1015 |
--program-transform-nam |
--program-transform-na \
1016 |
--program-transform-n |
--program-transform- \
1017 |
--program-transform |
--program-transfor \
1018 |
--program-transfo |
--program-transf \
1019 |
--program-trans |
--program-tran \
1020 |
--progr-tra |
--program-tr |
--program-t)
1021 ac_prev
=program_transform_name
;;
1022 -program-transform-name=* |
--program-transform-name=* \
1023 |
--program-transform-nam=* |
--program-transform-na=* \
1024 |
--program-transform-n=* |
--program-transform-=* \
1025 |
--program-transform=* |
--program-transfor=* \
1026 |
--program-transfo=* |
--program-transf=* \
1027 |
--program-trans=* |
--program-tran=* \
1028 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1029 program_transform_name
=$ac_optarg ;;
1031 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1033 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1034 pdfdir
=$ac_optarg ;;
1036 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1038 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1041 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1042 |
-silent |
--silent |
--silen |
--sile |
--sil)
1045 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1047 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1049 sbindir
=$ac_optarg ;;
1051 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1052 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1053 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1055 ac_prev
=sharedstatedir
;;
1056 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1057 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1058 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1060 sharedstatedir
=$ac_optarg ;;
1062 -site |
--site |
--sit)
1064 -site=* |
--site=* |
--sit=*)
1067 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1069 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1070 srcdir
=$ac_optarg ;;
1072 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1073 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1074 ac_prev
=sysconfdir
;;
1075 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1076 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1077 sysconfdir
=$ac_optarg ;;
1079 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1080 ac_prev
=target_alias
;;
1081 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1082 target_alias
=$ac_optarg ;;
1084 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1087 -version |
--version |
--versio |
--versi |
--vers |
-V)
1088 ac_init_version
=: ;;
1091 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1094 as_fn_error $?
"invalid package name: $ac_useropt"
1095 ac_useropt_orig
=$ac_useropt
1096 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1101 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102 ac_unrecognized_sep
=', ';;
1104 eval with_
$ac_useropt=\
$ac_optarg ;;
1106 -without-* |
--without-*)
1107 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1110 as_fn_error $?
"invalid package name: $ac_useropt"
1111 ac_useropt_orig
=$ac_useropt
1112 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1117 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118 ac_unrecognized_sep
=', ';;
1120 eval with_
$ac_useropt=no
;;
1123 # Obsolete; use --with-x.
1126 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1127 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1128 ac_prev
=x_includes
;;
1129 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1130 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1131 x_includes
=$ac_optarg ;;
1133 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1134 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1135 ac_prev
=x_libraries
;;
1136 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1137 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1138 x_libraries
=$ac_optarg ;;
1140 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1141 Try \`$0 --help' for more information"
1145 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 case $ac_envvar in #(
1148 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1149 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1151 eval $ac_envvar=\
$ac_optarg
1152 export $ac_envvar ;;
1155 # FIXME: should be removed in autoconf 3.0.
1156 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1165 if test -n "$ac_prev"; then
1166 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1167 as_fn_error $?
"missing argument to $ac_option"
1170 if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in
1173 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178 # Check all directory arguments for consistency.
1179 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val
=\$
$ac_var
1185 # Remove trailing slashes.
1188 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189 eval $ac_var=\
$ac_val;;
1191 # Be sure to have absolute directory names.
1193 [\\/$
]* | ?
:[\\/]* ) continue;;
1194 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1196 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1204 target
=$target_alias
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x
; then
1208 if test "x$build_alias" = x
; then
1209 cross_compiling
=maybe
1210 elif test "x$build_alias" != "x$host_alias"; then
1216 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1218 test "$silent" = yes && exec 6>/dev
/null
1221 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1222 ac_ls_di
=`ls -di .` &&
1223 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1224 as_fn_error $?
"working directory cannot be determined"
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 as_fn_error $?
"pwd does not report name of working directory"
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231 ac_srcdir_defaulted
=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir
=`$as_dirname -- "$as_myself" ||
1234 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$as_myself" : 'X\(//\)[^/]' \| \
1236 X"$as_myself" : 'X\(//\)$' \| \
1237 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238 $as_echo X"$as_myself" |
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1261 ac_srcdir_defaulted
=no
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1265 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1267 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1269 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1279 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 for ac_var
in $ac_precious_vars; do
1282 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1284 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1295 \`configure' configures cpplib to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking ...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1353 --build=BUILD configure
for building on BUILD
[guessed
]
1354 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1355 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1359 if test -n "$ac_init_help"; then
1360 case $ac_init_help in
1361 short | recursive
) echo "Configuration of cpplib :";;
1366 --disable-option-checking ignore unrecognized
--enable/--with options
1367 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1368 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1369 --disable-largefile omit support
for large files
1370 --enable-werror-always enable -Werror despite compiler version
1371 --disable-rpath do not hardcode runtime library paths
1372 --enable-maintainer-mode enable rules only needed by maintainers
1373 --enable-checking[=LIST
]
1374 enable expensive run-time checks. With LIST
, enable
1375 only specific categories of checks. Categories are
:
1376 yes,no
,all
,none
,release. Flags are
: misc
,valgrind or
1378 --enable-canonical-system-headers
1379 enable or disable system headers canonicalization
1380 --enable-host-shared build
host code as shared libraries
1381 --enable-cet enable Intel CET
in host libraries
[default
=auto
]
1382 --enable-valgrind-annotations
1383 enable valgrind runtime interaction
1386 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1387 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1388 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1389 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1390 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1391 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1393 Some influential environment variables:
1394 CC C compiler command
1395 CFLAGS C compiler flags
1396 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1397 nonstandard directory <lib dir>
1398 LIBS libraries to pass to the linker, e.g. -l<library>
1399 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1400 you have headers in a nonstandard directory <include dir>
1401 CXX C++ compiler command
1402 CXXFLAGS C++ compiler flags
1405 Use these variables to override the choices made by `configure' or to
help
1406 it to
find libraries and programs with nonstandard names
/locations.
1408 Report bugs to
<gcc-bugs@gcc.gnu.org
>.
1413 if test "$ac_init_help" = "recursive"; then
1414 # If there are subdirs, report their specific --help.
1415 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1416 test -d "$ac_dir" ||
1417 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1422 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1424 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1429 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1432 ac_abs_top_builddir
=$ac_pwd
1433 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir
=$ac_top_build_prefix
1438 .
) # We are building in place.
1440 ac_top_srcdir
=$ac_top_builddir_sub
1441 ac_abs_top_srcdir
=$ac_pwd ;;
1442 [\\/]* | ?
:[\\/]* ) # Absolute name.
1443 ac_srcdir
=$srcdir$ac_dir_suffix;
1444 ac_top_srcdir
=$srcdir
1445 ac_abs_top_srcdir
=$srcdir ;;
1447 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1451 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1453 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1460 $SHELL "$ac_srcdir/configure" --help=recursive
1462 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1464 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1472 generated by GNU Autoconf
2.69
1474 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1475 This configure
script is free software
; the Free Software Foundation
1476 gives unlimited permission to copy
, distribute and modify it.
1481 ## ------------------------ ##
1482 ## Autoconf initialization. ##
1483 ## ------------------------ ##
1485 # ac_fn_c_try_compile LINENO
1486 # --------------------------
1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_c_try_compile
()
1490 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1491 rm -f conftest.
$ac_objext
1492 if { { ac_try
="$ac_compile"
1494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_compile") 2>conftest.err
1501 if test -s conftest.err; then
1502 grep -v '^ *+' conftest.err >conftest.er1
1503 cat conftest.er1 >&5
1504 mv -f conftest.er1 conftest.err
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; } && {
1508 test -z "$ac_c_werror_flag" ||
1509 test ! -s conftest.err
1510 } && test -s conftest.$ac_objext; then :
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 as_fn_set_status $ac_retval
1521 } # ac_fn_c_try_compile
1523 # ac_fn_cxx_try_compile LINENO
1524 # ----------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_cxx_try_compile ()
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1533 *) ac_try_echo
=$ac_try;;
1535 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1539 if test -s conftest.err
; then
1540 grep -v '^ *+' conftest.err
>conftest.er1
1541 cat conftest.er1
>&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_cxx_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.
$ac_objext; then :
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.
$ac_ext >&5
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status
$ac_retval
1559 } # ac_fn_cxx_try_compile
1561 # ac_fn_c_try_cpp LINENO
1562 # ----------------------
1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1566 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1567 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } > conftest.i && {
1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1598 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1599 # -------------------------------------------------------
1600 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1601 # the include files in INCLUDES and setting the cache variable VAR
1603 ac_fn_c_check_header_mongrel ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if eval \${$3+:} false; then :
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 $as_echo_n "checking for $2... " >&6; }
1609 if eval \${$3+:} false; then :
1610 $as_echo_n "(cached) " >&6
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614 $as_echo "$ac_res" >&6; }
1616 # Is the header compilable?
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1618 $as_echo_n "checking $2 usability... " >&6; }
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625 ac_header_compiler=yes
1627 ac_header_compiler=no
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1631 $as_echo "$ac_header_compiler" >&6; }
1633 # Is the header present?
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1635 $as_echo_n "checking $2 presence... " >&6; }
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1640 if ac_fn_c_try_cpp "$LINENO"; then :
1641 ac_header_preproc=yes
1643 ac_header_preproc=no
1645 rm -f conftest.err conftest.i conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1647 $as_echo "$ac_header_preproc" >&6; }
1649 # So? What about this header?
1650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1653 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1659 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1661 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1663 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1665 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 ( $as_echo "## ----------------------------------- ##
1669 ## Report this to gcc-bugs@gcc.gnu.org ##
1670 ## ----------------------------------- ##"
1671 ) | sed "s/^/$as_me: WARNING: /" >&2
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1679 eval "$3=\$ac_header_compiler"
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 } # ac_fn_c_check_header_mongrel
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1699 *) ac_try_echo
=$ac_try;;
1701 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=$ac_status
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1748 if ac_fn_c_try_compile "$LINENO"; then :
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 } # ac_fn_c_check_header_compile
1762 # ac_fn_c_try_link LINENO
1763 # -----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1772 *) ac_try_echo
=$ac_try;;
1774 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1778 if test -s conftest.err
; then
1779 grep -v '^ *+' conftest.err
>conftest.er1
1780 cat conftest.er1
>&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest
$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 test -x conftest
$ac_exeext
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.
$ac_ext >&5
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status
$ac_retval
1806 } # ac_fn_c_try_link
1808 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1809 # -------------------------------------------
1810 # Tests whether TYPE exists after having included INCLUDES, setting cache
1811 # variable VAR accordingly.
1812 ac_fn_c_check_type
()
1814 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \
${$3+:} false
; then :
1818 $as_echo_n "(cached) " >&6
1821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1833 if ac_fn_c_try_compile
"$LINENO"; then :
1834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1846 if ac_fn_c_try_compile
"$LINENO"; then :
1851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 } # ac_fn_c_check_type
1862 # ac_fn_c_find_uintX_t LINENO BITS VAR
1863 # ------------------------------------
1864 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1866 ac_fn_c_find_uintX_t
()
1868 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1870 $as_echo_n "checking for uint$2_t... " >&6; }
1871 if eval \
${$3+:} false
; then :
1872 $as_echo_n "(cached) " >&6
1875 # Order is important - never check a type that is potentially smaller
1876 # than half of the expected target width.
1877 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
1878 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 $ac_includes_default
1885 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1887 return test_array [0];
1893 if ac_fn_c_try_compile
"$LINENO"; then :
1898 eval "$3=\$ac_type" ;;
1901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1902 if eval test \"x\$
"$3"\" = x
"no"; then :
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 } # ac_fn_c_find_uintX_t
1916 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917 # --------------------------------------------
1918 # Tries to find the compile-time value of EXPR in a program that includes
1919 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1921 ac_fn_c_compute_int
()
1923 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1924 if test "$cross_compiling" = yes; then
1925 # Depending upon the size, compute the lo and hi bounds.
1926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1932 static int test_array [1 - 2 * !(($2) >= 0)];
1934 return test_array [0];
1940 if ac_fn_c_try_compile
"$LINENO"; then :
1943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1949 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1951 return test_array [0];
1957 if ac_fn_c_try_compile
"$LINENO"; then :
1958 ac_hi
=$ac_mid; break
1960 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1961 if test $ac_lo -le $ac_mid; then
1965 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1976 static int test_array [1 - 2 * !(($2) < 0)];
1978 return test_array [0];
1984 if ac_fn_c_try_compile
"$LINENO"; then :
1987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1993 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1995 return test_array [0];
2001 if ac_fn_c_try_compile
"$LINENO"; then :
2002 ac_lo
=$ac_mid; break
2004 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2005 if test $ac_mid -le $ac_hi; then
2009 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2019 # Binary search between lo and hi bounds.
2020 while test "x$ac_lo" != "x$ac_hi"; do
2021 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2028 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2030 return test_array [0];
2036 if ac_fn_c_try_compile
"$LINENO"; then :
2039 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2044 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2051 static long int longval () { return $2; }
2052 static unsigned long int ulongval () { return $2; }
2059 FILE *f = fopen ("conftest.val", "w");
2064 long int i = longval ();
2067 fprintf (f, "%ld", i);
2071 unsigned long int i = ulongval ();
2074 fprintf (f, "%lu", i);
2076 /* Do not output a trailing newline, as this causes \r\n confusion
2077 on some platforms. */
2078 return ferror (f) || fclose (f) != 0;
2084 if ac_fn_c_try_run
"$LINENO"; then :
2085 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2090 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 as_fn_set_status
$ac_retval
2097 } # ac_fn_c_compute_int
2099 # ac_fn_c_check_func LINENO FUNC VAR
2100 # ----------------------------------
2101 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2102 ac_fn_c_check_func
()
2104 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106 $as_echo_n "checking for $2... " >&6; }
2107 if eval \
${$3+:} false
; then :
2108 $as_echo_n "(cached) " >&6
2110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2114 #define $2 innocuous_$2
2116 /* System header to define __stub macros and hopefully few prototypes,
2117 which can conflict with char $2 (); below.
2118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2119 <limits.h> exists even on freestanding compilers. */
2122 # include <limits.h>
2124 # include <assert.h>
2129 /* Override any GCC internal prototype to avoid an error.
2130 Use char because int might match the return type of a GCC
2131 builtin and then its argument prototype would still apply. */
2136 /* The GNU C library defines this for functions which it implements
2137 to always fail with ENOSYS. Some functions are actually named
2138 something starting with __ and the normal name is an alias. */
2139 #if defined __stub_$2 || defined __stub___$2
2151 if ac_fn_c_try_link
"$LINENO"; then :
2156 rm -f core conftest.err conftest.
$ac_objext \
2157 conftest
$ac_exeext conftest.
$ac_ext
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164 } # ac_fn_c_check_func
2166 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2167 # ---------------------------------------------
2168 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2170 ac_fn_c_check_decl
()
2172 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2173 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2174 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2176 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2177 if eval \
${$3+:} false
; then :
2178 $as_echo_n "(cached) " >&6
2180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2186 #ifndef $as_decl_name
2188 (void) $as_decl_use;
2190 (void) $as_decl_name;
2198 if ac_fn_c_try_compile
"$LINENO"; then :
2203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207 $as_echo "$ac_res" >&6; }
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 } # ac_fn_c_check_decl
2212 # ac_fn_cxx_try_link LINENO
2213 # -------------------------
2214 # Try to link conftest.$ac_ext, and return whether this succeeded.
2215 ac_fn_cxx_try_link
()
2217 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2218 rm -f conftest.
$ac_objext conftest
$ac_exeext
2219 if { { ac_try
="$ac_link"
2221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2225 $as_echo "$ac_try_echo"; } >&5
2226 (eval "$ac_link") 2>conftest.err
2228 if test -s conftest.err; then
2229 grep -v '^ *+' conftest.err >conftest.er1
2230 cat conftest.er1 >&5
2231 mv -f conftest.er1 conftest.err
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; } && {
2235 test -z "$ac_cxx_werror_flag" ||
2236 test ! -s conftest.err
2237 } && test -s conftest$ac_exeext && {
2238 test "$cross_compiling" = yes ||
2239 test -x conftest$ac_exeext
2243 $as_echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2248 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2249 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2250 # interfere with the next link command; also delete a directory that is
2251 # left behind by Apple's compiler. We do this before executing the actions.
2252 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 as_fn_set_status $ac_retval
2256 } # ac_fn_cxx_try_link
2257 cat >config.log <<_ACEOF
2258 This file contains any messages produced by compilers while
2259 running configure, to aid debugging if configure makes a mistake.
2261 It was created by cpplib $as_me , which was
2262 generated by GNU Autoconf 2.69. Invocation command line was
2274 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2275 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2276 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2277 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2278 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2280 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2281 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2283 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2284 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2285 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2286 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2287 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2288 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2289 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir=.
2298 $as_echo "PATH: $as_dir"
2314 # Keep a trace of the command line.
2315 # Strip out --no-create and --no-recursion so they do not pile up.
2316 # Strip out --silent because we don't want to record it for future runs.
2317 # Also quote any args containing shell meta-characters.
2318 # Make two passes to allow for proper duplicate-argument suppression.
2322 ac_must_keep_next=false
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2333 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2338 as_fn_append ac_configure_args1 " '$ac_arg'"
2339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2351 -* ) ac_must_keep_next=true ;;
2354 as_fn_append ac_configure_args " '$ac_arg'"
2359 { ac_configure_args0=; unset ac_configure_args0;}
2360 { ac_configure_args1=; unset ac_configure_args1;}
2362 # When interrupted or exit'd, cleanup temporary files, and complete
2363 # config.log. We remove comments because anyway the quotes in there
2364 # would cause problems or look ugly.
2365 # WARNING: Use '\'' to represent an apostrophe within the trap.
2366 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367 trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2372 $as_echo "## ---------------- ##
2373 ## Cache variables. ##
2374 ## ---------------- ##"
2376 # The following way of writing the cache mishandles newlines in values,
2378 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2379 eval ac_val=\$$ac_var
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2394 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2408 $as_echo "## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##"
2412 for ac_var in $ac_subst_vars
2414 eval ac_val=\$$ac_var
2416 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 $as_echo "$ac_var='\''$ac_val'\''"
2422 if test -n "$ac_subst_files"; then
2423 $as_echo "## ------------------- ##
2424 ## File substitutions. ##
2425 ## ------------------- ##"
2427 for ac_var in $ac_subst_files
2429 eval ac_val=\$$ac_var
2431 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 $as_echo "$ac_var='\''$ac_val'\''"
2438 if test -s confdefs.h; then
2439 $as_echo "## ----------- ##
2446 test "$ac_signal" != 0 &&
2447 $as_echo "$as_me: caught signal $ac_signal"
2448 $as_echo "$as_me: exit $exit_status"
2450 rm -f core *.core core.conftest.* &&
2451 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2454 for ac_signal in 1 2 13 15; do
2455 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2460 rm -f -r conftest* confdefs.h
2462 $as_echo "/* confdefs.h */" > confdefs.h
2464 # Predefined preprocessor variables.
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_NAME "$PACKAGE_NAME"
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_STRING "$PACKAGE_STRING"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_URL "$PACKAGE_URL"
2491 # Let the site file select an alternate cache file if it wants to.
2492 # Prefer an explicitly selected file to automatically selected ones.
2495 if test -n "$CONFIG_SITE"; then
2496 # We do not want a PATH search for config.site.
2497 case $CONFIG_SITE in #((
2498 -*) ac_site_file1=./$CONFIG_SITE;;
2499 */*) ac_site_file1=$CONFIG_SITE;;
2500 *) ac_site_file1=./$CONFIG_SITE;;
2502 elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2509 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511 test "x$ac_site_file" = xNONE && continue
2512 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2517 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 as_fn_error $? "failed to load site
script $ac_site_file
2520 See \
`config.log' for more details" "$LINENO" 5; }
2524 if test -r "$cache_file"; then
2525 # Some versions of bash will fail to source /dev/null (special files
2526 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2527 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2529 $as_echo "$as_me: loading cache $cache_file" >&6;}
2531 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2532 *) . "./$cache_file";;
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2537 $as_echo "$as_me: creating cache $cache_file" >&6;}
2541 # Check that the precious variables saved in the cache have kept the same
2543 ac_cache_corrupted=false
2544 for ac_var in $ac_precious_vars; do
2545 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2546 eval ac_new_set=\$ac_env_${ac_var}_set
2547 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2548 eval ac_new_val=\$ac_env_${ac_var}_value
2549 case $ac_old_set,$ac_new_set in
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2552 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2556 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2560 if test "x$ac_old_val" != "x$ac_new_val"; then
2561 # differences in whitespace do not lead to failure.
2562 ac_old_val_w=`echo x
$ac_old_val`
2563 ac_new_val_w=`echo x
$ac_new_val`
2564 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2566 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2567 ac_cache_corrupted=:
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2570 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2571 eval $ac_var=\$ac_old_val
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2574 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2576 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2579 # Pass precious variables to config.status.
2580 if test "$ac_new_set" = set; then
2582 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2583 *) ac_arg=$ac_var=$ac_new_val ;;
2585 case " $ac_configure_args " in
2586 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2587 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2591 if $ac_cache_corrupted; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2595 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2596 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2598 ## -------------------- ##
2599 ## Main body of script. ##
2600 ## -------------------- ##
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2613 if test -f "$ac_dir/install-sh"; then
2615 ac_install_sh="$ac_aux_dir/install-sh -c"
2617 elif test -f "$ac_dir/install.sh"; then
2619 ac_install_sh="$ac_aux_dir/install.sh -c"
2621 elif test -f "$ac_dir/shtool"; then
2623 ac_install_sh="$ac_aux_dir/shtool install -c"
2627 if test -z "$ac_aux_dir"; then
2628 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2631 # These three variables are undocumented and unsupported,
2632 # and are intended to be withdrawn in a future Autoconf release.
2633 # They can cause serious problems if a builder's source tree is in a directory
2634 # whose full name contains unusual characters.
2635 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2636 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2637 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2640 # Make sure we can run config.sub.
2641 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2642 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2645 $as_echo_n "checking build system type... " >&6; }
2646 if ${ac_cv_build+:} false; then :
2647 $as_echo_n "(cached) " >&6
2649 ac_build_alias=$build_alias
2650 test "x$ac_build_alias" = x &&
2651 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2652 test "x$ac_build_alias" = x &&
2653 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2654 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2655 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2659 $as_echo "$ac_cv_build" >&6; }
2660 case $ac_cv_build in
2662 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2665 ac_save_IFS=$IFS; IFS='-'
2671 # Remember, the first character of IFS is used to create $*,
2672 # except with old shells:
2675 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2679 $as_echo_n "checking host system type... " >&6; }
2680 if ${ac_cv_host+:} false; then :
2681 $as_echo_n "(cached) " >&6
2683 if test "x$host_alias" = x; then
2684 ac_cv_host=$ac_cv_build
2686 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2687 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2692 $as_echo "$ac_cv_host" >&6; }
2695 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2698 ac_save_IFS=$IFS; IFS='-'
2704 # Remember, the first character of IFS is used to create $*,
2705 # except with old shells:
2708 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2712 $as_echo_n "checking target system type... " >&6; }
2713 if ${ac_cv_target+:} false; then :
2714 $as_echo_n "(cached) " >&6
2716 if test "x$target_alias" = x; then
2717 ac_cv_target=$ac_cv_host
2719 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2720 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2725 $as_echo "$ac_cv_target" >&6; }
2726 case $ac_cv_target in
2728 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2730 target=$ac_cv_target
2731 ac_save_IFS=$IFS; IFS='-'
2737 # Remember, the first character of IFS is used to create $*,
2738 # except with old shells:
2741 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2744 # The aliases save the names the user supplied, while $host etc.
2745 # will get canonicalized.
2746 test -n "$target_alias" &&
2747 test "$program_prefix$program_suffix$program_transform_name" = \
2749 program_prefix=${target_alias}-
2752 # Checks for programs.
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2754 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2756 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2757 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2758 $as_echo_n "(cached) " >&6
2760 cat >conftest.make <<\_ACEOF
2763 @echo '@@@%%%=$(MAKE)=@@@%%%'
2765 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2766 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
2768 eval ac_cv_prog_make_${ac_make}_set=yes;;
2770 eval ac_cv_prog_make_${ac_make}_set=no;;
2774 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2776 $as_echo "yes" >&6; }
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2781 SET_MAKE="MAKE=${MAKE-make}"
2784 # Find a good install program. We prefer a C program (faster),
2785 # so one script is as good as another. But avoid the broken or
2786 # incompatible versions:
2787 # SysV /etc/install, /usr/sbin/install
2788 # SunOS /usr/etc/install
2789 # IRIX /sbin/install
2791 # AmigaOS /C/install, which installs bootblocks on floppy discs
2792 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2793 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2794 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2795 # OS/2's system install, which has a completely different semantic
2796 # ./install, which can be erroneously created by make from ./install.sh.
2797 # Reject install programs that cannot install multiple files.
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2799 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2800 if test -z "$INSTALL"; then
2801 if ${ac_cv_path_install+:} false; then :
2802 $as_echo_n "(cached) " >&6
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir=.
2809 # Account for people who put trailing slashes in PATH elements.
2810 case $as_dir/ in #((
2811 ./ | .// | /[cC]/* | \
2812 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2813 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2816 # OSF1 and SCO ODT 3.0 have their own names for install.
2817 # Don't use installbsd from OSF since it installs stuff as root
2819 for ac_prog in ginstall scoinst install; do
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2822 if test $ac_prog = install &&
2823 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2824 # AIX install. It has an incompatible calling convention.
2826 elif test $ac_prog = install &&
2827 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2828 # program-specific install script used by HP pwplus--don't use.
2831 rm -rf conftest.one conftest.two conftest.dir
2832 echo one > conftest.one
2833 echo two > conftest.two
2835 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2836 test -s conftest.one && test -s conftest.two &&
2837 test -s conftest.dir/conftest.one &&
2838 test -s conftest.dir/conftest.two
2840 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2853 rm -rf conftest.one conftest.two conftest.dir
2856 if test "${ac_cv_path_install+set}" = set; then
2857 INSTALL=$ac_cv_path_install
2859 # As a last resort, use the slow shell script. Don't cache a
2860 # value for INSTALL within a source directory, because that will
2861 # break other packages using the cache if that directory is
2862 # removed, or if the value is a relative name.
2863 INSTALL=$ac_install_sh
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2867 $as_echo "$INSTALL" >&6; }
2869 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2870 # It thinks the first close brace ends the variable substitution.
2871 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2873 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2875 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_CC+:} false; then :
2888 $as_echo_n "(cached) " >&6
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 if test -n "$CC"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913 $as_echo "$CC" >&6; }
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2921 if test -z "$ac_cv_prog_CC"; then
2923 # Extract the first word of "gcc", so it can be a program name with args.
2924 set dummy gcc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2928 $as_echo_n "(cached) " >&6
2930 if test -n "$ac_ct_CC"; then
2931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_ac_ct_CC="gcc"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2953 $as_echo "$ac_ct_CC" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2959 if test "x$ac_ct_CC" = x; then
2962 case $cross_compiling:$ac_tool_warned in
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966 ac_tool_warned=yes ;;
2974 if test -z "$CC"; then
2975 if test -n "$ac_tool_prefix"; then
2976 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2977 set dummy ${ac_tool_prefix}cc; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_CC+:} false; then :
2981 $as_echo_n "(cached) " >&6
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_CC="${ac_tool_prefix}cc"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3015 if test -z "$CC"; then
3016 # Extract the first word of "cc", so it can be a program name with args.
3017 set dummy cc; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_prog_CC+:} false; then :
3021 $as_echo_n "(cached) " >&6
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3035 ac_prog_rejected=yes
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 if test $ac_prog_rejected = yes; then
3047 # We found a bogon in the path, so make sure we never use it.
3048 set dummy $ac_cv_prog_CC
3050 if test $# != 0; then
3051 # We chose a different compiler from the bogus one.
3052 # However, it has the same basename, so the bogon will be chosen
3053 # first if we set CC to just the basename; use the full file name.
3055 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3061 if test -n "$CC"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3071 if test -z "$CC"; then
3072 if test -n "$ac_tool_prefix"; then
3073 for ac_prog in cl.exe
3075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3112 test -n "$CC" && break
3115 if test -z "$CC"; then
3117 for ac_prog in cl.exe
3119 # Extract the first word of "$ac_prog", so it can be a program name with args.
3120 set dummy $ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3126 if test -n "$ac_ct_CC"; then
3127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_ac_ct_CC="$ac_prog"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3147 if test -n "$ac_ct_CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3149 $as_echo "$ac_ct_CC" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3156 test -n "$ac_ct_CC" && break
3159 if test "x$ac_ct_CC" = x; then
3162 case $cross_compiling:$ac_tool_warned in
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3166 ac_tool_warned=yes ;;
3175 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3178 See \
`config.log' for more details" "$LINENO" 5; }
3180 # Provide some information about the compiler.
3181 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3184 for ac_option in --version -v -V -qversion; do
3185 { { ac_try="$ac_compiler $ac_option >&5"
3187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3188 *) ac_try_echo
=$ac_try;;
3190 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3194 if test -s conftest.err
; then
3196 ... rest of stderr output deleted ...
3197 10q' conftest.err
>conftest.er1
3198 cat conftest.er1
>&5
3200 rm -f conftest.er1 conftest.err
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }
3205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3216 ac_clean_files_save
=$ac_clean_files
3217 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3218 # Try to create an executable without -o first, disregard a.out.
3219 # It will help us diagnose broken compilers, and finding out an intuition
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3222 $as_echo_n "checking whether the C compiler works... " >&6; }
3223 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3225 # The possible output files:
3226 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3229 for ac_file
in $ac_files
3232 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3233 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3238 if { { ac_try
="$ac_link_default"
3240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_link_default") 2>&5
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3250 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3251 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3252 # so that the user can short-circuit this test for compilers unknown to
3254 for ac_file in $ac_files ''
3256 test -f "$ac_file" || continue
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3261 # We found the default executable, but exeext='' is most
3265 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3267 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3269 # We set ac_cv_exeext here because the later test for it is not
3270 # safe: cross compilers may not add the suffix if given an `-o'
3271 # argument, so we may need to know it at that point already.
3272 # Even if this section looks crufty: it has the advantage of
3279 test "$ac_cv_exeext" = no && ac_cv_exeext=
3284 if test -z "$ac_file"; then :
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 $as_echo "$as_me: failed program was:" >&5
3288 sed 's
/^
/|
/' conftest.$ac_ext >&5
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3292 as_fn_error 77 "C compiler cannot create executables
3293 See \`config.log
' for more details" "$LINENO" 5; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296 $as_echo "yes" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3299 $as_echo_n "checking for C compiler default output file name... " >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3301 $as_echo "$ac_file" >&6; }
3302 ac_exeext=$ac_cv_exeext
3304 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3305 ac_clean_files=$ac_clean_files_save
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3307 $as_echo_n "checking for suffix of executables... " >&6; }
3308 if { { ac_try="$ac_link"
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_link") 2>&5
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; then :
3319 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3320 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3321 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3323 for ac_file
in conftest.exe conftest conftest.
*; do
3324 test -f "$ac_file" ||
continue
3326 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3327 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3336 See \`config.log' for more details" "$LINENO" 5; }
3338 rm -f conftest conftest
$ac_cv_exeext
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3340 $as_echo "$ac_cv_exeext" >&6; }
3342 rm -f conftest.
$ac_ext
3343 EXEEXT
=$ac_cv_exeext
3345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3351 FILE *f = fopen ("conftest.out", "w");
3352 return ferror (f) || fclose (f) != 0;
3358 ac_clean_files
="$ac_clean_files conftest.out"
3359 # Check that the compiler produces executables we can run. If not, either
3360 # the compiler is broken, or we cross compile.
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3362 $as_echo_n "checking whether we are cross compiling... " >&6; }
3363 if test "$cross_compiling" != yes; then
3364 { { ac_try
="$ac_link"
3366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link") 2>&5
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }
3375 if { ac_try='./conftest$ac_cv_exeext'
3376 { { case "(($ac_try" in
3377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3378 *) ac_try_echo
=$ac_try;;
3380 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_try") 2>&5
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }; }; then
3388 if test "$cross_compiling" = maybe
; then
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error $?
"cannot run C compiled programs.
3394 If you meant to cross compile, use \`--host'.
3395 See \`config.log' for more details" "$LINENO" 5; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3400 $as_echo "$cross_compiling" >&6; }
3402 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3403 ac_clean_files
=$ac_clean_files_save
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3405 $as_echo_n "checking for suffix of object files... " >&6; }
3406 if ${ac_cv_objext+:} false
; then :
3407 $as_echo_n "(cached) " >&6
3409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3420 rm -f conftest.o conftest.obj
3421 if { { ac_try
="$ac_compile"
3423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_compile") 2>&5
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; then :
3432 for ac_file in conftest.o conftest.obj conftest.*; do
3433 test -f "$ac_file" || continue;
3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3436 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3441 $as_echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3447 See \
`config.log' for more details" "$LINENO" 5; }
3449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3452 $as_echo "$ac_cv_objext" >&6; }
3453 OBJEXT=$ac_cv_objext
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3456 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3457 if ${ac_cv_c_compiler_gnu+:} false; then :
3458 $as_echo_n "(cached) " >&6
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3474 if ac_fn_c_try_compile "$LINENO"; then :
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3484 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3485 if test $ac_compiler_gnu = yes; then
3490 ac_test_CFLAGS=${CFLAGS+set}
3491 ac_save_CFLAGS=$CFLAGS
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3493 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3494 if ${ac_cv_prog_cc_g+:} false; then :
3495 $as_echo_n "(cached) " >&6
3497 ac_save_c_werror_flag=$ac_c_werror_flag
3498 ac_c_werror_flag=yes
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3512 if ac_fn_c_try_compile "$LINENO"; then :
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3527 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_c_werror_flag=$ac_save_c_werror_flag
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3543 if ac_fn_c_try_compile "$LINENO"; then :
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 ac_c_werror_flag=$ac_save_c_werror_flag
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3554 $as_echo "$ac_cv_prog_cc_g" >&6; }
3555 if test "$ac_test_CFLAGS" = set; then
3556 CFLAGS=$ac_save_CFLAGS
3557 elif test $ac_cv_prog_cc_g = yes; then
3558 if test "$GCC" = yes; then
3564 if test "$GCC" = yes; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3571 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3572 if ${ac_cv_prog_cc_c89+:} false; then :
3573 $as_echo_n "(cached) " >&6
3575 ac_cv_prog_cc_c89=no
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3583 struct buf { int x; };
3584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585 static char *e (p, i)
3591 static char *f (char * (*g) (char **, int), char **p, ...)
3596 s = g (p, va_arg (v,int));
3601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3602 function prototypes and stuff, but not '\xHH' hex character constants.
3603 These don't provoke an error unfortunately, instead are silently treated
3604 as 'x'. The following induces an error, until -std is added to get
3605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3606 array size at least. It's necessary to write '\x00'==0 to get something
3607 that's true only with -std. */
3608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611 inside strings and character constants. */
3613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3615 int test (int i, double x);
3616 struct s1 {int (*f) (int a);};
3617 struct s2 {int (*f) (double a);};
3618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3632 CC="$ac_save_CC $ac_arg"
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_cv_prog_cc_c89=$ac_arg
3636 rm -f core conftest.err conftest.$ac_objext
3637 test "x$ac_cv_prog_cc_c89" != "xno" && break
3639 rm -f conftest.$ac_ext
3644 case "x$ac_cv_prog_cc_c89" in
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3647 $as_echo "none needed" >&6; } ;;
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3650 $as_echo "unsupported" >&6; } ;;
3652 CC="$CC $ac_cv_prog_cc_c89"
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3656 if test "x$ac_cv_prog_cc_c89" != xno; then :
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 ac_cpp='$CXXCPP $CPPFLAGS'
3668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3671 if test -z "$CXX"; then
3672 if test -n "$CCC"; then
3675 if test -n "$ac_tool_prefix"; then
3676 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if ${ac_cv_prog_CXX+:} false; then :
3683 $as_echo_n "(cached) " >&6
3685 if test -n "$CXX"; then
3686 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 if test -n "$CXX"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3708 $as_echo "$CXX" >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3715 test -n "$CXX" && break
3718 if test -z "$CXX"; then
3720 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3722 # Extract the first word of "$ac_prog", so it can be a program name with args.
3723 set dummy $ac_prog; ac_word=$2
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 $as_echo_n "checking for $ac_word... " >&6; }
3726 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3727 $as_echo_n "(cached) " >&6
3729 if test -n "$ac_ct_CXX"; then
3730 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_ac_ct_CXX="$ac_prog"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3750 if test -n "$ac_ct_CXX"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3752 $as_echo "$ac_ct_CXX" >&6; }
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3759 test -n "$ac_ct_CXX" && break
3762 if test "x$ac_ct_CXX" = x; then
3765 case $cross_compiling:$ac_tool_warned in
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3769 ac_tool_warned=yes ;;
3777 # Provide some information about the compiler.
3778 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3781 for ac_option in --version -v -V -qversion; do
3782 { { ac_try="$ac_compiler $ac_option >&5"
3784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3785 *) ac_try_echo
=$ac_try;;
3787 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3791 if test -s conftest.err
; then
3793 ... rest of stderr output deleted ...
3794 10q' conftest.err
>conftest.er1
3795 cat conftest.er1
>&5
3797 rm -f conftest.er1 conftest.err
3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799 test $ac_status = 0; }
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3803 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3804 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3805 $as_echo_n "(cached) " >&6
3807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3821 if ac_fn_cxx_try_compile
"$LINENO"; then :
3826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3827 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3831 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3832 if test $ac_compiler_gnu = yes; then
3837 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3838 ac_save_CXXFLAGS
=$CXXFLAGS
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3840 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3841 if ${ac_cv_prog_cxx_g+:} false
; then :
3842 $as_echo_n "(cached) " >&6
3844 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3845 ac_cxx_werror_flag
=yes
3848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3859 if ac_fn_cxx_try_compile
"$LINENO"; then :
3860 ac_cv_prog_cxx_g
=yes
3863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3874 if ac_fn_cxx_try_compile
"$LINENO"; then :
3877 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3890 if ac_fn_cxx_try_compile
"$LINENO"; then :
3891 ac_cv_prog_cxx_g
=yes
3893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3898 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3901 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3902 if test "$ac_test_CXXFLAGS" = set; then
3903 CXXFLAGS
=$ac_save_CXXFLAGS
3904 elif test $ac_cv_prog_cxx_g = yes; then
3905 if test "$GXX" = yes; then
3911 if test "$GXX" = yes; then
3918 ac_cpp
='$CPP $CPPFLAGS'
3919 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3923 if test -n "$ac_tool_prefix"; then
3924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3925 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927 $as_echo_n "checking for $ac_word... " >&6; }
3928 if ${ac_cv_prog_RANLIB+:} false
; then :
3929 $as_echo_n "(cached) " >&6
3931 if test -n "$RANLIB"; then
3932 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3938 test -z "$as_dir" && as_dir
=.
3939 for ac_exec_ext
in '' $ac_executable_extensions; do
3940 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 RANLIB
=$ac_cv_prog_RANLIB
3952 if test -n "$RANLIB"; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3954 $as_echo "$RANLIB" >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957 $as_echo "no" >&6; }
3962 if test -z "$ac_cv_prog_RANLIB"; then
3963 ac_ct_RANLIB
=$RANLIB
3964 # Extract the first word of "ranlib", so it can be a program name with args.
3965 set dummy ranlib
; ac_word
=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3969 $as_echo_n "(cached) " >&6
3971 if test -n "$ac_ct_RANLIB"; then
3972 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3978 test -z "$as_dir" && as_dir
=.
3979 for ac_exec_ext
in '' $ac_executable_extensions; do
3980 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3992 if test -n "$ac_ct_RANLIB"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3994 $as_echo "$ac_ct_RANLIB" >&6; }
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
4000 if test "x$ac_ct_RANLIB" = x
; then
4003 case $cross_compiling:$ac_tool_warned in
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007 ac_tool_warned
=yes ;;
4009 RANLIB
=$ac_ct_RANLIB
4012 RANLIB
="$ac_cv_prog_RANLIB"
4015 if test -n "$ac_tool_prefix"; then
4016 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4017 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if ${ac_cv_prog_AR+:} false
; then :
4021 $as_echo_n "(cached) " >&6
4023 if test -n "$AR"; then
4024 ac_cv_prog_AR
="$AR" # Let the user override the test.
4026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4030 test -z "$as_dir" && as_dir
=.
4031 for ac_exec_ext
in '' $ac_executable_extensions; do
4032 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4033 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 if test -n "$AR"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4046 $as_echo "$AR" >&6; }
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4054 if test -z "$ac_cv_prog_AR"; then
4056 # Extract the first word of "ar", so it can be a program name with args.
4057 set dummy
ar; ac_word
=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
4061 $as_echo_n "(cached) " >&6
4063 if test -n "$ac_ct_AR"; then
4064 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir
=.
4071 for ac_exec_ext
in '' $ac_executable_extensions; do
4072 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_ac_ct_AR
="ar"
4074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4084 if test -n "$ac_ct_AR"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4086 $as_echo "$ac_ct_AR" >&6; }
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4092 if test "x$ac_ct_AR" = x
; then
4095 case $cross_compiling:$ac_tool_warned in
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4099 ac_tool_warned
=yes ;;
4110 ac_cpp
='$CPP $CPPFLAGS'
4111 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4115 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4116 # On Suns, sometimes $CPP names a directory.
4117 if test -n "$CPP" && test -d "$CPP"; then
4120 if test -z "$CPP"; then
4121 if ${ac_cv_prog_CPP+:} false
; then :
4122 $as_echo_n "(cached) " >&6
4124 # Double quotes because CPP needs to be expanded
4125 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4128 for ac_c_preproc_warn_flag
in '' yes
4130 # Use a header file that comes with gcc, so configuring glibc
4131 # with a fresh cross-compiler works.
4132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133 # <limits.h> exists even on freestanding compilers.
4134 # On the NeXT, cc -E runs the code through the compiler's parser,
4135 # not just through cpp. "Syntax error" is here to catch this case.
4136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4139 # include <limits.h>
4141 # include <assert.h>
4145 if ac_fn_c_try_cpp
"$LINENO"; then :
4148 # Broken: fails on valid input.
4151 rm -f conftest.err conftest.i conftest.
$ac_ext
4153 # OK, works on sane cases. Now check whether nonexistent headers
4154 # can be detected and how.
4155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 #include <ac_nonexistent.h>
4159 if ac_fn_c_try_cpp
"$LINENO"; then :
4160 # Broken: success on invalid input.
4163 # Passes both tests.
4167 rm -f conftest.err conftest.i conftest.
$ac_ext
4170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4171 rm -f conftest.i conftest.err conftest.
$ac_ext
4172 if $ac_preproc_ok; then :
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4185 $as_echo "$CPP" >&6; }
4187 for ac_c_preproc_warn_flag
in '' yes
4189 # Use a header file that comes with gcc, so configuring glibc
4190 # with a fresh cross-compiler works.
4191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4192 # <limits.h> exists even on freestanding compilers.
4193 # On the NeXT, cc -E runs the code through the compiler's parser,
4194 # not just through cpp. "Syntax error" is here to catch this case.
4195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4198 # include <limits.h>
4200 # include <assert.h>
4204 if ac_fn_c_try_cpp
"$LINENO"; then :
4207 # Broken: fails on valid input.
4210 rm -f conftest.err conftest.i conftest.
$ac_ext
4212 # OK, works on sane cases. Now check whether nonexistent headers
4213 # can be detected and how.
4214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4218 if ac_fn_c_try_cpp
"$LINENO"; then :
4219 # Broken: success on invalid input.
4222 # Passes both tests.
4226 rm -f conftest.err conftest.i conftest.
$ac_ext
4229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4230 rm -f conftest.i conftest.err conftest.
$ac_ext
4231 if $ac_preproc_ok; then :
4234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4237 See \`config.log' for more details" "$LINENO" 5; }
4241 ac_cpp
='$CPP $CPPFLAGS'
4242 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4248 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4249 if ${ac_cv_path_GREP+:} false
; then :
4250 $as_echo_n "(cached) " >&6
4252 if test -z "$GREP"; then
4253 ac_path_GREP_found
=false
4254 # Loop through the user's path and test for each of PROGNAME-LIST
4255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4256 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4259 test -z "$as_dir" && as_dir
=.
4260 for ac_prog
in grep ggrep
; do
4261 for ac_exec_ext
in '' $ac_executable_extensions; do
4262 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4263 as_fn_executable_p
"$ac_path_GREP" ||
continue
4264 # Check for GNU ac_path_GREP and select it if it is found.
4265 # Check for GNU $ac_path_GREP
4266 case `"$ac_path_GREP" --version 2>&1` in
4268 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4271 $as_echo_n 0123456789 >"conftest.in"
4274 cat "conftest.in" "conftest.in" >"conftest.tmp"
4275 mv "conftest.tmp" "conftest.in"
4276 cp "conftest.in" "conftest.nl"
4277 $as_echo 'GREP' >> "conftest.nl"
4278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4279 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4280 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4281 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4282 # Best one so far, save it but keep looking for a better one
4283 ac_cv_path_GREP
="$ac_path_GREP"
4284 ac_path_GREP_max
=$ac_count
4286 # 10*(2^10) chars as input seems more than enough
4287 test $ac_count -gt 10 && break
4289 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4292 $ac_path_GREP_found && break 3
4297 if test -z "$ac_cv_path_GREP"; then
4298 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4301 ac_cv_path_GREP
=$GREP
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4306 $as_echo "$ac_cv_path_GREP" >&6; }
4307 GREP
="$ac_cv_path_GREP"
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4311 $as_echo_n "checking for egrep... " >&6; }
4312 if ${ac_cv_path_EGREP+:} false
; then :
4313 $as_echo_n "(cached) " >&6
4315 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4316 then ac_cv_path_EGREP
="$GREP -E"
4318 if test -z "$EGREP"; then
4319 ac_path_EGREP_found
=false
4320 # Loop through the user's path and test for each of PROGNAME-LIST
4321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4322 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4325 test -z "$as_dir" && as_dir
=.
4326 for ac_prog
in egrep; do
4327 for ac_exec_ext
in '' $ac_executable_extensions; do
4328 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4329 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4330 # Check for GNU ac_path_EGREP and select it if it is found.
4331 # Check for GNU $ac_path_EGREP
4332 case `"$ac_path_EGREP" --version 2>&1` in
4334 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4337 $as_echo_n 0123456789 >"conftest.in"
4340 cat "conftest.in" "conftest.in" >"conftest.tmp"
4341 mv "conftest.tmp" "conftest.in"
4342 cp "conftest.in" "conftest.nl"
4343 $as_echo 'EGREP' >> "conftest.nl"
4344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4345 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4346 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4348 # Best one so far, save it but keep looking for a better one
4349 ac_cv_path_EGREP
="$ac_path_EGREP"
4350 ac_path_EGREP_max
=$ac_count
4352 # 10*(2^10) chars as input seems more than enough
4353 test $ac_count -gt 10 && break
4355 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4358 $ac_path_EGREP_found && break 3
4363 if test -z "$ac_cv_path_EGREP"; then
4364 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4367 ac_cv_path_EGREP
=$EGREP
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4373 $as_echo "$ac_cv_path_EGREP" >&6; }
4374 EGREP
="$ac_cv_path_EGREP"
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4378 $as_echo_n "checking for ANSI C header files... " >&6; }
4379 if ${ac_cv_header_stdc+:} false
; then :
4380 $as_echo_n "(cached) " >&6
4382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4397 if ac_fn_c_try_compile
"$LINENO"; then :
4398 ac_cv_header_stdc
=yes
4400 ac_cv_header_stdc
=no
4402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4404 if test $ac_cv_header_stdc = yes; then
4405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 $EGREP "memchr" >/dev
/null
2>&1; then :
4415 ac_cv_header_stdc
=no
4421 if test $ac_cv_header_stdc = yes; then
4422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4429 $EGREP "free" >/dev
/null
2>&1; then :
4432 ac_cv_header_stdc
=no
4438 if test $ac_cv_header_stdc = yes; then
4439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4440 if test "$cross_compiling" = yes; then :
4443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4447 #if ((' ' & 0x0FF) == 0x020)
4448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4451 # define ISLOWER(c) \
4452 (('a' <= (c) && (c) <= 'i') \
4453 || ('j' <= (c) && (c) <= 'r') \
4454 || ('s' <= (c) && (c) <= 'z'))
4455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4463 for (i = 0; i < 256; i++)
4464 if (XOR (islower (i), ISLOWER (i))
4465 || toupper (i) != TOUPPER (i))
4470 if ac_fn_c_try_run
"$LINENO"; then :
4473 ac_cv_header_stdc
=no
4475 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4476 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4482 $as_echo "$ac_cv_header_stdc" >&6; }
4483 if test $ac_cv_header_stdc = yes; then
4485 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4489 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4490 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4491 inttypes.h stdint.h unistd.h
4493 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4494 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4496 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4497 cat >>confdefs.h
<<_ACEOF
4498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4507 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4508 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4515 if test "$MINIX" = yes; then
4517 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4520 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4523 $as_echo "#define _MINIX 1" >>confdefs.h
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4529 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4530 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4531 $as_echo_n "(cached) " >&6
4533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4536 # define __EXTENSIONS__ 1
4537 $ac_includes_default
4546 if ac_fn_c_try_compile
"$LINENO"; then :
4547 ac_cv_safe_to_define___extensions__
=yes
4549 ac_cv_safe_to_define___extensions__
=no
4551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4554 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4555 test $ac_cv_safe_to_define___extensions__ = yes &&
4556 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4558 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4560 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4562 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4564 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4567 # Check whether --enable-largefile was given.
4568 if test "${enable_largefile+set}" = set; then :
4569 enableval
=$enable_largefile;
4572 if test "$enable_largefile" != no
; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4575 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4576 if ${ac_cv_sys_largefile_CC+:} false
; then :
4577 $as_echo_n "(cached) " >&6
4579 ac_cv_sys_largefile_CC
=no
4580 if test "$GCC" != yes; then
4583 # IRIX 6.2 and later do not support large files by default,
4584 # so use the C compiler's -n32 option if that helps.
4585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 #include <sys/types.h>
4588 /* Check that off_t can represent 2**63 - 1 correctly.
4589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4590 since some C++ compilers masquerading as C compilers
4591 incorrectly reject 9223372036854775807. */
4592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4594 && LARGE_OFF_T % 2147483647 == 1)
4604 if ac_fn_c_try_compile
"$LINENO"; then :
4607 rm -f core conftest.err conftest.
$ac_objext
4609 if ac_fn_c_try_compile
"$LINENO"; then :
4610 ac_cv_sys_largefile_CC
=' -n32'; break
4612 rm -f core conftest.err conftest.
$ac_objext
4616 rm -f conftest.
$ac_ext
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4620 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4621 if test "$ac_cv_sys_largefile_CC" != no
; then
4622 CC
=$CC$ac_cv_sys_largefile_CC
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4626 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4627 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4628 $as_echo_n "(cached) " >&6
4631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
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_file_offset_bits
=no
; break
4653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 #define _FILE_OFFSET_BITS 64
4657 #include <sys/types.h>
4658 /* Check that off_t can represent 2**63 - 1 correctly.
4659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4660 since some C++ compilers masquerading as C compilers
4661 incorrectly reject 9223372036854775807. */
4662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4664 && LARGE_OFF_T % 2147483647 == 1)
4674 if ac_fn_c_try_compile
"$LINENO"; then :
4675 ac_cv_sys_file_offset_bits
=64; break
4677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4678 ac_cv_sys_file_offset_bits
=unknown
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4683 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4684 case $ac_cv_sys_file_offset_bits in #(
4687 cat >>confdefs.h
<<_ACEOF
4688 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4693 if test $ac_cv_sys_file_offset_bits = unknown
; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4695 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4696 if ${ac_cv_sys_large_files+:} false
; then :
4697 $as_echo_n "(cached) " >&6
4700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 #include <sys/types.h>
4703 /* Check that off_t can represent 2**63 - 1 correctly.
4704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4705 since some C++ compilers masquerading as C compilers
4706 incorrectly reject 9223372036854775807. */
4707 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4709 && LARGE_OFF_T % 2147483647 == 1)
4719 if ac_fn_c_try_compile
"$LINENO"; then :
4720 ac_cv_sys_large_files
=no
; break
4722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 #define _LARGE_FILES 1
4726 #include <sys/types.h>
4727 /* Check that off_t can represent 2**63 - 1 correctly.
4728 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4729 since some C++ compilers masquerading as C compilers
4730 incorrectly reject 9223372036854775807. */
4731 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4733 && LARGE_OFF_T % 2147483647 == 1)
4743 if ac_fn_c_try_compile
"$LINENO"; then :
4744 ac_cv_sys_large_files
=1; break
4746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4747 ac_cv_sys_large_files
=unknown
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4752 $as_echo "$ac_cv_sys_large_files" >&6; }
4753 case $ac_cv_sys_large_files in #(
4756 cat >>confdefs.h
<<_ACEOF
4757 #define _LARGE_FILES $ac_cv_sys_large_files
4768 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4769 for ac_prog
in aclocal
4771 # Extract the first word of "$ac_prog", so it can be a program name with args.
4772 set dummy
$ac_prog; ac_word
=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_prog_ACLOCAL+:} false
; then :
4776 $as_echo_n "(cached) " >&6
4778 if test -n "$ACLOCAL"; then
4779 ac_cv_prog_ACLOCAL
="$ACLOCAL" # Let the user override the test.
4781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir
=.
4786 for ac_exec_ext
in '' $ac_executable_extensions; do
4787 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_prog_ACLOCAL
="$ac_prog"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 ACLOCAL
=$ac_cv_prog_ACLOCAL
4799 if test -n "$ACLOCAL"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4801 $as_echo "$ACLOCAL" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4808 test -n "$ACLOCAL" && break
4810 test -n "$ACLOCAL" || ACLOCAL
="$MISSING aclocal"
4812 for ac_prog
in autoconf
4814 # Extract the first word of "$ac_prog", so it can be a program name with args.
4815 set dummy
$ac_prog; ac_word
=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_prog_AUTOCONF+:} false
; then :
4819 $as_echo_n "(cached) " >&6
4821 if test -n "$AUTOCONF"; then
4822 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
4824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir
=.
4829 for ac_exec_ext
in '' $ac_executable_extensions; do
4830 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_AUTOCONF
="$ac_prog"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 AUTOCONF
=$ac_cv_prog_AUTOCONF
4842 if test -n "$AUTOCONF"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4844 $as_echo "$AUTOCONF" >&6; }
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4851 test -n "$AUTOCONF" && break
4853 test -n "$AUTOCONF" || AUTOCONF
="$MISSING autoconf"
4855 for ac_prog
in autoheader
4857 # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy
$ac_prog; ac_word
=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_AUTOHEADER+:} false
; then :
4862 $as_echo_n "(cached) " >&6
4864 if test -n "$AUTOHEADER"; then
4865 ac_cv_prog_AUTOHEADER
="$AUTOHEADER" # Let the user override the test.
4867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir
=.
4872 for ac_exec_ext
in '' $ac_executable_extensions; do
4873 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_AUTOHEADER
="$ac_prog"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 AUTOHEADER
=$ac_cv_prog_AUTOHEADER
4885 if test -n "$AUTOHEADER"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4887 $as_echo "$AUTOHEADER" >&6; }
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4894 test -n "$AUTOHEADER" && break
4896 test -n "$AUTOHEADER" || AUTOHEADER
="$MISSING autoheader"
4899 # Figure out what compiler warnings we can enable.
4900 # See config/warnings.m4 for details.
4903 ac_cpp
='$CPP $CPPFLAGS'
4904 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4909 save_CFLAGS
="$CFLAGS"
4910 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings \
4911 -Wmissing-format-attribute; do
4912 # Do the check with the no- prefix removed since gcc silently
4913 # accepts any -Wno-* option on purpose
4914 case $real_option in
4915 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4916 *) option
=$real_option ;;
4918 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4921 $as_echo_n "checking whether $CC supports $option... " >&6; }
4922 if eval \
${$as_acx_Woption+:} false
; then :
4923 $as_echo_n "(cached) " >&6
4926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4937 if ac_fn_c_try_compile
"$LINENO"; then :
4938 eval "$as_acx_Woption=yes"
4940 eval "$as_acx_Woption=no"
4942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4945 eval ac_res
=\$
$as_acx_Woption
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4947 $as_echo "$ac_res" >&6; }
4948 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4949 warn
="$warn${warn:+ }$real_option"
4952 CFLAGS
="$save_CFLAGS"
4954 ac_cpp
='$CPP $CPPFLAGS'
4955 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4961 ac_cpp
='$CPP $CPPFLAGS'
4962 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4967 save_CFLAGS
="$CFLAGS"
4968 for real_option
in -Wstrict-prototypes -Wmissing-prototypes \
4969 -Wold-style-definition -Wc++-compat; do
4970 # Do the check with the no- prefix removed since gcc silently
4971 # accepts any -Wno-* option on purpose
4972 case $real_option in
4973 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4974 *) option
=$real_option ;;
4976 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4979 $as_echo_n "checking whether $CC supports $option... " >&6; }
4980 if eval \
${$as_acx_Woption+:} false
; then :
4981 $as_echo_n "(cached) " >&6
4984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4995 if ac_fn_c_try_compile
"$LINENO"; then :
4996 eval "$as_acx_Woption=yes"
4998 eval "$as_acx_Woption=no"
5000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5003 eval ac_res
=\$
$as_acx_Woption
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5005 $as_echo "$ac_res" >&6; }
5006 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5007 c_warn
="$c_warn${c_warn:+ }$real_option"
5010 CFLAGS
="$save_CFLAGS"
5012 ac_cpp
='$CPP $CPPFLAGS'
5013 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5019 ac_cpp
='$CPP $CPPFLAGS'
5020 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5025 # Do the check with the no- prefix removed from the warning options
5026 # since gcc silently accepts any -Wno-* option on purpose
5027 if test "$GCC" = yes; then :
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
5029 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
5030 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false
; then :
5031 $as_echo_n "(cached) " >&6
5033 save_CFLAGS
="$CFLAGS"
5034 CFLAGS
="-pedantic -Wlong-long"
5035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5046 if ac_fn_c_try_compile
"$LINENO"; then :
5047 acx_cv_prog_cc_pedantic__Wlong_long
=yes
5049 acx_cv_prog_cc_pedantic__Wlong_long
=no
5051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5052 CFLAGS
="$save_CFLAGS"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
5055 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
5056 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
5057 WARN_PEDANTIC
="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
5062 ac_cpp
='$CPP $CPPFLAGS'
5063 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5069 # Disable exceptions and RTTI if building with g++
5071 ac_cpp
='$CPP $CPPFLAGS'
5072 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5077 save_CFLAGS
="$CFLAGS"
5078 for real_option
in -fno-exceptions -fno-rtti; do
5079 # Do the check with the no- prefix removed since gcc silently
5080 # accepts any -Wno-* option on purpose
5081 case $real_option in
5082 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5083 *) option
=$real_option ;;
5085 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5088 $as_echo_n "checking whether $CC supports $option... " >&6; }
5089 if eval \
${$as_acx_Woption+:} false
; then :
5090 $as_echo_n "(cached) " >&6
5093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5104 if ac_fn_c_try_compile
"$LINENO"; then :
5105 eval "$as_acx_Woption=yes"
5107 eval "$as_acx_Woption=no"
5109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5112 eval ac_res
=\$
$as_acx_Woption
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5114 $as_echo "$ac_res" >&6; }
5115 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5116 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
5119 CFLAGS
="$save_CFLAGS"
5121 ac_cpp
='$CPP $CPPFLAGS'
5122 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5128 # Only enable with --enable-werror-always until existing warnings are
5131 ac_cpp
='$CPP $CPPFLAGS'
5132 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5137 # Check whether --enable-werror-always was given.
5138 if test "${enable_werror_always+set}" = set; then :
5139 enableval
=$enable_werror_always;
5141 enable_werror_always
=no
5144 if test $enable_werror_always = yes; then :
5145 WERROR
="$WERROR${WERROR:+ }-Werror"
5149 ac_cpp
='$CPP $CPPFLAGS'
5150 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5156 # Dependency checking.
5157 rm -rf .tst
2>/dev
/null
5158 mkdir .tst
2>/dev
/null
5159 if test -d .tst
; then
5164 rmdir .tst
2>/dev
/null
5166 DEPDIR
="${am__leading_dot}deps"
5168 ac_config_commands
="$ac_config_commands depdir"
5172 ac_cpp
='$CXXCPP $CPPFLAGS'
5173 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5182 if ac_fn_cxx_try_compile
"$LINENO"; then :
5185 as_fn_error $?
"C++ compiler missing or inoperational" "$LINENO" 5
5187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5189 ac_cpp
='$CPP $CPPFLAGS'
5190 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5194 depcc
="$CXX" am_compiler_list
=
5196 am_depcomp
=$ac_aux_dir/depcomp
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5198 $as_echo_n "checking dependency style of $depcc... " >&6; }
5199 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
5200 $as_echo_n "(cached) " >&6
5202 if test -f "$am_depcomp"; then
5203 # We make a subdir and do the tests there. Otherwise we can end up
5204 # making bogus files that we don't know about and never remove. For
5205 # instance it was reported that on HP-UX the gcc test will end up
5206 # making a dummy file named `D' -- because `-MD' means `put the output
5209 # Copy depcomp to subdir because otherwise we won't find it if we're
5210 # using a relative directory.
5211 cp "$am_depcomp" conftest.dir
5213 # We will build objects and dependencies in a subdirectory because
5214 # it helps to detect inapplicable dependency modes. For instance
5215 # both Tru64's cc and ICC support -MD to output dependencies as a
5216 # side effect of compilation, but ICC will put the dependencies in
5217 # the current directory while Tru64 will put them in the object
5221 am_cv_CXX_dependencies_compiler_type
=none
5222 if test "$am_compiler_list" = ""; then
5223 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5225 for depmode
in $am_compiler_list; do
5226 if test $depmode = none
; then break; fi
5228 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5229 # Setup a source with many dependencies, because some compilers
5230 # like to wrap large dependency lists on column 80 (with \), and
5231 # we should not choose a depcomp mode which is confused by this.
5233 # We need to recreate these files for each test, as the compiler may
5234 # overwrite some of them when testing with obscure command lines.
5235 # This happens at least with the AIX C compiler.
5237 for i
in 1 2 3 4 5 6; do
5238 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5239 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5240 # Solaris 8's {/usr,}/bin/sh.
5241 touch sub
/conftst
$i.h
5243 echo "include sub/conftest.Po" > confmf
5245 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5246 # mode. It turns out that the SunPro C++ compiler does not properly
5247 # handle `-M -o', and we need to detect this.
5248 depcmd
="depmode=$depmode \
5249 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5250 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5251 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5252 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5253 if env
$depcmd > conftest.err
2>&1 &&
5254 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5255 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5256 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5257 # icc doesn't choke on unknown options, it will just issue warnings
5258 # or remarks (even with -Werror). So we grep stderr for any message
5259 # that says an option was ignored or not supported.
5260 # When given -MP, icc 7.0 and 7.1 complain thusly:
5261 # icc: Command line warning: ignoring option '-M'; no argument required
5262 # The diagnosis changed in icc 8.0:
5263 # icc: Command line remark: option '-MP' not supported
5264 if (grep 'ignoring option' conftest.err ||
5265 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5266 am_cv_CXX_dependencies_compiler_type
=$depmode
5267 $as_echo "$as_me:$LINENO: success" >&5
5271 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5272 sed -e 's/^/| /' < conftest.err
>&5
5278 am_cv_CXX_dependencies_compiler_type
=none
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5283 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5284 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
5285 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
5286 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5291 # Checks for header files.
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5293 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5294 if ${ac_cv_header_time+:} false
; then :
5295 $as_echo_n "(cached) " >&6
5297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <sys/types.h>
5300 #include <sys/time.h>
5306 if ((struct tm *) 0)
5312 if ac_fn_c_try_compile
"$LINENO"; then :
5313 ac_cv_header_time
=yes
5315 ac_cv_header_time
=no
5317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5320 $as_echo "$ac_cv_header_time" >&6; }
5321 if test $ac_cv_header_time = yes; then
5323 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5328 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5329 if ${gcc_cv_header_string+:} false
; then :
5330 $as_echo_n "(cached) " >&6
5332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5335 #include <strings.h>
5344 if ac_fn_c_try_compile
"$LINENO"; then :
5345 gcc_cv_header_string
=yes
5347 gcc_cv_header_string
=no
5349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5352 $as_echo "$gcc_cv_header_string" >&6; }
5353 if test $gcc_cv_header_string = yes; then
5355 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5360 for ac_header
in locale.h fcntl.h limits.h stddef.h \
5361 stdlib.h
strings.h string.h sys
/file.h unistd.h
5363 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5364 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5365 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5366 cat >>confdefs.h
<<_ACEOF
5367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5375 # Checks for typedefs, structures, and compiler characteristics.
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5377 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5378 if ${ac_cv_c_bigendian+:} false
; then :
5379 $as_echo_n "(cached) " >&6
5381 ac_cv_c_bigendian
=unknown
5382 # See if we're dealing with a universal compiler.
5383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #ifndef __APPLE_CC__
5386 not a universal capable compiler
5391 if ac_fn_c_try_compile
"$LINENO"; then :
5393 # Check for potential -arch flags. It is not universal unless
5394 # there are at least two -arch flags with different values.
5397 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5398 if test -n "$ac_prev"; then
5400 i?
86 | x86_64 | ppc | ppc64
)
5401 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5404 ac_cv_c_bigendian
=universal
5410 elif test "x$ac_word" = "x-arch"; then
5415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5416 if test $ac_cv_c_bigendian = unknown
; then
5417 # See if sys/param.h defines the BYTE_ORDER macro.
5418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 #include <sys/types.h>
5421 #include <sys/param.h>
5426 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5427 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5436 if ac_fn_c_try_compile
"$LINENO"; then :
5437 # It does; now see whether it defined to BIG_ENDIAN or not.
5438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 #include <sys/types.h>
5441 #include <sys/param.h>
5446 #if BYTE_ORDER != BIG_ENDIAN
5454 if ac_fn_c_try_compile
"$LINENO"; then :
5455 ac_cv_c_bigendian
=yes
5457 ac_cv_c_bigendian
=no
5459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5463 if test $ac_cv_c_bigendian = unknown
; then
5464 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5472 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5480 if ac_fn_c_try_compile
"$LINENO"; then :
5481 # It does; now see whether it defined to _BIG_ENDIAN or not.
5482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5497 if ac_fn_c_try_compile
"$LINENO"; then :
5498 ac_cv_c_bigendian
=yes
5500 ac_cv_c_bigendian
=no
5502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5506 if test $ac_cv_c_bigendian = unknown
; then
5507 # Compile a test program.
5508 if test "$cross_compiling" = yes; then :
5509 # Try to guess by grepping values from an object file.
5510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 short int ascii_mm[] =
5513 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5514 short int ascii_ii[] =
5515 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5516 int use_ascii (int i) {
5517 return ascii_mm[i] + ascii_ii[i];
5519 short int ebcdic_ii[] =
5520 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5521 short int ebcdic_mm[] =
5522 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5523 int use_ebcdic (int i) {
5524 return ebcdic_mm[i] + ebcdic_ii[i];
5531 return use_ascii (foo) == use_ebcdic (foo);
5536 if ac_fn_c_try_compile
"$LINENO"; then :
5537 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5538 ac_cv_c_bigendian
=yes
5540 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5541 if test "$ac_cv_c_bigendian" = unknown
; then
5542 ac_cv_c_bigendian
=no
5544 # finding both strings is unlikely to happen, but who knows?
5545 ac_cv_c_bigendian
=unknown
5549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 $ac_includes_default
5558 /* Are we little or big endian? From Harbison&Steele. */
5562 char c[sizeof (long int)];
5565 return u.c[sizeof (long int) - 1] == 1;
5571 if ac_fn_c_try_run
"$LINENO"; then :
5572 ac_cv_c_bigendian
=no
5574 ac_cv_c_bigendian
=yes
5576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5583 $as_echo "$ac_cv_c_bigendian" >&6; }
5584 case $ac_cv_c_bigendian in #(
5586 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5592 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5596 as_fn_error $?
"unknown endianness
5597 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5601 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5602 if ${ac_cv_c_const+:} false
; then :
5603 $as_echo_n "(cached) " >&6
5605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5613 /* Ultrix mips cc rejects this sort of thing. */
5614 typedef int charset[2];
5615 const charset cs = { 0, 0 };
5616 /* SunOS 4.1.1 cc rejects this. */
5617 char const *const *pcpcc;
5619 /* NEC SVR4.0.2 mips cc rejects this. */
5620 struct point {int x, y;};
5621 static struct point const zero = {0,0};
5622 /* AIX XL C 1.02.0.0 rejects this.
5623 It does not let you subtract one const X* pointer from another in
5624 an arm of an if-expression whose if-part is not a constant
5626 const char *g = "string";
5627 pcpcc = &g + (g ? g-g : 0);
5628 /* HPUX 7.0 cc rejects these. */
5630 ppc = (char**) pcpcc;
5631 pcpcc = (char const *const *) ppc;
5632 { /* SCO 3.2v4 cc rejects this sort of thing. */
5635 char const *s = 0 ? (char *) 0 : (char const *) 0;
5640 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5642 const int *foo = &x[0];
5645 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5646 typedef const int *iptr;
5650 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5651 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5652 struct s { int j; const int *ap[3]; } bx;
5653 struct s *b = &bx; b->j = 5;
5655 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5659 return !cs[0] && !zero.x;
5666 if ac_fn_c_try_compile
"$LINENO"; then :
5671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5674 $as_echo "$ac_cv_c_const" >&6; }
5675 if test $ac_cv_c_const = no
; then
5677 $as_echo "#define const /**/" >>confdefs.h
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5682 $as_echo_n "checking for inline... " >&6; }
5683 if ${ac_cv_c_inline+:} false
; then :
5684 $as_echo_n "(cached) " >&6
5687 for ac_kw
in inline __inline__ __inline
; do
5688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5692 static $ac_kw foo_t static_foo () {return 0; }
5693 $ac_kw foo_t foo () {return 0; }
5697 if ac_fn_c_try_compile
"$LINENO"; then :
5698 ac_cv_c_inline
=$ac_kw
5700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5701 test "$ac_cv_c_inline" != no
&& break
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5706 $as_echo "$ac_cv_c_inline" >&6; }
5708 case $ac_cv_c_inline in
5711 case $ac_cv_c_inline in
5713 *) ac_val
=$ac_cv_c_inline;;
5715 cat >>confdefs.h
<<_ACEOF
5717 #define inline $ac_val
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5724 $as_echo_n "checking for obstacks... " >&6; }
5725 if ${ac_cv_func_obstack+:} false
; then :
5726 $as_echo_n "(cached) " >&6
5728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5730 $ac_includes_default
5731 #include "obstack.h"
5736 #define obstack_chunk_alloc malloc
5737 #define obstack_chunk_free free
5738 obstack_init (&mem);
5739 obstack_free (&mem, 0);
5744 if ac_fn_c_try_link
"$LINENO"; then :
5745 ac_cv_func_obstack
=yes
5747 ac_cv_func_obstack
=no
5749 rm -f core conftest.err conftest.
$ac_objext \
5750 conftest
$ac_exeext conftest.
$ac_ext
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5753 $as_echo "$ac_cv_func_obstack" >&6; }
5754 if test $ac_cv_func_obstack = yes; then
5756 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5759 case " $LIBOBJS " in
5760 *" obstack.$ac_objext "* ) ;;
5761 *) LIBOBJS
="$LIBOBJS obstack.$ac_objext"
5767 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5768 if test "x$ac_cv_type_off_t" = xyes
; then :
5772 cat >>confdefs.h
<<_ACEOF
5773 #define off_t long int
5778 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5779 if test "x$ac_cv_type_size_t" = xyes
; then :
5783 cat >>confdefs.h
<<_ACEOF
5784 #define size_t unsigned int
5789 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5790 if test "x$ac_cv_type_ssize_t" = xyes
; then :
5794 cat >>confdefs.h
<<_ACEOF
5801 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5802 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
5804 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5807 for ac_type
in 'unsigned int' 'unsigned long int' \
5808 'unsigned long long int'; do
5809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5811 $ac_includes_default
5815 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5817 return test_array [0];
5823 if ac_fn_c_try_compile
"$LINENO"; then :
5825 cat >>confdefs.h
<<_ACEOF
5826 #define uintptr_t $ac_type
5831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5832 test -z "$ac_type" && break
5837 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5838 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
5842 cat >>confdefs.h
<<_ACEOF
5843 #define ptrdiff_t int
5848 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5849 case $ac_cv_c_uint64_t in #(
5853 $as_echo "#define _UINT64_T 1" >>confdefs.h
5856 cat >>confdefs.h
<<_ACEOF
5857 #define uint64_t $ac_cv_c_uint64_t
5862 if test x
"$ac_cv_c_uint64_t" = x
"no"; then
5863 as_fn_error $?
"uint64_t not found" "$LINENO" 5
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5866 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5867 if ${ac_cv_struct_tm+:} false
; then :
5868 $as_echo_n "(cached) " >&6
5870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872 #include <sys/types.h>
5879 int *p = &tm.tm_sec;
5885 if ac_fn_c_try_compile
"$LINENO"; then :
5886 ac_cv_struct_tm
=time.h
5888 ac_cv_struct_tm
=sys
/time.h
5890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5893 $as_echo "$ac_cv_struct_tm" >&6; }
5894 if test $ac_cv_struct_tm = sys
/time.h
; then
5896 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5900 # The cast to long int works around a bug in the HP C Compiler
5901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5903 # This bug is HP SR number 8606223364.
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5905 $as_echo_n "checking size of int... " >&6; }
5906 if ${ac_cv_sizeof_int+:} false
; then :
5907 $as_echo_n "(cached) " >&6
5909 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5912 if test "$ac_cv_type_int" = yes; then
5913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5915 as_fn_error
77 "cannot compute sizeof (int)
5916 See \`config.log' for more details" "$LINENO" 5; }
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5924 $as_echo "$ac_cv_sizeof_int" >&6; }
5928 cat >>confdefs.h
<<_ACEOF
5929 #define SIZEOF_INT $ac_cv_sizeof_int
5933 # The cast to long int works around a bug in the HP C Compiler
5934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5936 # This bug is HP SR number 8606223364.
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5938 $as_echo_n "checking size of long... " >&6; }
5939 if ${ac_cv_sizeof_long+:} false
; then :
5940 $as_echo_n "(cached) " >&6
5942 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5945 if test "$ac_cv_type_long" = yes; then
5946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5948 as_fn_error
77 "cannot compute sizeof (long)
5949 See \`config.log' for more details" "$LINENO" 5; }
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5957 $as_echo "$ac_cv_sizeof_long" >&6; }
5961 cat >>confdefs.h
<<_ACEOF
5962 #define SIZEOF_LONG $ac_cv_sizeof_long
5967 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
5969 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5970 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5971 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5972 cat >>confdefs.h
<<_ACEOF
5973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5979 ac_fn_c_check_decl
"$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5980 if test "x$ac_cv_have_decl_abort" = xyes
; then :
5986 cat >>confdefs.h
<<_ACEOF
5987 #define HAVE_DECL_ABORT $ac_have_decl
5989 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5990 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
5996 cat >>confdefs.h
<<_ACEOF
5997 #define HAVE_DECL_ASPRINTF $ac_have_decl
5999 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
6000 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
6001 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
6007 cat >>confdefs.h
<<_ACEOF
6008 #define HAVE_DECL_BASENAME $ac_have_decl
6010 ac_fn_c_check_decl
"$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
6011 if test "x$ac_cv_have_decl_errno" = xyes
; then :
6017 cat >>confdefs.h
<<_ACEOF
6018 #define HAVE_DECL_ERRNO $ac_have_decl
6020 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
6021 if test "x$ac_cv_have_decl_getopt" = xyes
; then :
6027 cat >>confdefs.h
<<_ACEOF
6028 #define HAVE_DECL_GETOPT $ac_have_decl
6030 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6031 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
6037 cat >>confdefs.h
<<_ACEOF
6038 #define HAVE_DECL_VASPRINTF $ac_have_decl
6041 ac_fn_c_check_decl
"$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
6042 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes
; then :
6048 cat >>confdefs.h
<<_ACEOF
6049 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
6051 ac_fn_c_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
6052 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
; then :
6058 cat >>confdefs.h
<<_ACEOF
6059 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
6061 ac_fn_c_check_decl
"$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
6062 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes
; then :
6068 cat >>confdefs.h
<<_ACEOF
6069 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
6071 ac_fn_c_check_decl
"$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
6072 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes
; then :
6078 cat >>confdefs.h
<<_ACEOF
6079 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
6081 ac_fn_c_check_decl
"$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
6082 if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes
; then :
6088 cat >>confdefs.h
<<_ACEOF
6089 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
6091 ac_fn_c_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
6092 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
; then :
6098 cat >>confdefs.h
<<_ACEOF
6099 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6101 ac_fn_c_check_decl
"$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6102 if test "x$ac_cv_have_decl_fileno_unlocked" = xyes
; then :
6108 cat >>confdefs.h
<<_ACEOF
6109 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6111 ac_fn_c_check_decl
"$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6112 if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes
; then :
6118 cat >>confdefs.h
<<_ACEOF
6119 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6121 ac_fn_c_check_decl
"$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6122 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes
; then :
6128 cat >>confdefs.h
<<_ACEOF
6129 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6131 ac_fn_c_check_decl
"$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6132 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes
; then :
6138 cat >>confdefs.h
<<_ACEOF
6139 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6141 ac_fn_c_check_decl
"$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6142 if test "x$ac_cv_have_decl_fread_unlocked" = xyes
; then :
6148 cat >>confdefs.h
<<_ACEOF
6149 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6151 ac_fn_c_check_decl
"$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6152 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes
; then :
6158 cat >>confdefs.h
<<_ACEOF
6159 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6161 ac_fn_c_check_decl
"$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6162 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes
; then :
6168 cat >>confdefs.h
<<_ACEOF
6169 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6171 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6172 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
6178 cat >>confdefs.h
<<_ACEOF
6179 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6181 ac_fn_c_check_decl
"$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6182 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes
; then :
6188 cat >>confdefs.h
<<_ACEOF
6189 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6191 ac_fn_c_check_decl
"$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6192 if test "x$ac_cv_have_decl_putc_unlocked" = xyes
; then :
6198 cat >>confdefs.h
<<_ACEOF
6199 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6203 # Checks for library functions.
6204 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6205 # for constant arguments. Useless!
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6207 $as_echo_n "checking for working alloca.h... " >&6; }
6208 if ${ac_cv_working_alloca_h+:} false
; then :
6209 $as_echo_n "(cached) " >&6
6211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6217 char *p = (char *) alloca (2 * sizeof (int));
6223 if ac_fn_c_try_link
"$LINENO"; then :
6224 ac_cv_working_alloca_h
=yes
6226 ac_cv_working_alloca_h
=no
6228 rm -f core conftest.err conftest.
$ac_objext \
6229 conftest
$ac_exeext conftest.
$ac_ext
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6232 $as_echo "$ac_cv_working_alloca_h" >&6; }
6233 if test $ac_cv_working_alloca_h = yes; then
6235 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6240 $as_echo_n "checking for alloca... " >&6; }
6241 if ${ac_cv_func_alloca_works+:} false
; then :
6242 $as_echo_n "(cached) " >&6
6244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6247 # define alloca __builtin_alloca
6250 # include <malloc.h>
6251 # define alloca _alloca
6253 # ifdef HAVE_ALLOCA_H
6254 # include <alloca.h>
6259 # ifndef alloca /* predefined by HP cc +Olibcalls */
6260 void *alloca (size_t);
6270 char *p = (char *) alloca (1);
6276 if ac_fn_c_try_link
"$LINENO"; then :
6277 ac_cv_func_alloca_works
=yes
6279 ac_cv_func_alloca_works
=no
6281 rm -f core conftest.err conftest.
$ac_objext \
6282 conftest
$ac_exeext conftest.
$ac_ext
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6285 $as_echo "$ac_cv_func_alloca_works" >&6; }
6287 if test $ac_cv_func_alloca_works = yes; then
6289 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6292 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6293 # that cause trouble. Some versions do not even contain alloca or
6294 # contain a buggy version. If you still want to use their alloca,
6295 # use ar to extract alloca.o from them instead of compiling alloca.c.
6297 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6299 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6303 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6304 if ${ac_cv_os_cray+:} false
; then :
6305 $as_echo_n "(cached) " >&6
6307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 #if defined CRAY && ! defined CRAY2
6316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6317 $EGREP "webecray" >/dev
/null
2>&1; then :
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6326 $as_echo "$ac_cv_os_cray" >&6; }
6327 if test $ac_cv_os_cray = yes; then
6328 for ac_func
in _getb67 GETB67 getb67
; do
6329 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6330 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6331 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6333 cat >>confdefs.h
<<_ACEOF
6334 #define CRAY_STACKSEG_END $ac_func
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6344 $as_echo_n "checking stack direction for C alloca... " >&6; }
6345 if ${ac_cv_c_stack_direction+:} false
; then :
6346 $as_echo_n "(cached) " >&6
6348 if test "$cross_compiling" = yes; then :
6349 ac_cv_c_stack_direction
=0
6351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 $ac_includes_default
6355 find_stack_direction (int *addr, int depth)
6360 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6361 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6366 main (int argc, char **argv)
6368 return find_stack_direction (0, argc + !argv + 20) < 0;
6371 if ac_fn_c_try_run
"$LINENO"; then :
6372 ac_cv_c_stack_direction
=1
6374 ac_cv_c_stack_direction
=-1
6376 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6377 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6382 $as_echo "$ac_cv_c_stack_direction" >&6; }
6383 cat >>confdefs.h
<<_ACEOF
6384 #define STACK_DIRECTION $ac_cv_c_stack_direction
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6391 $as_echo_n "checking for ANSI C header files... " >&6; }
6392 if ${ac_cv_header_stdc+:} false
; then :
6393 $as_echo_n "(cached) " >&6
6395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6410 if ac_fn_c_try_compile
"$LINENO"; then :
6411 ac_cv_header_stdc
=yes
6413 ac_cv_header_stdc
=no
6415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6417 if test $ac_cv_header_stdc = yes; then
6418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6425 $EGREP "memchr" >/dev
/null
2>&1; then :
6428 ac_cv_header_stdc
=no
6434 if test $ac_cv_header_stdc = yes; then
6435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6442 $EGREP "free" >/dev
/null
2>&1; then :
6445 ac_cv_header_stdc
=no
6451 if test $ac_cv_header_stdc = yes; then
6452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6453 if test "$cross_compiling" = yes; then :
6456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6460 #if ((' ' & 0x0FF) == 0x020)
6461 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6464 # define ISLOWER(c) \
6465 (('a' <= (c) && (c) <= 'i') \
6466 || ('j' <= (c) && (c) <= 'r') \
6467 || ('s' <= (c) && (c) <= 'z'))
6468 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6471 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6476 for (i = 0; i < 256; i++)
6477 if (XOR (islower (i), ISLOWER (i))
6478 || toupper (i) != TOUPPER (i))
6483 if ac_fn_c_try_run
"$LINENO"; then :
6486 ac_cv_header_stdc
=no
6488 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6489 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6495 $as_echo "$ac_cv_header_stdc" >&6; }
6496 if test $ac_cv_header_stdc = yes; then
6498 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6504 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6505 if ${am_cv_langinfo_codeset+:} false
; then :
6506 $as_echo_n "(cached) " >&6
6508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #include <langinfo.h>
6514 char* cs = nl_langinfo(CODESET);
6519 if ac_fn_c_try_link
"$LINENO"; then :
6520 am_cv_langinfo_codeset
=yes
6522 am_cv_langinfo_codeset
=no
6524 rm -f core conftest.err conftest.
$ac_objext \
6525 conftest
$ac_exeext conftest.
$ac_ext
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6529 $as_echo "$am_cv_langinfo_codeset" >&6; }
6530 if test $am_cv_langinfo_codeset = yes; then
6532 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6536 # If we haven't got the data from the intl directory,
6537 # assume NLS is disabled.
6546 if test -f ..
/intl
/config.intl
; then
6547 . ..
/intl
/config.intl
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6550 $as_echo_n "checking whether NLS is requested... " >&6; }
6551 if test x
"$USE_NLS" != xyes
; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6556 $as_echo "yes" >&6; }
6558 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6562 $as_echo_n "checking for catalogs to be installed... " >&6; }
6563 # Look for .po and .gmo files in the source directory.
6566 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6567 # If there aren't any .gmo files the shell will give us the
6568 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6570 case "$cat" in *\
**)
6573 # The quadruple backslash is collapsed to a double backslash
6574 # by the backticks, then collapsed again by the double quotes,
6575 # leaving us with one backslash in the sed expression (right
6576 # before the dot that mustn't act as a wildcard).
6577 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6578 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6579 # The user is allowed to set LINGUAS to a list of languages to
6580 # install catalogs for. If it's empty that means "all of them."
6581 if test "x$LINGUAS" = x
; then
6582 CATALOGS
="$CATALOGS $cat"
6583 XLINGUAS
="$XLINGUAS $lang"
6585 case "$LINGUAS" in *$lang*)
6586 CATALOGS
="$CATALOGS $cat"
6587 XLINGUAS
="$XLINGUAS $lang"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6594 $as_echo "$LINGUAS" >&6; }
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6608 $as_echo_n "checking for uchar... " >&6; }
6609 if ${gcc_cv_type_uchar+:} false
; then :
6610 $as_echo_n "(cached) " >&6
6612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6615 #include <sys/types.h>
6620 if ((uchar *)0) return 0;
6621 if (sizeof(uchar)) return 0;
6626 if ac_fn_c_try_compile
"$LINENO"; then :
6627 ac_cv_type_uchar
=yes
6631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6634 $as_echo "$gcc_cv_type_uchar" >&6; }
6635 if test $ac_cv_type_uchar = yes; then
6637 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6641 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6642 # iconv() prototype.
6644 ac_cpp
='$CXXCPP $CPPFLAGS'
6645 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6650 if test "X$prefix" = "XNONE"; then
6651 acl_final_prefix
="$ac_default_prefix"
6653 acl_final_prefix
="$prefix"
6655 if test "X$exec_prefix" = "XNONE"; then
6656 acl_final_exec_prefix
='${prefix}'
6658 acl_final_exec_prefix
="$exec_prefix"
6660 acl_save_prefix
="$prefix"
6661 prefix
="$acl_final_prefix"
6662 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
6663 prefix
="$acl_save_prefix"
6666 # Check whether --with-gnu-ld was given.
6667 if test "${with_gnu_ld+set}" = set; then :
6668 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6673 # Prepare PATH_SEPARATOR.
6674 # The user is always right.
6675 if test "${PATH_SEPARATOR+set}" != set; then
6676 echo "#! /bin/sh" >conf$$.sh
6677 echo "exit 0" >>conf$$.sh
6679 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6687 if test "$GCC" = yes; then
6688 # Check if gcc -print-prog-name=ld gives a path.
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6690 $as_echo_n "checking for ld used by GCC... " >&6; }
6693 # gcc leaves a trailing carriage return which upsets mingw
6694 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6696 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6699 # Accept absolute paths.
6700 [\\/]* |
[A-Za-z
]:[\\/]*)
6701 re_direlt
='/[^/][^/]*/\.\./'
6702 # Canonicalize the path of ld
6703 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6704 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6705 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6707 test -z "$LD" && LD
="$ac_prog"
6710 # If it fails, then pretend we aren't using GCC.
6714 # If it is relative, then search for the first ld in PATH.
6718 elif test "$with_gnu_ld" = yes; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6720 $as_echo_n "checking for GNU ld... " >&6; }
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6723 $as_echo_n "checking for non-GNU ld... " >&6; }
6725 if ${acl_cv_path_LD+:} false
; then :
6726 $as_echo_n "(cached) " >&6
6728 if test -z "$LD"; then
6729 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6730 for ac_dir
in $PATH; do
6731 test -z "$ac_dir" && ac_dir
=.
6732 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6733 acl_cv_path_LD
="$ac_dir/$ac_prog"
6734 # Check to see if the program is GNU ld. I'd rather use --version,
6735 # but apparently some GNU ld's only accept -v.
6736 # Break only if it was the GNU/non-GNU ld that we prefer.
6737 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6738 test "$with_gnu_ld" != no
&& break
6740 test "$with_gnu_ld" != yes && break
6746 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
6750 LD
="$acl_cv_path_LD"
6751 if test -n "$LD"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6753 $as_echo "$LD" >&6; }
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6758 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6760 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6761 if ${acl_cv_prog_gnu_ld+:} false
; then :
6762 $as_echo_n "(cached) " >&6
6764 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6765 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6766 acl_cv_prog_gnu_ld
=yes
6768 acl_cv_prog_gnu_ld
=no
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6772 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6773 with_gnu_ld
=$acl_cv_prog_gnu_ld
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6778 $as_echo_n "checking for shared library run path origin... " >&6; }
6779 if ${acl_cv_rpath+:} false
; then :
6780 $as_echo_n "(cached) " >&6
6783 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
6784 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6791 $as_echo "$acl_cv_rpath" >&6; }
6793 libext
="$acl_cv_libext"
6794 shlibext
="$acl_cv_shlibext"
6795 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
6796 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
6797 hardcode_direct
="$acl_cv_hardcode_direct"
6798 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
6799 # Check whether --enable-rpath was given.
6800 if test "${enable_rpath+set}" = set; then :
6801 enableval
=$enable_rpath; :
6815 acl_save_prefix
="$prefix"
6816 prefix
="$acl_final_prefix"
6817 acl_save_exec_prefix
="$exec_prefix"
6818 exec_prefix
="$acl_final_exec_prefix"
6820 eval additional_includedir
=\"$includedir\"
6821 eval additional_libdir
=\"$libdir\"
6823 exec_prefix
="$acl_save_exec_prefix"
6824 prefix
="$acl_save_prefix"
6827 # Check whether --with-libiconv-prefix was given.
6828 if test "${with_libiconv_prefix+set}" = set; then :
6829 withval
=$with_libiconv_prefix;
6830 if test "X$withval" = "Xno"; then
6833 if test "X$withval" = "X"; then
6835 acl_save_prefix
="$prefix"
6836 prefix
="$acl_final_prefix"
6837 acl_save_exec_prefix
="$exec_prefix"
6838 exec_prefix
="$acl_final_exec_prefix"
6840 eval additional_includedir
=\"$includedir\"
6841 eval additional_libdir
=\"$libdir\"
6843 exec_prefix
="$acl_save_exec_prefix"
6844 prefix
="$acl_save_prefix"
6847 additional_includedir
="$withval/include"
6848 additional_libdir
="$withval/lib"
6855 # Check whether --with-libiconv-type was given.
6856 if test "${with_libiconv_type+set}" = set; then :
6857 withval
=$with_libiconv_type; with_libiconv_type
=$withval
6859 with_libiconv_type
=auto
6862 lib_type
=`eval echo \$with_libiconv_type`
6869 names_already_handled
=
6870 names_next_round
='iconv '
6871 while test -n "$names_next_round"; do
6872 names_this_round
="$names_next_round"
6874 for name
in $names_this_round; do
6876 for n
in $names_already_handled; do
6877 if test "$n" = "$name"; then
6882 if test -z "$already_handled"; then
6883 names_already_handled
="$names_already_handled $name"
6884 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6885 eval value
=\"\
$HAVE_LIB$uppername\"
6886 if test -n "$value"; then
6887 if test "$value" = yes; then
6888 eval value
=\"\
$LIB$uppername\"
6889 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
6890 eval value
=\"\
$LTLIB$uppername\"
6891 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
6900 if test $use_additional = yes; then
6901 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
6902 found_dir
="$additional_libdir"
6903 found_so
="$additional_libdir/lib$name.$shlibext"
6904 if test -f "$additional_libdir/lib$name.la"; then
6905 found_la
="$additional_libdir/lib$name.la"
6907 elif test x
$lib_type != xshared
; then
6908 if test -f "$additional_libdir/lib$name.$libext"; then
6909 found_dir
="$additional_libdir"
6910 found_a
="$additional_libdir/lib$name.$libext"
6911 if test -f "$additional_libdir/lib$name.la"; then
6912 found_la
="$additional_libdir/lib$name.la"
6917 if test "X$found_dir" = "X"; then
6918 for x
in $LDFLAGS $LTLIBICONV; do
6920 acl_save_prefix
="$prefix"
6921 prefix
="$acl_final_prefix"
6922 acl_save_exec_prefix
="$exec_prefix"
6923 exec_prefix
="$acl_final_exec_prefix"
6925 exec_prefix
="$acl_save_exec_prefix"
6926 prefix
="$acl_save_prefix"
6930 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6931 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
6933 found_so
="$dir/lib$name.$shlibext"
6934 if test -f "$dir/lib$name.la"; then
6935 found_la
="$dir/lib$name.la"
6937 elif test x
$lib_type != xshared
; then
6938 if test -f "$dir/lib$name.$libext"; then
6940 found_a
="$dir/lib$name.$libext"
6941 if test -f "$dir/lib$name.la"; then
6942 found_la
="$dir/lib$name.la"
6948 if test "X$found_dir" != "X"; then
6953 if test "X$found_dir" != "X"; then
6954 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6955 if test "X$found_so" != "X"; then
6956 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
6957 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6960 for x
in $ltrpathdirs; do
6961 if test "X$x" = "X$found_dir"; then
6966 if test -z "$haveit"; then
6967 ltrpathdirs
="$ltrpathdirs $found_dir"
6969 if test "$hardcode_direct" = yes; then
6970 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6972 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6973 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
6975 for x
in $rpathdirs; do
6976 if test "X$x" = "X$found_dir"; then
6981 if test -z "$haveit"; then
6982 rpathdirs
="$rpathdirs $found_dir"
6986 for x
in $LDFLAGS $LIBICONV; do
6988 acl_save_prefix
="$prefix"
6989 prefix
="$acl_final_prefix"
6990 acl_save_exec_prefix
="$exec_prefix"
6991 exec_prefix
="$acl_final_exec_prefix"
6993 exec_prefix
="$acl_save_exec_prefix"
6994 prefix
="$acl_save_prefix"
6996 if test "X$x" = "X-L$found_dir"; then
7001 if test -z "$haveit"; then
7002 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7004 if test "$hardcode_minus_L" != no
; then
7005 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7007 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7013 if test "X$found_a" != "X"; then
7014 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7016 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7019 additional_includedir
=
7020 case "$found_dir" in
7022 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7023 additional_includedir
="$basedir/include"
7026 if test "X$additional_includedir" != "X"; then
7027 if test "X$additional_includedir" != "X/usr/include"; then
7029 if test "X$additional_includedir" = "X/usr/local/include"; then
7030 if test -n "$GCC"; then
7032 linux
*) haveit
=yes;;
7036 if test -z "$haveit"; then
7037 for x
in $CPPFLAGS $INCICONV; do
7039 acl_save_prefix
="$prefix"
7040 prefix
="$acl_final_prefix"
7041 acl_save_exec_prefix
="$exec_prefix"
7042 exec_prefix
="$acl_final_exec_prefix"
7044 exec_prefix
="$acl_save_exec_prefix"
7045 prefix
="$acl_save_prefix"
7047 if test "X$x" = "X-I$additional_includedir"; then
7052 if test -z "$haveit"; then
7053 if test -d "$additional_includedir"; then
7054 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7060 if test -n "$found_la"; then
7061 save_libdir
="$libdir"
7063 */* |
*\\*) .
"$found_la" ;;
7064 *) .
"./$found_la" ;;
7066 libdir
="$save_libdir"
7067 for dep
in $dependency_libs; do
7070 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7071 if test "X$additional_libdir" != "X/usr/lib"; then
7073 if test "X$additional_libdir" = "X/usr/local/lib"; then
7074 if test -n "$GCC"; then
7076 linux
*) haveit
=yes;;
7080 if test -z "$haveit"; then
7082 for x
in $LDFLAGS $LIBICONV; do
7084 acl_save_prefix
="$prefix"
7085 prefix
="$acl_final_prefix"
7086 acl_save_exec_prefix
="$exec_prefix"
7087 exec_prefix
="$acl_final_exec_prefix"
7089 exec_prefix
="$acl_save_exec_prefix"
7090 prefix
="$acl_save_prefix"
7092 if test "X$x" = "X-L$additional_libdir"; then
7097 if test -z "$haveit"; then
7098 if test -d "$additional_libdir"; then
7099 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7103 for x
in $LDFLAGS $LTLIBICONV; do
7105 acl_save_prefix
="$prefix"
7106 prefix
="$acl_final_prefix"
7107 acl_save_exec_prefix
="$exec_prefix"
7108 exec_prefix
="$acl_final_exec_prefix"
7110 exec_prefix
="$acl_save_exec_prefix"
7111 prefix
="$acl_save_prefix"
7113 if test "X$x" = "X-L$additional_libdir"; then
7118 if test -z "$haveit"; then
7119 if test -d "$additional_libdir"; then
7120 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7127 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7128 if test "$enable_rpath" != no
; then
7130 for x
in $rpathdirs; do
7131 if test "X$x" = "X$dir"; then
7136 if test -z "$haveit"; then
7137 rpathdirs
="$rpathdirs $dir"
7140 for x
in $ltrpathdirs; do
7141 if test "X$x" = "X$dir"; then
7146 if test -z "$haveit"; then
7147 ltrpathdirs
="$ltrpathdirs $dir"
7152 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7155 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7158 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7159 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7165 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
7166 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7167 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7169 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7170 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7177 if test "X$rpathdirs" != "X"; then
7178 if test -n "$hardcode_libdir_separator"; then
7180 for found_dir
in $rpathdirs; do
7181 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7183 acl_save_libdir
="$libdir"
7185 eval flag
=\"$hardcode_libdir_flag_spec\"
7186 libdir
="$acl_save_libdir"
7187 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7189 for found_dir
in $rpathdirs; do
7190 acl_save_libdir
="$libdir"
7192 eval flag
=\"$hardcode_libdir_flag_spec\"
7193 libdir
="$acl_save_libdir"
7194 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7198 if test "X$ltrpathdirs" != "X"; then
7199 for found_dir
in $ltrpathdirs; do
7200 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7211 $as_echo_n "checking for iconv... " >&6; }
7212 if ${am_cv_func_iconv+:} false
; then :
7213 $as_echo_n "(cached) " >&6
7216 am_cv_func_iconv
="no, consider installing GNU libiconv"
7218 am_save_CPPFLAGS
="$CPPFLAGS"
7219 CPPFLAGS
="$CPPFLAGS $INCICONV"
7220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7227 iconv_t cd = iconv_open("","");
7228 iconv(cd,NULL,NULL,NULL,NULL);
7234 if ac_fn_cxx_try_link
"$LINENO"; then :
7235 am_cv_func_iconv
=yes
7237 rm -f core conftest.err conftest.
$ac_objext \
7238 conftest
$ac_exeext conftest.
$ac_ext
7239 CPPFLAGS
="$am_save_CPPFLAGS"
7241 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
7242 for _libs
in .libs _libs
; do
7243 am_save_CPPFLAGS
="$CPPFLAGS"
7244 am_save_LIBS
="$LIBS"
7245 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
7246 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7254 iconv_t cd = iconv_open("","");
7255 iconv(cd,NULL,NULL,NULL,NULL);
7261 if ac_fn_cxx_try_link
"$LINENO"; then :
7262 INCICONV
="-I../libiconv/include"
7263 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
7264 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
7266 am_cv_func_iconv
=yes
7268 rm -f core conftest.err conftest.
$ac_objext \
7269 conftest
$ac_exeext conftest.
$ac_ext
7270 CPPFLAGS
="$am_save_CPPFLAGS"
7271 LIBS
="$am_save_LIBS"
7272 if test "$am_cv_func_iconv" = "yes"; then
7278 if test "$am_cv_func_iconv" != yes; then
7279 am_save_CPPFLAGS
="$CPPFLAGS"
7280 am_save_LIBS
="$LIBS"
7281 CPPFLAGS
="$CPPFLAGS $INCICONV"
7282 LIBS
="$LIBS $LIBICONV"
7283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7290 iconv_t cd = iconv_open("","");
7291 iconv(cd,NULL,NULL,NULL,NULL);
7297 if ac_fn_cxx_try_link
"$LINENO"; then :
7299 am_cv_func_iconv
=yes
7301 rm -f core conftest.err conftest.
$ac_objext \
7302 conftest
$ac_exeext conftest.
$ac_ext
7303 CPPFLAGS
="$am_save_CPPFLAGS"
7304 LIBS
="$am_save_LIBS"
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7309 $as_echo "$am_cv_func_iconv" >&6; }
7310 if test "$am_cv_func_iconv" = yes; then
7312 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7315 if test "$am_cv_lib_iconv" = yes; then
7317 for element
in $INCICONV; do
7319 for x
in $CPPFLAGS; do
7321 acl_save_prefix
="$prefix"
7322 prefix
="$acl_final_prefix"
7323 acl_save_exec_prefix
="$exec_prefix"
7324 exec_prefix
="$acl_final_exec_prefix"
7326 exec_prefix
="$acl_save_exec_prefix"
7327 prefix
="$acl_save_prefix"
7329 if test "X$x" = "X$element"; then
7334 if test -z "$haveit"; then
7335 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7340 $as_echo_n "checking how to link with libiconv... " >&6; }
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7342 $as_echo "$LIBICONV" >&6; }
7350 if test "$am_cv_func_iconv" = yes; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7352 $as_echo_n "checking for iconv declaration... " >&6; }
7353 if ${am_cv_proto_iconv+:} false
; then :
7354 $as_echo_n "(cached) " >&6
7357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7366 #if defined(__STDC__) || defined(__cplusplus)
7367 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7380 if ac_fn_cxx_try_compile
"$LINENO"; then :
7381 am_cv_proto_iconv_arg1
=""
7383 am_cv_proto_iconv_arg1
="const"
7385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7386 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);"
7389 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7391 }$am_cv_proto_iconv" >&5
7393 }$am_cv_proto_iconv" >&6; }
7395 cat >>confdefs.h
<<_ACEOF
7396 #define ICONV_CONST $am_cv_proto_iconv_arg1
7402 ac_cpp
='$CPP $CPPFLAGS'
7403 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7408 # More defines and substitutions.
7409 PACKAGE
="$PACKAGE_TARNAME"
7411 cat >>confdefs.h
<<_ACEOF
7412 #define PACKAGE "$PACKAGE"
7417 if test "x$enable_nls" != xno
; then
7418 USED_CATALOGS
='$(CATALOGS)'
7424 # Check whether --enable-maintainer-mode was given.
7425 if test "${enable_maintainer_mode+set}" = set; then :
7426 enableval
=$enable_maintainer_mode;
7428 enable_maintainer_mode
=no
7432 if test "x$enable_maintainer_mode" = xno
; then
7439 # Enable expensive internal checks
7441 if test -f $srcdir/..
/gcc
/DEV-PHASE \
7442 && test x
"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental
; then
7446 # Check whether --enable-checking was given.
7447 if test "${enable_checking+set}" = set; then :
7448 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7451 # Determine the default checks.
7452 if test x
$is_release = x
; then
7453 ac_checking_flags
=yes
7455 ac_checking_flags
=release
7459 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7460 for check
in release
$ac_checking_flags
7463 # these set all the flags to specific states
7464 yes|all
) ac_checking
=1 ; ac_assert_checking
=1 ; ac_valgrind_checking
= ;;
7465 no|none
) ac_checking
= ; ac_assert_checking
= ; ac_valgrind_checking
= ;;
7466 release
) ac_checking
= ; ac_assert_checking
=1 ; ac_valgrind_checking
= ;;
7467 # these enable particular checks
7468 assert
) ac_assert_checking
=1 ;;
7469 misc
) ac_checking
=1 ;;
7470 valgrind
) ac_valgrind_checking
=1 ;;
7477 if test x
$ac_checking != x
; then
7479 $as_echo "#define CHECKING_P 1" >>confdefs.h
7482 $as_echo "#define CHECKING_P 0" >>confdefs.h
7486 if test x
$ac_assert_checking != x
; then
7488 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7492 if test x
$ac_valgrind_checking != x
; then
7494 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7498 # Check whether --enable-canonical-system-headers was given.
7499 if test "${enable_canonical_system_headers+set}" = set; then :
7500 enableval
=$enable_canonical_system_headers;
7502 enable_canonical_system_headers
=yes
7505 if test $enable_canonical_system_headers != no
; then
7507 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7519 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7524 if ac_fn_c_try_compile
"$LINENO"; then :
7526 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7532 # Enable --enable-host-shared.
7533 # Check whether --enable-host-shared was given.
7534 if test "${enable_host_shared+set}" = set; then :
7535 enableval
=$enable_host_shared; PICFLAG
=-fPIC
7542 # Enable Intel CET on Intel CET enabled host if jit is enabled.
7543 # Check whether --enable-cet was given.
7544 if test "${enable_cet+set}" = set; then :
7545 enableval
=$enable_cet;
7546 case "$enableval" in
7548 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
7557 $as_echo_n "checking for CET support... " >&6; }
7560 i
[34567]86-*-linux* | x86_64-
*-linux*)
7562 cet_save_CFLAGS
="$CFLAGS"
7563 CFLAGS
="$CFLAGS -fcf-protection"
7564 case "$enable_cet" in
7566 # Check if target supports multi-byte NOPs
7567 # and if compiler and assembler support CET.
7568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7575 #if !defined(__SSE2__)
7576 #error target does not support multi-byte NOPs
7585 if ac_fn_c_try_compile
"$LINENO"; then :
7590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7593 # Check if compiler and assembler support CET.
7594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7605 if ac_fn_c_try_compile
"$LINENO"; then :
7610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7611 if test $support_cet = "no"; then
7612 if test x
$enable_bootstrap != xno \
7613 && test -z "${with_build_subdir}" \
7614 && (test ! -f ..
/stage_current \
7615 ||
test `cat ../stage_current` != "stage1"); then
7616 # Require CET support only for the final GCC build.
7617 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
7619 # Don't enable CET without CET support for non-bootstrap
7620 # build, in stage1 nor for build support.
7626 CFLAGS
="$cet_save_CFLAGS"
7634 cet_save_CFLAGS
="$CFLAGS"
7635 CFLAGS
="$CFLAGS -fcf-protection=none"
7636 cet_save_LDFLAGS
="$LDFLAGS"
7637 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
7638 if test x
$may_have_cet = xyes
; then
7639 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
7640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7651 if ac_fn_c_try_link
"$LINENO"; then :
7656 rm -f core conftest.err conftest.
$ac_objext \
7657 conftest
$ac_exeext conftest.
$ac_ext
7660 if test x
$may_have_cet = xyes
; then
7661 if test x
$cross_compiling = xno
; then
7662 if test "$cross_compiling" = yes; then :
7663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7665 as_fn_error $?
"cannot run test program while cross compiling
7666 See \`config.log' for more details" "$LINENO" 5; }
7668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7677 __attribute__ ((noinline, noclone))
7678 xxx (void (*f) (void))
7684 __attribute__ ((noinline, noclone))
7698 if ac_fn_c_try_run
"$LINENO"; then :
7703 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7704 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7707 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
7708 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
7712 # Enable CET in cross compiler if possible so that it will run on both
7713 # CET and non-CET hosts.
7716 if test x
$enable_cet = xyes
; then
7717 CET_HOST_FLAGS
="-fcf-protection"
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7719 $as_echo "yes" >&6; }
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722 $as_echo "no" >&6; }
7724 CFLAGS
="$cet_save_CFLAGS"
7725 LDFLAGS
="$cet_save_LDFLAGS"
7727 case x
$enable_languages in
7736 # Check whether --enable-valgrind-annotations was given.
7737 if test "${enable_valgrind_annotations+set}" = set; then :
7738 enableval
=$enable_valgrind_annotations;
7740 enable_valgrind_annotations
=no
7743 if test x
$enable_valgrind_annotations != xno \
7744 ||
test x
$ac_valgrind_checking != x
; then
7745 if (test $have_valgrind_h = no \
7746 && test $gcc_cv_header_memcheck_h = no \
7747 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7748 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7751 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7757 ac_config_headers
="$ac_config_headers config.h:config.in"
7759 ac_config_files
="$ac_config_files Makefile"
7761 cat >confcache
<<\_ACEOF
7762 # This file is a shell script that caches the results of configure
7763 # tests run on this system so they can be shared between configure
7764 # scripts and configure runs, see configure's option --config-cache.
7765 # It is not useful on other systems. If it contains results you don't
7766 # want to keep, you may remove or edit it.
7768 # config.status only pays attention to the cache file if you give it
7769 # the --recheck option to rerun configure.
7771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7777 # The following way of writing the cache mishandles newlines in values,
7778 # but we know of no workaround that is simple, portable, and efficient.
7779 # So, we kill variables containing newlines.
7780 # Ultrix sh set writes to stderr and can't be redirected directly,
7781 # and sets the high bit in the cache file unless we assign to the vars.
7783 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7784 eval ac_val
=\$
$ac_var
7788 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7792 _ | IFS | as_nl
) ;; #(
7793 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7794 *) { eval $ac_var=; unset $ac_var;} ;;
7800 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7801 *${as_nl}ac_space
=\
*)
7802 # `set' does not quote correctly, so add quotes: double-quote
7803 # substitution turns \\\\ into \\, and sed turns \\ into \.
7806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7809 # `set' quotes correctly as required by POSIX, so do not add quotes.
7810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7819 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7821 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7823 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7824 if test -w "$cache_file"; then
7825 if test "x$cache_file" != "x/dev/null"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7827 $as_echo "$as_me: updating cache $cache_file" >&6;}
7828 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7829 cat confcache
>"$cache_file"
7831 case $cache_file in #(
7833 mv -f confcache
"$cache_file"$$
&&
7834 mv -f "$cache_file"$$
"$cache_file" ;; #(
7836 mv -f confcache
"$cache_file" ;;
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7842 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7847 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7848 # Let make expand exec_prefix.
7849 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7851 DEFS
=-DHAVE_CONFIG_H
7856 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7857 # 1. Remove the extension, and $U if already installed.
7858 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7859 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7860 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7861 # will be set to the directory where LIBOBJS objects are built.
7862 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7863 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7867 LTLIBOBJS
=$ac_ltlibobjs
7872 : "${CONFIG_STATUS=./config.status}"
7874 ac_clean_files_save
=$ac_clean_files
7875 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7877 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7879 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7881 # Generated by $as_me.
7882 # Run this file to recreate the current configuration.
7883 # Compiler output produced by configure, useful for debugging
7884 # configure, is in config.log if it exists.
7890 SHELL=\${CONFIG_SHELL-$SHELL}
7893 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7894 ## -------------------- ##
7895 ## M4sh Initialization. ##
7896 ## -------------------- ##
7898 # Be more Bourne compatible
7899 DUALCASE
=1; export DUALCASE
# for MKS sh
7900 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7903 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7904 # is contrary to our usage. Disable this feature.
7905 alias -g '${1+"$@"}'='"$@"'
7906 setopt NO_GLOB_SUBST
7908 case `(set -o) 2>/dev/null` in #(
7920 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7921 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7923 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7924 # Prefer a ksh shell builtin over an external printf program on Solaris,
7925 # but without wasting forks for bash or zsh.
7926 if test -z "$BASH_VERSION$ZSH_VERSION" \
7927 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7928 as_echo='print
-r --'
7929 as_echo_n='print
-rn --'
7930 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7931 as_echo='printf %s
\n'
7932 as_echo_n='printf %s
'
7934 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7935 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7936 as_echo_n='/usr
/ucb
/echo -n'
7938 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7939 as_echo_n_body='eval
7943 expr "X$arg" : "X\\(.*\\)$as_nl";
7944 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7946 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7948 export as_echo_n_body
7949 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7952 as_echo='sh
-c $as_echo_body as_echo
'
7955 # The user is always right.
7956 if test "${PATH_SEPARATOR+set}" != set; then
7958 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7959 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7966 # We need space, tab and new line, in precisely that order. Quoting is
7967 # there to prevent editors from complaining about space-tab.
7968 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7969 # splitting by setting IFS to empty value.)
7972 # Find who we are. Look in the path if we contain no directory separator.
7975 *[\\/]* ) as_myself=$0 ;;
7976 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 test -z "$as_dir" && as_dir=.
7981 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7987 # We did not find ourselves, most probably we were run as `sh COMMAND'
7988 # in which case we are not to be found in the path.
7989 if test "x$as_myself" = x
; then
7992 if test ! -f "$as_myself"; then
7993 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7997 # Unset variables that we do not need and which cause bugs (e.g. in
7998 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7999 # suppresses any "Segmentation fault" message there. '((' could
8000 # trigger a bug in pdksh 5.2.14.
8001 for as_var
in BASH_ENV ENV MAIL MAILPATH
8002 do eval test x\
${$as_var+set} = xset \
8003 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8016 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8019 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8020 # ----------------------------------------
8021 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8022 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8023 # script with STATUS, using 1 if that was 0.
8026 as_status
=$1; test $as_status -eq 0 && as_status
=1
8028 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8029 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8031 $as_echo "$as_me: error: $2" >&2
8032 as_fn_exit
$as_status
8036 # as_fn_set_status STATUS
8037 # -----------------------
8038 # Set $? to STATUS, without forking.
8042 } # as_fn_set_status
8046 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8056 # Portably unset VAR.
8059 { eval $1=; unset $1;}
8061 as_unset
=as_fn_unset
8062 # as_fn_append VAR VALUE
8063 # ----------------------
8064 # Append the text in VALUE to the end of the definition contained in VAR. Take
8065 # advantage of any shell optimizations that allow amortized linear growth over
8066 # repeated appends, instead of the typical quadratic growth present in naive
8068 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8069 eval 'as_fn_append ()
8080 # as_fn_arith ARG...
8081 # ------------------
8082 # Perform arithmetic evaluation on the ARGs, and store the result in the
8083 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8084 # must be portable across $(()) and expr.
8085 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8086 eval 'as_fn_arith ()
8093 as_val
=`expr "$@" || test $? -eq 1`
8098 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8099 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8105 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8106 as_basename
=basename
8111 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8117 as_me
=`$as_basename -- "$0" ||
8118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8119 X"$0" : 'X\(//\)$' \| \
8120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8122 sed '/^.*\/\([^/][^/]*\)\/*$/{
8136 # Avoid depending upon Character Ranges.
8137 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8138 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8139 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8140 as_cr_digits
='0123456789'
8141 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8143 ECHO_C
= ECHO_N
= ECHO_T
=
8144 case `echo -n x` in #(((((
8146 case `echo 'xy\c'` in
8147 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8149 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8156 rm -f conf$$ conf$$.exe conf$$.
file
8157 if test -d conf$$.dir
; then
8158 rm -f conf$$.dir
/conf$$.
file
8161 mkdir conf$$.dir
2>/dev
/null
8163 if (echo >conf$$.
file) 2>/dev
/null
; then
8164 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8166 # ... but there are two gotchas:
8167 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8168 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8169 # In both cases, we have to default to `cp -pR'.
8170 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8172 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8180 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8181 rmdir conf$$.dir
2>/dev
/null
8186 # Create "$as_dir" as a directory, including parents if necessary.
8191 -*) as_dir
=.
/$as_dir;;
8193 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8197 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8198 *) as_qdir
=$as_dir;;
8200 as_dirs
="'$as_qdir' $as_dirs"
8201 as_dir
=`$as_dirname -- "$as_dir" ||
8202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8203 X"$as_dir" : 'X\(//\)[^/]' \| \
8204 X"$as_dir" : 'X\(//\)$' \| \
8205 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8206 $as_echo X"$as_dir" |
8207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8224 test -d "$as_dir" && break
8226 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8227 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8231 if mkdir
-p .
2>/dev
/null
; then
8232 as_mkdir_p
='mkdir -p "$as_dir"'
8234 test -d .
/-p && rmdir .
/-p
8239 # as_fn_executable_p FILE
8240 # -----------------------
8241 # Test if FILE is an executable regular file.
8242 as_fn_executable_p
()
8244 test -f "$1" && test -x "$1"
8245 } # as_fn_executable_p
8247 as_executable_p
=as_fn_executable_p
8249 # Sed expression to map a string onto a valid CPP name.
8250 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8252 # Sed expression to map a string onto a valid variable name.
8253 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8257 ## ----------------------------------- ##
8258 ## Main body of $CONFIG_STATUS script. ##
8259 ## ----------------------------------- ##
8261 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8264 # Save the log message, to keep $0 and so on meaningful, and to
8265 # report actual input values of CONFIG_FILES etc. instead of their
8266 # values after options handling.
8268 This file was extended by cpplib $as_me , which was
8269 generated by GNU Autoconf 2.69. Invocation command line was
8271 CONFIG_FILES = $CONFIG_FILES
8272 CONFIG_HEADERS = $CONFIG_HEADERS
8273 CONFIG_LINKS = $CONFIG_LINKS
8274 CONFIG_COMMANDS = $CONFIG_COMMANDS
8277 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8282 case $ac_config_files in *"
8283 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8286 case $ac_config_headers in *"
8287 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8292 # Files that config.status was made for.
8293 config_files="$ac_config_files"
8294 config_headers="$ac_config_headers"
8295 config_commands="$ac_config_commands"
8299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8301 \`$as_me' instantiates files and other configuration actions
8302 from templates according to the current configuration. Unless the files
8303 and actions are specified as TAGs, all are instantiated by default.
8305 Usage: $0 [OPTION]... [TAG]...
8307 -h, --help print this help, then exit
8308 -V, --version print version number and configuration settings, then exit
8309 --config print configuration, then exit
8310 -q, --quiet, --silent
8311 do not print progress messages
8312 -d, --debug don't remove temporary files
8313 --recheck update $as_me by reconfiguring in the same conditions
8314 --file=FILE[:TEMPLATE]
8315 instantiate the configuration file FILE
8316 --header=FILE[:TEMPLATE]
8317 instantiate the configuration header FILE
8319 Configuration files:
8322 Configuration headers:
8325 Configuration commands:
8328 Report bugs to <gcc-bugs@gcc.gnu.org>."
8331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8332 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8334 cpplib config.status
8335 configured by $0, generated by GNU Autoconf 2.69,
8336 with options \\"\$ac_cs_config\\"
8338 Copyright (C) 2012 Free Software Foundation, Inc.
8339 This config.status script is free software; the Free Software Foundation
8340 gives unlimited permission to copy, distribute and modify it."
8345 test -n "\$AWK" || AWK=awk
8348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8349 # The default lists apply if the user does not specify any file.
8355 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8356 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8360 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8372 # Handling of the options.
8373 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8375 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8376 $as_echo "$ac_cs_version"; exit ;;
8377 --config |
--confi |
--conf |
--con |
--co |
--c )
8378 $as_echo "$ac_cs_config"; exit ;;
8379 --debug |
--debu |
--deb |
--de |
--d |
-d )
8381 --file |
--fil |
--fi |
--f )
8384 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8385 '') as_fn_error $?
"missing file argument" ;;
8387 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8388 ac_need_defaults
=false
;;
8389 --header |
--heade |
--head |
--hea )
8392 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8394 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8395 ac_need_defaults
=false
;;
8397 # Conflict between --help and --header
8398 as_fn_error $?
"ambiguous option: \`$1'
8399 Try \`$0 --help' for more information.";;
8400 --help |
--hel |
-h )
8401 $as_echo "$ac_cs_usage"; exit ;;
8402 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8403 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8407 -*) as_fn_error $?
"unrecognized option: \`$1'
8408 Try \`$0 --help' for more information." ;;
8410 *) as_fn_append ac_config_targets
" $1"
8411 ac_need_defaults
=false
;;
8417 ac_configure_extra_args
=
8419 if $ac_cs_silent; then
8421 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8426 if \$ac_cs_recheck; then
8427 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8429 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8430 CONFIG_SHELL='$SHELL'
8436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8440 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8441 ## Running $as_me. ##
8447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8451 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8457 # Handling of arguments.
8458 for ac_config_target
in $ac_config_targets
8460 case $ac_config_target in
8461 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
8462 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8463 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8465 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8470 # If the user did not use the arguments to specify the items to instantiate,
8471 # then the envvar interface is used. Set only those that are not.
8472 # We use the long form for the default assignment because of an extremely
8473 # bizarre bug on SunOS 4.1.3.
8474 if $ac_need_defaults; then
8475 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8476 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8477 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8480 # Have a temporary directory for convenience. Make it in the build tree
8481 # simply because there is no reason against having it here, and in addition,
8482 # creating and moving files from /tmp can sometimes cause problems.
8483 # Hook for its removal unless debugging.
8484 # Note that there is a small window in which the directory will not be cleaned:
8485 # after its creation but before its name has been assigned to `$tmp'.
8489 trap 'exit_status=$?
8491 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8493 trap 'as_fn_exit 1' 1 2 13 15
8495 # Create a (secure) tmp directory for tmp files.
8498 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8502 tmp
=.
/conf$$
-$RANDOM
8503 (umask 077 && mkdir
"$tmp")
8504 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8507 # Set up the scripts for CONFIG_FILES section.
8508 # No need to generate them if there are no CONFIG_FILES.
8509 # This happens for instance with `./config.status config.h'.
8510 if test -n "$CONFIG_FILES"; then
8513 ac_cr
=`echo X | tr X '\015'`
8514 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8515 # But we know of no other shell where ac_cr would be empty at this
8516 # point, so we can use a bashism as a fallback.
8517 if test "x$ac_cr" = x
; then
8518 eval ac_cr
=\$
\'\\r
\'
8520 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8521 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8527 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8532 echo "cat >conf$$subs.awk <<_ACEOF" &&
8533 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8536 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8537 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8539 for ac_last_try in false false false false false :; do
8540 . ./conf$$subs.sh ||
8541 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8543 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8544 if test $ac_delim_n = $ac_delim_num; then
8546 elif $ac_last_try; then
8547 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8549 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8555 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8559 s/^/S["/; s
/!.
*/"]=/
8569 s/\(.\{148\}\)..*/\1/
8571 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8576 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8583 s/\(.\{148\}\)..*/\1/
8585 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8589 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8594 ' <conf$$subs.awk | sed '
8599 ' >>$CONFIG_STATUS || ac_write_fail=1
8600 rm -f conf$$subs.awk
8601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8603 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8604 for (key in S) S_is_set[key] = 1
8610 nfields = split(line, field, "@
")
8612 len = length(field[1])
8613 for (i = 2; i < nfields; i++) {
8615 keylen = length(key)
8616 if (S_is_set[key]) {
8618 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8619 len += length(value) + length(field[++i])
8630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8631 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8632 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8635 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8636 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8639 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8640 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8641 # trailing colons and then remove the whole line if VPATH becomes empty
8642 # (actually we leave an empty line to preserve line numbers).
8643 if test "x
$srcdir" = x.; then
8644 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8663 fi # test -n "$CONFIG_FILES"
8665 # Set up the scripts for CONFIG_HEADERS section.
8666 # No need to generate them if there are no CONFIG_HEADERS.
8667 # This happens for instance with `./config.status Makefile'.
8668 if test -n "$CONFIG_HEADERS"; then
8669 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8673 # Transform confdefs.h into an awk script `defines.awk', embedded as
8674 # here-document in config.status, that substitutes the proper values into
8675 # config.h.in to produce config.h.
8677 # Create a delimiter string that does not exist in confdefs.h, to ease
8678 # handling of long lines.
8680 for ac_last_try in false false :; do
8681 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8682 if test -z "$ac_tt"; then
8684 elif $ac_last_try; then
8685 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8687 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8691 # For the awk script, D is an array of macro values keyed by name,
8692 # likewise P contains macro parameters if any. Preserve backslash
8693 # newline sequences.
8695 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8697 s/.\{148\}/&'"$ac_delim"'/g
8700 s/^[ ]*#[ ]*define[ ][ ]*/ /
8707 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8709 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8713 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8714 D["\
1"]=" \
3\\\\\\n
"\\/p
8716 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8721 s/.\{148\}/&'"$ac_delim"'/g
8726 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8729 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8731 ' <confdefs.h | sed '
8732 s/'"$ac_delim"'/"\\\
8733 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8736 for (key in D) D_is_set[key] = 1
8739 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8741 split(line, arg, " ")
8742 if (arg[1] == "#") {
8746 defundef
= substr
(arg
[1], 2)
8749 split(mac1
, mac2
, "(") #)
8751 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8752 if (D_is_set
[macro
]) {
8753 # Preserve the white space surrounding the "#".
8754 print prefix
"define", macro P
[macro
] D
[macro
]
8757 # Replace #undef with comments. This is necessary, for example,
8758 # in the case of _POSIX_SOURCE, which is predefined and required
8759 # on some systems where configure will not decide to define it.
8760 if (defundef
== "undef") {
8761 print
"/*", prefix defundef
, macro
, "*/"
8769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8770 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8771 fi # test -n "$CONFIG_HEADERS"
8774 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8779 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8781 case $ac_mode$ac_tag in
8783 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8784 :[FH
]-) ac_tag
=-:-;;
8785 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8802 -) ac_f
="$ac_tmp/stdin";;
8803 *) # Look for the file first in the build tree, then in the source tree
8804 # (if the path is not absolute). The absolute path cannot be DOS-style,
8805 # because $ac_f cannot contain `:'.
8809 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8811 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8813 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8814 as_fn_append ac_file_inputs
" '$ac_f'"
8817 # Let's still pretend it is `configure' which instantiates (i.e., don't
8818 # use $as_me), people would be surprised to read:
8819 # /* config.h. Generated by config.status. */
8820 configure_input
='Generated from '`
8821 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8823 if test x
"$ac_file" != x-
; then
8824 configure_input
="$ac_file. $configure_input"
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8826 $as_echo "$as_me: creating $ac_file" >&6;}
8828 # Neutralize special characters interpreted by sed in replacement strings.
8829 case $configure_input in #(
8830 *\
&* |
*\|
* |
*\\* )
8831 ac_sed_conf_input
=`$as_echo "$configure_input" |
8832 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8833 *) ac_sed_conf_input
=$configure_input;;
8837 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8838 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8843 ac_dir
=`$as_dirname -- "$ac_file" ||
8844 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8845 X"$ac_file" : 'X\(//\)[^/]' \| \
8846 X"$ac_file" : 'X\(//\)$' \| \
8847 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8848 $as_echo X"$ac_file" |
8849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8866 as_dir
="$ac_dir"; as_fn_mkdir_p
8870 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8872 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8873 # A ".." for each directory in $ac_dir_suffix.
8874 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8875 case $ac_top_builddir_sub in
8876 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8877 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8880 ac_abs_top_builddir
=$ac_pwd
8881 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8882 # for backward compatibility:
8883 ac_top_builddir
=$ac_top_build_prefix
8886 .
) # We are building in place.
8888 ac_top_srcdir
=$ac_top_builddir_sub
8889 ac_abs_top_srcdir
=$ac_pwd ;;
8890 [\\/]* | ?
:[\\/]* ) # Absolute name.
8891 ac_srcdir
=$srcdir$ac_dir_suffix;
8892 ac_top_srcdir
=$srcdir
8893 ac_abs_top_srcdir
=$srcdir ;;
8895 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8896 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8897 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8899 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8909 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8910 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8915 # If the template does not know about datarootdir, expand it.
8916 # FIXME: This hack should be removed a few years after 2.60.
8917 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8928 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8929 *datarootdir
*) ac_datarootdir_seen
=yes;;
8930 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8932 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8935 ac_datarootdir_hack='
8936 s&@datadir@&$datadir&g
8937 s&@docdir@&$docdir&g
8938 s&@infodir@&$infodir&g
8939 s&@localedir@&$localedir&g
8940 s&@mandir@&$mandir&g
8941 s&\\\${datarootdir}&$datarootdir&g' ;;
8945 # Neutralize VPATH when `$srcdir' = `.'.
8946 # Shell code in configure.ac might set extrasub.
8947 # FIXME: do we really want to maintain this feature?
8948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8949 ac_sed_extra="$ac_vpsub
8952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8954 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8955 s|@configure_input@|
$ac_sed_conf_input|
;t t
8956 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8957 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8958 s
&@srcdir@
&$ac_srcdir&;t t
8959 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8960 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8961 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8962 s
&@builddir@
&$ac_builddir&;t t
8963 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8964 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8965 s
&@INSTALL@
&$ac_INSTALL&;t t
8966 $ac_datarootdir_hack
8968 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8969 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8971 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8972 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8973 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8974 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8976 which seems to be undefined. Please make sure it is defined" >&5
8977 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8978 which seems to be undefined. Please make sure it is defined" >&2;}
8980 rm -f "$ac_tmp/stdin"
8982 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8983 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8991 if test x"$ac_file" != x-; then
8993 $as_echo "/* $configure_input */" \
8994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8995 } >"$ac_tmp/config.h" \
8996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8997 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8999 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9002 mv "$ac_tmp/config.h" "$ac_file" \
9003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9006 $as_echo "/* $configure_input */" \
9007 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9008 || as_fn_error $? "could not create -" "$LINENO" 5
9012 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9013 $as_echo "$as_me: executing $ac_file commands" >&6;}
9018 case $ac_file$ac_mode in
9019 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9020 "config.h":H) echo timestamp > stamp-h1 ;;
9028 ac_clean_files=$ac_clean_files_save
9030 test $ac_write_fail = 0 ||
9031 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9034 # configure is writing to config.log, and then calls config.status.
9035 # config.status does its own redirection, appending to config.log.
9036 # Unfortunately, on DOS this fails, as config.log is still kept open
9037 # by configure, so config.status won't be able to
write to it
; its
9038 # output is simply discarded. So we exec the FD to /dev/null,
9039 # effectively closing config.log, so it can be properly (re)opened and
9040 # appended to by config.status. When coming back to configure, we
9041 # need to make the FD available again.
9042 if test "$no_create" != yes; then
9044 ac_config_status_args
=
9045 test "$silent" = yes &&
9046 ac_config_status_args
="$ac_config_status_args --quiet"
9048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9051 # would make configure fail if this is the last instruction.
9052 $ac_cs_success || as_fn_exit
1
9054 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9056 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}