2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bmake 20211020.
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='20211020'
584 PACKAGE_STRING='bmake 20211020'
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
683 program_transform_name
696 enable_option_checking
703 with_force_machine_arch
705 with_default_sys_path
706 with_path_objdirprefix
708 enable_check_make_chdir
711 ac_precious_vars='build_alias
722 # Initialize some variables set by options.
724 ac_init_version=false
725 ac_unrecognized_opts=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
736 program_transform_name=s,x,x,
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir='${exec_prefix}/bin'
751 sbindir='${exec_prefix}/sbin'
752 libexecdir='${exec_prefix}/libexec'
753 datarootdir='${prefix}/share'
754 datadir='${datarootdir}'
755 sysconfdir='${prefix}/etc'
756 sharedstatedir='${prefix}/com'
757 localstatedir='${prefix}/var'
758 includedir='${prefix}/include'
759 oldincludedir='/usr/include'
760 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir='${datarootdir}/info'
766 libdir='${exec_prefix}/lib'
767 localedir='${datarootdir}/locale'
768 mandir='${datarootdir}/man'
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\$ac_option
782 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787 # Accept the important Cygnus configure options, so we can diagnose typos.
789 case $ac_dashdash$ac_option in
793 -bindir | --bindir | --bindi | --bind | --bin | --bi)
795 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798 -build | --build | --buil | --bui | --bu)
799 ac_prev=build_alias ;;
800 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
801 build_alias=$ac_optarg ;;
803 -cache-file | --cache-file | --cache-fil | --cache-fi \
804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
805 ac_prev=cache_file ;;
806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
808 cache_file=$ac_optarg ;;
811 cache_file=config.cache ;;
813 -datadir | --datadir | --datadi | --datad)
815 -datadir=* | --datadir=* | --datadi=* | --datad=*)
816 datadir=$ac_optarg ;;
818 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
819 | --dataroo | --dataro | --datar)
820 ac_prev=datarootdir ;;
821 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
822 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
823 datarootdir=$ac_optarg ;;
825 -disable-* | --disable-*)
826 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
829 as_fn_error $? "invalid feature name: $ac_useropt"
830 ac_useropt_orig=$ac_useropt
831 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
836 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 ac_unrecognized_sep=', ';;
839 eval enable_$ac_useropt=no ;;
841 -docdir | --docdir | --docdi | --doc | --do)
843 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
846 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
848 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
851 -enable-* | --enable-*)
852 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855 as_fn_error $? "invalid feature name: $ac_useropt"
856 ac_useropt_orig=$ac_useropt
857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';;
865 eval enable_$ac_useropt=\$ac_optarg ;;
867 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869 | --exec | --exe | --ex)
870 ac_prev=exec_prefix ;;
871 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
872 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
873 | --exec=* | --exe=* | --ex=*)
874 exec_prefix=$ac_optarg ;;
876 -gas | --gas | --ga | --g)
877 # Obsolete; use --with-gas.
880 -help | --help | --hel | --he | -h)
882 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
883 ac_init_help=recursive ;;
884 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
885 ac_init_help=short ;;
887 -host | --host | --hos | --ho)
888 ac_prev=host_alias ;;
889 -host=* | --host=* | --hos=* | --ho=*)
890 host_alias=$ac_optarg ;;
892 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
894 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
896 htmldir=$ac_optarg ;;
898 -includedir | --includedir | --includedi | --included | --include \
899 | --includ | --inclu | --incl | --inc)
900 ac_prev=includedir ;;
901 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
902 | --includ=* | --inclu=* | --incl=* | --inc=*)
903 includedir=$ac_optarg ;;
905 -infodir | --infodir | --infodi | --infod | --info | --inf)
907 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
908 infodir=$ac_optarg ;;
910 -libdir | --libdir | --libdi | --libd)
912 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
916 | --libexe | --libex | --libe)
917 ac_prev=libexecdir ;;
918 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
919 | --libexe=* | --libex=* | --libe=*)
920 libexecdir=$ac_optarg ;;
922 -localedir | --localedir | --localedi | --localed | --locale)
924 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
925 localedir=$ac_optarg ;;
927 -localstatedir | --localstatedir | --localstatedi | --localstated \
928 | --localstate | --localstat | --localsta | --localst | --locals)
929 ac_prev=localstatedir ;;
930 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
931 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
932 localstatedir=$ac_optarg ;;
934 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
936 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
940 # Obsolete; use --without-fp.
943 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
944 | --no-cr | --no-c | -n)
947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
952 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
953 | --oldin | --oldi | --old | --ol | --o)
954 ac_prev=oldincludedir ;;
955 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
956 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
957 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
958 oldincludedir=$ac_optarg ;;
960 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
962 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 -program-prefix | --program-prefix | --program-prefi | --program-pref \
966 | --program-pre | --program-pr | --program-p)
967 ac_prev=program_prefix ;;
968 -program-prefix=* | --program-prefix=* | --program-prefi=* \
969 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
970 program_prefix=$ac_optarg ;;
972 -program-suffix | --program-suffix | --program-suffi | --program-suff \
973 | --program-suf | --program-su | --program-s)
974 ac_prev=program_suffix ;;
975 -program-suffix=* | --program-suffix=* | --program-suffi=* \
976 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
977 program_suffix=$ac_optarg ;;
979 -program-transform-name | --program-transform-name \
980 | --program-transform-nam | --program-transform-na \
981 | --program-transform-n | --program-transform- \
982 | --program-transform | --program-transfor \
983 | --program-transfo | --program-transf \
984 | --program-trans | --program-tran \
985 | --progr-tra | --program-tr | --program-t)
986 ac_prev=program_transform_name ;;
987 -program-transform-name=* | --program-transform-name=* \
988 | --program-transform-nam=* | --program-transform-na=* \
989 | --program-transform-n=* | --program-transform-=* \
990 | --program-transform=* | --program-transfor=* \
991 | --program-transfo=* | --program-transf=* \
992 | --program-trans=* | --program-tran=* \
993 | --progr-tra=* | --program-tr=* | --program-t=*)
994 program_transform_name=$ac_optarg ;;
996 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
998 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 -psdir | --psdir | --psdi | --psd | --ps)
1003 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007 | -silent | --silent | --silen | --sile | --sil)
1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1014 sbindir=$ac_optarg ;;
1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018 | --sharedst | --shareds | --shared | --share | --shar \
1020 ac_prev=sharedstatedir ;;
1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1025 sharedstatedir=$ac_optarg ;;
1027 -site | --site | --sit)
1029 -site=* | --site=* | --sit=*)
1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035 srcdir=$ac_optarg ;;
1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038 | --syscon | --sysco | --sysc | --sys | --sy)
1039 ac_prev=sysconfdir ;;
1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042 sysconfdir=$ac_optarg ;;
1044 -target | --target | --targe | --targ | --tar | --ta | --t)
1045 ac_prev=target_alias ;;
1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047 target_alias=$ac_optarg ;;
1049 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 -version | --version | --versio | --versi | --vers | -V)
1053 ac_init_version=: ;;
1056 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid package name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1069 eval with_$ac_useropt=\$ac_optarg ;;
1071 -without-* | --without-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid package name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1085 eval with_$ac_useropt=no ;;
1088 # Obsolete; use --with-x.
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1105 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1106 Try \`$0 --help' for more information"
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 case $ac_envvar in #(
1113 '' | [0-9]* | *[!_$as_cr_alnum]* )
1114 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1116 eval $ac_envvar=\$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1130 if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132 as_fn_error $? "missing argument to $ac_option"
1135 if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1138 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 # Check all directory arguments for consistency.
1144 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir
1149 eval ac_val=\$$ac_var
1150 # Remove trailing slashes.
1153 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\$ac_val;;
1156 # Be sure to have absolute directory names.
1158 [\\/$]* | ?:[\\/]* ) continue;;
1159 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1161 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1164 # There might be people who depend on the old broken behavior: `$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1169 target=$target_alias
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x; then
1173 if test "x$build_alias" = x; then
1174 cross_compiling=maybe
1175 elif test "x$build_alias" != "x$host_alias"; then
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183 test "$silent" = yes && exec 6>/dev/null
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 as_fn_error $? "working directory cannot be determined"
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 as_fn_error $? "pwd does not report name of working directory"
1194 # Find the source files, if location was not specified.
1195 if test -z "$srcdir"; then
1196 ac_srcdir_defaulted=yes
1197 # Try the directory containing this script, then the parent directory.
1198 ac_confdir=`$as_dirname -- "$as_myself" ||
1199 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200 X"$as_myself" : 'X\(//\)[^/]' \| \
1201 X"$as_myself" : 'X\(//\)$' \| \
1202 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203 $as_echo X"$as_myself" |
1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1226 ac_srcdir_defaulted=no
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1230 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1232 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1234 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1236 # When building in place, set srcdir=.
1237 if test "$ac_abs_confdir" = "$ac_pwd"; then
1240 # Remove unnecessary trailing slashes from srcdir.
1241 # Double slashes in file names in object file debugging info
1242 # mess up M-x gdb in Emacs.
1244 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1246 for ac_var in $ac_precious_vars; do
1247 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_${ac_var}_value=\$${ac_var}
1249 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254 # Report the --help message.
1256 if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1260 \`configure' configures bmake 20211020 to adapt to many kinds of systems.
1262 Usage: $0 [OPTION]... [VAR=VALUE]...
1264 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265 VAR=VALUE. See below for descriptions of some of the useful variables.
1267 Defaults for the options are specified in brackets.
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
1274 -q, --quiet, --silent do not print \`checking ...' messages
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for \`--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1280 Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
1282 [$ac_default_prefix]
1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1286 By default, \`make install' will install all the files in
1287 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1288 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289 for instance \`--prefix=\$HOME'.
1291 For better control, use the options below.
1293 Fine tuning of the installation directories:
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --libdir=DIR object code libraries [EPREFIX/lib]
1301 --includedir=DIR C header files [PREFIX/include]
1302 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1303 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1304 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1305 --infodir=DIR info documentation [DATAROOTDIR/info]
1306 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1307 --mandir=DIR man documentation [DATAROOTDIR/man]
1308 --docdir=DIR documentation root [DATAROOTDIR/doc/bmake]
1309 --htmldir=DIR html documentation [DOCDIR]
1310 --dvidir=DIR dvi documentation [DOCDIR]
1311 --pdfdir=DIR pdf documentation [DOCDIR]
1312 --psdir=DIR ps documentation [DOCDIR]
1319 if test -n "$ac_init_help"; then
1320 case $ac_init_help in
1321 short | recursive ) echo "Configuration of bmake 20211020:";;
1326 --disable-option-checking ignore unrecognized --enable/--with options
1327 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1328 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1329 --disable-pwd-override disable $PWD overriding getcwd()
1330 --disable-check-make-chdir disable make trying to guess
1331 when it should automatically cd ${.CURDIR}
1334 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1335 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1336 --with-defshell=SHELL use SHELL by default - must be sh compatible, use sh or ksh to pick the internal definitions
1337 --without-makefile disable use of generated makefile
1338 --without-meta disable use of meta-mode
1339 --with-filemon={no,dev,ktrace,path/filemon.h} indicate filemon method for meta-mode. Path to filemon.h implies dev
1340 --with-machine=MACHINE explicitly set MACHINE
1341 --with-force-machine=MACHINE set FORCE_MACHINE
1342 --with-force-machine-arch=MACHINE set FORCE_MACHINE_ARCH
1343 --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH
1344 --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH
1345 MAKESYSPATH is a ':' separated list of directories
1346 that bmake will search for system .mk files.
1347 _PATH_DEFSYSPATH is its default value.
1348 --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX
1349 --with-mksrc=PATH tell makefile.boot where to find mk src
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1361 Use these variables to override the choices made by `configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1364 Report bugs to <sjg@NetBSD.org>.
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" ||
1373 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1381 # A ".." for each directory in $ac_dir_suffix.
1382 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1383 case $ac_top_builddir_sub in
1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1388 ac_abs_top_builddir=$ac_pwd
1389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390 # for backward compatibility:
1391 ac_top_builddir=$ac_top_build_prefix
1394 .) # We are building in place.
1396 ac_top_srcdir=$ac_top_builddir_sub
1397 ac_abs_top_srcdir=$ac_pwd ;;
1398 [\\/]* | ?:[\\/]* ) # Absolute name.
1399 ac_srcdir=$srcdir$ac_dir_suffix;
1400 ac_top_srcdir=$srcdir
1401 ac_abs_top_srcdir=$srcdir ;;
1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404 ac_top_srcdir=$ac_top_build_prefix$srcdir
1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1409 cd "$ac_dir" || { ac_status=$?; continue; }
1410 # Check for guested configure.
1411 if test -f "$ac_srcdir/configure.gnu"; then
1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414 elif test -f "$ac_srcdir/configure"; then
1416 $SHELL "$ac_srcdir/configure" --help=recursive
1418 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1420 cd "$ac_pwd" || { ac_status=$?; break; }
1424 test -n "$ac_init_help" && exit $ac_status
1425 if $ac_init_version; then
1427 bmake configure 20211020
1428 generated by GNU Autoconf 2.69
1430 Copyright (C) 2012 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1437 ## ------------------------ ##
1438 ## Autoconf initialization. ##
1439 ## ------------------------ ##
1441 # ac_fn_c_try_compile LINENO
1442 # --------------------------
1443 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1444 ac_fn_c_try_compile ()
1446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1447 rm -f conftest.$ac_objext
1448 if { { ac_try="$ac_compile"
1450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1451 *) ac_try_echo=$ac_try;;
1453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1454 $as_echo "$ac_try_echo"; } >&5
1455 (eval "$ac_compile") 2>conftest.err
1457 if test -s conftest.err; then
1458 grep -v '^ *+' conftest.err >conftest.er1
1459 cat conftest.er1 >&5
1460 mv -f conftest.er1 conftest.err
1462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463 test $ac_status = 0; } && {
1464 test -z "$ac_c_werror_flag" ||
1465 test ! -s conftest.err
1466 } && test -s conftest.$ac_objext; then :
1469 $as_echo "$as_me: failed program was:" >&5
1470 sed 's/^/| /' conftest.$ac_ext >&5
1474 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1475 as_fn_set_status $ac_retval
1477 } # ac_fn_c_try_compile
1479 # ac_fn_c_try_cpp LINENO
1480 # ----------------------
1481 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485 if { { ac_try="$ac_cpp conftest.$ac_ext"
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } > conftest.i && {
1501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1502 test ! -s conftest.err
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512 as_fn_set_status $ac_retval
1516 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1517 # -------------------------------------------------------
1518 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1519 # the include files in INCLUDES and setting the cache variable VAR
1521 ac_fn_c_check_header_mongrel ()
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 if eval \${$3+:} false; then :
1525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1526 $as_echo_n "checking for $2... " >&6; }
1527 if eval \${$3+:} false; then :
1528 $as_echo_n "(cached) " >&6
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1532 $as_echo "$ac_res" >&6; }
1534 # Is the header compilable?
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1536 $as_echo_n "checking $2 usability... " >&6; }
1537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1538 /* end confdefs.h. */
1542 if ac_fn_c_try_compile "$LINENO"; then :
1543 ac_header_compiler=yes
1545 ac_header_compiler=no
1547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1549 $as_echo "$ac_header_compiler" >&6; }
1551 # Is the header present?
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1553 $as_echo_n "checking $2 presence... " >&6; }
1554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1555 /* end confdefs.h. */
1558 if ac_fn_c_try_cpp "$LINENO"; then :
1559 ac_header_preproc=yes
1561 ac_header_preproc=no
1563 rm -f conftest.err conftest.i conftest.$ac_ext
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1565 $as_echo "$ac_header_preproc" >&6; }
1567 # So? What about this header?
1568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1571 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1573 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1577 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1579 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1581 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1583 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1585 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1586 ( $as_echo "## ----------------------------- ##
1587 ## Report this to sjg@NetBSD.org ##
1588 ## ----------------------------- ##"
1589 ) | sed "s/^/$as_me: WARNING: /" >&2
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593 $as_echo_n "checking for $2... " >&6; }
1594 if eval \${$3+:} false; then :
1595 $as_echo_n "(cached) " >&6
1597 eval "$3=\$ac_header_compiler"
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601 $as_echo "$ac_res" >&6; }
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 } # ac_fn_c_check_header_mongrel
1607 # ac_fn_c_try_run LINENO
1608 # ----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1610 # that executables *can* be run.
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_link"
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>&5
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1625 { { case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_try") 2>&5
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; }; }; then :
1637 $as_echo "$as_me: program exited with status $ac_status" >&5
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1641 ac_retval=$ac_status
1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1649 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650 # -------------------------------------------------------
1651 # Tests whether HEADER exists and can be compiled using the include files in
1652 # INCLUDES, setting the cache variable VAR accordingly.
1653 ac_fn_c_check_header_compile ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 $as_echo_n "checking for $2... " >&6; }
1658 if eval \${$3+:} false; then :
1659 $as_echo_n "(cached) " >&6
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1666 if ac_fn_c_try_compile "$LINENO"; then :
1671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 $as_echo "$ac_res" >&6; }
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 } # ac_fn_c_check_header_compile
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 test -x conftest$ac_exeext
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_link
1726 # ac_fn_c_find_intX_t LINENO BITS VAR
1727 # -----------------------------------
1728 # Finds a signed integer type with width BITS, setting cache variable VAR
1730 ac_fn_c_find_intX_t ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1734 $as_echo_n "checking for int$2_t... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1739 # Order is important - never check a type that is potentially smaller
1740 # than half of the expected target width.
1741 for ac_type in int$2_t 'int' 'long int' \
1742 'long long int' 'short int' 'signed char'; do
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $ac_includes_default
1746 enum { N = $2 / 2 - 1 };
1750 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1752 return test_array [0];
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 $ac_includes_default
1762 enum { N = $2 / 2 - 1 };
1766 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1767 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1769 return test_array [0];
1775 if ac_fn_c_try_compile "$LINENO"; then :
1782 eval "$3=\$ac_type" ;;
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 if eval test \"x\$"$3"\" = x"no"; then :
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 } # ac_fn_c_find_intX_t
1802 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1803 # -------------------------------------------
1804 # Tests whether TYPE exists after having included INCLUDES, setting cache
1805 # variable VAR accordingly.
1806 ac_fn_c_check_type ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1840 if ac_fn_c_try_compile "$LINENO"; then :
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 } # ac_fn_c_check_type
1856 # ac_fn_c_find_uintX_t LINENO BITS VAR
1857 # ------------------------------------
1858 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1860 ac_fn_c_find_uintX_t ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1864 $as_echo_n "checking for uint$2_t... " >&6; }
1865 if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1869 # Order is important - never check a type that is potentially smaller
1870 # than half of the expected target width.
1871 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1872 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 $ac_includes_default
1879 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1881 return test_array [0];
1887 if ac_fn_c_try_compile "$LINENO"; then :
1892 eval "$3=\$ac_type" ;;
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 if eval test \"x\$"$3"\" = x"no"; then :
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } # ac_fn_c_find_uintX_t
1910 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1911 # ---------------------------------------------
1912 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1914 ac_fn_c_check_decl ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 as_decl_name=`echo $2|sed 's/ *(.*//'`
1918 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1920 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1930 #ifndef $as_decl_name
1932 (void) $as_decl_use;
1934 (void) $as_decl_name;
1942 if ac_fn_c_try_compile "$LINENO"; then :
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_decl
1956 # ac_fn_c_check_func LINENO FUNC VAR
1957 # ----------------------------------
1958 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1959 ac_fn_c_check_func ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1971 #define $2 innocuous_$2
1973 /* System header to define __stub macros and hopefully few prototypes,
1974 which can conflict with char $2 (); below.
1975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1976 <limits.h> exists even on freestanding compilers. */
1979 # include <limits.h>
1981 # include <assert.h>
1986 /* Override any GCC internal prototype to avoid an error.
1987 Use char because int might match the return type of a GCC
1988 builtin and then its argument prototype would still apply. */
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined __stub_$2 || defined __stub___$2
2008 if ac_fn_c_try_link "$LINENO"; then :
2013 rm -f core conftest.err conftest.$ac_objext \
2014 conftest$ac_exeext conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 } # ac_fn_c_check_func
2023 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2024 # ----------------------------------------------------
2025 # Tries to find if the field MEMBER exists in type AGGR, after including
2026 # INCLUDES, setting cache variable VAR accordingly.
2027 ac_fn_c_check_member ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2031 $as_echo_n "checking for $2.$3... " >&6; }
2032 if eval \${$4+:} false; then :
2033 $as_echo_n "(cached) " >&6
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2048 if ac_fn_c_try_compile "$LINENO"; then :
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2058 if (sizeof ac_aggr.$3)
2064 if ac_fn_c_try_compile "$LINENO"; then :
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 } # ac_fn_c_check_member
2079 cat >config.log <<_ACEOF
2080 This file contains any messages produced by compilers while
2081 running configure, to aid debugging if configure makes a mistake.
2083 It was created by bmake $as_me 20211020, which was
2084 generated by GNU Autoconf 2.69. Invocation command line was
2096 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2097 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2098 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2099 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2100 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2102 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2103 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2105 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2106 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2107 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2108 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2109 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2110 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2111 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 test -z "$as_dir" && as_dir=.
2120 $as_echo "PATH: $as_dir"
2136 # Keep a trace of the command line.
2137 # Strip out --no-create and --no-recursion so they do not pile up.
2138 # Strip out --silent because we don't want to record it for future runs.
2139 # Also quote any args containing shell meta-characters.
2140 # Make two passes to allow for proper duplicate-argument suppression.
2144 ac_must_keep_next=false
2150 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2152 | -silent | --silent | --silen | --sile | --sil)
2155 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2158 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2160 as_fn_append ac_configure_args1 " '$ac_arg'"
2161 if test $ac_must_keep_next = true; then
2162 ac_must_keep_next=false # Got value, back to normal.
2165 *=* | --config-cache | -C | -disable-* | --disable-* \
2166 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2167 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2168 | -with-* | --with-* | -without-* | --without-* | --x)
2169 case "$ac_configure_args0 " in
2170 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2173 -* ) ac_must_keep_next=true ;;
2176 as_fn_append ac_configure_args " '$ac_arg'"
2181 { ac_configure_args0=; unset ac_configure_args0;}
2182 { ac_configure_args1=; unset ac_configure_args1;}
2184 # When interrupted or exit'd, cleanup temporary files, and complete
2185 # config.log. We remove comments because anyway the quotes in there
2186 # would cause problems or look ugly.
2187 # WARNING: Use '\'' to represent an apostrophe within the trap.
2188 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2189 trap 'exit_status=$?
2190 # Save into config.log some information that might help in debugging.
2194 $as_echo "## ---------------- ##
2195 ## Cache variables. ##
2196 ## ---------------- ##"
2198 # The following way of writing the cache mishandles newlines in values,
2200 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2201 eval ac_val=\$$ac_var
2205 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2206 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2209 _ | IFS | as_nl) ;; #(
2210 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2211 *) { eval $ac_var=; unset $ac_var;} ;;
2216 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2217 *${as_nl}ac_space=\ *)
2219 "s/'\''/'\''\\\\'\'''\''/g;
2220 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2230 $as_echo "## ----------------- ##
2231 ## Output variables. ##
2232 ## ----------------- ##"
2234 for ac_var in $ac_subst_vars
2236 eval ac_val=\$$ac_var
2238 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240 $as_echo "$ac_var='\''$ac_val'\''"
2244 if test -n "$ac_subst_files"; then
2245 $as_echo "## ------------------- ##
2246 ## File substitutions. ##
2247 ## ------------------- ##"
2249 for ac_var in $ac_subst_files
2251 eval ac_val=\$$ac_var
2253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255 $as_echo "$ac_var='\''$ac_val'\''"
2260 if test -s confdefs.h; then
2261 $as_echo "## ----------- ##
2268 test "$ac_signal" != 0 &&
2269 $as_echo "$as_me: caught signal $ac_signal"
2270 $as_echo "$as_me: exit $exit_status"
2272 rm -f core *.core core.conftest.* &&
2273 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2276 for ac_signal in 1 2 13 15; do
2277 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2281 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2282 rm -f -r conftest* confdefs.h
2284 $as_echo "/* confdefs.h */" > confdefs.h
2286 # Predefined preprocessor variables.
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_NAME "$PACKAGE_NAME"
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_STRING "$PACKAGE_STRING"
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_URL "$PACKAGE_URL"
2313 # Let the site file select an alternate cache file if it wants to.
2314 # Prefer an explicitly selected file to automatically selected ones.
2317 if test -n "$CONFIG_SITE"; then
2318 # We do not want a PATH search for config.site.
2319 case $CONFIG_SITE in #((
2320 -*) ac_site_file1=./$CONFIG_SITE;;
2321 */*) ac_site_file1=$CONFIG_SITE;;
2322 *) ac_site_file1=./$CONFIG_SITE;;
2324 elif test "x$prefix" != xNONE; then
2325 ac_site_file1=$prefix/share/config.site
2326 ac_site_file2=$prefix/etc/config.site
2328 ac_site_file1=$ac_default_prefix/share/config.site
2329 ac_site_file2=$ac_default_prefix/etc/config.site
2331 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2333 test "x$ac_site_file" = xNONE && continue
2334 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2336 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2337 sed 's/^/| /' "$ac_site_file" >&5
2339 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341 as_fn_error $? "failed to load site script $ac_site_file
2342 See \`config.log' for more details" "$LINENO" 5; }
2346 if test -r "$cache_file"; then
2347 # Some versions of bash will fail to source /dev/null (special files
2348 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2349 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2351 $as_echo "$as_me: loading cache $cache_file" >&6;}
2353 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2354 *) . "./$cache_file";;
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2359 $as_echo "$as_me: creating cache $cache_file" >&6;}
2363 # Check that the precious variables saved in the cache have kept the same
2365 ac_cache_corrupted=false
2366 for ac_var in $ac_precious_vars; do
2367 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2368 eval ac_new_set=\$ac_env_${ac_var}_set
2369 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2370 eval ac_new_val=\$ac_env_${ac_var}_value
2371 case $ac_old_set,$ac_new_set in
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2374 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2375 ac_cache_corrupted=: ;;
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2378 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2379 ac_cache_corrupted=: ;;
2382 if test "x$ac_old_val" != "x$ac_new_val"; then
2383 # differences in whitespace do not lead to failure.
2384 ac_old_val_w=`echo x $ac_old_val`
2385 ac_new_val_w=`echo x $ac_new_val`
2386 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2388 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2389 ac_cache_corrupted=:
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2392 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2393 eval $ac_var=\$ac_old_val
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2396 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2398 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2401 # Pass precious variables to config.status.
2402 if test "$ac_new_set" = set; then
2404 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2405 *) ac_arg=$ac_var=$ac_new_val ;;
2407 case " $ac_configure_args " in
2408 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2409 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2413 if $ac_cache_corrupted; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2417 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2418 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2420 ## -------------------- ##
2421 ## Main body of script. ##
2422 ## -------------------- ##
2425 ac_cpp='$CPP $CPPFLAGS'
2426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431 ac_config_headers="$ac_config_headers config.h"
2436 *) srcdir=`cd $srcdir && 'pwd'`;;
2443 case "$defshell_path$DEFSHELL_INDEX" in
2448 *csh) # we must be desperate
2449 DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;;
2451 DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
2453 DEFSHELL_INDEX=DEFSHELL_INDEX_SH;;
2454 *) DEFSHELL_INDEX=DEFSHELL_INDEX_CUSTOM
2460 */*) defshell_path=$1;;
2464 # Check whether --with-defshell was given.
2465 if test "${with_defshell+set}" = set; then :
2466 withval=$with_defshell; case "${withval}" in
2467 yes) as_fn_error $? "bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;;
2469 *) use_defshell $with_defshell;;
2474 CYGWIN*|MINGW*) use_makefile=no;;
2475 *) use_makefile=yes;;
2478 # Check whether --with-makefile was given.
2479 if test "${with_makefile+set}" = set; then :
2480 withval=$with_makefile; case "${withval}" in
2481 yes|no) use_makefile=${withval};;
2482 *) as_fn_error $? "bad value ${withval} given for makefile" "$LINENO" 5 ;;
2488 # Check whether --with-meta was given.
2489 if test "${with_meta+set}" = set; then :
2490 withval=$with_meta; case "${withval}" in
2491 yes|no) use_meta=${withval};;
2492 *) as_fn_error $? "bad value ${withval} given for meta" "$LINENO" 5 ;;
2497 # Check whether --with-filemon was given.
2498 if test "${with_filemon+set}" = set; then :
2499 withval=$with_filemon; case "/${withval}" in
2500 /no) use_filemon=no;;
2501 /*trace) filemon_h=no use_filemon="${withval}";;
2502 */filemon.h) filemon_h="${withval}";;
2503 */filemon*) filemon_h="${withval}/filemon.h";;
2504 *) as_fn_error $? "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2506 case "$use_filemon,$filemon_h" in
2507 ,*.h) use_filemon=dev;;
2513 NetBSD) filemon_h=no use_filemon=ktrace;;
2515 for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
2519 filemon_h="$d$x/filemon.h"
2520 test -s "$filemon_h" && break
2522 test -s "$filemon_h" && { use_filemon=dev; break; }
2526 use_filemon=${use_filemon:-no}
2527 case "$use_filemon" in
2536 case "$use_filemon" in
2538 *) echo "Using: filemon_${use_filemon}.c" >&6;;
2543 Minix) CPPFLAGS="${CPPFLAGS} -D_NETBSD_SOURCE"
2544 test -x /usr/pkg/bin/clang && CC=${CC:-clang}
2546 SCO_SV) # /bin/sh is not usable
2547 ALT_DEF_SHELLS="/bin/lsh /usr/bin/bash /bin/ksh"
2548 CPPFLAGS="${CPPFLAGS} -DFORCE_USE_SHELL"
2551 echo $ECHO_N "checking whether system has timezone Europe/Berlin... $ECHO_C" >&6
2552 if test -f /usr/share/zoneinfo/Europe/Berlin; then
2557 utcH=`TZ=UTC date +%H 2> /dev/null`
2558 utc_1H=`TZ=UTC-1 date +%H 2> /dev/null`
2559 if test ${utcH-0} -lt ${utc_1H-0}; then
2561 echo no, using UTC-1 >&6
2567 for d in /usr/gnu/bin
2569 test -d $d || continue
2574 ac_cpp='$CPP $CPPFLAGS'
2575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578 if test -n "$ac_tool_prefix"; then
2579 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2580 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_CC+:} false; then :
2584 $as_echo_n "(cached) " >&6
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 if test -n "$CC"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2609 $as_echo "$CC" >&6; }
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2617 if test -z "$ac_cv_prog_CC"; then
2619 # Extract the first word of "gcc", so it can be a program name with args.
2620 set dummy gcc; ac_word=$2
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2624 $as_echo_n "(cached) " >&6
2626 if test -n "$ac_ct_CC"; then
2627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_ac_ct_CC="gcc"
2637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2647 if test -n "$ac_ct_CC"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2649 $as_echo "$ac_ct_CC" >&6; }
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2655 if test "x$ac_ct_CC" = x; then
2658 case $cross_compiling:$ac_tool_warned in
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2662 ac_tool_warned=yes ;;
2670 if test -z "$CC"; then
2671 if test -n "$ac_tool_prefix"; then
2672 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2673 set dummy ${ac_tool_prefix}cc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_CC+:} false; then :
2677 $as_echo_n "(cached) " >&6
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_CC="${ac_tool_prefix}cc"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 if test -n "$CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2711 if test -z "$CC"; then
2712 # Extract the first word of "cc", so it can be a program name with args.
2713 set dummy cc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_CC+:} false; then :
2717 $as_echo_n "(cached) " >&6
2719 if test -n "$CC"; then
2720 ac_cv_prog_CC="$CC" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2731 ac_prog_rejected=yes
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 if test $ac_prog_rejected = yes; then
2743 # We found a bogon in the path, so make sure we never use it.
2744 set dummy $ac_cv_prog_CC
2746 if test $# != 0; then
2747 # We chose a different compiler from the bogus one.
2748 # However, it has the same basename, so the bogon will be chosen
2749 # first if we set CC to just the basename; use the full file name.
2751 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2757 if test -n "$CC"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2767 if test -z "$CC"; then
2768 if test -n "$ac_tool_prefix"; then
2769 for ac_prog in cl.exe
2771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_CC+:} false; then :
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 if test -n "$CC"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801 $as_echo "$CC" >&6; }
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2808 test -n "$CC" && break
2811 if test -z "$CC"; then
2813 for ac_prog in cl.exe
2815 # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2820 $as_echo_n "(cached) " >&6
2822 if test -n "$ac_ct_CC"; then
2823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_ac_ct_CC="$ac_prog"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843 if test -n "$ac_ct_CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2845 $as_echo "$ac_ct_CC" >&6; }
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2852 test -n "$ac_ct_CC" && break
2855 if test "x$ac_ct_CC" = x; then
2858 case $cross_compiling:$ac_tool_warned in
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2862 ac_tool_warned=yes ;;
2871 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873 as_fn_error $? "no acceptable C compiler found in \$PATH
2874 See \`config.log' for more details" "$LINENO" 5; }
2876 # Provide some information about the compiler.
2877 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2880 for ac_option in --version -v -V -qversion; do
2881 { { ac_try="$ac_compiler $ac_option >&5"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2887 $as_echo "$ac_try_echo"; } >&5
2888 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2890 if test -s conftest.err; then
2892 ... rest of stderr output deleted ...
2893 10q' conftest.err >conftest.er1
2894 cat conftest.er1 >&5
2896 rm -f conftest.er1 conftest.err
2897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2898 test $ac_status = 0; }
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h. */
2912 ac_clean_files_save=$ac_clean_files
2913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2914 # Try to create an executable without -o first, disregard a.out.
2915 # It will help us diagnose broken compilers, and finding out an intuition
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2918 $as_echo_n "checking whether the C compiler works... " >&6; }
2919 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2921 # The possible output files:
2922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2925 for ac_file in $ac_files
2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2929 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2934 if { { ac_try="$ac_link_default"
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2940 $as_echo "$ac_try_echo"; } >&5
2941 (eval "$ac_link_default") 2>&5
2943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2944 test $ac_status = 0; }; then :
2945 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2946 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2947 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2948 # so that the user can short-circuit this test for compilers unknown to
2950 for ac_file in $ac_files ''
2952 test -f "$ac_file" || continue
2954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2957 # We found the default executable, but exeext='' is most
2961 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2963 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965 # We set ac_cv_exeext here because the later test for it is not
2966 # safe: cross compilers may not add the suffix if given an `-o'
2967 # argument, so we may need to know it at that point already.
2968 # Even if this section looks crufty: it has the advantage of
2975 test "$ac_cv_exeext" = no && ac_cv_exeext=
2980 if test -z "$ac_file"; then :
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 $as_echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 as_fn_error 77 "C compiler cannot create executables
2989 See \`config.log' for more details" "$LINENO" 5; }
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2992 $as_echo "yes" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2995 $as_echo_n "checking for C compiler default output file name... " >&6; }
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2997 $as_echo "$ac_file" >&6; }
2998 ac_exeext=$ac_cv_exeext
3000 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3001 ac_clean_files=$ac_clean_files_save
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3003 $as_echo_n "checking for suffix of executables... " >&6; }
3004 if { { ac_try="$ac_link"
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3010 $as_echo "$ac_try_echo"; } >&5
3011 (eval "$ac_link") 2>&5
3013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014 test $ac_status = 0; }; then :
3015 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3016 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3017 # work properly (i.e., refer to `conftest.exe'), while it won't with
3019 for ac_file in conftest.exe conftest conftest.*; do
3020 test -f "$ac_file" || continue
3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3023 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3032 See \`config.log' for more details" "$LINENO" 5; }
3034 rm -f conftest conftest$ac_cv_exeext
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3036 $as_echo "$ac_cv_exeext" >&6; }
3038 rm -f conftest.$ac_ext
3039 EXEEXT=$ac_cv_exeext
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3047 FILE *f = fopen ("conftest.out", "w");
3048 return ferror (f) || fclose (f) != 0;
3054 ac_clean_files="$ac_clean_files conftest.out"
3055 # Check that the compiler produces executables we can run. If not, either
3056 # the compiler is broken, or we cross compile.
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3058 $as_echo_n "checking whether we are cross compiling... " >&6; }
3059 if test "$cross_compiling" != yes; then
3060 { { ac_try="$ac_link"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_link") 2>&5
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }
3071 if { ac_try='./conftest$ac_cv_exeext'
3072 { { case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_try") 2>&5
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; }; then
3084 if test "$cross_compiling" = maybe; then
3087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089 as_fn_error $? "cannot run C compiled programs.
3090 If you meant to cross compile, use \`--host'.
3091 See \`config.log' for more details" "$LINENO" 5; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3096 $as_echo "$cross_compiling" >&6; }
3098 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3099 ac_clean_files=$ac_clean_files_save
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3101 $as_echo_n "checking for suffix of object files... " >&6; }
3102 if ${ac_cv_objext+:} false; then :
3103 $as_echo_n "(cached) " >&6
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3116 rm -f conftest.o conftest.obj
3117 if { { ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 $as_echo "$ac_try_echo"; } >&5
3124 (eval "$ac_compile") 2>&5
3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127 test $ac_status = 0; }; then :
3128 for ac_file in conftest.o conftest.obj conftest.*; do
3129 test -f "$ac_file" || continue;
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3137 $as_echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "cannot compute suffix of object files: cannot compile
3143 See \`config.log' for more details" "$LINENO" 5; }
3145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3148 $as_echo "$ac_cv_objext" >&6; }
3149 OBJEXT=$ac_cv_objext
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3152 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3153 if ${ac_cv_c_compiler_gnu+:} false; then :
3154 $as_echo_n "(cached) " >&6
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3170 if ac_fn_c_try_compile "$LINENO"; then :
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3180 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3181 if test $ac_compiler_gnu = yes; then
3186 ac_test_CFLAGS=${CFLAGS+set}
3187 ac_save_CFLAGS=$CFLAGS
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3189 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3190 if ${ac_cv_prog_cc_g+:} false; then :
3191 $as_echo_n "(cached) " >&6
3193 ac_save_c_werror_flag=$ac_c_werror_flag
3194 ac_c_werror_flag=yes
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3208 if ac_fn_c_try_compile "$LINENO"; then :
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3223 if ac_fn_c_try_compile "$LINENO"; then :
3226 ac_c_werror_flag=$ac_save_c_werror_flag
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3239 if ac_fn_c_try_compile "$LINENO"; then :
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_c_werror_flag=$ac_save_c_werror_flag
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3250 $as_echo "$ac_cv_prog_cc_g" >&6; }
3251 if test "$ac_test_CFLAGS" = set; then
3252 CFLAGS=$ac_save_CFLAGS
3253 elif test $ac_cv_prog_cc_g = yes; then
3254 if test "$GCC" = yes; then
3260 if test "$GCC" = yes; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3267 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3268 if ${ac_cv_prog_cc_c89+:} false; then :
3269 $as_echo_n "(cached) " >&6
3271 ac_cv_prog_cc_c89=no
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3278 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3279 struct buf { int x; };
3280 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3281 static char *e (p, i)
3287 static char *f (char * (*g) (char **, int), char **p, ...)
3292 s = g (p, va_arg (v,int));
3297 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3298 function prototypes and stuff, but not '\xHH' hex character constants.
3299 These don't provoke an error unfortunately, instead are silently treated
3300 as 'x'. The following induces an error, until -std is added to get
3301 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3302 array size at least. It's necessary to write '\x00'==0 to get something
3303 that's true only with -std. */
3304 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3306 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3307 inside strings and character constants. */
3309 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3311 int test (int i, double x);
3312 struct s1 {int (*f) (int a);};
3313 struct s2 {int (*f) (double a);};
3314 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3320 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3325 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3326 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3328 CC="$ac_save_CC $ac_arg"
3329 if ac_fn_c_try_compile "$LINENO"; then :
3330 ac_cv_prog_cc_c89=$ac_arg
3332 rm -f core conftest.err conftest.$ac_objext
3333 test "x$ac_cv_prog_cc_c89" != "xno" && break
3335 rm -f conftest.$ac_ext
3340 case "x$ac_cv_prog_cc_c89" in
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3343 $as_echo "none needed" >&6; } ;;
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3346 $as_echo "unsupported" >&6; } ;;
3348 CC="$CC $ac_cv_prog_cc_c89"
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3350 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3352 if test "x$ac_cv_prog_cc_c89" != xno; then :
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3369 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3370 # On Suns, sometimes $CPP names a directory.
3371 if test -n "$CPP" && test -d "$CPP"; then
3374 if test -z "$CPP"; then
3375 if ${ac_cv_prog_CPP+:} false; then :
3376 $as_echo_n "(cached) " >&6
3378 # Double quotes because CPP needs to be expanded
3379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3382 for ac_c_preproc_warn_flag in '' yes
3384 # Use a header file that comes with gcc, so configuring glibc
3385 # with a fresh cross-compiler works.
3386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3387 # <limits.h> exists even on freestanding compilers.
3388 # On the NeXT, cc -E runs the code through the compiler's parser,
3389 # not just through cpp. "Syntax error" is here to catch this case.
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3393 # include <limits.h>
3395 # include <assert.h>
3399 if ac_fn_c_try_cpp "$LINENO"; then :
3402 # Broken: fails on valid input.
3405 rm -f conftest.err conftest.i conftest.$ac_ext
3407 # OK, works on sane cases. Now check whether nonexistent headers
3408 # can be detected and how.
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3411 #include <ac_nonexistent.h>
3413 if ac_fn_c_try_cpp "$LINENO"; then :
3414 # Broken: success on invalid input.
3417 # Passes both tests.
3421 rm -f conftest.err conftest.i conftest.$ac_ext
3424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3425 rm -f conftest.i conftest.err conftest.$ac_ext
3426 if $ac_preproc_ok; then :
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3439 $as_echo "$CPP" >&6; }
3441 for ac_c_preproc_warn_flag in '' yes
3443 # Use a header file that comes with gcc, so configuring glibc
3444 # with a fresh cross-compiler works.
3445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3446 # <limits.h> exists even on freestanding compilers.
3447 # On the NeXT, cc -E runs the code through the compiler's parser,
3448 # not just through cpp. "Syntax error" is here to catch this case.
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3452 # include <limits.h>
3454 # include <assert.h>
3458 if ac_fn_c_try_cpp "$LINENO"; then :
3461 # Broken: fails on valid input.
3464 rm -f conftest.err conftest.i conftest.$ac_ext
3466 # OK, works on sane cases. Now check whether nonexistent headers
3467 # can be detected and how.
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470 #include <ac_nonexistent.h>
3472 if ac_fn_c_try_cpp "$LINENO"; then :
3473 # Broken: success on invalid input.
3476 # Passes both tests.
3480 rm -f conftest.err conftest.i conftest.$ac_ext
3483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3484 rm -f conftest.i conftest.err conftest.$ac_ext
3485 if $ac_preproc_ok; then :
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3491 See \`config.log' for more details" "$LINENO" 5; }
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3502 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3503 if ${ac_cv_path_GREP+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -z "$GREP"; then
3507 ac_path_GREP_found=false
3508 # Loop through the user's path and test for each of PROGNAME-LIST
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3513 test -z "$as_dir" && as_dir=.
3514 for ac_prog in grep ggrep; do
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3517 as_fn_executable_p "$ac_path_GREP" || continue
3518 # Check for GNU ac_path_GREP and select it if it is found.
3519 # Check for GNU $ac_path_GREP
3520 case `"$ac_path_GREP" --version 2>&1` in
3522 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3525 $as_echo_n 0123456789 >"conftest.in"
3528 cat "conftest.in" "conftest.in" >"conftest.tmp"
3529 mv "conftest.tmp" "conftest.in"
3530 cp "conftest.in" "conftest.nl"
3531 $as_echo 'GREP' >> "conftest.nl"
3532 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3534 as_fn_arith $ac_count + 1 && ac_count=$as_val
3535 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3536 # Best one so far, save it but keep looking for a better one
3537 ac_cv_path_GREP="$ac_path_GREP"
3538 ac_path_GREP_max=$ac_count
3540 # 10*(2^10) chars as input seems more than enough
3541 test $ac_count -gt 10 && break
3543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3546 $ac_path_GREP_found && break 3
3551 if test -z "$ac_cv_path_GREP"; then
3552 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3555 ac_cv_path_GREP=$GREP
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3560 $as_echo "$ac_cv_path_GREP" >&6; }
3561 GREP="$ac_cv_path_GREP"
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3565 $as_echo_n "checking for egrep... " >&6; }
3566 if ${ac_cv_path_EGREP+:} false; then :
3567 $as_echo_n "(cached) " >&6
3569 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3570 then ac_cv_path_EGREP="$GREP -E"
3572 if test -z "$EGREP"; then
3573 ac_path_EGREP_found=false
3574 # Loop through the user's path and test for each of PROGNAME-LIST
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3579 test -z "$as_dir" && as_dir=.
3580 for ac_prog in egrep; do
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3583 as_fn_executable_p "$ac_path_EGREP" || continue
3584 # Check for GNU ac_path_EGREP and select it if it is found.
3585 # Check for GNU $ac_path_EGREP
3586 case `"$ac_path_EGREP" --version 2>&1` in
3588 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3591 $as_echo_n 0123456789 >"conftest.in"
3594 cat "conftest.in" "conftest.in" >"conftest.tmp"
3595 mv "conftest.tmp" "conftest.in"
3596 cp "conftest.in" "conftest.nl"
3597 $as_echo 'EGREP' >> "conftest.nl"
3598 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3600 as_fn_arith $ac_count + 1 && ac_count=$as_val
3601 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3602 # Best one so far, save it but keep looking for a better one
3603 ac_cv_path_EGREP="$ac_path_EGREP"
3604 ac_path_EGREP_max=$ac_count
3606 # 10*(2^10) chars as input seems more than enough
3607 test $ac_count -gt 10 && break
3609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3612 $ac_path_EGREP_found && break 3
3617 if test -z "$ac_cv_path_EGREP"; then
3618 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3621 ac_cv_path_EGREP=$EGREP
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3627 $as_echo "$ac_cv_path_EGREP" >&6; }
3628 EGREP="$ac_cv_path_EGREP"
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3632 $as_echo_n "checking for ANSI C header files... " >&6; }
3633 if ${ac_cv_header_stdc+:} false; then :
3634 $as_echo_n "(cached) " >&6
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652 ac_cv_header_stdc=yes
3654 ac_cv_header_stdc=no
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 if test $ac_cv_header_stdc = yes; then
3659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3666 $EGREP "memchr" >/dev/null 2>&1; then :
3669 ac_cv_header_stdc=no
3675 if test $ac_cv_header_stdc = yes; then
3676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3683 $EGREP "free" >/dev/null 2>&1; then :
3686 ac_cv_header_stdc=no
3692 if test $ac_cv_header_stdc = yes; then
3693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3694 if test "$cross_compiling" = yes; then :
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3701 #if ((' ' & 0x0FF) == 0x020)
3702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3705 # define ISLOWER(c) \
3706 (('a' <= (c) && (c) <= 'i') \
3707 || ('j' <= (c) && (c) <= 'r') \
3708 || ('s' <= (c) && (c) <= 'z'))
3709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3717 for (i = 0; i < 256; i++)
3718 if (XOR (islower (i), ISLOWER (i))
3719 || toupper (i) != TOUPPER (i))
3724 if ac_fn_c_try_run "$LINENO"; then :
3727 ac_cv_header_stdc=no
3729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3730 conftest.$ac_objext conftest.beam conftest.$ac_ext
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3736 $as_echo "$ac_cv_header_stdc" >&6; }
3737 if test $ac_cv_header_stdc = yes; then
3739 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3743 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3744 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3745 inttypes.h stdint.h unistd.h
3747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3748 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3750 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3751 cat >>confdefs.h <<_ACEOF
3752 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3761 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3762 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3769 if test "$MINIX" = yes; then
3771 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3774 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3777 $as_echo "#define _MINIX 1" >>confdefs.h
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3783 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3784 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3785 $as_echo_n "(cached) " >&6
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3790 # define __EXTENSIONS__ 1
3791 $ac_includes_default
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801 ac_cv_safe_to_define___extensions__=yes
3803 ac_cv_safe_to_define___extensions__=no
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3808 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3809 test $ac_cv_safe_to_define___extensions__ = yes &&
3810 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3812 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3814 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3816 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3818 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 if test -n "$ac_tool_prefix"; then
3827 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if ${ac_cv_prog_CC+:} false; then :
3832 $as_echo_n "(cached) " >&6
3834 if test -n "$CC"; then
3835 ac_cv_prog_CC="$CC" # Let the user override the test.
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 if test -n "$CC"; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3857 $as_echo "$CC" >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3865 if test -z "$ac_cv_prog_CC"; then
3867 # Extract the first word of "gcc", so it can be a program name with args.
3868 set dummy gcc; ac_word=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3872 $as_echo_n "(cached) " >&6
3874 if test -n "$ac_ct_CC"; then
3875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884 ac_cv_prog_ac_ct_CC="gcc"
3885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3895 if test -n "$ac_ct_CC"; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3897 $as_echo "$ac_ct_CC" >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3903 if test "x$ac_ct_CC" = x; then
3906 case $cross_compiling:$ac_tool_warned in
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3910 ac_tool_warned=yes ;;
3918 if test -z "$CC"; then
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}cc; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_CC+:} false; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC="$CC" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_CC="${ac_tool_prefix}cc"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 if test -n "$CC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 $as_echo "$CC" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3959 if test -z "$CC"; then
3960 # Extract the first word of "cc", so it can be a program name with args.
3961 set dummy cc; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_CC+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 if test -n "$CC"; then
3968 ac_cv_prog_CC="$CC" # Let the user override the test.
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3979 ac_prog_rejected=yes
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 if test $ac_prog_rejected = yes; then
3991 # We found a bogon in the path, so make sure we never use it.
3992 set dummy $ac_cv_prog_CC
3994 if test $# != 0; then
3995 # We chose a different compiler from the bogus one.
3996 # However, it has the same basename, so the bogon will be chosen
3997 # first if we set CC to just the basename; use the full file name.
3999 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4005 if test -n "$CC"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4007 $as_echo "$CC" >&6; }
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4015 if test -z "$CC"; then
4016 if test -n "$ac_tool_prefix"; then
4017 for ac_prog in cl.exe
4019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if ${ac_cv_prog_CC+:} false; then :
4024 $as_echo_n "(cached) " >&6
4026 if test -n "$CC"; then
4027 ac_cv_prog_CC="$CC" # Let the user override the test.
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 if test -n "$CC"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4049 $as_echo "$CC" >&6; }
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4056 test -n "$CC" && break
4059 if test -z "$CC"; then
4061 for ac_prog in cl.exe
4063 # Extract the first word of "$ac_prog", so it can be a program name with args.
4064 set dummy $ac_prog; ac_word=$2
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 $as_echo_n "checking for $ac_word... " >&6; }
4067 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4068 $as_echo_n "(cached) " >&6
4070 if test -n "$ac_ct_CC"; then
4071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080 ac_cv_prog_ac_ct_CC="$ac_prog"
4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4091 if test -n "$ac_ct_CC"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4093 $as_echo "$ac_ct_CC" >&6; }
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4100 test -n "$ac_ct_CC" && break
4103 if test "x$ac_ct_CC" = x; then
4106 case $cross_compiling:$ac_tool_warned in
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4110 ac_tool_warned=yes ;;
4119 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4121 as_fn_error $? "no acceptable C compiler found in \$PATH
4122 See \`config.log' for more details" "$LINENO" 5; }
4124 # Provide some information about the compiler.
4125 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4128 for ac_option in --version -v -V -qversion; do
4129 { { ac_try="$ac_compiler $ac_option >&5"
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4138 if test -s conftest.err; then
4140 ... rest of stderr output deleted ...
4141 10q' conftest.err >conftest.er1
4142 cat conftest.er1 >&5
4144 rm -f conftest.er1 conftest.err
4145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146 test $ac_status = 0; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4150 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4151 if ${ac_cv_c_compiler_gnu+:} false; then :
4152 $as_echo_n "(cached) " >&6
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4168 if ac_fn_c_try_compile "$LINENO"; then :
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4178 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4179 if test $ac_compiler_gnu = yes; then
4184 ac_test_CFLAGS=${CFLAGS+set}
4185 ac_save_CFLAGS=$CFLAGS
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4187 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4188 if ${ac_cv_prog_cc_g+:} false; then :
4189 $as_echo_n "(cached) " >&6
4191 ac_save_c_werror_flag=$ac_c_werror_flag
4192 ac_c_werror_flag=yes
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4206 if ac_fn_c_try_compile "$LINENO"; then :
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4221 if ac_fn_c_try_compile "$LINENO"; then :
4224 ac_c_werror_flag=$ac_save_c_werror_flag
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4237 if ac_fn_c_try_compile "$LINENO"; then :
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 ac_c_werror_flag=$ac_save_c_werror_flag
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4248 $as_echo "$ac_cv_prog_cc_g" >&6; }
4249 if test "$ac_test_CFLAGS" = set; then
4250 CFLAGS=$ac_save_CFLAGS
4251 elif test $ac_cv_prog_cc_g = yes; then
4252 if test "$GCC" = yes; then
4258 if test "$GCC" = yes; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4265 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4266 if ${ac_cv_prog_cc_c89+:} false; then :
4267 $as_echo_n "(cached) " >&6
4269 ac_cv_prog_cc_c89=no
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4277 struct buf { int x; };
4278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4279 static char *e (p, i)
4285 static char *f (char * (*g) (char **, int), char **p, ...)
4290 s = g (p, va_arg (v,int));
4295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4296 function prototypes and stuff, but not '\xHH' hex character constants.
4297 These don't provoke an error unfortunately, instead are silently treated
4298 as 'x'. The following induces an error, until -std is added to get
4299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4300 array size at least. It's necessary to write '\x00'==0 to get something
4301 that's true only with -std. */
4302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4304 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4305 inside strings and character constants. */
4307 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4309 int test (int i, double x);
4310 struct s1 {int (*f) (int a);};
4311 struct s2 {int (*f) (double a);};
4312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4318 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4323 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4324 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4326 CC="$ac_save_CC $ac_arg"
4327 if ac_fn_c_try_compile "$LINENO"; then :
4328 ac_cv_prog_cc_c89=$ac_arg
4330 rm -f core conftest.err conftest.$ac_objext
4331 test "x$ac_cv_prog_cc_c89" != "xno" && break
4333 rm -f conftest.$ac_ext
4338 case "x$ac_cv_prog_cc_c89" in
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4341 $as_echo "none needed" >&6; } ;;
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4344 $as_echo "unsupported" >&6; } ;;
4346 CC="$CC $ac_cv_prog_cc_c89"
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4348 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4350 if test "x$ac_cv_prog_cc_c89" != xno; then :
4355 ac_cpp='$CPP $CPPFLAGS'
4356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4361 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4362 if ${ac_cv_prog_cc_c99+:} false; then :
4363 $as_echo_n "(cached) " >&6
4365 ac_cv_prog_cc_c99=no
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4370 #include <stdbool.h>
4375 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4376 #define debug(...) fprintf (stderr, __VA_ARGS__)
4377 #define showlist(...) puts (#__VA_ARGS__)
4378 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4380 test_varargs_macros (void)
4385 debug ("X = %d\n", x);
4386 showlist (The first, second, and third items.);
4387 report (x>y, "x is %d but y is %d", x, y);
4390 // Check long long types.
4391 #define BIG64 18446744073709551615ull
4392 #define BIG32 4294967295ul
4393 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4395 your preprocessor is broken;
4399 your preprocessor is broken;
4401 static long long int bignum = -9223372036854775807LL;
4402 static unsigned long long int ubignum = BIG64;
4404 struct incomplete_array
4412 const wchar_t *name;
4416 typedef const char *ccp;
4419 test_restrict (ccp restrict text)
4421 // See if C++-style comments work.
4422 // Iterate through items via the restricted pointer.
4423 // Also check for declarations in for loops.
4424 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4429 // Check varargs and va_copy.
4431 test_varargs (const char *format, ...)
4434 va_start (args, format);
4436 va_copy (args_copy, args);
4447 str = va_arg (args_copy, const char *);
4450 number = va_arg (args_copy, int);
4453 fnumber = va_arg (args_copy, double);
4468 _Bool success = false;
4471 if (test_restrict ("String literal") == 0)
4473 char *restrict newvar = "Another string";
4476 test_varargs ("s, d' f .", "string", 65, 34.234);
4477 test_varargs_macros ();
4479 // Check flexible array members.
4480 struct incomplete_array *ia =
4481 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4483 for (int i = 0; i < ia->datasize; ++i)
4484 ia->data[i] = i * 1.234;
4486 // Check named initializers.
4487 struct named_init ni = {
4489 .name = L"Test wide string",
4490 .average = 543.34343,
4495 int dynamic_array[ni.number];
4496 dynamic_array[ni.number - 1] = 543;
4498 // work around unused variable warnings
4499 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4500 || dynamic_array[ni.number - 1] != 543);
4506 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4508 CC="$ac_save_CC $ac_arg"
4509 if ac_fn_c_try_compile "$LINENO"; then :
4510 ac_cv_prog_cc_c99=$ac_arg
4512 rm -f core conftest.err conftest.$ac_objext
4513 test "x$ac_cv_prog_cc_c99" != "xno" && break
4515 rm -f conftest.$ac_ext
4520 case "x$ac_cv_prog_cc_c99" in
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4523 $as_echo "none needed" >&6; } ;;
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4526 $as_echo "unsupported" >&6; } ;;
4528 CC="$CC $ac_cv_prog_cc_c99"
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4530 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4532 if test "x$ac_cv_prog_cc_c99" != xno; then :
4538 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4539 if test -f "$ac_dir/install-sh"; then
4541 ac_install_sh="$ac_aux_dir/install-sh -c"
4543 elif test -f "$ac_dir/install.sh"; then
4545 ac_install_sh="$ac_aux_dir/install.sh -c"
4547 elif test -f "$ac_dir/shtool"; then
4549 ac_install_sh="$ac_aux_dir/shtool install -c"
4553 if test -z "$ac_aux_dir"; then
4554 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4557 # These three variables are undocumented and unsupported,
4558 # and are intended to be withdrawn in a future Autoconf release.
4559 # They can cause serious problems if a builder's source tree is in a directory
4560 # whose full name contains unusual characters.
4561 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4562 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4563 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4566 # Find a good install program. We prefer a C program (faster),
4567 # so one script is as good as another. But avoid the broken or
4568 # incompatible versions:
4569 # SysV /etc/install, /usr/sbin/install
4570 # SunOS /usr/etc/install
4571 # IRIX /sbin/install
4573 # AmigaOS /C/install, which installs bootblocks on floppy discs
4574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4577 # OS/2's system install, which has a completely different semantic
4578 # ./install, which can be erroneously created by make from ./install.sh.
4579 # Reject install programs that cannot install multiple files.
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4581 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4582 if test -z "$INSTALL"; then
4583 if ${ac_cv_path_install+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 test -z "$as_dir" && as_dir=.
4591 # Account for people who put trailing slashes in PATH elements.
4592 case $as_dir/ in #((
4593 ./ | .// | /[cC]/* | \
4594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4595 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4598 # OSF1 and SCO ODT 3.0 have their own names for install.
4599 # Don't use installbsd from OSF since it installs stuff as root
4601 for ac_prog in ginstall scoinst install; do
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4604 if test $ac_prog = install &&
4605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4606 # AIX install. It has an incompatible calling convention.
4608 elif test $ac_prog = install &&
4609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4610 # program-specific install script used by HP pwplus--don't use.
4613 rm -rf conftest.one conftest.two conftest.dir
4614 echo one > conftest.one
4615 echo two > conftest.two
4617 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4618 test -s conftest.one && test -s conftest.two &&
4619 test -s conftest.dir/conftest.one &&
4620 test -s conftest.dir/conftest.two
4622 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4635 rm -rf conftest.one conftest.two conftest.dir
4638 if test "${ac_cv_path_install+set}" = set; then
4639 INSTALL=$ac_cv_path_install
4641 # As a last resort, use the slow shell script. Don't cache a
4642 # value for INSTALL within a source directory, because that will
4643 # break other packages using the cache if that directory is
4644 # removed, or if the value is a relative name.
4645 INSTALL=$ac_install_sh
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4649 $as_echo "$INSTALL" >&6; }
4651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4652 # It thinks the first close brace ends the variable substitution.
4653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4659 if test -x /usr/bin/getconf; then
4660 bmake_path_max=`getconf PATH_MAX / 2> /dev/null`
4661 # only a numeric response is useful
4662 test ${bmake_path_max:-0} -gt 0 2> /dev/null || bmake_path_max=
4664 bmake_path_max=${bmake_path_max:-1024}
4665 if test $bmake_path_max -gt 1024; then
4666 # this is all we expect
4669 echo "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6
4670 if (type cat) > /dev/null 2>&1; then
4673 type "$@" | sed 's,[()],,g;s,^[^/][^/]*,,;q'
4684 if test -x ${_cc:-/dev/null}; then
4685 _cc_dir=`dirname $_cc`
4686 case ":$oldPATH:" in
4688 *) CC=$_cc_dir/$CC;;
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4694 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4695 if ${ac_cv_header_sys_wait_h+:} false; then :
4696 $as_echo_n "(cached) " >&6
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700 #include <sys/types.h>
4701 #include <sys/wait.h>
4703 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4706 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4714 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4719 if ac_fn_c_try_compile "$LINENO"; then :
4720 ac_cv_header_sys_wait_h=yes
4722 ac_cv_header_sys_wait_h=no
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4727 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4728 if test $ac_cv_header_sys_wait_h = yes; then
4730 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4735 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4736 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4738 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4739 if eval \${$as_ac_Header+:} false; then :
4740 $as_echo_n "(cached) " >&6
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744 #include <sys/types.h>
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 eval "$as_ac_Header=yes"
4759 eval "$as_ac_Header=no"
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 eval ac_res=\$$as_ac_Header
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4765 $as_echo "$ac_res" >&6; }
4766 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4767 cat >>confdefs.h <<_ACEOF
4768 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4771 ac_header_dirent=$ac_hdr; break
4775 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4776 if test $ac_header_dirent = dirent.h; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4778 $as_echo_n "checking for library containing opendir... " >&6; }
4779 if ${ac_cv_search_opendir+:} false; then :
4780 $as_echo_n "(cached) " >&6
4782 ac_func_search_save_LIBS=$LIBS
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4786 /* Override any GCC internal prototype to avoid an error.
4787 Use char because int might match the return type of a GCC
4788 builtin and then its argument prototype would still apply. */
4801 for ac_lib in '' dir; do
4802 if test -z "$ac_lib"; then
4803 ac_res="none required"
4806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4808 if ac_fn_c_try_link "$LINENO"; then :
4809 ac_cv_search_opendir=$ac_res
4811 rm -f core conftest.err conftest.$ac_objext \
4813 if ${ac_cv_search_opendir+:} false; then :
4817 if ${ac_cv_search_opendir+:} false; then :
4820 ac_cv_search_opendir=no
4823 LIBS=$ac_func_search_save_LIBS
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4826 $as_echo "$ac_cv_search_opendir" >&6; }
4827 ac_res=$ac_cv_search_opendir
4828 if test "$ac_res" != no; then :
4829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4835 $as_echo_n "checking for library containing opendir... " >&6; }
4836 if ${ac_cv_search_opendir+:} false; then :
4837 $as_echo_n "(cached) " >&6
4839 ac_func_search_save_LIBS=$LIBS
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4843 /* Override any GCC internal prototype to avoid an error.
4844 Use char because int might match the return type of a GCC
4845 builtin and then its argument prototype would still apply. */
4858 for ac_lib in '' x; do
4859 if test -z "$ac_lib"; then
4860 ac_res="none required"
4863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4865 if ac_fn_c_try_link "$LINENO"; then :
4866 ac_cv_search_opendir=$ac_res
4868 rm -f core conftest.err conftest.$ac_objext \
4870 if ${ac_cv_search_opendir+:} false; then :
4874 if ${ac_cv_search_opendir+:} false; then :
4877 ac_cv_search_opendir=no
4880 LIBS=$ac_func_search_save_LIBS
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4883 $as_echo "$ac_cv_search_opendir" >&6; }
4884 ac_res=$ac_cv_search_opendir
4885 if test "$ac_res" != no; then :
4886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4892 for ac_header in sys/param.h
4894 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4895 if test "x$ac_cv_header_sys_param_h" = xyes; then :
4896 cat >>confdefs.h <<_ACEOF
4897 #define HAVE_SYS_PARAM_H 1
4904 for ac_header in sys/sysctl.h
4906 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#ifdef HAVE_SYS_PARAM_H
4907 # include <sys/param.h>
4911 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
4912 cat >>confdefs.h <<_ACEOF
4913 #define HAVE_SYS_SYSCTL_H 1
4938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4939 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4941 cat >>confdefs.h <<_ACEOF
4942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4950 ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
4951 if test "x$ac_cv_header_sys_cdefs_h" = xyes; then :
4954 CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`"
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4961 $as_echo_n "checking for __attribute__... " >&6; }
4962 if ${ac_cv___attribute__+:} false; then :
4963 $as_echo_n "(cached) " >&6
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4971 static void foo(void) __attribute__ ((noreturn));
4980 main(int argc, char **argv)
4986 if ac_fn_c_try_link "$LINENO"; then :
4987 ac_cv___attribute__=yes
4989 ac_cv___attribute__=no
4991 rm -f core conftest.err conftest.$ac_objext \
4992 conftest$ac_exeext conftest.$ac_ext
4995 if test "$ac_cv___attribute__" = "yes"; then
4997 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
5001 $as_echo "$ac_cv___attribute__" >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5004 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5005 if ${ac_cv_c_bigendian+:} false; then :
5006 $as_echo_n "(cached) " >&6
5008 ac_cv_c_bigendian=unknown
5009 # See if we're dealing with a universal compiler.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #ifndef __APPLE_CC__
5013 not a universal capable compiler
5018 if ac_fn_c_try_compile "$LINENO"; then :
5020 # Check for potential -arch flags. It is not universal unless
5021 # there are at least two -arch flags with different values.
5024 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5025 if test -n "$ac_prev"; then
5027 i?86 | x86_64 | ppc | ppc64)
5028 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5031 ac_cv_c_bigendian=universal
5037 elif test "x$ac_word" = "x-arch"; then
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 if test $ac_cv_c_bigendian = unknown; then
5044 # See if sys/param.h defines the BYTE_ORDER macro.
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 #include <sys/types.h>
5048 #include <sys/param.h>
5053 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5054 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5063 if ac_fn_c_try_compile "$LINENO"; then :
5064 # It does; now see whether it defined to BIG_ENDIAN or not.
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 #include <sys/types.h>
5068 #include <sys/param.h>
5073 #if BYTE_ORDER != BIG_ENDIAN
5081 if ac_fn_c_try_compile "$LINENO"; then :
5082 ac_cv_c_bigendian=yes
5084 ac_cv_c_bigendian=no
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 if test $ac_cv_c_bigendian = unknown; then
5091 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5099 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5107 if ac_fn_c_try_compile "$LINENO"; then :
5108 # It does; now see whether it defined to _BIG_ENDIAN or not.
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5124 if ac_fn_c_try_compile "$LINENO"; then :
5125 ac_cv_c_bigendian=yes
5127 ac_cv_c_bigendian=no
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133 if test $ac_cv_c_bigendian = unknown; then
5134 # Compile a test program.
5135 if test "$cross_compiling" = yes; then :
5136 # Try to guess by grepping values from an object file.
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 short int ascii_mm[] =
5140 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5141 short int ascii_ii[] =
5142 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5143 int use_ascii (int i) {
5144 return ascii_mm[i] + ascii_ii[i];
5146 short int ebcdic_ii[] =
5147 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5148 short int ebcdic_mm[] =
5149 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5150 int use_ebcdic (int i) {
5151 return ebcdic_mm[i] + ebcdic_ii[i];
5158 return use_ascii (foo) == use_ebcdic (foo);
5163 if ac_fn_c_try_compile "$LINENO"; then :
5164 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5165 ac_cv_c_bigendian=yes
5167 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5168 if test "$ac_cv_c_bigendian" = unknown; then
5169 ac_cv_c_bigendian=no
5171 # finding both strings is unlikely to happen, but who knows?
5172 ac_cv_c_bigendian=unknown
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 $ac_includes_default
5185 /* Are we little or big endian? From Harbison&Steele. */
5189 char c[sizeof (long int)];
5192 return u.c[sizeof (long int) - 1] == 1;
5198 if ac_fn_c_try_run "$LINENO"; then :
5199 ac_cv_c_bigendian=no
5201 ac_cv_c_bigendian=yes
5203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5204 conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5210 $as_echo "$ac_cv_c_bigendian" >&6; }
5211 case $ac_cv_c_bigendian in #(
5213 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5219 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5223 as_fn_error $? "unknown endianness
5224 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5228 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5229 if ${ac_cv_c_const+:} false; then :
5230 $as_echo_n "(cached) " >&6
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5240 /* Ultrix mips cc rejects this sort of thing. */
5241 typedef int charset[2];
5242 const charset cs = { 0, 0 };
5243 /* SunOS 4.1.1 cc rejects this. */
5244 char const *const *pcpcc;
5246 /* NEC SVR4.0.2 mips cc rejects this. */
5247 struct point {int x, y;};
5248 static struct point const zero = {0,0};
5249 /* AIX XL C 1.02.0.0 rejects this.
5250 It does not let you subtract one const X* pointer from another in
5251 an arm of an if-expression whose if-part is not a constant
5253 const char *g = "string";
5254 pcpcc = &g + (g ? g-g : 0);
5255 /* HPUX 7.0 cc rejects these. */
5257 ppc = (char**) pcpcc;
5258 pcpcc = (char const *const *) ppc;
5259 { /* SCO 3.2v4 cc rejects this sort of thing. */
5262 char const *s = 0 ? (char *) 0 : (char const *) 0;
5267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5269 const int *foo = &x[0];
5272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5273 typedef const int *iptr;
5277 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5279 struct s { int j; const int *ap[3]; } bx;
5280 struct s *b = &bx; b->j = 5;
5282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5286 return !cs[0] && !zero.x;
5293 if ac_fn_c_try_compile "$LINENO"; then :
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5301 $as_echo "$ac_cv_c_const" >&6; }
5302 if test $ac_cv_c_const = no; then
5304 $as_echo "#define const /**/" >>confdefs.h
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5309 $as_echo_n "checking for inline... " >&6; }
5310 if ${ac_cv_c_inline+:} false; then :
5311 $as_echo_n "(cached) " >&6
5314 for ac_kw in inline __inline__ __inline; do
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5319 static $ac_kw foo_t static_foo () {return 0; }
5320 $ac_kw foo_t foo () {return 0; }
5324 if ac_fn_c_try_compile "$LINENO"; then :
5325 ac_cv_c_inline=$ac_kw
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 test "$ac_cv_c_inline" != no && break
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5333 $as_echo "$ac_cv_c_inline" >&6; }
5335 case $ac_cv_c_inline in
5338 case $ac_cv_c_inline in
5340 *) ac_val=$ac_cv_c_inline;;
5342 cat >>confdefs.h <<_ACEOF
5344 #define inline $ac_val
5350 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5351 case $ac_cv_c_int64_t in #(
5355 cat >>confdefs.h <<_ACEOF
5356 #define int64_t $ac_cv_c_int64_t
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5363 $as_echo_n "checking for unsigned long long int... " >&6; }
5364 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5365 $as_echo_n "(cached) " >&6
5367 ac_cv_type_unsigned_long_long_int=yes
5368 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5372 /* For now, do not test the preprocessor; as of 2007 there are too many
5373 implementations with broken preprocessors. Perhaps this can
5374 be revisited in 2012. In the meantime, code should not expect
5375 #if to work with literals wider than 32 bits. */
5376 /* Test literals. */
5377 long long int ll = 9223372036854775807ll;
5378 long long int nll = -9223372036854775807LL;
5379 unsigned long long int ull = 18446744073709551615ULL;
5380 /* Test constant expressions. */
5381 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5383 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5389 /* Test availability of runtime routines for shift and division. */
5390 long long int llmax = 9223372036854775807ll;
5391 unsigned long long int ullmax = 18446744073709551615ull;
5392 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5393 | (llmax / ll) | (llmax % ll)
5394 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5395 | (ullmax / ull) | (ullmax % ull));
5401 if ac_fn_c_try_link "$LINENO"; then :
5404 ac_cv_type_unsigned_long_long_int=no
5406 rm -f core conftest.err conftest.$ac_objext \
5407 conftest$ac_exeext conftest.$ac_ext
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5411 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5412 if test $ac_cv_type_unsigned_long_long_int = yes; then
5414 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5421 $as_echo_n "checking for long long int... " >&6; }
5422 if ${ac_cv_type_long_long_int+:} false; then :
5423 $as_echo_n "(cached) " >&6
5425 ac_cv_type_long_long_int=yes
5426 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5427 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5428 if test $ac_cv_type_long_long_int = yes; then
5429 if test "$cross_compiling" = yes; then :
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5437 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5438 # define LLONG_MAX (HALF - 1 + HALF)
5443 long long int n = 1;
5447 long long int m = n << i;
5450 if (LLONG_MAX / 2 < m)
5458 if ac_fn_c_try_run "$LINENO"; then :
5461 ac_cv_type_long_long_int=no
5463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5464 conftest.$ac_objext conftest.beam conftest.$ac_ext
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5471 $as_echo "$ac_cv_type_long_long_int" >&6; }
5472 if test $ac_cv_type_long_long_int = yes; then
5474 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5478 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5479 if test "x$ac_cv_type_mode_t" = xyes; then :
5483 cat >>confdefs.h <<_ACEOF
5489 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5490 if test "x$ac_cv_type_off_t" = xyes; then :
5494 cat >>confdefs.h <<_ACEOF
5495 #define off_t long int
5500 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5501 if test "x$ac_cv_type_pid_t" = xyes; then :
5505 cat >>confdefs.h <<_ACEOF
5511 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5512 if test "x$ac_cv_type_size_t" = xyes; then :
5516 cat >>confdefs.h <<_ACEOF
5517 #define size_t unsigned int
5522 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5523 case $ac_cv_c_uint32_t in #(
5527 $as_echo "#define _UINT32_T 1" >>confdefs.h
5530 cat >>confdefs.h <<_ACEOF
5531 #define uint32_t $ac_cv_c_uint32_t
5536 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
5537 /* NetBSD declares sys_siglist in unistd.h. */
5538 #ifdef HAVE_UNISTD_H
5539 # include <unistd.h>
5543 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
5549 cat >>confdefs.h <<_ACEOF
5550 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5555 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5556 if ${ac_cv_header_time+:} false; then :
5557 $as_echo_n "(cached) " >&6
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 #include <sys/types.h>
5562 #include <sys/time.h>
5568 if ((struct tm *) 0)
5574 if ac_fn_c_try_compile "$LINENO"; then :
5575 ac_cv_header_time=yes
5577 ac_cv_header_time=no
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5582 $as_echo "$ac_cv_header_time" >&6; }
5583 if test $ac_cv_header_time = yes; then
5585 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5590 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5591 if ${ac_cv_struct_tm+:} false; then :
5592 $as_echo_n "(cached) " >&6
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5596 #include <sys/types.h>
5603 int *p = &tm.tm_sec;
5609 if ac_fn_c_try_compile "$LINENO"; then :
5610 ac_cv_struct_tm=time.h
5612 ac_cv_struct_tm=sys/time.h
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5617 $as_echo "$ac_cv_struct_tm" >&6; }
5618 if test $ac_cv_struct_tm = sys/time.h; then
5620 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5626 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
5627 #ifdef HAVE_SYS_TYPES_H
5628 #include <sys/types.h>
5633 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
5635 cat >>confdefs.h <<_ACEOF
5636 #define HAVE_SIG_ATOMIC_T 1
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5644 $as_echo_n "checking return type of signal handlers... " >&6; }
5645 if ${ac_cv_type_signal+:} false; then :
5646 $as_echo_n "(cached) " >&6
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650 #include <sys/types.h>
5656 return *(signal (0, 0)) (0) == 1;
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662 ac_cv_type_signal=int
5664 ac_cv_type_signal=void
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5669 $as_echo "$ac_cv_type_signal" >&6; }
5671 cat >>confdefs.h <<_ACEOF
5672 #define RETSIGTYPE $ac_cv_type_signal
5676 for ac_header in vfork.h
5678 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5679 if test "x$ac_cv_header_vfork_h" = xyes; then :
5680 cat >>confdefs.h <<_ACEOF
5681 #define HAVE_VFORK_H 1
5688 for ac_func in fork vfork
5690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5691 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5692 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5693 cat >>confdefs.h <<_ACEOF
5694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5700 if test "x$ac_cv_func_fork" = xyes; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5702 $as_echo_n "checking for working fork... " >&6; }
5703 if ${ac_cv_func_fork_works+:} false; then :
5704 $as_echo_n "(cached) " >&6
5706 if test "$cross_compiling" = yes; then :
5707 ac_cv_func_fork_works=cross
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 $ac_includes_default
5716 /* By Ruediger Kuhlmann. */
5723 if ac_fn_c_try_run "$LINENO"; then :
5724 ac_cv_func_fork_works=yes
5726 ac_cv_func_fork_works=no
5728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5729 conftest.$ac_objext conftest.beam conftest.$ac_ext
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5734 $as_echo "$ac_cv_func_fork_works" >&6; }
5737 ac_cv_func_fork_works=$ac_cv_func_fork
5739 if test "x$ac_cv_func_fork_works" = xcross; then
5741 *-*-amigaos* | *-*-msdosdjgpp*)
5742 # Override, as these systems have only a dummy fork() stub
5743 ac_cv_func_fork_works=no
5746 ac_cv_func_fork_works=yes
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5750 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5752 ac_cv_func_vfork_works=$ac_cv_func_vfork
5753 if test "x$ac_cv_func_vfork" = xyes; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5755 $as_echo_n "checking for working vfork... " >&6; }
5756 if ${ac_cv_func_vfork_works+:} false; then :
5757 $as_echo_n "(cached) " >&6
5759 if test "$cross_compiling" = yes; then :
5760 ac_cv_func_vfork_works=cross
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5764 /* Thanks to Paul Eggert for this test. */
5765 $ac_includes_default
5766 #include <sys/wait.h>
5770 /* On some sparc systems, changes by the child to local and incoming
5771 argument registers are propagated back to the parent. The compiler
5772 is told about this with #include <vfork.h>, but some compilers
5773 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5774 static variable whose address is put into a register that is
5775 clobbered by the vfork. */
5778 sparc_address_test (int arg)
5780 sparc_address_test (arg) int arg;
5801 pid_t parent = getpid ();
5804 sparc_address_test (0);
5809 /* Here is another test for sparc vfork register problems. This
5810 test uses lots of local variables, at least as many local
5811 variables as main has allocated so far including compiler
5812 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5813 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5814 reuse the register of parent for one of the local variables,
5815 since it will think that parent can't possibly be used any more
5816 in this routine. Assigning to the local variable will thus
5817 munge parent in the parent process. */
5819 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5820 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5821 /* Convince the compiler that p..p7 are live; otherwise, it might
5822 use the same hardware register for all 8 local variables. */
5823 if (p != p1 || p != p2 || p != p3 || p != p4
5824 || p != p5 || p != p6 || p != p7)
5827 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5828 from child file descriptors. If the child closes a descriptor
5829 before it execs or exits, this munges the parent's descriptor
5830 as well. Test for this by closing stdout in the child. */
5831 _exit(close(fileno(stdout)) != 0);
5836 while (wait(&status) != child)
5839 /* Was there some problem with vforking? */
5842 /* Did the child fail? (This shouldn't happen.) */
5845 /* Did the vfork/compiler bug occur? */
5846 || parent != getpid()
5848 /* Did the file descriptor bug occur? */
5849 || fstat(fileno(stdout), &st) != 0
5854 if ac_fn_c_try_run "$LINENO"; then :
5855 ac_cv_func_vfork_works=yes
5857 ac_cv_func_vfork_works=no
5859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5860 conftest.$ac_objext conftest.beam conftest.$ac_ext
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5865 $as_echo "$ac_cv_func_vfork_works" >&6; }
5868 if test "x$ac_cv_func_fork_works" = xcross; then
5869 ac_cv_func_vfork_works=$ac_cv_func_vfork
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5871 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5874 if test "x$ac_cv_func_vfork_works" = xyes; then
5876 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5880 $as_echo "#define vfork fork" >>confdefs.h
5883 if test "x$ac_cv_func_fork_works" = xyes; then
5885 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5889 for ac_func in vprintf
5891 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5892 if test "x$ac_cv_func_vprintf" = xyes; then :
5893 cat >>confdefs.h <<_ACEOF
5894 #define HAVE_VPRINTF 1
5897 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5898 if test "x$ac_cv_func__doprnt" = xyes; then :
5900 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
5909 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
5910 if ${ac_cv_func_wait3_rusage+:} false; then :
5911 $as_echo_n "(cached) " >&6
5913 if test "$cross_compiling" = yes; then :
5914 ac_cv_func_wait3_rusage=no
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918 $ac_includes_default
5919 #include <sys/time.h>
5920 #include <sys/resource.h>
5921 #include <sys/wait.h>
5922 /* HP-UX has wait3 but does not fill in rusage at all. */
5928 /* Use a field that we can force nonzero --
5929 voluntary context switches.
5930 For systems like NeXT and OSF/1 that don't set it,
5931 also use the system CPU time. And page faults (I/O) for Linux. */
5933 r.ru_stime.tv_sec = 0;
5934 r.ru_stime.tv_usec = 0;
5935 r.ru_majflt = r.ru_minflt = 0;
5938 case 0: /* Child. */
5939 sleep(1); /* Give up the CPU. */
5942 case -1: /* What can we do? */
5945 default: /* Parent. */
5947 /* Avoid "text file busy" from rm on fast HP-UX machines. */
5949 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
5950 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
5954 if ac_fn_c_try_run "$LINENO"; then :
5955 ac_cv_func_wait3_rusage=yes
5957 ac_cv_func_wait3_rusage=no
5959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5960 conftest.$ac_objext conftest.beam conftest.$ac_ext
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
5965 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
5966 if test $ac_cv_func_wait3_rusage = yes; then
5968 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
6011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6012 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6013 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6014 cat >>confdefs.h <<_ACEOF
6015 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6022 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6023 if test "x$ac_cv_func_getopt" = xyes; then :
6024 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
6027 case " $LIBOBJS " in
6028 *" getopt.$ac_objext "* ) ;;
6029 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
6035 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
6036 if test "x$ac_cv_func_realpath" = xyes; then :
6037 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
6040 case " $LIBOBJS " in
6041 *" realpath.$ac_objext "* ) ;;
6042 *) LIBOBJS="$LIBOBJS realpath.$ac_objext"
6048 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
6049 if test "x$ac_cv_func_dirname" = xyes; then :
6050 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
6053 case " $LIBOBJS " in
6054 *" dirname.$ac_objext "* ) ;;
6055 *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
6061 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
6062 if test "x$ac_cv_func_sigaction" = xyes; then :
6063 $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
6066 case " $LIBOBJS " in
6067 *" sigaction.$ac_objext "* ) ;;
6068 *) LIBOBJS="$LIBOBJS sigaction.$ac_objext"
6074 ac_fn_c_check_func "$LINENO" "stresep" "ac_cv_func_stresep"
6075 if test "x$ac_cv_func_stresep" = xyes; then :
6076 $as_echo "#define HAVE_STRESEP 1" >>confdefs.h
6079 case " $LIBOBJS " in
6080 *" stresep.$ac_objext "* ) ;;
6081 *) LIBOBJS="$LIBOBJS stresep.$ac_objext"
6087 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6088 if test "x$ac_cv_func_strlcpy" = xyes; then :
6089 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
6092 case " $LIBOBJS " in
6093 *" strlcpy.$ac_objext "* ) ;;
6094 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
6103 $as_echo_n "checking for emalloc in -lutil... " >&6; }
6104 if ${ac_cv_lib_util_emalloc+:} false; then :
6105 $as_echo_n "(cached) " >&6
6107 ac_check_lib_save_LIBS=$LIBS
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6112 /* Override any GCC internal prototype to avoid an error.
6113 Use char because int might match the return type of a GCC
6114 builtin and then its argument prototype would still apply. */
6127 if ac_fn_c_try_link "$LINENO"; then :
6128 ac_cv_lib_util_emalloc=yes
6130 ac_cv_lib_util_emalloc=no
6132 rm -f core conftest.err conftest.$ac_objext \
6133 conftest$ac_exeext conftest.$ac_ext
6134 LIBS=$ac_check_lib_save_LIBS
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
6137 $as_echo "$ac_cv_lib_util_emalloc" >&6; }
6138 if test "x$ac_cv_lib_util_emalloc" = xyes; then :
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
6140 $as_echo_n "checking for erealloc in -lutil... " >&6; }
6141 if ${ac_cv_lib_util_erealloc+:} false; then :
6142 $as_echo_n "(cached) " >&6
6144 ac_check_lib_save_LIBS=$LIBS
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6149 /* Override any GCC internal prototype to avoid an error.
6150 Use char because int might match the return type of a GCC
6151 builtin and then its argument prototype would still apply. */
6164 if ac_fn_c_try_link "$LINENO"; then :
6165 ac_cv_lib_util_erealloc=yes
6167 ac_cv_lib_util_erealloc=no
6169 rm -f core conftest.err conftest.$ac_objext \
6170 conftest$ac_exeext conftest.$ac_ext
6171 LIBS=$ac_check_lib_save_LIBS
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
6174 $as_echo "$ac_cv_lib_util_erealloc" >&6; }
6175 if test "x$ac_cv_lib_util_erealloc" = xyes; then :
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
6177 $as_echo_n "checking for estrdup in -lutil... " >&6; }
6178 if ${ac_cv_lib_util_estrdup+:} false; then :
6179 $as_echo_n "(cached) " >&6
6181 ac_check_lib_save_LIBS=$LIBS
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6186 /* Override any GCC internal prototype to avoid an error.
6187 Use char because int might match the return type of a GCC
6188 builtin and then its argument prototype would still apply. */
6201 if ac_fn_c_try_link "$LINENO"; then :
6202 ac_cv_lib_util_estrdup=yes
6204 ac_cv_lib_util_estrdup=no
6206 rm -f core conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext conftest.$ac_ext
6208 LIBS=$ac_check_lib_save_LIBS
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
6211 $as_echo "$ac_cv_lib_util_estrdup" >&6; }
6212 if test "x$ac_cv_lib_util_estrdup" = xyes; then :
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
6214 $as_echo_n "checking for estrndup in -lutil... " >&6; }
6215 if ${ac_cv_lib_util_estrndup+:} false; then :
6216 $as_echo_n "(cached) " >&6
6218 ac_check_lib_save_LIBS=$LIBS
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6223 /* Override any GCC internal prototype to avoid an error.
6224 Use char because int might match the return type of a GCC
6225 builtin and then its argument prototype would still apply. */
6238 if ac_fn_c_try_link "$LINENO"; then :
6239 ac_cv_lib_util_estrndup=yes
6241 ac_cv_lib_util_estrndup=no
6243 rm -f core conftest.err conftest.$ac_objext \
6244 conftest$ac_exeext conftest.$ac_ext
6245 LIBS=$ac_check_lib_save_LIBS
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
6248 $as_echo "$ac_cv_lib_util_estrndup" >&6; }
6249 if test "x$ac_cv_lib_util_estrndup" = xyes; then :
6251 CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC"
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6262 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6263 if ${ac_cv_header_stat_broken+:} false; then :
6264 $as_echo_n "(cached) " >&6
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 #include <sys/types.h>
6269 #include <sys/stat.h>
6271 #if defined S_ISBLK && defined S_IFDIR
6272 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6275 #if defined S_ISBLK && defined S_IFCHR
6276 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6279 #if defined S_ISLNK && defined S_IFREG
6280 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6283 #if defined S_ISSOCK && defined S_IFREG
6284 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6288 if ac_fn_c_try_compile "$LINENO"; then :
6289 ac_cv_header_stat_broken=no
6291 ac_cv_header_stat_broken=yes
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6296 $as_echo "$ac_cv_header_stat_broken" >&6; }
6297 if test $ac_cv_header_stat_broken = yes; then
6299 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6303 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6304 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6306 cat >>confdefs.h <<_ACEOF
6307 #define HAVE_STRUCT_STAT_ST_RDEV 1
6311 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6316 echo "checking if compiler supports __func__" >&6
6318 ac_cpp='$CPP $CPPFLAGS'
6319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6329 const char *func = __func__;
6334 if ac_fn_c_try_compile "$LINENO"; then :
6338 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
6341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342 if test -x /usr/gnu/bin/diff; then
6343 diff=/usr/gnu/bin/diff
6347 echo $ECHO_N "checking if $diff -u works... $ECHO_C" >&6
6348 if $diff -u /dev/null /dev/null > /dev/null 2>&1; then
6356 echo "checking for MACHINE & MACHINE_ARCH..." >&6
6357 cat > conftest.$ac_ext <<EOF
6358 #include "confdefs.h"
6359 #include <sys/param.h>
6364 machine_arch=MACHINE_ARCH
6368 default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6369 egrep machine= | tr -d ' "'`
6371 if test "$default_machine"; then
6372 eval "$default_machine"
6374 machine=${machine:-`$srcdir/machine.sh`}
6375 machine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
6376 echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
6378 # Check whether --with-machine was given.
6379 if test "${with_machine+set}" = set; then :
6380 withval=$with_machine; case "${withval}" in
6381 yes) as_fn_error $? "bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
6383 generic) machine=`$srcdir/machine.sh`;;
6384 *) machine=$with_machine;;
6390 # Check whether --with-force_machine was given.
6391 if test "${with_force_machine+set}" = set; then :
6392 withval=$with_force_machine; case "${withval}" in
6393 yes) force_machine=FORCE_;;
6395 *) force_machine=FORCE_; machine=$with_force_machine;;
6401 # Check whether --with-force_machine_arch was given.
6402 if test "${with_force_machine_arch+set}" = set; then :
6403 withval=$with_force_machine_arch; case "${withval}" in
6404 yes) force_machine_arch=FORCE_;;
6406 *) force_machine_arch=FORCE_; machine_arch=$with_force_machine_arch;;
6411 # Check whether --with-machine_arch was given.
6412 if test "${with_machine_arch+set}" = set; then :
6413 withval=$with_machine_arch; case "${withval}" in
6414 yes) as_fn_error $? "bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
6416 *) machine_arch=$with_machine_arch;;
6420 echo "Using: ${force_machine}MACHINE=$machine, ${force_machine_arch}MACHINE_ARCH=$machine_arch" 1>&6
6421 default_sys_path=\${prefix}/share/mk
6423 # Check whether --with-default-sys-path was given.
6424 if test "${with_default_sys_path+set}" = set; then :
6425 withval=$with_default_sys_path; case "${withval}" in
6426 yes) as_fn_error $? "bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
6428 *) default_sys_path="$with_default_sys_path"
6434 # Check whether --with-path-objdirprefix was given.
6435 if test "${with_path_objdirprefix+set}" = set; then :
6436 withval=$with_path_objdirprefix; case "${withval}" in
6437 yes) as_fn_error $? "bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
6438 no) CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
6439 *) CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
6443 # Check whether --enable-pwd-override was given.
6444 if test "${enable_pwd_override+set}" = set; then :
6445 enableval=$enable_pwd_override; case "${enableval}" in
6447 no) CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
6448 *) as_fn_error $? "bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
6452 # Check whether --enable-check-make-chdir was given.
6453 if test "${enable_check_make_chdir+set}" = set; then :
6454 enableval=$enable_check_make_chdir; case "${enableval}" in
6456 no) CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
6457 *) as_fn_error $? "bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
6462 # Check whether --with-mksrc was given.
6463 if test "${with_mksrc+set}" = set; then :
6464 withval=$with_mksrc; case "${withval}" in
6466 *) test -s $withval/install-mk && mksrc=$withval ||
6467 as_fn_error $? "bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
6473 srcdir=`cd $srcdir && pwd`
6474 for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
6476 test -s $mksrc/install-mk || continue
6477 mksrc=`cd $mksrc && pwd`
6480 mksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
6481 echo "Using: MKSRC=$mksrc" 1>&6
6482 for sh in /usr/xpg4/bin/sh $ALT_DEF_SHELLS
6484 test -x $sh || continue
6488 case "$defshell_path$DEFSHELL_INDEX" in
6490 *DEFSHELL_INDEX_CUSTOM)
6491 echo "Using: SHELL=$defshell_path" >&6
6493 cat >>confdefs.h <<_ACEOF
6494 #define DEFSHELL_CUSTOM "$defshell_path"
6499 echo "Using: SHELL=$DEFSHELL_INDEX ($defshell_path)" | sed 's,DEFSHELL_INDEX_,,' >&6
6501 cat >>confdefs.h <<_ACEOF
6502 #define DEFSHELL_INDEX $DEFSHELL_INDEX
6506 cat >>confdefs.h <<_ACEOF
6507 #define DEFSHELL_PATH "$defshell_path"
6512 echo "Using: SHELL=$DEFSHELL_INDEX" | sed 's,DEFSHELL_INDEX_,,' >&6
6514 cat >>confdefs.h <<_ACEOF
6515 #define DEFSHELL_INDEX $DEFSHELL_INDEX
6535 bm_outfiles="Makefile.config unit-tests/Makefile.config make-bootstrap.sh"
6536 if test $use_makefile = yes; then
6537 bm_outfiles="makefile $bm_outfiles"
6544 $srcdir/obj*) # make sure we put unit-tests/Makefile.config in the right place
6545 obj=`basename $here`
6546 mkdir -p $srcdir/unit-tests/$obj
6547 test -d unit-tests || ln -s ../unit-tests/$obj unit-tests
6551 ac_config_files="$ac_config_files $bm_outfiles"
6553 cat >confcache <<\_ACEOF
6554 # This file is a shell script that caches the results of configure
6555 # tests run on this system so they can be shared between configure
6556 # scripts and configure runs, see configure's option --config-cache.
6557 # It is not useful on other systems. If it contains results you don't
6558 # want to keep, you may remove or edit it.
6560 # config.status only pays attention to the cache file if you give it
6561 # the --recheck option to rerun configure.
6563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6569 # The following way of writing the cache mishandles newlines in values,
6570 # but we know of no workaround that is simple, portable, and efficient.
6571 # So, we kill variables containing newlines.
6572 # Ultrix sh set writes to stderr and can't be redirected directly,
6573 # and sets the high bit in the cache file unless we assign to the vars.
6575 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6576 eval ac_val=\$$ac_var
6580 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6584 _ | IFS | as_nl) ;; #(
6585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6586 *) { eval $ac_var=; unset $ac_var;} ;;
6592 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6593 *${as_nl}ac_space=\ *)
6594 # `set' does not quote correctly, so add quotes: double-quote
6595 # substitution turns \\\\ into \\, and sed turns \\ into \.
6598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6601 # `set' quotes correctly as required by POSIX, so do not add quotes.
6602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6613 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6615 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6616 if test -w "$cache_file"; then
6617 if test "x$cache_file" != "x/dev/null"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6619 $as_echo "$as_me: updating cache $cache_file" >&6;}
6620 if test ! -f "$cache_file" || test -h "$cache_file"; then
6621 cat confcache >"$cache_file"
6623 case $cache_file in #(
6625 mv -f confcache "$cache_file"$$ &&
6626 mv -f "$cache_file"$$ "$cache_file" ;; #(
6628 mv -f confcache "$cache_file" ;;
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6634 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6640 # Let make expand exec_prefix.
6641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6643 DEFS=-DHAVE_CONFIG_H
6648 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6649 # 1. Remove the extension, and $U if already installed.
6650 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6651 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6652 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6653 # will be set to the directory where LIBOBJS objects are built.
6654 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6655 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6659 LTLIBOBJS=$ac_ltlibobjs
6664 : "${CONFIG_STATUS=./config.status}"
6666 ac_clean_files_save=$ac_clean_files
6667 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6669 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6671 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6673 # Generated by $as_me.
6674 # Run this file to recreate the current configuration.
6675 # Compiler output produced by configure, useful for debugging
6676 # configure, is in config.log if it exists.
6682 SHELL=\${CONFIG_SHELL-$SHELL}
6685 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6686 ## -------------------- ##
6687 ## M4sh Initialization. ##
6688 ## -------------------- ##
6690 # Be more Bourne compatible
6691 DUALCASE=1; export DUALCASE # for MKS sh
6692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6695 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6696 # is contrary to our usage. Disable this feature.
6697 alias -g '${1+"$@"}'='"$@"'
6698 setopt NO_GLOB_SUBST
6700 case `(set -o) 2>/dev/null` in #(
6712 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6713 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6716 # Prefer a ksh shell builtin over an external printf program on Solaris,
6717 # but without wasting forks for bash or zsh.
6718 if test -z "$BASH_VERSION$ZSH_VERSION" \
6719 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6720 as_echo='print -r --'
6721 as_echo_n='print -rn --'
6722 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6723 as_echo='printf %s\n'
6724 as_echo_n='printf %s'
6726 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6727 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6728 as_echo_n='/usr/ucb/echo -n'
6730 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6731 as_echo_n_body='eval
6735 expr "X$arg" : "X\\(.*\\)$as_nl";
6736 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6738 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6740 export as_echo_n_body
6741 as_echo_n='sh -c $as_echo_n_body as_echo'
6744 as_echo='sh -c $as_echo_body as_echo'
6747 # The user is always right.
6748 if test "${PATH_SEPARATOR+set}" != set; then
6750 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6751 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6758 # We need space, tab and new line, in precisely that order. Quoting is
6759 # there to prevent editors from complaining about space-tab.
6760 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6761 # splitting by setting IFS to empty value.)
6764 # Find who we are. Look in the path if we contain no directory separator.
6767 *[\\/]* ) as_myself=$0 ;;
6768 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6779 # We did not find ourselves, most probably we were run as `sh COMMAND'
6780 # in which case we are not to be found in the path.
6781 if test "x$as_myself" = x; then
6784 if test ! -f "$as_myself"; then
6785 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6789 # Unset variables that we do not need and which cause bugs (e.g. in
6790 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6791 # suppresses any "Segmentation fault" message there. '((' could
6792 # trigger a bug in pdksh 5.2.14.
6793 for as_var in BASH_ENV ENV MAIL MAILPATH
6794 do eval test x\${$as_var+set} = xset \
6795 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6808 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6811 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6812 # ----------------------------------------
6813 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6814 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6815 # script with STATUS, using 1 if that was 0.
6818 as_status=$1; test $as_status -eq 0 && as_status=1
6820 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6821 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6823 $as_echo "$as_me: error: $2" >&2
6824 as_fn_exit $as_status
6828 # as_fn_set_status STATUS
6829 # -----------------------
6830 # Set $? to STATUS, without forking.
6834 } # as_fn_set_status
6838 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6848 # Portably unset VAR.
6851 { eval $1=; unset $1;}
6853 as_unset=as_fn_unset
6854 # as_fn_append VAR VALUE
6855 # ----------------------
6856 # Append the text in VALUE to the end of the definition contained in VAR. Take
6857 # advantage of any shell optimizations that allow amortized linear growth over
6858 # repeated appends, instead of the typical quadratic growth present in naive
6860 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6861 eval 'as_fn_append ()
6872 # as_fn_arith ARG...
6873 # ------------------
6874 # Perform arithmetic evaluation on the ARGs, and store the result in the
6875 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6876 # must be portable across $(()) and expr.
6877 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6878 eval 'as_fn_arith ()
6885 as_val=`expr "$@" || test $? -eq 1`
6890 if expr a : '\(a\)' >/dev/null 2>&1 &&
6891 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6897 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6898 as_basename=basename
6903 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6909 as_me=`$as_basename -- "$0" ||
6910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6911 X"$0" : 'X\(//\)$' \| \
6912 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6914 sed '/^.*\/\([^/][^/]*\)\/*$/{
6928 # Avoid depending upon Character Ranges.
6929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6930 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6931 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6932 as_cr_digits='0123456789'
6933 as_cr_alnum=$as_cr_Letters$as_cr_digits
6935 ECHO_C= ECHO_N= ECHO_T=
6936 case `echo -n x` in #(((((
6938 case `echo 'xy\c'` in
6939 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6941 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6948 rm -f conf$$ conf$$.exe conf$$.file
6949 if test -d conf$$.dir; then
6950 rm -f conf$$.dir/conf$$.file
6953 mkdir conf$$.dir 2>/dev/null
6955 if (echo >conf$$.file) 2>/dev/null; then
6956 if ln -s conf$$.file conf$$ 2>/dev/null; then
6958 # ... but there are two gotchas:
6959 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6960 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6961 # In both cases, we have to default to `cp -pR'.
6962 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6964 elif ln conf$$.file conf$$ 2>/dev/null; then
6972 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6973 rmdir conf$$.dir 2>/dev/null
6978 # Create "$as_dir" as a directory, including parents if necessary.
6983 -*) as_dir=./$as_dir;;
6985 test -d "$as_dir" || eval $as_mkdir_p || {
6989 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6990 *) as_qdir=$as_dir;;
6992 as_dirs="'$as_qdir' $as_dirs"
6993 as_dir=`$as_dirname -- "$as_dir" ||
6994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6995 X"$as_dir" : 'X\(//\)[^/]' \| \
6996 X"$as_dir" : 'X\(//\)$' \| \
6997 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6998 $as_echo X"$as_dir" |
6999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7016 test -d "$as_dir" && break
7018 test -z "$as_dirs" || eval "mkdir $as_dirs"
7019 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7023 if mkdir -p . 2>/dev/null; then
7024 as_mkdir_p='mkdir -p "$as_dir"'
7026 test -d ./-p && rmdir ./-p
7031 # as_fn_executable_p FILE
7032 # -----------------------
7033 # Test if FILE is an executable regular file.
7034 as_fn_executable_p ()
7036 test -f "$1" && test -x "$1"
7037 } # as_fn_executable_p
7039 as_executable_p=as_fn_executable_p
7041 # Sed expression to map a string onto a valid CPP name.
7042 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7044 # Sed expression to map a string onto a valid variable name.
7045 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7049 ## ----------------------------------- ##
7050 ## Main body of $CONFIG_STATUS script. ##
7051 ## ----------------------------------- ##
7053 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7056 # Save the log message, to keep $0 and so on meaningful, and to
7057 # report actual input values of CONFIG_FILES etc. instead of their
7058 # values after options handling.
7060 This file was extended by bmake $as_me 20211020, which was
7061 generated by GNU Autoconf 2.69. Invocation command line was
7063 CONFIG_FILES = $CONFIG_FILES
7064 CONFIG_HEADERS = $CONFIG_HEADERS
7065 CONFIG_LINKS = $CONFIG_LINKS
7066 CONFIG_COMMANDS = $CONFIG_COMMANDS
7069 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7074 case $ac_config_files in *"
7075 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7078 case $ac_config_headers in *"
7079 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7084 # Files that config.status was made for.
7085 config_files="$ac_config_files"
7086 config_headers="$ac_config_headers"
7090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7092 \`$as_me' instantiates files and other configuration actions
7093 from templates according to the current configuration. Unless the files
7094 and actions are specified as TAGs, all are instantiated by default.
7096 Usage: $0 [OPTION]... [TAG]...
7098 -h, --help print this help, then exit
7099 -V, --version print version number and configuration settings, then exit
7100 --config print configuration, then exit
7101 -q, --quiet, --silent
7102 do not print progress messages
7103 -d, --debug don't remove temporary files
7104 --recheck update $as_me by reconfiguring in the same conditions
7105 --file=FILE[:TEMPLATE]
7106 instantiate the configuration file FILE
7107 --header=FILE[:TEMPLATE]
7108 instantiate the configuration header FILE
7110 Configuration files:
7113 Configuration headers:
7116 Report bugs to <sjg@NetBSD.org>."
7119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7120 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7122 bmake config.status 20211020
7123 configured by $0, generated by GNU Autoconf 2.69,
7124 with options \\"\$ac_cs_config\\"
7126 Copyright (C) 2012 Free Software Foundation, Inc.
7127 This config.status script is free software; the Free Software Foundation
7128 gives unlimited permission to copy, distribute and modify it."
7133 test -n "\$AWK" || AWK=awk
7136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7137 # The default lists apply if the user does not specify any file.
7143 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7144 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7148 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7160 # Handling of the options.
7161 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7163 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7164 $as_echo "$ac_cs_version"; exit ;;
7165 --config | --confi | --conf | --con | --co | --c )
7166 $as_echo "$ac_cs_config"; exit ;;
7167 --debug | --debu | --deb | --de | --d | -d )
7169 --file | --fil | --fi | --f )
7172 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7173 '') as_fn_error $? "missing file argument" ;;
7175 as_fn_append CONFIG_FILES " '$ac_optarg'"
7176 ac_need_defaults=false;;
7177 --header | --heade | --head | --hea )
7180 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7182 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7183 ac_need_defaults=false;;
7185 # Conflict between --help and --header
7186 as_fn_error $? "ambiguous option: \`$1'
7187 Try \`$0 --help' for more information.";;
7188 --help | --hel | -h )
7189 $as_echo "$ac_cs_usage"; exit ;;
7190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7191 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7195 -*) as_fn_error $? "unrecognized option: \`$1'
7196 Try \`$0 --help' for more information." ;;
7198 *) as_fn_append ac_config_targets " $1"
7199 ac_need_defaults=false ;;
7205 ac_configure_extra_args=
7207 if $ac_cs_silent; then
7209 ac_configure_extra_args="$ac_configure_extra_args --silent"
7213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7214 if \$ac_cs_recheck; then
7215 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7217 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7218 CONFIG_SHELL='$SHELL'
7224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7229 ## Running $as_me. ##
7235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7240 # Handling of arguments.
7241 for ac_config_target in $ac_config_targets
7243 case $ac_config_target in
7244 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7245 "$bm_outfiles") CONFIG_FILES="$CONFIG_FILES $bm_outfiles" ;;
7247 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7252 # If the user did not use the arguments to specify the items to instantiate,
7253 # then the envvar interface is used. Set only those that are not.
7254 # We use the long form for the default assignment because of an extremely
7255 # bizarre bug on SunOS 4.1.3.
7256 if $ac_need_defaults; then
7257 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7258 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7261 # Have a temporary directory for convenience. Make it in the build tree
7262 # simply because there is no reason against having it here, and in addition,
7263 # creating and moving files from /tmp can sometimes cause problems.
7264 # Hook for its removal unless debugging.
7265 # Note that there is a small window in which the directory will not be cleaned:
7266 # after its creation but before its name has been assigned to `$tmp'.
7270 trap 'exit_status=$?
7272 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7274 trap 'as_fn_exit 1' 1 2 13 15
7276 # Create a (secure) tmp directory for tmp files.
7279 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7283 tmp=./conf$$-$RANDOM
7284 (umask 077 && mkdir "$tmp")
7285 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7288 # Set up the scripts for CONFIG_FILES section.
7289 # No need to generate them if there are no CONFIG_FILES.
7290 # This happens for instance with `./config.status config.h'.
7291 if test -n "$CONFIG_FILES"; then
7294 ac_cr=`echo X | tr X '\015'`
7295 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7296 # But we know of no other shell where ac_cr would be empty at this
7297 # point, so we can use a bashism as a fallback.
7298 if test "x$ac_cr" = x; then
7299 eval ac_cr=\$\'\\r\'
7301 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7302 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7308 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7313 echo "cat >conf$$subs.awk <<_ACEOF" &&
7314 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7317 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7318 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7320 for ac_last_try in false false false false false :; do
7321 . ./conf$$subs.sh ||
7322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7324 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7325 if test $ac_delim_n = $ac_delim_num; then
7327 elif $ac_last_try; then
7328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7336 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7340 s/^/S["/; s/!.*/"]=/
7350 s/\(.\{148\}\)..*/\1/
7352 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7357 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7364 s/\(.\{148\}\)..*/\1/
7366 s/["\\]/\\&/g; s/^/"/; s/$/"/
7370 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7375 ' <conf$$subs.awk | sed '
7380 ' >>$CONFIG_STATUS || ac_write_fail=1
7381 rm -f conf$$subs.awk
7382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7384 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7385 for (key in S) S_is_set[key] = 1
7391 nfields = split(line, field, "@")
7393 len = length(field[1])
7394 for (i = 2; i < nfields; i++) {
7396 keylen = length(key)
7397 if (S_is_set[key]) {
7399 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7400 len += length(value) + length(field[++i])
7411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7412 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7413 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7416 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7417 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7420 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7421 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7422 # trailing colons and then remove the whole line if VPATH becomes empty
7423 # (actually we leave an empty line to preserve line numbers).
7424 if test "x$srcdir" = x.; then
7425 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7444 fi # test -n "$CONFIG_FILES"
7446 # Set up the scripts for CONFIG_HEADERS section.
7447 # No need to generate them if there are no CONFIG_HEADERS.
7448 # This happens for instance with `./config.status Makefile'.
7449 if test -n "$CONFIG_HEADERS"; then
7450 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7454 # Transform confdefs.h into an awk script `defines.awk', embedded as
7455 # here-document in config.status, that substitutes the proper values into
7456 # config.h.in to produce config.h.
7458 # Create a delimiter string that does not exist in confdefs.h, to ease
7459 # handling of long lines.
7461 for ac_last_try in false false :; do
7462 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7463 if test -z "$ac_tt"; then
7465 elif $ac_last_try; then
7466 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7472 # For the awk script, D is an array of macro values keyed by name,
7473 # likewise P contains macro parameters if any. Preserve backslash
7474 # newline sequences.
7476 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7478 s/.\{148\}/&'"$ac_delim"'/g
7481 s/^[ ]*#[ ]*define[ ][ ]*/ /
7488 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7490 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7495 D["\1"]=" \3\\\\\\n"\\/p
7497 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7502 s/.\{148\}/&'"$ac_delim"'/g
7507 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7510 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7512 ' <confdefs.h | sed '
7513 s/'"$ac_delim"'/"\\\
7514 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7517 for (key in D) D_is_set[key] = 1
7520 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7522 split(line, arg, " ")
7523 if (arg[1] == "#") {
7527 defundef = substr(arg[1], 2)
7530 split(mac1, mac2, "(") #)
7532 prefix = substr(line, 1, index(line, defundef) - 1)
7533 if (D_is_set[macro]) {
7534 # Preserve the white space surrounding the "#".
7535 print prefix "define", macro P[macro] D[macro]
7538 # Replace #undef with comments. This is necessary, for example,
7539 # in the case of _POSIX_SOURCE, which is predefined and required
7540 # on some systems where configure will not decide to define it.
7541 if (defundef == "undef") {
7542 print "/*", prefix defundef, macro, "*/"
7550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7551 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7552 fi # test -n "$CONFIG_HEADERS"
7555 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7560 :[FHLC]) ac_mode=$ac_tag; continue;;
7562 case $ac_mode$ac_tag in
7564 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7565 :[FH]-) ac_tag=-:-;;
7566 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7583 -) ac_f="$ac_tmp/stdin";;
7584 *) # Look for the file first in the build tree, then in the source tree
7585 # (if the path is not absolute). The absolute path cannot be DOS-style,
7586 # because $ac_f cannot contain `:'.
7590 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7592 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7594 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7595 as_fn_append ac_file_inputs " '$ac_f'"
7598 # Let's still pretend it is `configure' which instantiates (i.e., don't
7599 # use $as_me), people would be surprised to read:
7600 # /* config.h. Generated by config.status. */
7601 configure_input='Generated from '`
7602 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7604 if test x"$ac_file" != x-; then
7605 configure_input="$ac_file. $configure_input"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7607 $as_echo "$as_me: creating $ac_file" >&6;}
7609 # Neutralize special characters interpreted by sed in replacement strings.
7610 case $configure_input in #(
7611 *\&* | *\|* | *\\* )
7612 ac_sed_conf_input=`$as_echo "$configure_input" |
7613 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7614 *) ac_sed_conf_input=$configure_input;;
7618 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7624 ac_dir=`$as_dirname -- "$ac_file" ||
7625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7626 X"$ac_file" : 'X\(//\)[^/]' \| \
7627 X"$ac_file" : 'X\(//\)$' \| \
7628 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7629 $as_echo X"$ac_file" |
7630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7647 as_dir="$ac_dir"; as_fn_mkdir_p
7651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7654 # A ".." for each directory in $ac_dir_suffix.
7655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7656 case $ac_top_builddir_sub in
7657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7661 ac_abs_top_builddir=$ac_pwd
7662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7663 # for backward compatibility:
7664 ac_top_builddir=$ac_top_build_prefix
7667 .) # We are building in place.
7669 ac_top_srcdir=$ac_top_builddir_sub
7670 ac_abs_top_srcdir=$ac_pwd ;;
7671 [\\/]* | ?:[\\/]* ) # Absolute name.
7672 ac_srcdir=$srcdir$ac_dir_suffix;
7673 ac_top_srcdir=$srcdir
7674 ac_abs_top_srcdir=$srcdir ;;
7676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7677 ac_top_srcdir=$ac_top_build_prefix$srcdir
7678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7690 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7691 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7696 # If the template does not know about datarootdir, expand it.
7697 # FIXME: This hack should be removed a few years after 2.60.
7698 ac_datarootdir_hack=; ac_datarootdir_seen=
7709 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7710 *datarootdir*) ac_datarootdir_seen=yes;;
7711 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7713 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7716 ac_datarootdir_hack='
7717 s&@datadir@&$datadir&g
7718 s&@docdir@&$docdir&g
7719 s&@infodir@&$infodir&g
7720 s&@localedir@&$localedir&g
7721 s&@mandir@&$mandir&g
7722 s&\\\${datarootdir}&$datarootdir&g' ;;
7726 # Neutralize VPATH when `$srcdir' = `.'.
7727 # Shell code in configure.ac might set extrasub.
7728 # FIXME: do we really want to maintain this feature?
7729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7730 ac_sed_extra="$ac_vpsub
7733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7736 s|@configure_input@|$ac_sed_conf_input|;t t
7737 s&@top_builddir@&$ac_top_builddir_sub&;t t
7738 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7739 s&@srcdir@&$ac_srcdir&;t t
7740 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7741 s&@top_srcdir@&$ac_top_srcdir&;t t
7742 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7743 s&@builddir@&$ac_builddir&;t t
7744 s&@abs_builddir@&$ac_abs_builddir&;t t
7745 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7746 s&@INSTALL@&$ac_INSTALL&;t t
7747 $ac_datarootdir_hack
7749 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7750 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7752 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7753 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7754 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7755 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7757 which seems to be undefined. Please make sure it is defined" >&5
7758 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7759 which seems to be undefined. Please make sure it is defined" >&2;}
7761 rm -f "$ac_tmp/stdin"
7763 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7764 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7766 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7772 if test x"$ac_file" != x-; then
7774 $as_echo "/* $configure_input */" \
7775 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7776 } >"$ac_tmp/config.h" \
7777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7778 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7780 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7783 mv "$ac_tmp/config.h" "$ac_file" \
7784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7787 $as_echo "/* $configure_input */" \
7788 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7789 || as_fn_error $? "could not create -" "$LINENO" 5
7801 ac_clean_files=$ac_clean_files_save
7803 test $ac_write_fail = 0 ||
7804 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7807 # configure is writing to config.log, and then calls config.status.
7808 # config.status does its own redirection, appending to config.log.
7809 # Unfortunately, on DOS this fails, as config.log is still kept open
7810 # by configure, so config.status won't be able to write to it; its
7811 # output is simply discarded. So we exec the FD to /dev/null,
7812 # effectively closing config.log, so it can be properly (re)opened and
7813 # appended to by config.status. When coming back to configure, we
7814 # need to make the FD available again.
7815 if test "$no_create" != yes; then
7817 ac_config_status_args=
7818 test "$silent" = yes &&
7819 ac_config_status_args="$ac_config_status_args --quiet"
7821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7824 # would make configure fail if this is the last instruction.
7825 $ac_cs_success || as_fn_exit 1
7827 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7829 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7836 sh ./make-bootstrap.sh
7838 to produce a fully functional bmake.