2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bmake 20201112.
5 # Report bugs to <sjg@NetBSD.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 sjg@NetBSD.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
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.
582 PACKAGE_TARNAME='bmake'
583 PACKAGE_VERSION='20201112'
584 PACKAGE_STRING='bmake 20201112'
585 PACKAGE_BUGREPORT='sjg@NetBSD.org'
588 # Factoring default headers for most tests.
589 ac_includes_default="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
624 ac_subst_vars='LTLIBOBJS
681 program_transform_name
694 enable_option_checking
701 with_force_machine_arch
703 with_default_sys_path
704 with_path_objdirprefix
706 enable_check_make_chdir
709 ac_precious_vars='build_alias
720 # Initialize some variables set by options.
722 ac_init_version=false
723 ac_unrecognized_opts=
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
734 program_transform_name=s,x,x,
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir='${exec_prefix}/bin'
749 sbindir='${exec_prefix}/sbin'
750 libexecdir='${exec_prefix}/libexec'
751 datarootdir='${prefix}/share'
752 datadir='${datarootdir}'
753 sysconfdir='${prefix}/etc'
754 sharedstatedir='${prefix}/com'
755 localstatedir='${prefix}/var'
756 includedir='${prefix}/include'
757 oldincludedir='/usr/include'
758 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
759 infodir='${datarootdir}/info'
764 libdir='${exec_prefix}/lib'
765 localedir='${datarootdir}/locale'
766 mandir='${datarootdir}/man'
772 # If the previous option needs an argument, assign it.
773 if test -n "$ac_prev"; then
774 eval $ac_prev=\$ac_option
780 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785 # Accept the important Cygnus configure options, so we can diagnose typos.
787 case $ac_dashdash$ac_option in
791 -bindir | --bindir | --bindi | --bind | --bin | --bi)
793 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
796 -build | --build | --buil | --bui | --bu)
797 ac_prev=build_alias ;;
798 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
799 build_alias=$ac_optarg ;;
801 -cache-file | --cache-file | --cache-fil | --cache-fi \
802 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
803 ac_prev=cache_file ;;
804 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
805 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
806 cache_file=$ac_optarg ;;
809 cache_file=config.cache ;;
811 -datadir | --datadir | --datadi | --datad)
813 -datadir=* | --datadir=* | --datadi=* | --datad=*)
814 datadir=$ac_optarg ;;
816 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
817 | --dataroo | --dataro | --datar)
818 ac_prev=datarootdir ;;
819 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
820 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
821 datarootdir=$ac_optarg ;;
823 -disable-* | --disable-*)
824 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
825 # Reject names that are not valid shell variable names.
826 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
827 as_fn_error $? "invalid feature name: $ac_useropt"
828 ac_useropt_orig=$ac_useropt
829 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
830 case $ac_user_opts in
834 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
835 ac_unrecognized_sep=', ';;
837 eval enable_$ac_useropt=no ;;
839 -docdir | --docdir | --docdi | --doc | --do)
841 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
844 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
849 -enable-* | --enable-*)
850 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 as_fn_error $? "invalid feature name: $ac_useropt"
854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
863 eval enable_$ac_useropt=\$ac_optarg ;;
865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867 | --exec | --exe | --ex)
868 ac_prev=exec_prefix ;;
869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871 | --exec=* | --exe=* | --ex=*)
872 exec_prefix=$ac_optarg ;;
874 -gas | --gas | --ga | --g)
875 # Obsolete; use --with-gas.
878 -help | --help | --hel | --he | -h)
880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881 ac_init_help=recursive ;;
882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883 ac_init_help=short ;;
885 -host | --host | --hos | --ho)
886 ac_prev=host_alias ;;
887 -host=* | --host=* | --hos=* | --ho=*)
888 host_alias=$ac_optarg ;;
890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 htmldir=$ac_optarg ;;
896 -includedir | --includedir | --includedi | --included | --include \
897 | --includ | --inclu | --incl | --inc)
898 ac_prev=includedir ;;
899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900 | --includ=* | --inclu=* | --incl=* | --inc=*)
901 includedir=$ac_optarg ;;
903 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 infodir=$ac_optarg ;;
908 -libdir | --libdir | --libdi | --libd)
910 -libdir=* | --libdir=* | --libdi=* | --libd=*)
913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914 | --libexe | --libex | --libe)
915 ac_prev=libexecdir ;;
916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917 | --libexe=* | --libex=* | --libe=*)
918 libexecdir=$ac_optarg ;;
920 -localedir | --localedir | --localedi | --localed | --locale)
922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923 localedir=$ac_optarg ;;
925 -localstatedir | --localstatedir | --localstatedi | --localstated \
926 | --localstate | --localstat | --localsta | --localst | --locals)
927 ac_prev=localstatedir ;;
928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930 localstatedir=$ac_optarg ;;
932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
938 # Obsolete; use --without-fp.
941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 | --no-cr | --no-c | -n)
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951 | --oldin | --oldi | --old | --ol | --o)
952 ac_prev=oldincludedir ;;
953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 oldincludedir=$ac_optarg ;;
958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
963 -program-prefix | --program-prefix | --program-prefi | --program-pref \
964 | --program-pre | --program-pr | --program-p)
965 ac_prev=program_prefix ;;
966 -program-prefix=* | --program-prefix=* | --program-prefi=* \
967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 program_prefix=$ac_optarg ;;
970 -program-suffix | --program-suffix | --program-suffi | --program-suff \
971 | --program-suf | --program-su | --program-s)
972 ac_prev=program_suffix ;;
973 -program-suffix=* | --program-suffix=* | --program-suffi=* \
974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 program_suffix=$ac_optarg ;;
977 -program-transform-name | --program-transform-name \
978 | --program-transform-nam | --program-transform-na \
979 | --program-transform-n | --program-transform- \
980 | --program-transform | --program-transfor \
981 | --program-transfo | --program-transf \
982 | --program-trans | --program-tran \
983 | --progr-tra | --program-tr | --program-t)
984 ac_prev=program_transform_name ;;
985 -program-transform-name=* | --program-transform-name=* \
986 | --program-transform-nam=* | --program-transform-na=* \
987 | --program-transform-n=* | --program-transform-=* \
988 | --program-transform=* | --program-transfor=* \
989 | --program-transfo=* | --program-transf=* \
990 | --program-trans=* | --program-tran=* \
991 | --progr-tra=* | --program-tr=* | --program-t=*)
992 program_transform_name=$ac_optarg ;;
994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
999 -psdir | --psdir | --psdi | --psd | --ps)
1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 sbindir=$ac_optarg ;;
1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016 | --sharedst | --shareds | --shared | --share | --shar \
1018 ac_prev=sharedstatedir ;;
1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 sharedstatedir=$ac_optarg ;;
1025 -site | --site | --sit)
1027 -site=* | --site=* | --sit=*)
1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033 srcdir=$ac_optarg ;;
1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036 | --syscon | --sysco | --sysc | --sys | --sy)
1037 ac_prev=sysconfdir ;;
1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040 sysconfdir=$ac_optarg ;;
1042 -target | --target | --targe | --targ | --tar | --ta | --t)
1043 ac_prev=target_alias ;;
1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045 target_alias=$ac_optarg ;;
1047 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050 -version | --version | --versio | --versi | --vers | -V)
1051 ac_init_version=: ;;
1054 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid package name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1067 eval with_$ac_useropt=\$ac_optarg ;;
1069 -without-* | --without-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid package name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1083 eval with_$ac_useropt=no ;;
1086 # Obsolete; use --with-x.
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1104 Try \`$0 --help' for more information"
1108 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 case $ac_envvar in #(
1111 '' | [0-9]* | *[!_$as_cr_alnum]* )
1112 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 as_fn_error $? "missing argument to $ac_option"
1133 if test -n "$ac_unrecognized_opts"; then
1134 case $enable_option_checking in
1136 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1137 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1141 # Check all directory arguments for consistency.
1142 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1143 datadir sysconfdir sharedstatedir localstatedir includedir \
1144 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1145 libdir localedir mandir
1147 eval ac_val=\$$ac_var
1148 # Remove trailing slashes.
1151 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1152 eval $ac_var=\$ac_val;;
1154 # Be sure to have absolute directory names.
1156 [\\/$]* | ?:[\\/]* ) continue;;
1157 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1159 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1162 # There might be people who depend on the old broken behavior: `$host'
1163 # used to hold the argument of --host etc.
1164 # FIXME: To remove some day.
1167 target=$target_alias
1169 # FIXME: To remove some day.
1170 if test "x$host_alias" != x; then
1171 if test "x$build_alias" = x; then
1172 cross_compiling=maybe
1173 elif test "x$build_alias" != "x$host_alias"; then
1179 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1181 test "$silent" = yes && exec 6>/dev/null
1184 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1185 ac_ls_di=`ls -di .` &&
1186 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1187 as_fn_error $? "working directory cannot be determined"
1188 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1189 as_fn_error $? "pwd does not report name of working directory"
1192 # Find the source files, if location was not specified.
1193 if test -z "$srcdir"; then
1194 ac_srcdir_defaulted=yes
1195 # Try the directory containing this script, then the parent directory.
1196 ac_confdir=`$as_dirname -- "$as_myself" ||
1197 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1198 X"$as_myself" : 'X\(//\)[^/]' \| \
1199 X"$as_myself" : 'X\(//\)$' \| \
1200 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1201 $as_echo X"$as_myself" |
1202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1224 ac_srcdir_defaulted=no
1226 if test ! -r "$srcdir/$ac_unique_file"; then
1227 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1228 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1234 # When building in place, set srcdir=.
1235 if test "$ac_abs_confdir" = "$ac_pwd"; then
1238 # Remove unnecessary trailing slashes from srcdir.
1239 # Double slashes in file names in object file debugging info
1240 # mess up M-x gdb in Emacs.
1242 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 for ac_var in $ac_precious_vars; do
1245 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_env_${ac_var}_value=\$${ac_var}
1247 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1252 # Report the --help message.
1254 if test "$ac_init_help" = "long"; then
1255 # Omit some internal or obsolete options to make the list less imposing.
1256 # This message is too long to be a string in the A/UX 3.1 sh.
1258 \`configure' configures bmake 20201112 to adapt to many kinds of systems.
1260 Usage: $0 [OPTION]... [VAR=VALUE]...
1262 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263 VAR=VALUE. See below for descriptions of some of the useful variables.
1265 Defaults for the options are specified in brackets.
1268 -h, --help display this help and exit
1269 --help=short display options specific to this package
1270 --help=recursive display the short help of all the included packages
1271 -V, --version display version information and exit
1272 -q, --quiet, --silent do not print \`checking ...' messages
1273 --cache-file=FILE cache test results in FILE [disabled]
1274 -C, --config-cache alias for \`--cache-file=config.cache'
1275 -n, --no-create do not create output files
1276 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278 Installation directories:
1279 --prefix=PREFIX install architecture-independent files in PREFIX
1280 [$ac_default_prefix]
1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1284 By default, \`make install' will install all the files in
1285 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1286 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287 for instance \`--prefix=\$HOME'.
1289 For better control, use the options below.
1291 Fine tuning of the installation directories:
1292 --bindir=DIR user executables [EPREFIX/bin]
1293 --sbindir=DIR system admin executables [EPREFIX/sbin]
1294 --libexecdir=DIR program executables [EPREFIX/libexec]
1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/bmake]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
1317 if test -n "$ac_init_help"; then
1318 case $ac_init_help in
1319 short | recursive ) echo "Configuration of bmake 20201112:";;
1324 --disable-option-checking ignore unrecognized --enable/--with options
1325 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1326 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1327 --disable-pwd-override disable $PWD overriding getcwd()
1328 --disable-check-make-chdir disable make trying to guess
1329 when it should automatically cd ${.CURDIR}
1332 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1333 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1334 --with-defshell=SHELL use SHELL by default - must be sh compatible, use sh or ksh to pick the internal definitions
1335 --without-makefile disable use of generated makefile
1336 --without-meta disable use of meta-mode
1337 --with-filemon={no,dev,ktrace,path/filemon.h} indicate filemon method for meta-mode. Path to filemon.h implies dev
1338 --with-machine=MACHINE explicitly set MACHINE
1339 --with-force-machine=MACHINE set FORCE_MACHINE
1340 --with-force-machine-arch=MACHINE set FORCE_MACHINE_ARCH
1341 --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH
1342 --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH
1343 MAKESYSPATH is a ':' separated list of directories
1344 that bmake will search for system .mk files.
1345 _PATH_DEFSYSPATH is its default value.
1346 --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX
1347 --with-mksrc=PATH tell makefile.boot where to find mk src
1349 Some influential environment variables:
1350 CC C compiler command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1353 nonstandard directory <lib dir>
1354 LIBS libraries to pass to the linker, e.g. -l<library>
1355 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1356 you have headers in a nonstandard directory <include dir>
1359 Use these variables to override the choices made by `configure' or to help
1360 it to find libraries and programs with nonstandard names/locations.
1362 Report bugs to <sjg@NetBSD.org>.
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" ||
1371 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1425 bmake configure 20201112
1426 generated by GNU Autoconf 2.69
1428 Copyright (C) 2012 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1435 ## ------------------------ ##
1436 ## Autoconf initialization. ##
1437 ## ------------------------ ##
1439 # ac_fn_c_try_compile LINENO
1440 # --------------------------
1441 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1442 ac_fn_c_try_compile ()
1444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445 rm -f conftest.$ac_objext
1446 if { { ac_try="$ac_compile"
1448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1449 *) ac_try_echo=$ac_try;;
1451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1452 $as_echo "$ac_try_echo"; } >&5
1453 (eval "$ac_compile") 2>conftest.err
1455 if test -s conftest.err; then
1456 grep -v '^ *+' conftest.err >conftest.er1
1457 cat conftest.er1 >&5
1458 mv -f conftest.er1 conftest.err
1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461 test $ac_status = 0; } && {
1462 test -z "$ac_c_werror_flag" ||
1463 test ! -s conftest.err
1464 } && test -s conftest.$ac_objext; then :
1467 $as_echo "$as_me: failed program was:" >&5
1468 sed 's/^/| /' conftest.$ac_ext >&5
1472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1473 as_fn_set_status $ac_retval
1475 } # ac_fn_c_try_compile
1477 # ac_fn_c_try_cpp LINENO
1478 # ----------------------
1479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 if { { ac_try="$ac_cpp conftest.$ac_ext"
1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486 *) ac_try_echo=$ac_try;;
1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489 $as_echo "$ac_try_echo"; } >&5
1490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1492 if test -s conftest.err; then
1493 grep -v '^ *+' conftest.err >conftest.er1
1494 cat conftest.er1 >&5
1495 mv -f conftest.er1 conftest.err
1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498 test $ac_status = 0; } > conftest.i && {
1499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1500 test ! -s conftest.err
1504 $as_echo "$as_me: failed program was:" >&5
1505 sed 's/^/| /' conftest.$ac_ext >&5
1509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1510 as_fn_set_status $ac_retval
1514 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1515 # -------------------------------------------------------
1516 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1517 # the include files in INCLUDES and setting the cache variable VAR
1519 ac_fn_c_check_header_mongrel ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 if eval \${$3+:} false; then :
1523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1524 $as_echo_n "checking for $2... " >&6; }
1525 if eval \${$3+:} false; then :
1526 $as_echo_n "(cached) " >&6
1529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1530 $as_echo "$ac_res" >&6; }
1532 # Is the header compilable?
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1534 $as_echo_n "checking $2 usability... " >&6; }
1535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1536 /* end confdefs.h. */
1540 if ac_fn_c_try_compile "$LINENO"; then :
1541 ac_header_compiler=yes
1543 ac_header_compiler=no
1545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1547 $as_echo "$ac_header_compiler" >&6; }
1549 # Is the header present?
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1551 $as_echo_n "checking $2 presence... " >&6; }
1552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1553 /* end confdefs.h. */
1556 if ac_fn_c_try_cpp "$LINENO"; then :
1557 ac_header_preproc=yes
1559 ac_header_preproc=no
1561 rm -f conftest.err conftest.i conftest.$ac_ext
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1563 $as_echo "$ac_header_preproc" >&6; }
1565 # So? What about this header?
1566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1569 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1571 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1575 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1577 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1579 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1581 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1583 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1584 ( $as_echo "## ----------------------------- ##
1585 ## Report this to sjg@NetBSD.org ##
1586 ## ----------------------------- ##"
1587 ) | sed "s/^/$as_me: WARNING: /" >&2
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1591 $as_echo_n "checking for $2... " >&6; }
1592 if eval \${$3+:} false; then :
1593 $as_echo_n "(cached) " >&6
1595 eval "$3=\$ac_header_compiler"
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599 $as_echo "$ac_res" >&6; }
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 } # ac_fn_c_check_header_mongrel
1605 # ac_fn_c_try_run LINENO
1606 # ----------------------
1607 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1608 # that executables *can* be run.
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if { { ac_try="$ac_link"
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_link") 2>&5
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1623 { { case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_try") 2>&5
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; }; }; then :
1635 $as_echo "$as_me: program exited with status $ac_status" >&5
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1639 ac_retval=$ac_status
1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists and can be compiled using the include files in
1650 # INCLUDES, setting the cache variable VAR accordingly.
1651 ac_fn_c_check_header_compile ()
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h. */
1664 if ac_fn_c_try_compile "$LINENO"; then :
1669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 } # ac_fn_c_check_header_compile
1678 # ac_fn_c_try_link LINENO
1679 # -----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest$ac_exeext
1685 if { { ac_try="$ac_link"
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>conftest.err
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest$ac_exeext && {
1704 test "$cross_compiling" = yes ||
1705 test -x conftest$ac_exeext
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1722 } # ac_fn_c_try_link
1724 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1725 # -------------------------------------------
1726 # Tests whether TYPE exists after having included INCLUDES, setting cache
1727 # variable VAR accordingly.
1728 ac_fn_c_check_type ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734 $as_echo_n "(cached) " >&6
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1762 if ac_fn_c_try_compile "$LINENO"; then :
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 } # ac_fn_c_check_type
1778 # ac_fn_c_find_uintX_t LINENO BITS VAR
1779 # ------------------------------------
1780 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1782 ac_fn_c_find_uintX_t ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1786 $as_echo_n "checking for uint$2_t... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1791 # Order is important - never check a type that is potentially smaller
1792 # than half of the expected target width.
1793 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1794 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 $ac_includes_default
1801 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1803 return test_array [0];
1809 if ac_fn_c_try_compile "$LINENO"; then :
1814 eval "$3=\$ac_type" ;;
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 if eval test \"x\$"$3"\" = x"no"; then :
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 } # ac_fn_c_find_uintX_t
1832 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1833 # ---------------------------------------------
1834 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1836 ac_fn_c_check_decl ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 as_decl_name=`echo $2|sed 's/ *(.*//'`
1840 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1842 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1852 #ifndef $as_decl_name
1854 (void) $as_decl_use;
1856 (void) $as_decl_name;
1864 if ac_fn_c_try_compile "$LINENO"; then :
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 } # ac_fn_c_check_decl
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1901 # include <limits.h>
1903 # include <assert.h>
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1930 if ac_fn_c_try_link "$LINENO"; then :
1935 rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_func
1945 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1946 # ----------------------------------------------------
1947 # Tries to find if the field MEMBER exists in type AGGR, after including
1948 # INCLUDES, setting cache variable VAR accordingly.
1949 ac_fn_c_check_member ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1953 $as_echo_n "checking for $2.$3... " >&6; }
1954 if eval \${$4+:} false; then :
1955 $as_echo_n "(cached) " >&6
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1970 if ac_fn_c_try_compile "$LINENO"; then :
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1980 if (sizeof ac_aggr.$3)
1986 if ac_fn_c_try_compile "$LINENO"; then :
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 } # ac_fn_c_check_member
2001 cat >config.log <<_ACEOF
2002 This file contains any messages produced by compilers while
2003 running configure, to aid debugging if configure makes a mistake.
2005 It was created by bmake $as_me 20201112, which was
2006 generated by GNU Autoconf 2.69. Invocation command line was
2018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2030 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 $as_echo "PATH: $as_dir"
2058 # Keep a trace of the command line.
2059 # Strip out --no-create and --no-recursion so they do not pile up.
2060 # Strip out --silent because we don't want to record it for future runs.
2061 # Also quote any args containing shell meta-characters.
2062 # Make two passes to allow for proper duplicate-argument suppression.
2066 ac_must_keep_next=false
2072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2074 | -silent | --silent | --silen | --sile | --sil)
2077 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2080 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2082 as_fn_append ac_configure_args1 " '$ac_arg'"
2083 if test $ac_must_keep_next = true; then
2084 ac_must_keep_next=false # Got value, back to normal.
2087 *=* | --config-cache | -C | -disable-* | --disable-* \
2088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2090 | -with-* | --with-* | -without-* | --without-* | --x)
2091 case "$ac_configure_args0 " in
2092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2095 -* ) ac_must_keep_next=true ;;
2098 as_fn_append ac_configure_args " '$ac_arg'"
2103 { ac_configure_args0=; unset ac_configure_args0;}
2104 { ac_configure_args1=; unset ac_configure_args1;}
2106 # When interrupted or exit'd, cleanup temporary files, and complete
2107 # config.log. We remove comments because anyway the quotes in there
2108 # would cause problems or look ugly.
2109 # WARNING: Use '\'' to represent an apostrophe within the trap.
2110 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2111 trap 'exit_status=$?
2112 # Save into config.log some information that might help in debugging.
2116 $as_echo "## ---------------- ##
2117 ## Cache variables. ##
2118 ## ---------------- ##"
2120 # The following way of writing the cache mishandles newlines in values,
2122 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2123 eval ac_val=\$$ac_var
2127 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2128 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2131 _ | IFS | as_nl) ;; #(
2132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2133 *) { eval $ac_var=; unset $ac_var;} ;;
2138 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2139 *${as_nl}ac_space=\ *)
2141 "s/'\''/'\''\\\\'\'''\''/g;
2142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2152 $as_echo "## ----------------- ##
2153 ## Output variables. ##
2154 ## ----------------- ##"
2156 for ac_var in $ac_subst_vars
2158 eval ac_val=\$$ac_var
2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2162 $as_echo "$ac_var='\''$ac_val'\''"
2166 if test -n "$ac_subst_files"; then
2167 $as_echo "## ------------------- ##
2168 ## File substitutions. ##
2169 ## ------------------- ##"
2171 for ac_var in $ac_subst_files
2173 eval ac_val=\$$ac_var
2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177 $as_echo "$ac_var='\''$ac_val'\''"
2182 if test -s confdefs.h; then
2183 $as_echo "## ----------- ##
2190 test "$ac_signal" != 0 &&
2191 $as_echo "$as_me: caught signal $ac_signal"
2192 $as_echo "$as_me: exit $exit_status"
2194 rm -f core *.core core.conftest.* &&
2195 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2198 for ac_signal in 1 2 13 15; do
2199 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2203 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2204 rm -f -r conftest* confdefs.h
2206 $as_echo "/* confdefs.h */" > confdefs.h
2208 # Predefined preprocessor variables.
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_NAME "$PACKAGE_NAME"
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_STRING "$PACKAGE_STRING"
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_URL "$PACKAGE_URL"
2235 # Let the site file select an alternate cache file if it wants to.
2236 # Prefer an explicitly selected file to automatically selected ones.
2239 if test -n "$CONFIG_SITE"; then
2240 # We do not want a PATH search for config.site.
2241 case $CONFIG_SITE in #((
2242 -*) ac_site_file1=./$CONFIG_SITE;;
2243 */*) ac_site_file1=$CONFIG_SITE;;
2244 *) ac_site_file1=./$CONFIG_SITE;;
2246 elif test "x$prefix" != xNONE; then
2247 ac_site_file1=$prefix/share/config.site
2248 ac_site_file2=$prefix/etc/config.site
2250 ac_site_file1=$ac_default_prefix/share/config.site
2251 ac_site_file2=$ac_default_prefix/etc/config.site
2253 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2255 test "x$ac_site_file" = xNONE && continue
2256 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2258 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2259 sed 's/^/| /' "$ac_site_file" >&5
2261 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2263 as_fn_error $? "failed to load site script $ac_site_file
2264 See \`config.log' for more details" "$LINENO" 5; }
2268 if test -r "$cache_file"; then
2269 # Some versions of bash will fail to source /dev/null (special files
2270 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2271 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2273 $as_echo "$as_me: loading cache $cache_file" >&6;}
2275 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2276 *) . "./$cache_file";;
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2281 $as_echo "$as_me: creating cache $cache_file" >&6;}
2285 # Check that the precious variables saved in the cache have kept the same
2287 ac_cache_corrupted=false
2288 for ac_var in $ac_precious_vars; do
2289 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2290 eval ac_new_set=\$ac_env_${ac_var}_set
2291 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2292 eval ac_new_val=\$ac_env_${ac_var}_value
2293 case $ac_old_set,$ac_new_set in
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2296 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2297 ac_cache_corrupted=: ;;
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2300 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2301 ac_cache_corrupted=: ;;
2304 if test "x$ac_old_val" != "x$ac_new_val"; then
2305 # differences in whitespace do not lead to failure.
2306 ac_old_val_w=`echo x $ac_old_val`
2307 ac_new_val_w=`echo x $ac_new_val`
2308 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2310 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2311 ac_cache_corrupted=:
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2314 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2315 eval $ac_var=\$ac_old_val
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2318 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2320 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2323 # Pass precious variables to config.status.
2324 if test "$ac_new_set" = set; then
2326 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 *) ac_arg=$ac_var=$ac_new_val ;;
2329 case " $ac_configure_args " in
2330 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2331 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2335 if $ac_cache_corrupted; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2339 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2340 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2342 ## -------------------- ##
2343 ## Main body of script. ##
2344 ## -------------------- ##
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 ac_config_headers="$ac_config_headers config.h"
2358 *) srcdir=`cd $srcdir && pwd`;;
2365 # Check whether --with-defshell was given.
2366 if test "${with_defshell+set}" = set; then :
2367 withval=$with_defshell; case "${withval}" in
2368 yes) as_fn_error $? "bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;;
2370 *) case "$with_defshell" in
2371 sh) DEFSHELL_INDEX=DEFSHELL_INDEX_SH;; # it's the default anyway
2372 ksh) DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
2373 csh) DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;; # kidding right?
2374 *) defshell_path=$with_defshell;; # better be sh compatible!
2381 CYGWIN*|MINGW*) use_makefile=no;;
2382 *) use_makefile=yes;;
2385 # Check whether --with-makefile was given.
2386 if test "${with_makefile+set}" = set; then :
2387 withval=$with_makefile; case "${withval}" in
2388 yes|no) use_makefile=${withval};;
2389 *) as_fn_error $? "bad value ${withval} given for makefile" "$LINENO" 5 ;;
2395 # Check whether --with-meta was given.
2396 if test "${with_meta+set}" = set; then :
2397 withval=$with_meta; case "${withval}" in
2398 yes|no) use_meta=${withval};;
2399 *) as_fn_error $? "bad value ${withval} given for meta" "$LINENO" 5 ;;
2404 # Check whether --with-filemon was given.
2405 if test "${with_filemon+set}" = set; then :
2406 withval=$with_filemon; case "/${withval}" in
2407 /no) use_filemon=no;;
2408 /*trace) filemon_h=no use_filemon="${withval}";;
2409 */filemon.h) filemon_h="${withval}";;
2410 */filemon*) filemon_h="${withval}/filemon.h";;
2411 *) as_fn_error $? "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2413 case "$use_filemon,$filemon_h" in
2414 ,*.h) use_filemon=dev;;
2420 NetBSD) filemon_h=no use_filemon=ktrace;;
2422 for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
2426 filemon_h="$d$x/filemon.h"
2427 test -s "$filemon_h" && break
2429 test -s "$filemon_h" && { use_filemon=dev; break; }
2433 use_filemon=${use_filemon:-no}
2434 case "$use_filemon" in
2443 case "$use_filemon" in
2445 *) echo "Using: filemon_${use_filemon}.c" >&6;;
2450 ac_cpp='$CPP $CPPFLAGS'
2451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454 if test -n "$ac_tool_prefix"; then
2455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2456 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2458 $as_echo_n "checking for $ac_word... " >&6; }
2459 if ${ac_cv_prog_CC+:} false; then :
2460 $as_echo_n "(cached) " >&6
2462 if test -n "$CC"; then
2463 ac_cv_prog_CC="$CC" # Let the user override the test.
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 if test -n "$CC"; then
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2485 $as_echo "$CC" >&6; }
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2488 $as_echo "no" >&6; }
2493 if test -z "$ac_cv_prog_CC"; then
2495 # Extract the first word of "gcc", so it can be a program name with args.
2496 set dummy gcc; ac_word=$2
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2498 $as_echo_n "checking for $ac_word... " >&6; }
2499 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2500 $as_echo_n "(cached) " >&6
2502 if test -n "$ac_ct_CC"; then
2503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512 ac_cv_prog_ac_ct_CC="gcc"
2513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2523 if test -n "$ac_ct_CC"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2525 $as_echo "$ac_ct_CC" >&6; }
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2528 $as_echo "no" >&6; }
2531 if test "x$ac_ct_CC" = x; then
2534 case $cross_compiling:$ac_tool_warned in
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2538 ac_tool_warned=yes ;;
2546 if test -z "$CC"; then
2547 if test -n "$ac_tool_prefix"; then
2548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2549 set dummy ${ac_tool_prefix}cc; ac_word=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if ${ac_cv_prog_CC+:} false; then :
2553 $as_echo_n "(cached) " >&6
2555 if test -n "$CC"; then
2556 ac_cv_prog_CC="$CC" # Let the user override the test.
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2565 ac_cv_prog_CC="${ac_tool_prefix}cc"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 if test -n "$CC"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2578 $as_echo "$CC" >&6; }
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2587 if test -z "$CC"; then
2588 # Extract the first word of "cc", so it can be a program name with args.
2589 set dummy cc; ac_word=$2
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if ${ac_cv_prog_CC+:} false; then :
2593 $as_echo_n "(cached) " >&6
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2607 ac_prog_rejected=yes
2611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 if test $ac_prog_rejected = yes; then
2619 # We found a bogon in the path, so make sure we never use it.
2620 set dummy $ac_cv_prog_CC
2622 if test $# != 0; then
2623 # We chose a different compiler from the bogus one.
2624 # However, it has the same basename, so the bogon will be chosen
2625 # first if we set CC to just the basename; use the full file name.
2627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2633 if test -n "$CC"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2635 $as_echo "$CC" >&6; }
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 $as_echo "no" >&6; }
2643 if test -z "$CC"; then
2644 if test -n "$ac_tool_prefix"; then
2645 for ac_prog in cl.exe
2647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if ${ac_cv_prog_CC+:} false; then :
2652 $as_echo_n "(cached) " >&6
2654 if test -n "$CC"; then
2655 ac_cv_prog_CC="$CC" # Let the user override the test.
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 if test -n "$CC"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2677 $as_echo "$CC" >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2684 test -n "$CC" && break
2687 if test -z "$CC"; then
2689 for ac_prog in cl.exe
2691 # Extract the first word of "$ac_prog", so it can be a program name with args.
2692 set dummy $ac_prog; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2696 $as_echo_n "(cached) " >&6
2698 if test -n "$ac_ct_CC"; then
2699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_ac_ct_CC="$ac_prog"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2719 if test -n "$ac_ct_CC"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2721 $as_echo "$ac_ct_CC" >&6; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2728 test -n "$ac_ct_CC" && break
2731 if test "x$ac_ct_CC" = x; then
2734 case $cross_compiling:$ac_tool_warned in
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2738 ac_tool_warned=yes ;;
2747 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2749 as_fn_error $? "no acceptable C compiler found in \$PATH
2750 See \`config.log' for more details" "$LINENO" 5; }
2752 # Provide some information about the compiler.
2753 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2756 for ac_option in --version -v -V -qversion; do
2757 { { ac_try="$ac_compiler $ac_option >&5"
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763 $as_echo "$ac_try_echo"; } >&5
2764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2766 if test -s conftest.err; then
2768 ... rest of stderr output deleted ...
2769 10q' conftest.err >conftest.er1
2770 cat conftest.er1 >&5
2772 rm -f conftest.er1 conftest.err
2773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2774 test $ac_status = 0; }
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2788 ac_clean_files_save=$ac_clean_files
2789 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2790 # Try to create an executable without -o first, disregard a.out.
2791 # It will help us diagnose broken compilers, and finding out an intuition
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2794 $as_echo_n "checking whether the C compiler works... " >&6; }
2795 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2797 # The possible output files:
2798 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2801 for ac_file in $ac_files
2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2805 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2810 if { { ac_try="$ac_link_default"
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2816 $as_echo "$ac_try_echo"; } >&5
2817 (eval "$ac_link_default") 2>&5
2819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2820 test $ac_status = 0; }; then :
2821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2822 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2823 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2824 # so that the user can short-circuit this test for compilers unknown to
2826 for ac_file in $ac_files ''
2828 test -f "$ac_file" || continue
2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2833 # We found the default executable, but exeext='' is most
2837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841 # We set ac_cv_exeext here because the later test for it is not
2842 # safe: cross compilers may not add the suffix if given an `-o'
2843 # argument, so we may need to know it at that point already.
2844 # Even if this section looks crufty: it has the advantage of
2851 test "$ac_cv_exeext" = no && ac_cv_exeext=
2856 if test -z "$ac_file"; then :
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2859 $as_echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2864 as_fn_error 77 "C compiler cannot create executables
2865 See \`config.log' for more details" "$LINENO" 5; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2868 $as_echo "yes" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2871 $as_echo_n "checking for C compiler default output file name... " >&6; }
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2873 $as_echo "$ac_file" >&6; }
2874 ac_exeext=$ac_cv_exeext
2876 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2877 ac_clean_files=$ac_clean_files_save
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2879 $as_echo_n "checking for suffix of executables... " >&6; }
2880 if { { ac_try="$ac_link"
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886 $as_echo "$ac_try_echo"; } >&5
2887 (eval "$ac_link") 2>&5
2889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890 test $ac_status = 0; }; then :
2891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2892 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2893 # work properly (i.e., refer to `conftest.exe'), while it won't with
2895 for ac_file in conftest.exe conftest conftest.*; do
2896 test -f "$ac_file" || continue
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2907 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2908 See \`config.log' for more details" "$LINENO" 5; }
2910 rm -f conftest conftest$ac_cv_exeext
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2912 $as_echo "$ac_cv_exeext" >&6; }
2914 rm -f conftest.$ac_ext
2915 EXEEXT=$ac_cv_exeext
2917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2923 FILE *f = fopen ("conftest.out", "w");
2924 return ferror (f) || fclose (f) != 0;
2930 ac_clean_files="$ac_clean_files conftest.out"
2931 # Check that the compiler produces executables we can run. If not, either
2932 # the compiler is broken, or we cross compile.
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2934 $as_echo_n "checking whether we are cross compiling... " >&6; }
2935 if test "$cross_compiling" != yes; then
2936 { { ac_try="$ac_link"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2942 $as_echo "$ac_try_echo"; } >&5
2943 (eval "$ac_link") 2>&5
2945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2946 test $ac_status = 0; }
2947 if { ac_try='./conftest$ac_cv_exeext'
2948 { { case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953 $as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_try") 2>&5
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }; }; then
2960 if test "$cross_compiling" = maybe; then
2963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965 as_fn_error $? "cannot run C compiled programs.
2966 If you meant to cross compile, use \`--host'.
2967 See \`config.log' for more details" "$LINENO" 5; }
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2972 $as_echo "$cross_compiling" >&6; }
2974 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2975 ac_clean_files=$ac_clean_files_save
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2977 $as_echo_n "checking for suffix of object files... " >&6; }
2978 if ${ac_cv_objext+:} false; then :
2979 $as_echo_n "(cached) " >&6
2981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h. */
2992 rm -f conftest.o conftest.obj
2993 if { { ac_try="$ac_compile"
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2999 $as_echo "$ac_try_echo"; } >&5
3000 (eval "$ac_compile") 2>&5
3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }; then :
3004 for ac_file in conftest.o conftest.obj conftest.*; do
3005 test -f "$ac_file" || continue;
3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3008 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3013 $as_echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3018 as_fn_error $? "cannot compute suffix of object files: cannot compile
3019 See \`config.log' for more details" "$LINENO" 5; }
3021 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3024 $as_echo "$ac_cv_objext" >&6; }
3025 OBJEXT=$ac_cv_objext
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3028 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3029 if ${ac_cv_c_compiler_gnu+:} false; then :
3030 $as_echo_n "(cached) " >&6
3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h. */
3046 if ac_fn_c_try_compile "$LINENO"; then :
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3056 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3057 if test $ac_compiler_gnu = yes; then
3062 ac_test_CFLAGS=${CFLAGS+set}
3063 ac_save_CFLAGS=$CFLAGS
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3065 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3066 if ${ac_cv_prog_cc_g+:} false; then :
3067 $as_echo_n "(cached) " >&6
3069 ac_save_c_werror_flag=$ac_c_werror_flag
3070 ac_c_werror_flag=yes
3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074 /* end confdefs.h. */
3084 if ac_fn_c_try_compile "$LINENO"; then :
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3099 if ac_fn_c_try_compile "$LINENO"; then :
3102 ac_c_werror_flag=$ac_save_c_werror_flag
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3115 if ac_fn_c_try_compile "$LINENO"; then :
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 ac_c_werror_flag=$ac_save_c_werror_flag
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3126 $as_echo "$ac_cv_prog_cc_g" >&6; }
3127 if test "$ac_test_CFLAGS" = set; then
3128 CFLAGS=$ac_save_CFLAGS
3129 elif test $ac_cv_prog_cc_g = yes; then
3130 if test "$GCC" = yes; then
3136 if test "$GCC" = yes; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3143 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3144 if ${ac_cv_prog_cc_c89+:} false; then :
3145 $as_echo_n "(cached) " >&6
3147 ac_cv_prog_cc_c89=no
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3154 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3155 struct buf { int x; };
3156 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3157 static char *e (p, i)
3163 static char *f (char * (*g) (char **, int), char **p, ...)
3168 s = g (p, va_arg (v,int));
3173 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3174 function prototypes and stuff, but not '\xHH' hex character constants.
3175 These don't provoke an error unfortunately, instead are silently treated
3176 as 'x'. The following induces an error, until -std is added to get
3177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3178 array size at least. It's necessary to write '\x00'==0 to get something
3179 that's true only with -std. */
3180 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3183 inside strings and character constants. */
3185 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3187 int test (int i, double x);
3188 struct s1 {int (*f) (int a);};
3189 struct s2 {int (*f) (double a);};
3190 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3196 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3201 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3202 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3204 CC="$ac_save_CC $ac_arg"
3205 if ac_fn_c_try_compile "$LINENO"; then :
3206 ac_cv_prog_cc_c89=$ac_arg
3208 rm -f core conftest.err conftest.$ac_objext
3209 test "x$ac_cv_prog_cc_c89" != "xno" && break
3211 rm -f conftest.$ac_ext
3216 case "x$ac_cv_prog_cc_c89" in
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3219 $as_echo "none needed" >&6; } ;;
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3222 $as_echo "unsupported" >&6; } ;;
3224 CC="$CC $ac_cv_prog_cc_c89"
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3226 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3228 if test "x$ac_cv_prog_cc_c89" != xno; then :
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3245 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3246 # On Suns, sometimes $CPP names a directory.
3247 if test -n "$CPP" && test -d "$CPP"; then
3250 if test -z "$CPP"; then
3251 if ${ac_cv_prog_CPP+:} false; then :
3252 $as_echo_n "(cached) " >&6
3254 # Double quotes because CPP needs to be expanded
3255 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3258 for ac_c_preproc_warn_flag in '' yes
3260 # Use a header file that comes with gcc, so configuring glibc
3261 # with a fresh cross-compiler works.
3262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3263 # <limits.h> exists even on freestanding compilers.
3264 # On the NeXT, cc -E runs the code through the compiler's parser,
3265 # not just through cpp. "Syntax error" is here to catch this case.
3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267 /* end confdefs.h. */
3269 # include <limits.h>
3271 # include <assert.h>
3275 if ac_fn_c_try_cpp "$LINENO"; then :
3278 # Broken: fails on valid input.
3281 rm -f conftest.err conftest.i conftest.$ac_ext
3283 # OK, works on sane cases. Now check whether nonexistent headers
3284 # can be detected and how.
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3287 #include <ac_nonexistent.h>
3289 if ac_fn_c_try_cpp "$LINENO"; then :
3290 # Broken: success on invalid input.
3293 # Passes both tests.
3297 rm -f conftest.err conftest.i conftest.$ac_ext
3300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3301 rm -f conftest.i conftest.err conftest.$ac_ext
3302 if $ac_preproc_ok; then :
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3315 $as_echo "$CPP" >&6; }
3317 for ac_c_preproc_warn_flag in '' yes
3319 # Use a header file that comes with gcc, so configuring glibc
3320 # with a fresh cross-compiler works.
3321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3322 # <limits.h> exists even on freestanding compilers.
3323 # On the NeXT, cc -E runs the code through the compiler's parser,
3324 # not just through cpp. "Syntax error" is here to catch this case.
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3328 # include <limits.h>
3330 # include <assert.h>
3334 if ac_fn_c_try_cpp "$LINENO"; then :
3337 # Broken: fails on valid input.
3340 rm -f conftest.err conftest.i conftest.$ac_ext
3342 # OK, works on sane cases. Now check whether nonexistent headers
3343 # can be detected and how.
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3346 #include <ac_nonexistent.h>
3348 if ac_fn_c_try_cpp "$LINENO"; then :
3349 # Broken: success on invalid input.
3352 # Passes both tests.
3356 rm -f conftest.err conftest.i conftest.$ac_ext
3359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360 rm -f conftest.i conftest.err conftest.$ac_ext
3361 if $ac_preproc_ok; then :
3364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3367 See \`config.log' for more details" "$LINENO" 5; }
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3378 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3379 if ${ac_cv_path_GREP+:} false; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -z "$GREP"; then
3383 ac_path_GREP_found=false
3384 # Loop through the user's path and test for each of PROGNAME-LIST
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3389 test -z "$as_dir" && as_dir=.
3390 for ac_prog in grep ggrep; do
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3393 as_fn_executable_p "$ac_path_GREP" || continue
3394 # Check for GNU ac_path_GREP and select it if it is found.
3395 # Check for GNU $ac_path_GREP
3396 case `"$ac_path_GREP" --version 2>&1` in
3398 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3401 $as_echo_n 0123456789 >"conftest.in"
3404 cat "conftest.in" "conftest.in" >"conftest.tmp"
3405 mv "conftest.tmp" "conftest.in"
3406 cp "conftest.in" "conftest.nl"
3407 $as_echo 'GREP' >> "conftest.nl"
3408 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3410 as_fn_arith $ac_count + 1 && ac_count=$as_val
3411 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3412 # Best one so far, save it but keep looking for a better one
3413 ac_cv_path_GREP="$ac_path_GREP"
3414 ac_path_GREP_max=$ac_count
3416 # 10*(2^10) chars as input seems more than enough
3417 test $ac_count -gt 10 && break
3419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3422 $ac_path_GREP_found && break 3
3427 if test -z "$ac_cv_path_GREP"; then
3428 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3431 ac_cv_path_GREP=$GREP
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3436 $as_echo "$ac_cv_path_GREP" >&6; }
3437 GREP="$ac_cv_path_GREP"
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3441 $as_echo_n "checking for egrep... " >&6; }
3442 if ${ac_cv_path_EGREP+:} false; then :
3443 $as_echo_n "(cached) " >&6
3445 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3446 then ac_cv_path_EGREP="$GREP -E"
3448 if test -z "$EGREP"; then
3449 ac_path_EGREP_found=false
3450 # Loop through the user's path and test for each of PROGNAME-LIST
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3455 test -z "$as_dir" && as_dir=.
3456 for ac_prog in egrep; do
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3459 as_fn_executable_p "$ac_path_EGREP" || continue
3460 # Check for GNU ac_path_EGREP and select it if it is found.
3461 # Check for GNU $ac_path_EGREP
3462 case `"$ac_path_EGREP" --version 2>&1` in
3464 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3467 $as_echo_n 0123456789 >"conftest.in"
3470 cat "conftest.in" "conftest.in" >"conftest.tmp"
3471 mv "conftest.tmp" "conftest.in"
3472 cp "conftest.in" "conftest.nl"
3473 $as_echo 'EGREP' >> "conftest.nl"
3474 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3475 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3476 as_fn_arith $ac_count + 1 && ac_count=$as_val
3477 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3478 # Best one so far, save it but keep looking for a better one
3479 ac_cv_path_EGREP="$ac_path_EGREP"
3480 ac_path_EGREP_max=$ac_count
3482 # 10*(2^10) chars as input seems more than enough
3483 test $ac_count -gt 10 && break
3485 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3488 $ac_path_EGREP_found && break 3
3493 if test -z "$ac_cv_path_EGREP"; then
3494 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3497 ac_cv_path_EGREP=$EGREP
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3503 $as_echo "$ac_cv_path_EGREP" >&6; }
3504 EGREP="$ac_cv_path_EGREP"
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3508 $as_echo_n "checking for ANSI C header files... " >&6; }
3509 if ${ac_cv_header_stdc+:} false; then :
3510 $as_echo_n "(cached) " >&6
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528 ac_cv_header_stdc=yes
3530 ac_cv_header_stdc=no
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 if test $ac_cv_header_stdc = yes; then
3535 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3542 $EGREP "memchr" >/dev/null 2>&1; then :
3545 ac_cv_header_stdc=no
3551 if test $ac_cv_header_stdc = yes; then
3552 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559 $EGREP "free" >/dev/null 2>&1; then :
3562 ac_cv_header_stdc=no
3568 if test $ac_cv_header_stdc = yes; then
3569 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3570 if test "$cross_compiling" = yes; then :
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3577 #if ((' ' & 0x0FF) == 0x020)
3578 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3579 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3581 # define ISLOWER(c) \
3582 (('a' <= (c) && (c) <= 'i') \
3583 || ('j' <= (c) && (c) <= 'r') \
3584 || ('s' <= (c) && (c) <= 'z'))
3585 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3593 for (i = 0; i < 256; i++)
3594 if (XOR (islower (i), ISLOWER (i))
3595 || toupper (i) != TOUPPER (i))
3600 if ac_fn_c_try_run "$LINENO"; then :
3603 ac_cv_header_stdc=no
3605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3606 conftest.$ac_objext conftest.beam conftest.$ac_ext
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3612 $as_echo "$ac_cv_header_stdc" >&6; }
3613 if test $ac_cv_header_stdc = yes; then
3615 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3619 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3620 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3621 inttypes.h stdint.h unistd.h
3623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3624 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3626 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3627 cat >>confdefs.h <<_ACEOF
3628 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3637 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3638 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3645 if test "$MINIX" = yes; then
3647 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3650 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3653 $as_echo "#define _MINIX 1" >>confdefs.h
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3659 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3660 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3661 $as_echo_n "(cached) " >&6
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3666 # define __EXTENSIONS__ 1
3667 $ac_includes_default
3676 if ac_fn_c_try_compile "$LINENO"; then :
3677 ac_cv_safe_to_define___extensions__=yes
3679 ac_cv_safe_to_define___extensions__=no
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3684 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3685 test $ac_cv_safe_to_define___extensions__ = yes &&
3686 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3688 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3690 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3692 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3694 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 if test -n "$ac_tool_prefix"; then
3703 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3704 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if ${ac_cv_prog_CC+:} false; then :
3708 $as_echo_n "(cached) " >&6
3710 if test -n "$CC"; then
3711 ac_cv_prog_CC="$CC" # Let the user override the test.
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3720 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 if test -n "$CC"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733 $as_echo "$CC" >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3741 if test -z "$ac_cv_prog_CC"; then
3743 # Extract the first word of "gcc", so it can be a program name with args.
3744 set dummy gcc; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3748 $as_echo_n "(cached) " >&6
3750 if test -n "$ac_ct_CC"; then
3751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_ac_ct_CC="gcc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3771 if test -n "$ac_ct_CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3773 $as_echo "$ac_ct_CC" >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3779 if test "x$ac_ct_CC" = x; then
3782 case $cross_compiling:$ac_tool_warned in
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned=yes ;;
3794 if test -z "$CC"; then
3795 if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3797 set dummy ${ac_tool_prefix}cc; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if ${ac_cv_prog_CC+:} false; then :
3801 $as_echo_n "(cached) " >&6
3803 if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_CC="${ac_tool_prefix}cc"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 if test -n "$CC"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826 $as_echo "$CC" >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3835 if test -z "$CC"; then
3836 # Extract the first word of "cc", so it can be a program name with args.
3837 set dummy cc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if ${ac_cv_prog_CC+:} false; then :
3841 $as_echo_n "(cached) " >&6
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC="$CC" # Let the user override the test.
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3855 ac_prog_rejected=yes
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 if test $ac_prog_rejected = yes; then
3867 # We found a bogon in the path, so make sure we never use it.
3868 set dummy $ac_cv_prog_CC
3870 if test $# != 0; then
3871 # We chose a different compiler from the bogus one.
3872 # However, it has the same basename, so the bogon will be chosen
3873 # first if we set CC to just the basename; use the full file name.
3875 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3891 if test -z "$CC"; then
3892 if test -n "$ac_tool_prefix"; then
3893 for ac_prog in cl.exe
3895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if ${ac_cv_prog_CC+:} false; then :
3900 $as_echo_n "(cached) " >&6
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC="$CC" # Let the user override the test.
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 if test -n "$CC"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 $as_echo "$CC" >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3932 test -n "$CC" && break
3935 if test -z "$CC"; then
3937 for ac_prog in cl.exe
3939 # Extract the first word of "$ac_prog", so it can be a program name with args.
3940 set dummy $ac_prog; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3944 $as_echo_n "(cached) " >&6
3946 if test -n "$ac_ct_CC"; then
3947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956 ac_cv_prog_ac_ct_CC="$ac_prog"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3967 if test -n "$ac_ct_CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3969 $as_echo "$ac_ct_CC" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3976 test -n "$ac_ct_CC" && break
3979 if test "x$ac_ct_CC" = x; then
3982 case $cross_compiling:$ac_tool_warned in
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3986 ac_tool_warned=yes ;;
3995 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error $? "no acceptable C compiler found in \$PATH
3998 See \`config.log' for more details" "$LINENO" 5; }
4000 # Provide some information about the compiler.
4001 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4004 for ac_option in --version -v -V -qversion; do
4005 { { ac_try="$ac_compiler $ac_option >&5"
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4014 if test -s conftest.err; then
4016 ... rest of stderr output deleted ...
4017 10q' conftest.err >conftest.er1
4018 cat conftest.er1 >&5
4020 rm -f conftest.er1 conftest.err
4021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4026 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4027 if ${ac_cv_c_compiler_gnu+:} false; then :
4028 $as_echo_n "(cached) " >&6
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4044 if ac_fn_c_try_compile "$LINENO"; then :
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4054 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4055 if test $ac_compiler_gnu = yes; then
4060 ac_test_CFLAGS=${CFLAGS+set}
4061 ac_save_CFLAGS=$CFLAGS
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4063 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4064 if ${ac_cv_prog_cc_g+:} false; then :
4065 $as_echo_n "(cached) " >&6
4067 ac_save_c_werror_flag=$ac_c_werror_flag
4068 ac_c_werror_flag=yes
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4082 if ac_fn_c_try_compile "$LINENO"; then :
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4097 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_c_werror_flag=$ac_save_c_werror_flag
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 if ac_fn_c_try_compile "$LINENO"; then :
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 ac_c_werror_flag=$ac_save_c_werror_flag
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4124 $as_echo "$ac_cv_prog_cc_g" >&6; }
4125 if test "$ac_test_CFLAGS" = set; then
4126 CFLAGS=$ac_save_CFLAGS
4127 elif test $ac_cv_prog_cc_g = yes; then
4128 if test "$GCC" = yes; then
4134 if test "$GCC" = yes; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4141 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4142 if ${ac_cv_prog_cc_c89+:} false; then :
4143 $as_echo_n "(cached) " >&6
4145 ac_cv_prog_cc_c89=no
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4152 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4153 struct buf { int x; };
4154 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4155 static char *e (p, i)
4161 static char *f (char * (*g) (char **, int), char **p, ...)
4166 s = g (p, va_arg (v,int));
4171 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4172 function prototypes and stuff, but not '\xHH' hex character constants.
4173 These don't provoke an error unfortunately, instead are silently treated
4174 as 'x'. The following induces an error, until -std is added to get
4175 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4176 array size at least. It's necessary to write '\x00'==0 to get something
4177 that's true only with -std. */
4178 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4180 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4181 inside strings and character constants. */
4183 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4185 int test (int i, double x);
4186 struct s1 {int (*f) (int a);};
4187 struct s2 {int (*f) (double a);};
4188 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4194 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4199 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4200 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4202 CC="$ac_save_CC $ac_arg"
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_prog_cc_c89=$ac_arg
4206 rm -f core conftest.err conftest.$ac_objext
4207 test "x$ac_cv_prog_cc_c89" != "xno" && break
4209 rm -f conftest.$ac_ext
4214 case "x$ac_cv_prog_cc_c89" in
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4217 $as_echo "none needed" >&6; } ;;
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4220 $as_echo "unsupported" >&6; } ;;
4222 CC="$CC $ac_cv_prog_cc_c89"
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4224 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4226 if test "x$ac_cv_prog_cc_c89" != xno; then :
4231 ac_cpp='$CPP $CPPFLAGS'
4232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4237 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4238 if ${ac_cv_prog_cc_c99+:} false; then :
4239 $as_echo_n "(cached) " >&6
4241 ac_cv_prog_cc_c99=no
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4246 #include <stdbool.h>
4251 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4252 #define debug(...) fprintf (stderr, __VA_ARGS__)
4253 #define showlist(...) puts (#__VA_ARGS__)
4254 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4256 test_varargs_macros (void)
4261 debug ("X = %d\n", x);
4262 showlist (The first, second, and third items.);
4263 report (x>y, "x is %d but y is %d", x, y);
4266 // Check long long types.
4267 #define BIG64 18446744073709551615ull
4268 #define BIG32 4294967295ul
4269 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4271 your preprocessor is broken;
4275 your preprocessor is broken;
4277 static long long int bignum = -9223372036854775807LL;
4278 static unsigned long long int ubignum = BIG64;
4280 struct incomplete_array
4288 const wchar_t *name;
4292 typedef const char *ccp;
4295 test_restrict (ccp restrict text)
4297 // See if C++-style comments work.
4298 // Iterate through items via the restricted pointer.
4299 // Also check for declarations in for loops.
4300 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4305 // Check varargs and va_copy.
4307 test_varargs (const char *format, ...)
4310 va_start (args, format);
4312 va_copy (args_copy, args);
4323 str = va_arg (args_copy, const char *);
4326 number = va_arg (args_copy, int);
4329 fnumber = va_arg (args_copy, double);
4344 _Bool success = false;
4347 if (test_restrict ("String literal") == 0)
4349 char *restrict newvar = "Another string";
4352 test_varargs ("s, d' f .", "string", 65, 34.234);
4353 test_varargs_macros ();
4355 // Check flexible array members.
4356 struct incomplete_array *ia =
4357 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4359 for (int i = 0; i < ia->datasize; ++i)
4360 ia->data[i] = i * 1.234;
4362 // Check named initializers.
4363 struct named_init ni = {
4365 .name = L"Test wide string",
4366 .average = 543.34343,
4371 int dynamic_array[ni.number];
4372 dynamic_array[ni.number - 1] = 543;
4374 // work around unused variable warnings
4375 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4376 || dynamic_array[ni.number - 1] != 543);
4382 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4384 CC="$ac_save_CC $ac_arg"
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386 ac_cv_prog_cc_c99=$ac_arg
4388 rm -f core conftest.err conftest.$ac_objext
4389 test "x$ac_cv_prog_cc_c99" != "xno" && break
4391 rm -f conftest.$ac_ext
4396 case "x$ac_cv_prog_cc_c99" in
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4399 $as_echo "none needed" >&6; } ;;
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4402 $as_echo "unsupported" >&6; } ;;
4404 CC="$CC $ac_cv_prog_cc_c99"
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4406 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4408 if test "x$ac_cv_prog_cc_c99" != xno; then :
4414 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4415 if test -f "$ac_dir/install-sh"; then
4417 ac_install_sh="$ac_aux_dir/install-sh -c"
4419 elif test -f "$ac_dir/install.sh"; then
4421 ac_install_sh="$ac_aux_dir/install.sh -c"
4423 elif test -f "$ac_dir/shtool"; then
4425 ac_install_sh="$ac_aux_dir/shtool install -c"
4429 if test -z "$ac_aux_dir"; then
4430 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4433 # These three variables are undocumented and unsupported,
4434 # and are intended to be withdrawn in a future Autoconf release.
4435 # They can cause serious problems if a builder's source tree is in a directory
4436 # whose full name contains unusual characters.
4437 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4438 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4439 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4442 # Find a good install program. We prefer a C program (faster),
4443 # so one script is as good as another. But avoid the broken or
4444 # incompatible versions:
4445 # SysV /etc/install, /usr/sbin/install
4446 # SunOS /usr/etc/install
4447 # IRIX /sbin/install
4449 # AmigaOS /C/install, which installs bootblocks on floppy discs
4450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4453 # OS/2's system install, which has a completely different semantic
4454 # ./install, which can be erroneously created by make from ./install.sh.
4455 # Reject install programs that cannot install multiple files.
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4457 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4458 if test -z "$INSTALL"; then
4459 if ${ac_cv_path_install+:} false; then :
4460 $as_echo_n "(cached) " >&6
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 # Account for people who put trailing slashes in PATH elements.
4468 case $as_dir/ in #((
4469 ./ | .// | /[cC]/* | \
4470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4471 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4474 # OSF1 and SCO ODT 3.0 have their own names for install.
4475 # Don't use installbsd from OSF since it installs stuff as root
4477 for ac_prog in ginstall scoinst install; do
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4480 if test $ac_prog = install &&
4481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4482 # AIX install. It has an incompatible calling convention.
4484 elif test $ac_prog = install &&
4485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4486 # program-specific install script used by HP pwplus--don't use.
4489 rm -rf conftest.one conftest.two conftest.dir
4490 echo one > conftest.one
4491 echo two > conftest.two
4493 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4494 test -s conftest.one && test -s conftest.two &&
4495 test -s conftest.dir/conftest.one &&
4496 test -s conftest.dir/conftest.two
4498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4511 rm -rf conftest.one conftest.two conftest.dir
4514 if test "${ac_cv_path_install+set}" = set; then
4515 INSTALL=$ac_cv_path_install
4517 # As a last resort, use the slow shell script. Don't cache a
4518 # value for INSTALL within a source directory, because that will
4519 # break other packages using the cache if that directory is
4520 # removed, or if the value is a relative name.
4521 INSTALL=$ac_install_sh
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4525 $as_echo "$INSTALL" >&6; }
4527 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4528 # It thinks the first close brace ends the variable substitution.
4529 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4531 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4533 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4535 if test -x /usr/bin/getconf; then
4536 bmake_path_max=`getconf PATH_MAX / 2> /dev/null`
4537 # only a numeric response is useful
4538 test ${bmake_path_max:-0} -gt 0 2> /dev/null || bmake_path_max=
4540 bmake_path_max=${bmake_path_max:-1024}
4541 if test $bmake_path_max -gt 1024; then
4542 # this is all we expect
4545 echo "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4548 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4549 if ${ac_cv_header_sys_wait_h+:} false; then :
4550 $as_echo_n "(cached) " >&6
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554 #include <sys/types.h>
4555 #include <sys/wait.h>
4557 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4560 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4568 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4573 if ac_fn_c_try_compile "$LINENO"; then :
4574 ac_cv_header_sys_wait_h=yes
4576 ac_cv_header_sys_wait_h=no
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4581 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4582 if test $ac_cv_header_sys_wait_h = yes; then
4584 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4589 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4590 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4592 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4593 if eval \${$as_ac_Header+:} false; then :
4594 $as_echo_n "(cached) " >&6
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598 #include <sys/types.h>
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611 eval "$as_ac_Header=yes"
4613 eval "$as_ac_Header=no"
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 eval ac_res=\$$as_ac_Header
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4619 $as_echo "$ac_res" >&6; }
4620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4621 cat >>confdefs.h <<_ACEOF
4622 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4625 ac_header_dirent=$ac_hdr; break
4629 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4630 if test $ac_header_dirent = dirent.h; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4632 $as_echo_n "checking for library containing opendir... " >&6; }
4633 if ${ac_cv_search_opendir+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 ac_func_search_save_LIBS=$LIBS
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4640 /* Override any GCC internal prototype to avoid an error.
4641 Use char because int might match the return type of a GCC
4642 builtin and then its argument prototype would still apply. */
4655 for ac_lib in '' dir; do
4656 if test -z "$ac_lib"; then
4657 ac_res="none required"
4660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4662 if ac_fn_c_try_link "$LINENO"; then :
4663 ac_cv_search_opendir=$ac_res
4665 rm -f core conftest.err conftest.$ac_objext \
4667 if ${ac_cv_search_opendir+:} false; then :
4671 if ${ac_cv_search_opendir+:} false; then :
4674 ac_cv_search_opendir=no
4677 LIBS=$ac_func_search_save_LIBS
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4680 $as_echo "$ac_cv_search_opendir" >&6; }
4681 ac_res=$ac_cv_search_opendir
4682 if test "$ac_res" != no; then :
4683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4689 $as_echo_n "checking for library containing opendir... " >&6; }
4690 if ${ac_cv_search_opendir+:} false; then :
4691 $as_echo_n "(cached) " >&6
4693 ac_func_search_save_LIBS=$LIBS
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4697 /* Override any GCC internal prototype to avoid an error.
4698 Use char because int might match the return type of a GCC
4699 builtin and then its argument prototype would still apply. */
4712 for ac_lib in '' x; do
4713 if test -z "$ac_lib"; then
4714 ac_res="none required"
4717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4719 if ac_fn_c_try_link "$LINENO"; then :
4720 ac_cv_search_opendir=$ac_res
4722 rm -f core conftest.err conftest.$ac_objext \
4724 if ${ac_cv_search_opendir+:} false; then :
4728 if ${ac_cv_search_opendir+:} false; then :
4731 ac_cv_search_opendir=no
4734 LIBS=$ac_func_search_save_LIBS
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4737 $as_echo "$ac_cv_search_opendir" >&6; }
4738 ac_res=$ac_cv_search_opendir
4739 if test "$ac_res" != no; then :
4740 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4746 for ac_header in sys/param.h
4748 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4749 if test "x$ac_cv_header_sys_param_h" = xyes; then :
4750 cat >>confdefs.h <<_ACEOF
4751 #define HAVE_SYS_PARAM_H 1
4758 for ac_header in sys/sysctl.h
4760 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#ifdef HAVE_SYS_PARAM_H
4761 # include <sys/param.h>
4765 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
4766 cat >>confdefs.h <<_ACEOF
4767 #define HAVE_SYS_SYSCTL_H 1
4792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4793 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4795 cat >>confdefs.h <<_ACEOF
4796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4804 ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
4805 if test "x$ac_cv_header_sys_cdefs_h" = xyes; then :
4806 echo $ECHO_N "checking whether sys/cdefs.h is compatible... $ECHO_C" >&6
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809 #include <sys/cdefs.h>
4815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4816 $EGREP "yes" >/dev/null 2>&1; then :
4819 echo no >&6; CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd` -DNEED_HOST_CDEFS_H"
4824 CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`"
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4831 $as_echo_n "checking for __attribute__... " >&6; }
4832 if ${ac_cv___attribute__+:} false; then :
4833 $as_echo_n "(cached) " >&6
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4841 static void foo(void) __attribute__ ((noreturn));
4850 main(int argc, char **argv)
4856 if ac_fn_c_try_link "$LINENO"; then :
4857 ac_cv___attribute__=yes
4859 ac_cv___attribute__=no
4861 rm -f core conftest.err conftest.$ac_objext \
4862 conftest$ac_exeext conftest.$ac_ext
4865 if test "$ac_cv___attribute__" = "yes"; then
4867 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
4871 $as_echo "$ac_cv___attribute__" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4874 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4875 if ${ac_cv_c_bigendian+:} false; then :
4876 $as_echo_n "(cached) " >&6
4878 ac_cv_c_bigendian=unknown
4879 # See if we're dealing with a universal compiler.
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4882 #ifndef __APPLE_CC__
4883 not a universal capable compiler
4888 if ac_fn_c_try_compile "$LINENO"; then :
4890 # Check for potential -arch flags. It is not universal unless
4891 # there are at least two -arch flags with different values.
4894 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4895 if test -n "$ac_prev"; then
4897 i?86 | x86_64 | ppc | ppc64)
4898 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4901 ac_cv_c_bigendian=universal
4907 elif test "x$ac_word" = "x-arch"; then
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 if test $ac_cv_c_bigendian = unknown; then
4914 # See if sys/param.h defines the BYTE_ORDER macro.
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917 #include <sys/types.h>
4918 #include <sys/param.h>
4923 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4924 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4933 if ac_fn_c_try_compile "$LINENO"; then :
4934 # It does; now see whether it defined to BIG_ENDIAN or not.
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4937 #include <sys/types.h>
4938 #include <sys/param.h>
4943 #if BYTE_ORDER != BIG_ENDIAN
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_cv_c_bigendian=yes
4954 ac_cv_c_bigendian=no
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 if test $ac_cv_c_bigendian = unknown; then
4961 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4969 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4977 if ac_fn_c_try_compile "$LINENO"; then :
4978 # It does; now see whether it defined to _BIG_ENDIAN or not.
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4994 if ac_fn_c_try_compile "$LINENO"; then :
4995 ac_cv_c_bigendian=yes
4997 ac_cv_c_bigendian=no
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 if test $ac_cv_c_bigendian = unknown; then
5004 # Compile a test program.
5005 if test "$cross_compiling" = yes; then :
5006 # Try to guess by grepping values from an object file.
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5009 short int ascii_mm[] =
5010 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5011 short int ascii_ii[] =
5012 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5013 int use_ascii (int i) {
5014 return ascii_mm[i] + ascii_ii[i];
5016 short int ebcdic_ii[] =
5017 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5018 short int ebcdic_mm[] =
5019 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5020 int use_ebcdic (int i) {
5021 return ebcdic_mm[i] + ebcdic_ii[i];
5028 return use_ascii (foo) == use_ebcdic (foo);
5033 if ac_fn_c_try_compile "$LINENO"; then :
5034 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5035 ac_cv_c_bigendian=yes
5037 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5038 if test "$ac_cv_c_bigendian" = unknown; then
5039 ac_cv_c_bigendian=no
5041 # finding both strings is unlikely to happen, but who knows?
5042 ac_cv_c_bigendian=unknown
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 $ac_includes_default
5055 /* Are we little or big endian? From Harbison&Steele. */
5059 char c[sizeof (long int)];
5062 return u.c[sizeof (long int) - 1] == 1;
5068 if ac_fn_c_try_run "$LINENO"; then :
5069 ac_cv_c_bigendian=no
5071 ac_cv_c_bigendian=yes
5073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5074 conftest.$ac_objext conftest.beam conftest.$ac_ext
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5080 $as_echo "$ac_cv_c_bigendian" >&6; }
5081 case $ac_cv_c_bigendian in #(
5083 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5089 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5093 as_fn_error $? "unknown endianness
5094 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5098 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5099 if ${ac_cv_c_const+:} false; then :
5100 $as_echo_n "(cached) " >&6
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5110 /* Ultrix mips cc rejects this sort of thing. */
5111 typedef int charset[2];
5112 const charset cs = { 0, 0 };
5113 /* SunOS 4.1.1 cc rejects this. */
5114 char const *const *pcpcc;
5116 /* NEC SVR4.0.2 mips cc rejects this. */
5117 struct point {int x, y;};
5118 static struct point const zero = {0,0};
5119 /* AIX XL C 1.02.0.0 rejects this.
5120 It does not let you subtract one const X* pointer from another in
5121 an arm of an if-expression whose if-part is not a constant
5123 const char *g = "string";
5124 pcpcc = &g + (g ? g-g : 0);
5125 /* HPUX 7.0 cc rejects these. */
5127 ppc = (char**) pcpcc;
5128 pcpcc = (char const *const *) ppc;
5129 { /* SCO 3.2v4 cc rejects this sort of thing. */
5132 char const *s = 0 ? (char *) 0 : (char const *) 0;
5137 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5139 const int *foo = &x[0];
5142 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5143 typedef const int *iptr;
5147 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5148 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5149 struct s { int j; const int *ap[3]; } bx;
5150 struct s *b = &bx; b->j = 5;
5152 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5156 return !cs[0] && !zero.x;
5163 if ac_fn_c_try_compile "$LINENO"; then :
5168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5171 $as_echo "$ac_cv_c_const" >&6; }
5172 if test $ac_cv_c_const = no; then
5174 $as_echo "#define const /**/" >>confdefs.h
5178 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5179 if test "x$ac_cv_type_mode_t" = xyes; then :
5183 cat >>confdefs.h <<_ACEOF
5189 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5190 if test "x$ac_cv_type_off_t" = xyes; then :
5194 cat >>confdefs.h <<_ACEOF
5195 #define off_t long int
5200 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5201 if test "x$ac_cv_type_pid_t" = xyes; then :
5205 cat >>confdefs.h <<_ACEOF
5211 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5212 if test "x$ac_cv_type_size_t" = xyes; then :
5216 cat >>confdefs.h <<_ACEOF
5217 #define size_t unsigned int
5222 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5223 case $ac_cv_c_uint32_t in #(
5227 $as_echo "#define _UINT32_T 1" >>confdefs.h
5230 cat >>confdefs.h <<_ACEOF
5231 #define uint32_t $ac_cv_c_uint32_t
5236 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
5237 /* NetBSD declares sys_siglist in unistd.h. */
5238 #ifdef HAVE_UNISTD_H
5239 # include <unistd.h>
5243 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
5249 cat >>confdefs.h <<_ACEOF
5250 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5255 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5256 if ${ac_cv_header_time+:} false; then :
5257 $as_echo_n "(cached) " >&6
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 #include <sys/types.h>
5262 #include <sys/time.h>
5268 if ((struct tm *) 0)
5274 if ac_fn_c_try_compile "$LINENO"; then :
5275 ac_cv_header_time=yes
5277 ac_cv_header_time=no
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5282 $as_echo "$ac_cv_header_time" >&6; }
5283 if test $ac_cv_header_time = yes; then
5285 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5290 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5291 if ${ac_cv_struct_tm+:} false; then :
5292 $as_echo_n "(cached) " >&6
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 #include <sys/types.h>
5303 int *p = &tm.tm_sec;
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310 ac_cv_struct_tm=time.h
5312 ac_cv_struct_tm=sys/time.h
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5317 $as_echo "$ac_cv_struct_tm" >&6; }
5318 if test $ac_cv_struct_tm = sys/time.h; then
5320 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5326 $as_echo_n "checking return type of signal handlers... " >&6; }
5327 if ${ac_cv_type_signal+:} false; then :
5328 $as_echo_n "(cached) " >&6
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #include <sys/types.h>
5338 return *(signal (0, 0)) (0) == 1;
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344 ac_cv_type_signal=int
5346 ac_cv_type_signal=void
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5351 $as_echo "$ac_cv_type_signal" >&6; }
5353 cat >>confdefs.h <<_ACEOF
5354 #define RETSIGTYPE $ac_cv_type_signal
5358 for ac_header in vfork.h
5360 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5361 if test "x$ac_cv_header_vfork_h" = xyes; then :
5362 cat >>confdefs.h <<_ACEOF
5363 #define HAVE_VFORK_H 1
5370 for ac_func in fork vfork
5372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5373 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5374 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5375 cat >>confdefs.h <<_ACEOF
5376 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5382 if test "x$ac_cv_func_fork" = xyes; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5384 $as_echo_n "checking for working fork... " >&6; }
5385 if ${ac_cv_func_fork_works+:} false; then :
5386 $as_echo_n "(cached) " >&6
5388 if test "$cross_compiling" = yes; then :
5389 ac_cv_func_fork_works=cross
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 $ac_includes_default
5398 /* By Ruediger Kuhlmann. */
5405 if ac_fn_c_try_run "$LINENO"; then :
5406 ac_cv_func_fork_works=yes
5408 ac_cv_func_fork_works=no
5410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5411 conftest.$ac_objext conftest.beam conftest.$ac_ext
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5416 $as_echo "$ac_cv_func_fork_works" >&6; }
5419 ac_cv_func_fork_works=$ac_cv_func_fork
5421 if test "x$ac_cv_func_fork_works" = xcross; then
5423 *-*-amigaos* | *-*-msdosdjgpp*)
5424 # Override, as these systems have only a dummy fork() stub
5425 ac_cv_func_fork_works=no
5428 ac_cv_func_fork_works=yes
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5432 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5434 ac_cv_func_vfork_works=$ac_cv_func_vfork
5435 if test "x$ac_cv_func_vfork" = xyes; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5437 $as_echo_n "checking for working vfork... " >&6; }
5438 if ${ac_cv_func_vfork_works+:} false; then :
5439 $as_echo_n "(cached) " >&6
5441 if test "$cross_compiling" = yes; then :
5442 ac_cv_func_vfork_works=cross
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 /* Thanks to Paul Eggert for this test. */
5447 $ac_includes_default
5448 #include <sys/wait.h>
5452 /* On some sparc systems, changes by the child to local and incoming
5453 argument registers are propagated back to the parent. The compiler
5454 is told about this with #include <vfork.h>, but some compilers
5455 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5456 static variable whose address is put into a register that is
5457 clobbered by the vfork. */
5460 sparc_address_test (int arg)
5462 sparc_address_test (arg) int arg;
5483 pid_t parent = getpid ();
5486 sparc_address_test (0);
5491 /* Here is another test for sparc vfork register problems. This
5492 test uses lots of local variables, at least as many local
5493 variables as main has allocated so far including compiler
5494 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5495 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5496 reuse the register of parent for one of the local variables,
5497 since it will think that parent can't possibly be used any more
5498 in this routine. Assigning to the local variable will thus
5499 munge parent in the parent process. */
5501 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5502 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5503 /* Convince the compiler that p..p7 are live; otherwise, it might
5504 use the same hardware register for all 8 local variables. */
5505 if (p != p1 || p != p2 || p != p3 || p != p4
5506 || p != p5 || p != p6 || p != p7)
5509 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5510 from child file descriptors. If the child closes a descriptor
5511 before it execs or exits, this munges the parent's descriptor
5512 as well. Test for this by closing stdout in the child. */
5513 _exit(close(fileno(stdout)) != 0);
5518 while (wait(&status) != child)
5521 /* Was there some problem with vforking? */
5524 /* Did the child fail? (This shouldn't happen.) */
5527 /* Did the vfork/compiler bug occur? */
5528 || parent != getpid()
5530 /* Did the file descriptor bug occur? */
5531 || fstat(fileno(stdout), &st) != 0
5536 if ac_fn_c_try_run "$LINENO"; then :
5537 ac_cv_func_vfork_works=yes
5539 ac_cv_func_vfork_works=no
5541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5542 conftest.$ac_objext conftest.beam conftest.$ac_ext
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5547 $as_echo "$ac_cv_func_vfork_works" >&6; }
5550 if test "x$ac_cv_func_fork_works" = xcross; then
5551 ac_cv_func_vfork_works=$ac_cv_func_vfork
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5553 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5556 if test "x$ac_cv_func_vfork_works" = xyes; then
5558 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5562 $as_echo "#define vfork fork" >>confdefs.h
5565 if test "x$ac_cv_func_fork_works" = xyes; then
5567 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5571 for ac_func in vprintf
5573 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5574 if test "x$ac_cv_func_vprintf" = xyes; then :
5575 cat >>confdefs.h <<_ACEOF
5576 #define HAVE_VPRINTF 1
5579 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5580 if test "x$ac_cv_func__doprnt" = xyes; then :
5582 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
5591 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
5592 if ${ac_cv_func_wait3_rusage+:} false; then :
5593 $as_echo_n "(cached) " >&6
5595 if test "$cross_compiling" = yes; then :
5596 ac_cv_func_wait3_rusage=no
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 $ac_includes_default
5601 #include <sys/time.h>
5602 #include <sys/resource.h>
5603 #include <sys/wait.h>
5604 /* HP-UX has wait3 but does not fill in rusage at all. */
5610 /* Use a field that we can force nonzero --
5611 voluntary context switches.
5612 For systems like NeXT and OSF/1 that don't set it,
5613 also use the system CPU time. And page faults (I/O) for Linux. */
5615 r.ru_stime.tv_sec = 0;
5616 r.ru_stime.tv_usec = 0;
5617 r.ru_majflt = r.ru_minflt = 0;
5620 case 0: /* Child. */
5621 sleep(1); /* Give up the CPU. */
5624 case -1: /* What can we do? */
5627 default: /* Parent. */
5629 /* Avoid "text file busy" from rm on fast HP-UX machines. */
5631 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
5632 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
5636 if ac_fn_c_try_run "$LINENO"; then :
5637 ac_cv_func_wait3_rusage=yes
5639 ac_cv_func_wait3_rusage=no
5641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5642 conftest.$ac_objext conftest.beam conftest.$ac_ext
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
5647 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
5648 if test $ac_cv_func_wait3_rusage = yes; then
5650 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
5686 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5687 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5688 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5689 cat >>confdefs.h <<_ACEOF
5690 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5697 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
5698 if test "x$ac_cv_func_realpath" = xyes; then :
5699 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
5702 case " $LIBOBJS " in
5703 *" realpath.$ac_objext "* ) ;;
5704 *) LIBOBJS="$LIBOBJS realpath.$ac_objext"
5710 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
5711 if test "x$ac_cv_func_dirname" = xyes; then :
5712 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
5715 case " $LIBOBJS " in
5716 *" dirname.$ac_objext "* ) ;;
5717 *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
5723 ac_fn_c_check_func "$LINENO" "stresep" "ac_cv_func_stresep"
5724 if test "x$ac_cv_func_stresep" = xyes; then :
5725 $as_echo "#define HAVE_STRESEP 1" >>confdefs.h
5728 case " $LIBOBJS " in
5729 *" stresep.$ac_objext "* ) ;;
5730 *) LIBOBJS="$LIBOBJS stresep.$ac_objext"
5736 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5737 if test "x$ac_cv_func_strlcpy" = xyes; then :
5738 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
5741 case " $LIBOBJS " in
5742 *" strlcpy.$ac_objext "* ) ;;
5743 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
5752 $as_echo_n "checking for emalloc in -lutil... " >&6; }
5753 if ${ac_cv_lib_util_emalloc+:} false; then :
5754 $as_echo_n "(cached) " >&6
5756 ac_check_lib_save_LIBS=$LIBS
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5761 /* Override any GCC internal prototype to avoid an error.
5762 Use char because int might match the return type of a GCC
5763 builtin and then its argument prototype would still apply. */
5776 if ac_fn_c_try_link "$LINENO"; then :
5777 ac_cv_lib_util_emalloc=yes
5779 ac_cv_lib_util_emalloc=no
5781 rm -f core conftest.err conftest.$ac_objext \
5782 conftest$ac_exeext conftest.$ac_ext
5783 LIBS=$ac_check_lib_save_LIBS
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
5786 $as_echo "$ac_cv_lib_util_emalloc" >&6; }
5787 if test "x$ac_cv_lib_util_emalloc" = xyes; then :
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
5789 $as_echo_n "checking for erealloc in -lutil... " >&6; }
5790 if ${ac_cv_lib_util_erealloc+:} false; then :
5791 $as_echo_n "(cached) " >&6
5793 ac_check_lib_save_LIBS=$LIBS
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5798 /* Override any GCC internal prototype to avoid an error.
5799 Use char because int might match the return type of a GCC
5800 builtin and then its argument prototype would still apply. */
5813 if ac_fn_c_try_link "$LINENO"; then :
5814 ac_cv_lib_util_erealloc=yes
5816 ac_cv_lib_util_erealloc=no
5818 rm -f core conftest.err conftest.$ac_objext \
5819 conftest$ac_exeext conftest.$ac_ext
5820 LIBS=$ac_check_lib_save_LIBS
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
5823 $as_echo "$ac_cv_lib_util_erealloc" >&6; }
5824 if test "x$ac_cv_lib_util_erealloc" = xyes; then :
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
5826 $as_echo_n "checking for estrdup in -lutil... " >&6; }
5827 if ${ac_cv_lib_util_estrdup+:} false; then :
5828 $as_echo_n "(cached) " >&6
5830 ac_check_lib_save_LIBS=$LIBS
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5835 /* Override any GCC internal prototype to avoid an error.
5836 Use char because int might match the return type of a GCC
5837 builtin and then its argument prototype would still apply. */
5850 if ac_fn_c_try_link "$LINENO"; then :
5851 ac_cv_lib_util_estrdup=yes
5853 ac_cv_lib_util_estrdup=no
5855 rm -f core conftest.err conftest.$ac_objext \
5856 conftest$ac_exeext conftest.$ac_ext
5857 LIBS=$ac_check_lib_save_LIBS
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
5860 $as_echo "$ac_cv_lib_util_estrdup" >&6; }
5861 if test "x$ac_cv_lib_util_estrdup" = xyes; then :
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
5863 $as_echo_n "checking for estrndup in -lutil... " >&6; }
5864 if ${ac_cv_lib_util_estrndup+:} false; then :
5865 $as_echo_n "(cached) " >&6
5867 ac_check_lib_save_LIBS=$LIBS
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5872 /* Override any GCC internal prototype to avoid an error.
5873 Use char because int might match the return type of a GCC
5874 builtin and then its argument prototype would still apply. */
5887 if ac_fn_c_try_link "$LINENO"; then :
5888 ac_cv_lib_util_estrndup=yes
5890 ac_cv_lib_util_estrndup=no
5892 rm -f core conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894 LIBS=$ac_check_lib_save_LIBS
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
5897 $as_echo "$ac_cv_lib_util_estrndup" >&6; }
5898 if test "x$ac_cv_lib_util_estrndup" = xyes; then :
5900 CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC"
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5911 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5912 if ${ac_cv_header_stat_broken+:} false; then :
5913 $as_echo_n "(cached) " >&6
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 #include <sys/types.h>
5918 #include <sys/stat.h>
5920 #if defined S_ISBLK && defined S_IFDIR
5921 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5924 #if defined S_ISBLK && defined S_IFCHR
5925 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5928 #if defined S_ISLNK && defined S_IFREG
5929 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5932 #if defined S_ISSOCK && defined S_IFREG
5933 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5937 if ac_fn_c_try_compile "$LINENO"; then :
5938 ac_cv_header_stat_broken=no
5940 ac_cv_header_stat_broken=yes
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5945 $as_echo "$ac_cv_header_stat_broken" >&6; }
5946 if test $ac_cv_header_stat_broken = yes; then
5948 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5952 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5953 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
5955 cat >>confdefs.h <<_ACEOF
5956 #define HAVE_STRUCT_STAT_ST_RDEV 1
5960 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
5965 echo "checking if compiler supports __func__" >&6
5967 ac_cpp='$CPP $CPPFLAGS'
5968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5978 const char *func = __func__;
5983 if ac_fn_c_try_compile "$LINENO"; then :
5987 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 echo $ECHO_N "checking if diff -u works... $ECHO_C" >&6
5992 if diff -u /dev/null /dev/null > /dev/null 2>&1; then
5999 echo "checking for MACHINE & MACHINE_ARCH..." >&6
6000 cat > conftest.$ac_ext <<EOF
6001 #include "confdefs.h"
6002 #include <sys/param.h>
6007 machine_arch=MACHINE_ARCH
6011 default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6012 egrep machine= | tr -d ' "'`
6014 if test "$default_machine"; then
6015 eval "$default_machine"
6017 machine=${machine:-`$srcdir/machine.sh`}
6018 machine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
6019 echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
6021 # Check whether --with-machine was given.
6022 if test "${with_machine+set}" = set; then :
6023 withval=$with_machine; case "${withval}" in
6024 yes) as_fn_error $? "bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
6026 generic) machine=`$srcdir/machine.sh`;;
6027 *) machine=$with_machine;;
6033 # Check whether --with-force_machine was given.
6034 if test "${with_force_machine+set}" = set; then :
6035 withval=$with_force_machine; case "${withval}" in
6036 yes) force_machine=FORCE_;;
6038 *) force_machine=FORCE_; machine=$with_force_machine;;
6044 # Check whether --with-force_machine_arch was given.
6045 if test "${with_force_machine_arch+set}" = set; then :
6046 withval=$with_force_machine_arch; case "${withval}" in
6047 yes) force_machine_arch=FORCE_;;
6049 *) force_machine_arch=FORCE_; machine_arch=$with_force_machine_arch;;
6054 # Check whether --with-machine_arch was given.
6055 if test "${with_machine_arch+set}" = set; then :
6056 withval=$with_machine_arch; case "${withval}" in
6057 yes) as_fn_error $? "bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
6059 *) machine_arch=$with_machine_arch;;
6063 echo "Using: ${force_machine}MACHINE=$machine, ${force_machine_arch}MACHINE_ARCH=$machine_arch" 1>&6
6064 default_sys_path=\${prefix}/share/mk
6066 # Check whether --with-default-sys-path was given.
6067 if test "${with_default_sys_path+set}" = set; then :
6068 withval=$with_default_sys_path; case "${withval}" in
6069 yes) as_fn_error $? "bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
6071 *) default_sys_path="$with_default_sys_path"
6077 # Check whether --with-path-objdirprefix was given.
6078 if test "${with_path_objdirprefix+set}" = set; then :
6079 withval=$with_path_objdirprefix; case "${withval}" in
6080 yes) as_fn_error $? "bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
6081 no) CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
6082 *) CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
6086 # Check whether --enable-pwd-override was given.
6087 if test "${enable_pwd_override+set}" = set; then :
6088 enableval=$enable_pwd_override; case "${enableval}" in
6090 no) CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
6091 *) as_fn_error $? "bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
6095 # Check whether --enable-check-make-chdir was given.
6096 if test "${enable_check_make_chdir+set}" = set; then :
6097 enableval=$enable_check_make_chdir; case "${enableval}" in
6099 no) CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
6100 *) as_fn_error $? "bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
6105 # Check whether --with-mksrc was given.
6106 if test "${with_mksrc+set}" = set; then :
6107 withval=$with_mksrc; case "${withval}" in
6109 *) test -s $withval/install-mk && mksrc=$withval ||
6110 as_fn_error $? "bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
6116 srcdir=`cd $srcdir && pwd`
6117 for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
6119 test -s $mksrc/install-mk || continue
6120 mksrc=`cd $mksrc && pwd`
6123 mksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
6124 echo "Using: MKSRC=$mksrc" 1>&6
6125 if test -x /usr/xpg4/bin/sh; then
6126 defshell_path=${defshell_path:-/usr/xpg4/bin/sh}
6128 if test -n "$defshell_path"; then
6129 echo "Using: SHELL=$defshell_path" >&6
6131 cat >>confdefs.h <<_ACEOF
6132 #define DEFSHELL_CUSTOM "$defshell_path"
6136 if test -n "$DEFSHELL_INDEX"; then
6138 cat >>confdefs.h <<_ACEOF
6139 #define DEFSHELL_INDEX $DEFSHELL_INDEX
6156 bm_outfiles="Makefile.config unit-tests/Makefile.config make-bootstrap.sh"
6157 if test $use_makefile = yes; then
6158 bm_outfiles="makefile $bm_outfiles"
6160 ac_config_files="$ac_config_files $bm_outfiles"
6162 cat >confcache <<\_ACEOF
6163 # This file is a shell script that caches the results of configure
6164 # tests run on this system so they can be shared between configure
6165 # scripts and configure runs, see configure's option --config-cache.
6166 # It is not useful on other systems. If it contains results you don't
6167 # want to keep, you may remove or edit it.
6169 # config.status only pays attention to the cache file if you give it
6170 # the --recheck option to rerun configure.
6172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6178 # The following way of writing the cache mishandles newlines in values,
6179 # but we know of no workaround that is simple, portable, and efficient.
6180 # So, we kill variables containing newlines.
6181 # Ultrix sh set writes to stderr and can't be redirected directly,
6182 # and sets the high bit in the cache file unless we assign to the vars.
6184 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6185 eval ac_val=\$$ac_var
6189 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6190 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6193 _ | IFS | as_nl) ;; #(
6194 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6195 *) { eval $ac_var=; unset $ac_var;} ;;
6201 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6202 *${as_nl}ac_space=\ *)
6203 # `set' does not quote correctly, so add quotes: double-quote
6204 # substitution turns \\\\ into \\, and sed turns \\ into \.
6207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6210 # `set' quotes correctly as required by POSIX, so do not add quotes.
6211 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6222 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6224 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6225 if test -w "$cache_file"; then
6226 if test "x$cache_file" != "x/dev/null"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6228 $as_echo "$as_me: updating cache $cache_file" >&6;}
6229 if test ! -f "$cache_file" || test -h "$cache_file"; then
6230 cat confcache >"$cache_file"
6232 case $cache_file in #(
6234 mv -f confcache "$cache_file"$$ &&
6235 mv -f "$cache_file"$$ "$cache_file" ;; #(
6237 mv -f confcache "$cache_file" ;;
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6243 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6248 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6249 # Let make expand exec_prefix.
6250 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6252 DEFS=-DHAVE_CONFIG_H
6257 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6258 # 1. Remove the extension, and $U if already installed.
6259 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6260 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6261 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6262 # will be set to the directory where LIBOBJS objects are built.
6263 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6264 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6268 LTLIBOBJS=$ac_ltlibobjs
6273 : "${CONFIG_STATUS=./config.status}"
6275 ac_clean_files_save=$ac_clean_files
6276 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6278 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6280 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6282 # Generated by $as_me.
6283 # Run this file to recreate the current configuration.
6284 # Compiler output produced by configure, useful for debugging
6285 # configure, is in config.log if it exists.
6291 SHELL=\${CONFIG_SHELL-$SHELL}
6294 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6295 ## -------------------- ##
6296 ## M4sh Initialization. ##
6297 ## -------------------- ##
6299 # Be more Bourne compatible
6300 DUALCASE=1; export DUALCASE # for MKS sh
6301 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6304 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6305 # is contrary to our usage. Disable this feature.
6306 alias -g '${1+"$@"}'='"$@"'
6307 setopt NO_GLOB_SUBST
6309 case `(set -o) 2>/dev/null` in #(
6321 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6322 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6325 # Prefer a ksh shell builtin over an external printf program on Solaris,
6326 # but without wasting forks for bash or zsh.
6327 if test -z "$BASH_VERSION$ZSH_VERSION" \
6328 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6329 as_echo='print -r --'
6330 as_echo_n='print -rn --'
6331 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6332 as_echo='printf %s\n'
6333 as_echo_n='printf %s'
6335 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6336 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6337 as_echo_n='/usr/ucb/echo -n'
6339 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6340 as_echo_n_body='eval
6344 expr "X$arg" : "X\\(.*\\)$as_nl";
6345 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6347 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6349 export as_echo_n_body
6350 as_echo_n='sh -c $as_echo_n_body as_echo'
6353 as_echo='sh -c $as_echo_body as_echo'
6356 # The user is always right.
6357 if test "${PATH_SEPARATOR+set}" != set; then
6359 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6360 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6367 # We need space, tab and new line, in precisely that order. Quoting is
6368 # there to prevent editors from complaining about space-tab.
6369 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6370 # splitting by setting IFS to empty value.)
6373 # Find who we are. Look in the path if we contain no directory separator.
6376 *[\\/]* ) as_myself=$0 ;;
6377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir=.
6382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6388 # We did not find ourselves, most probably we were run as `sh COMMAND'
6389 # in which case we are not to be found in the path.
6390 if test "x$as_myself" = x; then
6393 if test ! -f "$as_myself"; then
6394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6398 # Unset variables that we do not need and which cause bugs (e.g. in
6399 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6400 # suppresses any "Segmentation fault" message there. '((' could
6401 # trigger a bug in pdksh 5.2.14.
6402 for as_var in BASH_ENV ENV MAIL MAILPATH
6403 do eval test x\${$as_var+set} = xset \
6404 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6417 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6420 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6421 # ----------------------------------------
6422 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6423 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6424 # script with STATUS, using 1 if that was 0.
6427 as_status=$1; test $as_status -eq 0 && as_status=1
6429 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6430 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6432 $as_echo "$as_me: error: $2" >&2
6433 as_fn_exit $as_status
6437 # as_fn_set_status STATUS
6438 # -----------------------
6439 # Set $? to STATUS, without forking.
6443 } # as_fn_set_status
6447 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6457 # Portably unset VAR.
6460 { eval $1=; unset $1;}
6462 as_unset=as_fn_unset
6463 # as_fn_append VAR VALUE
6464 # ----------------------
6465 # Append the text in VALUE to the end of the definition contained in VAR. Take
6466 # advantage of any shell optimizations that allow amortized linear growth over
6467 # repeated appends, instead of the typical quadratic growth present in naive
6469 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6470 eval 'as_fn_append ()
6481 # as_fn_arith ARG...
6482 # ------------------
6483 # Perform arithmetic evaluation on the ARGs, and store the result in the
6484 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6485 # must be portable across $(()) and expr.
6486 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6487 eval 'as_fn_arith ()
6494 as_val=`expr "$@" || test $? -eq 1`
6499 if expr a : '\(a\)' >/dev/null 2>&1 &&
6500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6506 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6507 as_basename=basename
6512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6518 as_me=`$as_basename -- "$0" ||
6519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6520 X"$0" : 'X\(//\)$' \| \
6521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6523 sed '/^.*\/\([^/][^/]*\)\/*$/{
6537 # Avoid depending upon Character Ranges.
6538 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6539 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6540 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6541 as_cr_digits='0123456789'
6542 as_cr_alnum=$as_cr_Letters$as_cr_digits
6544 ECHO_C= ECHO_N= ECHO_T=
6545 case `echo -n x` in #(((((
6547 case `echo 'xy\c'` in
6548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6550 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6557 rm -f conf$$ conf$$.exe conf$$.file
6558 if test -d conf$$.dir; then
6559 rm -f conf$$.dir/conf$$.file
6562 mkdir conf$$.dir 2>/dev/null
6564 if (echo >conf$$.file) 2>/dev/null; then
6565 if ln -s conf$$.file conf$$ 2>/dev/null; then
6567 # ... but there are two gotchas:
6568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6570 # In both cases, we have to default to `cp -pR'.
6571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6573 elif ln conf$$.file conf$$ 2>/dev/null; then
6581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6582 rmdir conf$$.dir 2>/dev/null
6587 # Create "$as_dir" as a directory, including parents if necessary.
6592 -*) as_dir=./$as_dir;;
6594 test -d "$as_dir" || eval $as_mkdir_p || {
6598 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6599 *) as_qdir=$as_dir;;
6601 as_dirs="'$as_qdir' $as_dirs"
6602 as_dir=`$as_dirname -- "$as_dir" ||
6603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6604 X"$as_dir" : 'X\(//\)[^/]' \| \
6605 X"$as_dir" : 'X\(//\)$' \| \
6606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6607 $as_echo X"$as_dir" |
6608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6625 test -d "$as_dir" && break
6627 test -z "$as_dirs" || eval "mkdir $as_dirs"
6628 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6632 if mkdir -p . 2>/dev/null; then
6633 as_mkdir_p='mkdir -p "$as_dir"'
6635 test -d ./-p && rmdir ./-p
6640 # as_fn_executable_p FILE
6641 # -----------------------
6642 # Test if FILE is an executable regular file.
6643 as_fn_executable_p ()
6645 test -f "$1" && test -x "$1"
6646 } # as_fn_executable_p
6648 as_executable_p=as_fn_executable_p
6650 # Sed expression to map a string onto a valid CPP name.
6651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6653 # Sed expression to map a string onto a valid variable name.
6654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6658 ## ----------------------------------- ##
6659 ## Main body of $CONFIG_STATUS script. ##
6660 ## ----------------------------------- ##
6662 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6665 # Save the log message, to keep $0 and so on meaningful, and to
6666 # report actual input values of CONFIG_FILES etc. instead of their
6667 # values after options handling.
6669 This file was extended by bmake $as_me 20201112, which was
6670 generated by GNU Autoconf 2.69. Invocation command line was
6672 CONFIG_FILES = $CONFIG_FILES
6673 CONFIG_HEADERS = $CONFIG_HEADERS
6674 CONFIG_LINKS = $CONFIG_LINKS
6675 CONFIG_COMMANDS = $CONFIG_COMMANDS
6678 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6683 case $ac_config_files in *"
6684 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6687 case $ac_config_headers in *"
6688 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6693 # Files that config.status was made for.
6694 config_files="$ac_config_files"
6695 config_headers="$ac_config_headers"
6699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6701 \`$as_me' instantiates files and other configuration actions
6702 from templates according to the current configuration. Unless the files
6703 and actions are specified as TAGs, all are instantiated by default.
6705 Usage: $0 [OPTION]... [TAG]...
6707 -h, --help print this help, then exit
6708 -V, --version print version number and configuration settings, then exit
6709 --config print configuration, then exit
6710 -q, --quiet, --silent
6711 do not print progress messages
6712 -d, --debug don't remove temporary files
6713 --recheck update $as_me by reconfiguring in the same conditions
6714 --file=FILE[:TEMPLATE]
6715 instantiate the configuration file FILE
6716 --header=FILE[:TEMPLATE]
6717 instantiate the configuration header FILE
6719 Configuration files:
6722 Configuration headers:
6725 Report bugs to <sjg@NetBSD.org>."
6728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6729 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6731 bmake config.status 20201112
6732 configured by $0, generated by GNU Autoconf 2.69,
6733 with options \\"\$ac_cs_config\\"
6735 Copyright (C) 2012 Free Software Foundation, Inc.
6736 This config.status script is free software; the Free Software Foundation
6737 gives unlimited permission to copy, distribute and modify it."
6742 test -n "\$AWK" || AWK=awk
6745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6746 # The default lists apply if the user does not specify any file.
6752 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6753 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6757 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6769 # Handling of the options.
6770 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6772 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6773 $as_echo "$ac_cs_version"; exit ;;
6774 --config | --confi | --conf | --con | --co | --c )
6775 $as_echo "$ac_cs_config"; exit ;;
6776 --debug | --debu | --deb | --de | --d | -d )
6778 --file | --fil | --fi | --f )
6781 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6782 '') as_fn_error $? "missing file argument" ;;
6784 as_fn_append CONFIG_FILES " '$ac_optarg'"
6785 ac_need_defaults=false;;
6786 --header | --heade | --head | --hea )
6789 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6791 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6792 ac_need_defaults=false;;
6794 # Conflict between --help and --header
6795 as_fn_error $? "ambiguous option: \`$1'
6796 Try \`$0 --help' for more information.";;
6797 --help | --hel | -h )
6798 $as_echo "$ac_cs_usage"; exit ;;
6799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6800 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6804 -*) as_fn_error $? "unrecognized option: \`$1'
6805 Try \`$0 --help' for more information." ;;
6807 *) as_fn_append ac_config_targets " $1"
6808 ac_need_defaults=false ;;
6814 ac_configure_extra_args=
6816 if $ac_cs_silent; then
6818 ac_configure_extra_args="$ac_configure_extra_args --silent"
6822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6823 if \$ac_cs_recheck; then
6824 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6826 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6827 CONFIG_SHELL='$SHELL'
6833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6837 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6838 ## Running $as_me. ##
6844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6849 # Handling of arguments.
6850 for ac_config_target in $ac_config_targets
6852 case $ac_config_target in
6853 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6854 "$bm_outfiles") CONFIG_FILES="$CONFIG_FILES $bm_outfiles" ;;
6856 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6861 # If the user did not use the arguments to specify the items to instantiate,
6862 # then the envvar interface is used. Set only those that are not.
6863 # We use the long form for the default assignment because of an extremely
6864 # bizarre bug on SunOS 4.1.3.
6865 if $ac_need_defaults; then
6866 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6867 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6870 # Have a temporary directory for convenience. Make it in the build tree
6871 # simply because there is no reason against having it here, and in addition,
6872 # creating and moving files from /tmp can sometimes cause problems.
6873 # Hook for its removal unless debugging.
6874 # Note that there is a small window in which the directory will not be cleaned:
6875 # after its creation but before its name has been assigned to `$tmp'.
6879 trap 'exit_status=$?
6881 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6883 trap 'as_fn_exit 1' 1 2 13 15
6885 # Create a (secure) tmp directory for tmp files.
6888 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6892 tmp=./conf$$-$RANDOM
6893 (umask 077 && mkdir "$tmp")
6894 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6897 # Set up the scripts for CONFIG_FILES section.
6898 # No need to generate them if there are no CONFIG_FILES.
6899 # This happens for instance with `./config.status config.h'.
6900 if test -n "$CONFIG_FILES"; then
6903 ac_cr=`echo X | tr X '\015'`
6904 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6905 # But we know of no other shell where ac_cr would be empty at this
6906 # point, so we can use a bashism as a fallback.
6907 if test "x$ac_cr" = x; then
6908 eval ac_cr=\$\'\\r\'
6910 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6911 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6917 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6922 echo "cat >conf$$subs.awk <<_ACEOF" &&
6923 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6927 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6929 for ac_last_try in false false false false false :; do
6930 . ./conf$$subs.sh ||
6931 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6933 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6934 if test $ac_delim_n = $ac_delim_num; then
6936 elif $ac_last_try; then
6937 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6945 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6949 s/^/S["/; s/!.*/"]=/
6959 s/\(.\{148\}\)..*/\1/
6961 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6966 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6973 s/\(.\{148\}\)..*/\1/
6975 s/["\\]/\\&/g; s/^/"/; s/$/"/
6979 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6984 ' <conf$$subs.awk | sed '
6989 ' >>$CONFIG_STATUS || ac_write_fail=1
6990 rm -f conf$$subs.awk
6991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6993 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6994 for (key in S) S_is_set[key] = 1
7000 nfields = split(line, field, "@")
7002 len = length(field[1])
7003 for (i = 2; i < nfields; i++) {
7005 keylen = length(key)
7006 if (S_is_set[key]) {
7008 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7009 len += length(value) + length(field[++i])
7020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7021 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7022 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7025 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7026 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7029 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7030 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7031 # trailing colons and then remove the whole line if VPATH becomes empty
7032 # (actually we leave an empty line to preserve line numbers).
7033 if test "x$srcdir" = x.; then
7034 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7053 fi # test -n "$CONFIG_FILES"
7055 # Set up the scripts for CONFIG_HEADERS section.
7056 # No need to generate them if there are no CONFIG_HEADERS.
7057 # This happens for instance with `./config.status Makefile'.
7058 if test -n "$CONFIG_HEADERS"; then
7059 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7063 # Transform confdefs.h into an awk script `defines.awk', embedded as
7064 # here-document in config.status, that substitutes the proper values into
7065 # config.h.in to produce config.h.
7067 # Create a delimiter string that does not exist in confdefs.h, to ease
7068 # handling of long lines.
7070 for ac_last_try in false false :; do
7071 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7072 if test -z "$ac_tt"; then
7074 elif $ac_last_try; then
7075 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7081 # For the awk script, D is an array of macro values keyed by name,
7082 # likewise P contains macro parameters if any. Preserve backslash
7083 # newline sequences.
7085 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7087 s/.\{148\}/&'"$ac_delim"'/g
7090 s/^[ ]*#[ ]*define[ ][ ]*/ /
7097 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7099 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7103 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7104 D["\1"]=" \3\\\\\\n"\\/p
7106 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7111 s/.\{148\}/&'"$ac_delim"'/g
7116 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7119 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7121 ' <confdefs.h | sed '
7122 s/'"$ac_delim"'/"\\\
7123 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7126 for (key in D) D_is_set[key] = 1
7129 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7131 split(line, arg, " ")
7132 if (arg[1] == "#") {
7136 defundef = substr(arg[1], 2)
7139 split(mac1, mac2, "(") #)
7141 prefix = substr(line, 1, index(line, defundef) - 1)
7142 if (D_is_set[macro]) {
7143 # Preserve the white space surrounding the "#".
7144 print prefix "define", macro P[macro] D[macro]
7147 # Replace #undef with comments. This is necessary, for example,
7148 # in the case of _POSIX_SOURCE, which is predefined and required
7149 # on some systems where configure will not decide to define it.
7150 if (defundef == "undef") {
7151 print "/*", prefix defundef, macro, "*/"
7159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7160 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7161 fi # test -n "$CONFIG_HEADERS"
7164 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7169 :[FHLC]) ac_mode=$ac_tag; continue;;
7171 case $ac_mode$ac_tag in
7173 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7174 :[FH]-) ac_tag=-:-;;
7175 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7192 -) ac_f="$ac_tmp/stdin";;
7193 *) # Look for the file first in the build tree, then in the source tree
7194 # (if the path is not absolute). The absolute path cannot be DOS-style,
7195 # because $ac_f cannot contain `:'.
7199 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7201 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7203 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7204 as_fn_append ac_file_inputs " '$ac_f'"
7207 # Let's still pretend it is `configure' which instantiates (i.e., don't
7208 # use $as_me), people would be surprised to read:
7209 # /* config.h. Generated by config.status. */
7210 configure_input='Generated from '`
7211 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7213 if test x"$ac_file" != x-; then
7214 configure_input="$ac_file. $configure_input"
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7216 $as_echo "$as_me: creating $ac_file" >&6;}
7218 # Neutralize special characters interpreted by sed in replacement strings.
7219 case $configure_input in #(
7220 *\&* | *\|* | *\\* )
7221 ac_sed_conf_input=`$as_echo "$configure_input" |
7222 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7223 *) ac_sed_conf_input=$configure_input;;
7227 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7233 ac_dir=`$as_dirname -- "$ac_file" ||
7234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7235 X"$ac_file" : 'X\(//\)[^/]' \| \
7236 X"$ac_file" : 'X\(//\)$' \| \
7237 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7238 $as_echo X"$ac_file" |
7239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7256 as_dir="$ac_dir"; as_fn_mkdir_p
7260 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7262 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7263 # A ".." for each directory in $ac_dir_suffix.
7264 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7265 case $ac_top_builddir_sub in
7266 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7267 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7270 ac_abs_top_builddir=$ac_pwd
7271 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7272 # for backward compatibility:
7273 ac_top_builddir=$ac_top_build_prefix
7276 .) # We are building in place.
7278 ac_top_srcdir=$ac_top_builddir_sub
7279 ac_abs_top_srcdir=$ac_pwd ;;
7280 [\\/]* | ?:[\\/]* ) # Absolute name.
7281 ac_srcdir=$srcdir$ac_dir_suffix;
7282 ac_top_srcdir=$srcdir
7283 ac_abs_top_srcdir=$srcdir ;;
7285 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7286 ac_top_srcdir=$ac_top_build_prefix$srcdir
7287 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7289 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7299 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7300 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7305 # If the template does not know about datarootdir, expand it.
7306 # FIXME: This hack should be removed a few years after 2.60.
7307 ac_datarootdir_hack=; ac_datarootdir_seen=
7318 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7319 *datarootdir*) ac_datarootdir_seen=yes;;
7320 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7322 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7325 ac_datarootdir_hack='
7326 s&@datadir@&$datadir&g
7327 s&@docdir@&$docdir&g
7328 s&@infodir@&$infodir&g
7329 s&@localedir@&$localedir&g
7330 s&@mandir@&$mandir&g
7331 s&\\\${datarootdir}&$datarootdir&g' ;;
7335 # Neutralize VPATH when `$srcdir' = `.'.
7336 # Shell code in configure.ac might set extrasub.
7337 # FIXME: do we really want to maintain this feature?
7338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7339 ac_sed_extra="$ac_vpsub
7342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7345 s|@configure_input@|$ac_sed_conf_input|;t t
7346 s&@top_builddir@&$ac_top_builddir_sub&;t t
7347 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7348 s&@srcdir@&$ac_srcdir&;t t
7349 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7350 s&@top_srcdir@&$ac_top_srcdir&;t t
7351 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7352 s&@builddir@&$ac_builddir&;t t
7353 s&@abs_builddir@&$ac_abs_builddir&;t t
7354 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7355 s&@INSTALL@&$ac_INSTALL&;t t
7356 $ac_datarootdir_hack
7358 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7359 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7361 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7362 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7363 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7364 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7366 which seems to be undefined. Please make sure it is defined" >&5
7367 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7368 which seems to be undefined. Please make sure it is defined" >&2;}
7370 rm -f "$ac_tmp/stdin"
7372 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7373 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7381 if test x"$ac_file" != x-; then
7383 $as_echo "/* $configure_input */" \
7384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7385 } >"$ac_tmp/config.h" \
7386 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7387 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7389 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7392 mv "$ac_tmp/config.h" "$ac_file" \
7393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7396 $as_echo "/* $configure_input */" \
7397 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7398 || as_fn_error $? "could not create -" "$LINENO" 5
7410 ac_clean_files=$ac_clean_files_save
7412 test $ac_write_fail = 0 ||
7413 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7416 # configure is writing to config.log, and then calls config.status.
7417 # config.status does its own redirection, appending to config.log.
7418 # Unfortunately, on DOS this fails, as config.log is still kept open
7419 # by configure, so config.status won't be able to write to it; its
7420 # output is simply discarded. So we exec the FD to /dev/null,
7421 # effectively closing config.log, so it can be properly (re)opened and
7422 # appended to by config.status. When coming back to configure, we
7423 # need to make the FD available again.
7424 if test "$no_create" != yes; then
7426 ac_config_status_args=
7427 test "$silent" = yes &&
7428 ac_config_status_args="$ac_config_status_args --quiet"
7430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7433 # would make configure fail if this is the last instruction.
7434 $ac_cs_success || as_fn_exit 1
7436 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7438 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7445 sh ./make-bootstrap.sh
7447 to produce a fully functional bmake.