2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for bmake 20160606.
5 # Report bugs to <sjg@NetBSD.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and sjg@NetBSD.org
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
241 SHELL
=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE
= GREP_OPTIONS
=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir
=.
/$as_dir;;
286 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
290 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs
="'$as_qdir' $as_dirs"
294 as_dir
=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
320 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
355 as_val
=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status
=$?
; test $as_status -eq 0 && as_status
=1
369 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit
$as_status
376 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
383 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
395 as_me
=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits
='0123456789'
419 as_cr_alnum
=$as_cr_Letters$as_cr_digits
422 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
423 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x
"$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C
= ECHO_N
= ECHO_T
=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
466 rm -f conf$$ conf$$.exe conf$$.
file
467 if test -d conf$$.dir
; then
468 rm -f conf$$.dir
/conf$$.
file
471 mkdir conf$$.dir
2>/dev
/null
473 if (echo >conf$$.
file) 2>/dev
/null
; then
474 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
482 elif ln conf$$.
file conf$$
2>/dev
/null
; then
490 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
491 rmdir conf$$.dir
2>/dev
/null
493 if mkdir
-p .
2>/dev
/null
; then
494 as_mkdir_p
='mkdir -p "$as_dir"'
496 test -d .
/-p && rmdir .
/-p
500 if test -x / >/dev
/null
2>&1; then
503 if ls -dL / >/dev
/null
2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p
=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev
/null
6>&1
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='bmake'
552 PACKAGE_VERSION
='20160606'
553 PACKAGE_STRING
='bmake 20160606'
554 PACKAGE_BUGREPORT
='sjg@NetBSD.org'
557 # Factoring default headers for most tests.
558 ac_includes_default
="\
560 #ifdef HAVE_SYS_TYPES_H
561 # include <sys/types.h>
563 #ifdef HAVE_SYS_STAT_H
564 # include <sys/stat.h>
570 # ifdef HAVE_STDLIB_H
575 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #ifdef HAVE_STRINGS_H
581 # include <strings.h>
583 #ifdef HAVE_INTTYPES_H
584 # include <inttypes.h>
593 ac_subst_vars
='LTLIBOBJS
647 program_transform_name
660 enable_option_checking
666 with_force_machine_arch
668 with_default_sys_path
669 with_path_objdirprefix
671 enable_check_make_chdir
674 ac_precious_vars
='build_alias
685 # Initialize some variables set by options.
687 ac_init_version
=false
688 ac_unrecognized_opts
=
690 # The variables have the same names as the options, with
691 # dashes changed to underlines.
699 program_transform_name
=s
,x
,x
,
707 # Installation directory options.
708 # These are left unexpanded so users can "make install exec_prefix=/foo"
709 # and all the variables that are supposed to be based on exec_prefix
710 # by default will actually change.
711 # Use braces instead of parens because sh, perl, etc. also accept them.
712 # (The list follows the same order as the GNU Coding Standards.)
713 bindir
='${exec_prefix}/bin'
714 sbindir
='${exec_prefix}/sbin'
715 libexecdir
='${exec_prefix}/libexec'
716 datarootdir
='${prefix}/share'
717 datadir
='${datarootdir}'
718 sysconfdir
='${prefix}/etc'
719 sharedstatedir
='${prefix}/com'
720 localstatedir
='${prefix}/var'
721 includedir
='${prefix}/include'
722 oldincludedir
='/usr/include'
723 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
724 infodir
='${datarootdir}/info'
729 libdir
='${exec_prefix}/lib'
730 localedir
='${datarootdir}/locale'
731 mandir
='${datarootdir}/man'
737 # If the previous option needs an argument, assign it.
738 if test -n "$ac_prev"; then
739 eval $ac_prev=\
$ac_option
745 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
749 # Accept the important Cygnus configure options, so we can diagnose typos.
751 case $ac_dashdash$ac_option in
755 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
757 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
760 -build |
--build |
--buil |
--bui |
--bu)
761 ac_prev
=build_alias
;;
762 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
763 build_alias
=$ac_optarg ;;
765 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
766 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
767 ac_prev
=cache_file
;;
768 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
769 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
770 cache_file
=$ac_optarg ;;
773 cache_file
=config.cache
;;
775 -datadir |
--datadir |
--datadi |
--datad)
777 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
778 datadir
=$ac_optarg ;;
780 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
781 |
--dataroo |
--dataro |
--datar)
782 ac_prev
=datarootdir
;;
783 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
784 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
785 datarootdir
=$ac_optarg ;;
787 -disable-* |
--disable-*)
788 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
791 as_fn_error
"invalid feature name: $ac_useropt"
792 ac_useropt_orig
=$ac_useropt
793 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
794 case $ac_user_opts in
798 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
799 ac_unrecognized_sep
=', ';;
801 eval enable_
$ac_useropt=no
;;
803 -docdir |
--docdir |
--docdi |
--doc |
--do)
805 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
808 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
810 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
813 -enable-* |
--enable-*)
814 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
815 # Reject names that are not valid shell variable names.
816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
817 as_fn_error
"invalid feature name: $ac_useropt"
818 ac_useropt_orig
=$ac_useropt
819 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
820 case $ac_user_opts in
824 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
825 ac_unrecognized_sep
=', ';;
827 eval enable_
$ac_useropt=\
$ac_optarg ;;
829 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
830 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
831 |
--exec |
--exe |
--ex)
832 ac_prev
=exec_prefix
;;
833 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
834 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
835 |
--exec=* |
--exe=* |
--ex=*)
836 exec_prefix
=$ac_optarg ;;
838 -gas |
--gas |
--ga |
--g)
839 # Obsolete; use --with-gas.
842 -help |
--help |
--hel |
--he |
-h)
844 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
845 ac_init_help
=recursive
;;
846 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
847 ac_init_help
=short
;;
849 -host |
--host |
--hos |
--ho)
850 ac_prev
=host_alias
;;
851 -host=* |
--host=* |
--hos=* |
--ho=*)
852 host_alias
=$ac_optarg ;;
854 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
856 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
858 htmldir
=$ac_optarg ;;
860 -includedir |
--includedir |
--includedi |
--included |
--include \
861 |
--includ |
--inclu |
--incl |
--inc)
862 ac_prev
=includedir
;;
863 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
864 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
865 includedir
=$ac_optarg ;;
867 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
869 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
870 infodir
=$ac_optarg ;;
872 -libdir |
--libdir |
--libdi |
--libd)
874 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
877 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
878 |
--libexe |
--libex |
--libe)
879 ac_prev
=libexecdir
;;
880 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
881 |
--libexe=* |
--libex=* |
--libe=*)
882 libexecdir
=$ac_optarg ;;
884 -localedir |
--localedir |
--localedi |
--localed |
--locale)
886 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
887 localedir
=$ac_optarg ;;
889 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
890 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
891 ac_prev
=localstatedir
;;
892 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
893 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
894 localstatedir
=$ac_optarg ;;
896 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
898 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
902 # Obsolete; use --without-fp.
905 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
906 |
--no-cr |
--no-c |
-n)
909 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
910 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
913 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
914 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
915 |
--oldin |
--oldi |
--old |
--ol |
--o)
916 ac_prev
=oldincludedir
;;
917 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
918 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
919 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
920 oldincludedir
=$ac_optarg ;;
922 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
924 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
927 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
928 |
--program-pre |
--program-pr |
--program-p)
929 ac_prev
=program_prefix
;;
930 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
931 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
932 program_prefix
=$ac_optarg ;;
934 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
935 |
--program-suf |
--program-su |
--program-s)
936 ac_prev
=program_suffix
;;
937 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
938 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
939 program_suffix
=$ac_optarg ;;
941 -program-transform-name |
--program-transform-name \
942 |
--program-transform-nam |
--program-transform-na \
943 |
--program-transform-n |
--program-transform- \
944 |
--program-transform |
--program-transfor \
945 |
--program-transfo |
--program-transf \
946 |
--program-trans |
--program-tran \
947 |
--progr-tra |
--program-tr |
--program-t)
948 ac_prev
=program_transform_name
;;
949 -program-transform-name=* |
--program-transform-name=* \
950 |
--program-transform-nam=* |
--program-transform-na=* \
951 |
--program-transform-n=* |
--program-transform-=* \
952 |
--program-transform=* |
--program-transfor=* \
953 |
--program-transfo=* |
--program-transf=* \
954 |
--program-trans=* |
--program-tran=* \
955 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
956 program_transform_name
=$ac_optarg ;;
958 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
960 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
963 -psdir |
--psdir |
--psdi |
--psd |
--ps)
965 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
968 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
969 |
-silent |
--silent |
--silen |
--sile |
--sil)
972 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
974 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
976 sbindir
=$ac_optarg ;;
978 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
979 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
980 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
982 ac_prev
=sharedstatedir
;;
983 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
984 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
985 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
987 sharedstatedir
=$ac_optarg ;;
989 -site |
--site |
--sit)
991 -site=* |
--site=* |
--sit=*)
994 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
996 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
999 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1000 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1001 ac_prev
=sysconfdir
;;
1002 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1003 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1004 sysconfdir
=$ac_optarg ;;
1006 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1007 ac_prev
=target_alias
;;
1008 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1009 target_alias
=$ac_optarg ;;
1011 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1014 -version |
--version |
--versio |
--versi |
--vers |
-V)
1015 ac_init_version
=: ;;
1018 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1021 as_fn_error
"invalid package name: $ac_useropt"
1022 ac_useropt_orig
=$ac_useropt
1023 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1028 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1029 ac_unrecognized_sep
=', ';;
1031 eval with_
$ac_useropt=\
$ac_optarg ;;
1033 -without-* |
--without-*)
1034 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1037 as_fn_error
"invalid package name: $ac_useropt"
1038 ac_useropt_orig
=$ac_useropt
1039 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1044 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1045 ac_unrecognized_sep
=', ';;
1047 eval with_
$ac_useropt=no
;;
1050 # Obsolete; use --with-x.
1053 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1054 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1055 ac_prev
=x_includes
;;
1056 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1057 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1058 x_includes
=$ac_optarg ;;
1060 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1061 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1062 ac_prev
=x_libraries
;;
1063 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1064 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1065 x_libraries
=$ac_optarg ;;
1067 -*) as_fn_error
"unrecognized option: \`$ac_option'
1068 Try \`$0 --help' for more information."
1072 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1073 # Reject names that are not valid shell variable names.
1074 case $ac_envvar in #(
1075 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1076 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1078 eval $ac_envvar=\
$ac_optarg
1079 export $ac_envvar ;;
1082 # FIXME: should be removed in autoconf 3.0.
1083 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1084 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1085 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1086 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1092 if test -n "$ac_prev"; then
1093 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1094 as_fn_error
"missing argument to $ac_option"
1097 if test -n "$ac_unrecognized_opts"; then
1098 case $enable_option_checking in
1100 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1101 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1105 # Check all directory arguments for consistency.
1106 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1107 datadir sysconfdir sharedstatedir localstatedir includedir \
1108 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1109 libdir localedir mandir
1111 eval ac_val
=\$
$ac_var
1112 # Remove trailing slashes.
1115 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1116 eval $ac_var=\
$ac_val;;
1118 # Be sure to have absolute directory names.
1120 [\\/$
]* | ?
:[\\/]* ) continue;;
1121 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1123 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1126 # There might be people who depend on the old broken behavior: `$host'
1127 # used to hold the argument of --host etc.
1128 # FIXME: To remove some day.
1131 target
=$target_alias
1133 # FIXME: To remove some day.
1134 if test "x$host_alias" != x
; then
1135 if test "x$build_alias" = x
; then
1136 cross_compiling
=maybe
1137 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1138 If a cross compiler is detected then cross compile mode will be used." >&2
1139 elif test "x$build_alias" != "x$host_alias"; then
1145 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1147 test "$silent" = yes && exec 6>/dev
/null
1150 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1151 ac_ls_di
=`ls -di .` &&
1152 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1153 as_fn_error
"working directory cannot be determined"
1154 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155 as_fn_error
"pwd does not report name of working directory"
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160 ac_srcdir_defaulted
=yes
1161 # Try the directory containing this script, then the parent directory.
1162 ac_confdir
=`$as_dirname -- "$as_myself" ||
1163 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$as_myself" : 'X\(//\)[^/]' \| \
1165 X"$as_myself" : 'X\(//\)$' \| \
1166 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1167 $as_echo X"$as_myself" |
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1190 ac_srcdir_defaulted
=no
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1194 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1196 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1198 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1200 # When building in place, set srcdir=.
1201 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204 # Remove unnecessary trailing slashes from srcdir.
1205 # Double slashes in file names in object file debugging info
1206 # mess up M-x gdb in Emacs.
1208 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210 for ac_var
in $ac_precious_vars; do
1211 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1212 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1213 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1214 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1218 # Report the --help message.
1220 if test "$ac_init_help" = "long"; then
1221 # Omit some internal or obsolete options to make the list less imposing.
1222 # This message is too long to be a string in the A/UX 3.1 sh.
1224 \`configure' configures bmake 20160606 to adapt to many kinds of systems.
1226 Usage: $0 [OPTION]... [VAR=VALUE]...
1228 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229 VAR=VALUE. See below for descriptions of some of the useful variables.
1231 Defaults for the options are specified in brackets.
1234 -h, --help display this help and exit
1235 --help=short display options specific to this package
1236 --help=recursive display the short help of all the included packages
1237 -V, --version display version information and exit
1238 -q, --quiet, --silent do not print \`checking...' messages
1239 --cache-file=FILE cache test results in FILE [disabled]
1240 -C, --config-cache alias for \`--cache-file=config.cache'
1241 -n, --no-create do not create output files
1242 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244 Installation directories:
1245 --prefix=PREFIX install architecture-independent files in PREFIX
1246 [$ac_default_prefix]
1247 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1250 By default, \`make install' will install all the files in
1251 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1252 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253 for instance \`--prefix=\$HOME'.
1255 For better control, use the options below.
1257 Fine tuning of the installation directories:
1258 --bindir=DIR user executables [EPREFIX/bin]
1259 --sbindir=DIR system admin executables [EPREFIX/sbin]
1260 --libexecdir=DIR program executables [EPREFIX/libexec]
1261 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1262 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1263 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1264 --libdir=DIR object code libraries [EPREFIX/lib]
1265 --includedir=DIR C header files [PREFIX/include]
1266 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1267 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1268 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1269 --infodir=DIR info documentation [DATAROOTDIR/info]
1270 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1271 --mandir=DIR man documentation [DATAROOTDIR/man]
1272 --docdir=DIR documentation root [DATAROOTDIR/doc/bmake]
1273 --htmldir=DIR html documentation [DOCDIR]
1274 --dvidir=DIR dvi documentation [DOCDIR]
1275 --pdfdir=DIR pdf documentation [DOCDIR]
1276 --psdir=DIR ps documentation [DOCDIR]
1283 if test -n "$ac_init_help"; then
1284 case $ac_init_help in
1285 short | recursive
) echo "Configuration of bmake 20160606:";;
1290 --disable-option-checking ignore unrecognized
--enable/--with options
1291 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1292 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1293 --disable-pwd-override disable \
$PWD overriding getcwd
()
1294 --disable-check-make-chdir disable
make trying to guess
1295 when it should automatically
cd \
${.CURDIR}
1298 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1299 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1300 --with-defshell=SHELL use SHELL by default
- must be sh compatible
, use sh or ksh to pick the internal definitions
1301 --without-meta dissable use of meta-mode
1302 --with-filemon=path
/filemon.h indicate path to filemon.h
for meta-mode
1303 --with-machine=MACHINE explicitly
set MACHINE
1304 --with-force-machine=MACHINE
set FORCE_MACHINE
1305 --with-force-machine-arch=MACHINE
set FORCE_MACHINE_ARCH
1306 --with-machine_arch=MACHINE_ARCH explicitly
set MACHINE_ARCH
1307 --with-default-sys-path=PATH
:DIR
:LIST use an explicit _PATH_DEFSYSPATH
1308 MAKESYSPATH is a
':' separated list of directories
1309 that bmake will search
for system .mk files.
1310 _PATH_DEFSYSPATH is its default value.
1311 --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX
1312 --with-mksrc=PATH tell makefile.boot where to
find mk src
1314 Some influential environment variables
:
1315 CC C compiler
command
1316 CFLAGS C compiler flags
1317 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1318 nonstandard directory
<lib dir
>
1319 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1320 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1321 you have headers
in a nonstandard directory
<include dir
>
1324 Use these variables to override the choices made by
`configure' or to help
1325 it to find libraries and programs with nonstandard names/locations.
1327 Report bugs to <sjg@NetBSD.org>.
1332 if test "$ac_init_help" = "recursive"; then
1333 # If there are subdirs, report their specific --help.
1334 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1335 test -d "$ac_dir" ||
1336 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1341 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1344 # A ".." for each directory in $ac_dir_suffix.
1345 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1346 case $ac_top_builddir_sub in
1347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351 ac_abs_top_builddir=$ac_pwd
1352 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1353 # for backward compatibility:
1354 ac_top_builddir=$ac_top_build_prefix
1357 .) # We are building in place.
1359 ac_top_srcdir=$ac_top_builddir_sub
1360 ac_abs_top_srcdir=$ac_pwd ;;
1361 [\\/]* | ?:[\\/]* ) # Absolute name.
1362 ac_srcdir=$srcdir$ac_dir_suffix;
1363 ac_top_srcdir=$srcdir
1364 ac_abs_top_srcdir=$srcdir ;;
1366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1367 ac_top_srcdir=$ac_top_build_prefix$srcdir
1368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1370 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1372 cd "$ac_dir" || { ac_status=$?; continue; }
1373 # Check for guested configure.
1374 if test -f "$ac_srcdir/configure.gnu"; then
1376 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1377 elif test -f "$ac_srcdir/configure"; then
1379 $SHELL "$ac_srcdir/configure" --help=recursive
1381 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1383 cd "$ac_pwd" || { ac_status=$?; break; }
1387 test -n "$ac_init_help" && exit $ac_status
1388 if $ac_init_version; then
1390 bmake configure 20160606
1391 generated by GNU Autoconf 2.64
1393 Copyright (C) 2009 Free Software Foundation, Inc.
1394 This configure script is free software; the Free Software Foundation
1395 gives unlimited permission to copy, distribute and modify it.
1400 ## ------------------------ ##
1401 ## Autoconf initialization. ##
1402 ## ------------------------ ##
1404 # ac_fn_c_try_compile LINENO
1405 # --------------------------
1406 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1407 ac_fn_c_try_compile ()
1409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1410 rm -f conftest.$ac_objext
1411 if { { ac_try="$ac_compile"
1413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1414 *) ac_try_echo
=$ac_try;;
1416 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1417 $as_echo "$ac_try_echo"; } >&5
1418 (eval "$ac_compile") 2>conftest.err
1420 if test -s conftest.err
; then
1421 grep -v '^ *+' conftest.err
>conftest.er1
1422 cat conftest.er1
>&5
1423 mv -f conftest.er1 conftest.err
1425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1426 test $ac_status = 0; } && {
1427 test -z "$ac_c_werror_flag" ||
1428 test ! -s conftest.err
1429 } && test -s conftest.
$ac_objext; then :
1432 $as_echo "$as_me: failed program was:" >&5
1433 sed 's/^/| /' conftest.
$ac_ext >&5
1437 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1440 } # ac_fn_c_try_compile
1442 # ac_fn_c_try_cpp LINENO
1443 # ----------------------
1444 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1447 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1448 if { { ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } >/dev/null && {
1464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1465 test ! -s conftest.err
1469 $as_echo "$as_me: failed program was:" >&5
1470 sed 's/^/| /' conftest.$ac_ext >&5
1474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1479 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1480 # -------------------------------------------------------
1481 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1482 # the include files in INCLUDES and setting the cache variable VAR
1484 ac_fn_c_check_header_mongrel ()
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1489 $as_echo_n "checking for $2... " >&6; }
1490 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1491 $as_echo_n "(cached) " >&6
1494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1495 $as_echo "$ac_res" >&6; }
1497 # Is the header compilable?
1498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1499 $as_echo_n "checking $2 usability... " >&6; }
1500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1501 /* end confdefs.h. */
1505 if ac_fn_c_try_compile "$LINENO"; then :
1506 ac_header_compiler=yes
1508 ac_header_compiler=no
1510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1512 $as_echo "$ac_header_compiler" >&6; }
1514 # Is the header present?
1515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1516 $as_echo_n "checking $2 presence... " >&6; }
1517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1518 /* end confdefs.h. */
1521 if ac_fn_c_try_cpp "$LINENO"; then :
1522 ac_header_preproc=yes
1524 ac_header_preproc=no
1526 rm -f conftest.err conftest.$ac_ext
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1528 $as_echo "$ac_header_preproc" >&6; }
1530 # So? What about this header?
1531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1534 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1536 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1540 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1542 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1544 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1546 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1548 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1550 ## ----------------------------- ##
1551 ## Report this to sjg@NetBSD.org ##
1552 ## ----------------------------- ##
1554 ) | sed "s/^/$as_me: WARNING: /" >&2
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1558 $as_echo_n "checking for $2... " >&6; }
1559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1560 $as_echo_n "(cached) " >&6
1562 eval "$3=\$ac_header_compiler"
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1566 $as_echo "$ac_res" >&6; }
1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570 } # ac_fn_c_check_header_mongrel
1572 # ac_fn_c_try_run LINENO
1573 # ----------------------
1574 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1575 # that executables *can* be run.
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_link"
1581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1582 *) ac_try_echo
=$ac_try;;
1584 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_link") 2>&5
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1590 { { case "(($ac_try" in
1591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_try") 2>&5
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; }; }; then :
1602 $as_echo "$as_me: program exited with status $ac_status" >&5
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1606 ac_retval=$ac_status
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists and can be compiled using the include files in
1617 # INCLUDES, setting the cache variable VAR accordingly.
1618 ac_fn_c_check_header_compile ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624 $as_echo_n "(cached) " >&6
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1631 if ac_fn_c_try_compile "$LINENO"; then :
1636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 } # ac_fn_c_check_header_compile
1645 # ac_fn_c_try_link LINENO
1646 # -----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded.
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext conftest$ac_exeext
1652 if { { ac_try="$ac_link"
1654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1655 *) ac_try_echo
=$ac_try;;
1657 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>conftest.err
1661 if test -s conftest.err
; then
1662 grep -v '^ *+' conftest.err
>conftest.er1
1663 cat conftest.er1
>&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest
$ac_exeext && {
1671 test "$cross_compiling" = yes ||
1672 $as_test_x conftest
$ac_exeext
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.
$ac_ext >&5
1681 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683 # interfere with the next link command; also delete a directory that is
1684 # left behind by Apple's compiler. We do this before executing the actions.
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1689 } # ac_fn_c_try_link
1691 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1692 # -------------------------------------------
1693 # Tests whether TYPE exists after having included INCLUDES, setting cache
1694 # variable VAR accordingly.
1695 ac_fn_c_check_type
()
1697 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1701 $as_echo_n "(cached) " >&6
1704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1716 if ac_fn_c_try_compile
"$LINENO"; then :
1717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1729 if ac_fn_c_try_compile
"$LINENO"; then :
1734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1743 } # ac_fn_c_check_type
1745 # ac_fn_c_find_uintX_t LINENO BITS VAR
1746 # ------------------------------------
1747 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1749 ac_fn_c_find_uintX_t
()
1751 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1753 $as_echo_n "checking for uint$2_t... " >&6; }
1754 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1758 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
1759 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 $ac_includes_default
1766 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1773 if ac_fn_c_try_compile
"$LINENO"; then :
1778 eval "$3=\$ac_type" ;;
1781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1783 if test "x$as_val" = x
""no
; then :
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1795 } # ac_fn_c_find_uintX_t
1797 # ac_fn_c_check_decl LINENO SYMBOL VAR
1798 # ------------------------------------
1799 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1800 ac_fn_c_check_decl
()
1802 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1804 $as_echo_n "checking whether $2 is declared... " >&6; }
1805 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806 $as_echo_n "(cached) " >&6
1808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1822 if ac_fn_c_try_compile
"$LINENO"; then :
1827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1834 } # ac_fn_c_check_decl
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func
()
1841 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1845 $as_echo_n "(cached) " >&6
1847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851 #define $2 innocuous_$2
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below.
1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856 <limits.h> exists even on freestanding compilers. */
1859 # include <limits.h>
1861 # include <assert.h>
1866 /* Override any GCC internal prototype to avoid an error.
1867 Use char because int might match the return type of a GCC
1868 builtin and then its argument prototype would still apply. */
1873 /* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876 #if defined __stub_$2 || defined __stub___$2
1888 if ac_fn_c_try_link
"$LINENO"; then :
1893 rm -f core conftest.err conftest.
$ac_objext \
1894 conftest
$ac_exeext conftest.
$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1901 } # ac_fn_c_check_func
1903 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1904 # ----------------------------------------------------
1905 # Tries to find if the field MEMBER exists in type AGGR, after including
1906 # INCLUDES, setting cache variable VAR accordingly.
1907 ac_fn_c_check_member
()
1909 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1911 $as_echo_n "checking for $2.$3... " >&6; }
1912 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1913 $as_echo_n "(cached) " >&6
1915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1928 if ac_fn_c_try_compile
"$LINENO"; then :
1931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1938 if (sizeof ac_aggr.$3)
1944 if ac_fn_c_try_compile
"$LINENO"; then :
1949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1958 } # ac_fn_c_check_member
1959 cat >config.log
<<_ACEOF
1960 This file contains any messages produced by compilers while
1961 running configure, to aid debugging if configure makes a mistake.
1963 It was created by bmake $as_me 20160606, which was
1964 generated by GNU Autoconf 2.64. Invocation command line was
1976 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1977 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1978 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1979 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1980 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1982 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1983 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1985 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1986 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1987 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1988 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1989 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1990 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1991 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir
=.
2000 $as_echo "PATH: $as_dir"
2016 # Keep a trace of the command line.
2017 # Strip out --no-create and --no-recursion so they do not pile up.
2018 # Strip out --silent because we don't want to record it for future runs.
2019 # Also quote any args containing shell meta-characters.
2020 # Make two passes to allow for proper duplicate-argument suppression.
2024 ac_must_keep_next
=false
2030 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2031 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2032 |
-silent |
--silent |
--silen |
--sile |
--sil)
2035 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2038 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2040 as_fn_append ac_configure_args1
" '$ac_arg'"
2041 if test $ac_must_keep_next = true
; then
2042 ac_must_keep_next
=false
# Got value, back to normal.
2045 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2046 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2047 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2048 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2049 case "$ac_configure_args0 " in
2050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2053 -* ) ac_must_keep_next
=true
;;
2056 as_fn_append ac_configure_args
" '$ac_arg'"
2061 { ac_configure_args0
=; unset ac_configure_args0
;}
2062 { ac_configure_args1
=; unset ac_configure_args1
;}
2064 # When interrupted or exit'd, cleanup temporary files, and complete
2065 # config.log. We remove comments because anyway the quotes in there
2066 # would cause problems or look ugly.
2067 # WARNING: Use '\'' to represent an apostrophe within the trap.
2068 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2069 trap 'exit_status=$?
2070 # Save into config.log some information that might help in debugging.
2075 ## ---------------- ##
2076 ## Cache variables. ##
2077 ## ---------------- ##
2080 # The following way of writing the cache mishandles newlines in values,
2082 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2083 eval ac_val=\$$ac_var
2087 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2088 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2091 _ | IFS | as_nl) ;; #(
2092 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2093 *) { eval $ac_var=; unset $ac_var;} ;;
2098 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2099 *${as_nl}ac_space=\ *)
2101 "s/'\''/'\''\\\\'\'''\''/g;
2102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2105 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2113 ## ----------------- ##
2114 ## Output variables. ##
2115 ## ----------------- ##
2118 for ac_var in $ac_subst_vars
2120 eval ac_val=\$$ac_var
2122 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124 $as_echo "$ac_var='\''$ac_val'\''"
2128 if test -n "$ac_subst_files"; then
2130 ## ------------------- ##
2131 ## File substitutions. ##
2132 ## ------------------- ##
2135 for ac_var
in $ac_subst_files
2137 eval ac_val
=\$
$ac_var
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141 $as_echo "$ac_var='\''$ac_val'\''"
2146 if test -s confdefs.h; then
2156 test "$ac_signal" != 0 &&
2157 $as_echo "$as_me: caught signal $ac_signal"
2158 $as_echo "$as_me: exit $exit_status"
2160 rm -f core *.core core.conftest.* &&
2161 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2164 for ac_signal
in 1 2 13 15; do
2165 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2170 rm -f -r conftest
* confdefs.h
2172 $as_echo "/* confdefs.h */" > confdefs.h
2174 # Predefined preprocessor variables.
2176 cat >>confdefs.h
<<_ACEOF
2177 #define PACKAGE_NAME "$PACKAGE_NAME"
2180 cat >>confdefs.h
<<_ACEOF
2181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2184 cat >>confdefs.h
<<_ACEOF
2185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2188 cat >>confdefs.h
<<_ACEOF
2189 #define PACKAGE_STRING "$PACKAGE_STRING"
2192 cat >>confdefs.h
<<_ACEOF
2193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2196 cat >>confdefs.h
<<_ACEOF
2197 #define PACKAGE_URL "$PACKAGE_URL"
2201 # Let the site file select an alternate cache file if it wants to.
2202 # Prefer an explicitly selected file to automatically selected ones.
2205 if test -n "$CONFIG_SITE"; then
2206 ac_site_file1
=$CONFIG_SITE
2207 elif test "x$prefix" != xNONE
; then
2208 ac_site_file1
=$prefix/share
/config.site
2209 ac_site_file2
=$prefix/etc
/config.site
2211 ac_site_file1
=$ac_default_prefix/share
/config.site
2212 ac_site_file2
=$ac_default_prefix/etc
/config.site
2214 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2216 test "x$ac_site_file" = xNONE
&& continue
2217 if test -r "$ac_site_file"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2219 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2220 sed 's/^/| /' "$ac_site_file" >&5
2225 if test -r "$cache_file"; then
2226 # Some versions of bash will fail to source /dev/null (special
2227 # files actually), so we avoid doing that.
2228 if test -f "$cache_file"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230 $as_echo "$as_me: loading cache $cache_file" >&6;}
2232 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2233 *) .
"./$cache_file";;
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238 $as_echo "$as_me: creating cache $cache_file" >&6;}
2242 # Check that the precious variables saved in the cache have kept the same
2244 ac_cache_corrupted
=false
2245 for ac_var
in $ac_precious_vars; do
2246 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2247 eval ac_new_set
=\
$ac_env_${ac_var}_set
2248 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2249 eval ac_new_val
=\
$ac_env_${ac_var}_value
2250 case $ac_old_set,$ac_new_set in
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2254 ac_cache_corrupted
=: ;;
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2258 ac_cache_corrupted
=: ;;
2261 if test "x$ac_old_val" != "x$ac_new_val"; then
2262 # differences in whitespace do not lead to failure.
2263 ac_old_val_w
=`echo x $ac_old_val`
2264 ac_new_val_w
=`echo x $ac_new_val`
2265 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268 ac_cache_corrupted
=:
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272 eval $ac_var=\
$ac_old_val
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2275 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2277 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2280 # Pass precious variables to config.status.
2281 if test "$ac_new_set" = set; then
2283 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2284 *) ac_arg
=$ac_var=$ac_new_val ;;
2286 case " $ac_configure_args " in
2287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2288 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2292 if $ac_cache_corrupted; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2299 ## -------------------- ##
2300 ## Main body of script. ##
2301 ## -------------------- ##
2304 ac_cpp
='$CPP $CPPFLAGS'
2305 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2310 ac_config_headers
="$ac_config_headers config.h"
2315 *) srcdir
=`cd $srcdir && pwd`;;
2319 # Check whether --with-defshell was given.
2320 if test "${with_defshell+set}" = set; then :
2321 withval
=$with_defshell; case "${withval}" in
2322 yes) as_fn_error
"bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;;
2324 *) case "$with_defshell" in
2325 sh
) DEFSHELL_INDEX
=DEFSHELL_INDEX_SH
;; # it's the default anyway
2326 ksh
) DEFSHELL_INDEX
=DEFSHELL_INDEX_KSH
;;
2327 csh
) DEFSHELL_INDEX
=DEFSHELL_INDEX_CSH
;; # kidding right?
2328 *) defshell_path
=$with_defshell;; # better be sh compatible!
2336 # Check whether --with-meta was given.
2337 if test "${with_meta+set}" = set; then :
2338 withval
=$with_meta; case "${withval}" in
2339 yes|no
) use_meta
=${withval};;
2340 *) as_fn_error
"bad value ${withval} given for meta" "$LINENO" 5 ;;
2345 # Check whether --with-filemon was given.
2346 if test "${with_filemon+set}" = set; then :
2347 withval
=$with_filemon; case "/${withval}" in
2348 /no|
*/filemon.h
) filemon_h
="${withval}";;
2349 */filemon
*) filemon_h
="${withval}/filemon.h";;
2350 *) as_fn_error
"bad value ${withval} given for filemon" "$LINENO" 5 ;;
2355 for d
in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/filemon" "$srcdir/../filemon" "$srcdir/../../sys/dev/filemon"
2359 filemon_h
="$d$x/filemon.h"
2360 test -s "$filemon_h" && break
2362 test -s "$filemon_h" && break
2364 test -s "${filemon_h:-/dev/null}" || filemon_h
=no
2370 case "$filemon_h" in
2371 *.h
) echo "Using: filemon=$filemon_h" >&6;;
2376 ac_cpp
='$CPP $CPPFLAGS'
2377 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2380 if test -n "$ac_tool_prefix"; then
2381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2382 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if test "${ac_cv_prog_CC+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
2388 if test -n "$CC"; then
2389 ac_cv_prog_CC
="$CC" # Let the user override the test.
2391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir
=.
2396 for ac_exec_ext
in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 if test -n "$CC"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2411 $as_echo "$CC" >&6; }
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414 $as_echo "no" >&6; }
2419 if test -z "$ac_cv_prog_CC"; then
2421 # Extract the first word of "gcc", so it can be a program name with args.
2422 set dummy gcc
; ac_word
=$2
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2424 $as_echo_n "checking for $ac_word... " >&6; }
2425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2426 $as_echo_n "(cached) " >&6
2428 if test -n "$ac_ct_CC"; then
2429 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2435 test -z "$as_dir" && as_dir
=.
2436 for ac_exec_ext
in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_ac_ct_CC
="gcc"
2439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2449 if test -n "$ac_ct_CC"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2451 $as_echo "$ac_ct_CC" >&6; }
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454 $as_echo "no" >&6; }
2457 if test "x$ac_ct_CC" = x
; then
2460 case $cross_compiling:$ac_tool_warned in
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2464 ac_tool_warned
=yes ;;
2472 if test -z "$CC"; then
2473 if test -n "$ac_tool_prefix"; then
2474 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2475 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then :
2479 $as_echo_n "(cached) " >&6
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC
="$CC" # Let the user override the test.
2484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir
=.
2489 for ac_exec_ext
in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 if test -n "$CC"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2504 $as_echo "$CC" >&6; }
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2513 if test -z "$CC"; then
2514 # Extract the first word of "cc", so it can be a program name with args.
2515 set dummy cc
; ac_word
=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if test "${ac_cv_prog_CC+set}" = set; then :
2519 $as_echo_n "(cached) " >&6
2521 if test -n "$CC"; then
2522 ac_cv_prog_CC
="$CC" # Let the user override the test.
2525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir
=.
2530 for ac_exec_ext
in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2533 ac_prog_rejected
=yes
2537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 if test $ac_prog_rejected = yes; then
2545 # We found a bogon in the path, so make sure we never use it.
2546 set dummy
$ac_cv_prog_CC
2548 if test $# != 0; then
2549 # We chose a different compiler from the bogus one.
2550 # However, it has the same basename, so the bogon will be chosen
2551 # first if we set CC to just the basename; use the full file name.
2553 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2559 if test -n "$CC"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2561 $as_echo "$CC" >&6; }
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564 $as_echo "no" >&6; }
2569 if test -z "$CC"; then
2570 if test -n "$ac_tool_prefix"; then
2571 for ac_prog
in cl.exe
2573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2574 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then :
2578 $as_echo_n "(cached) " >&6
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC
="$CC" # Let the user override the test.
2583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir
=.
2588 for ac_exec_ext
in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 if test -n "$CC"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2603 $as_echo "$CC" >&6; }
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2610 test -n "$CC" && break
2613 if test -z "$CC"; then
2615 for ac_prog
in cl.exe
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy
$ac_prog; ac_word
=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2624 if test -n "$ac_ct_CC"; then
2625 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2631 test -z "$as_dir" && as_dir
=.
2632 for ac_exec_ext
in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_ac_ct_CC
="$ac_prog"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2645 if test -n "$ac_ct_CC"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2647 $as_echo "$ac_ct_CC" >&6; }
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2654 test -n "$ac_ct_CC" && break
2657 if test "x$ac_ct_CC" = x
; then
2660 case $cross_compiling:$ac_tool_warned in
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2664 ac_tool_warned
=yes ;;
2673 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675 as_fn_error
"no acceptable C compiler found in \$PATH
2676 See \`config.log' for more details." "$LINENO" 5; }
2678 # Provide some information about the compiler.
2679 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2682 for ac_option
in --version -v -V -qversion; do
2683 { { ac_try
="$ac_compiler $ac_option >&5"
2685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2689 $as_echo "$ac_try_echo"; } >&5
2690 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2692 if test -s conftest.err; then
2694 ... rest of stderr output deleted ...
2695 10q' conftest.err >conftest.er1
2696 cat conftest.er1 >&5
2697 rm -f conftest.er1 conftest.err
2699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700 test $ac_status = 0; }
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2709 FILE *f = fopen ("conftest.out", "w");
2710 return ferror (f) || fclose (f) != 0;
2716 ac_clean_files_save=$ac_clean_files
2717 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2718 # Try to create an executable without -o first, disregard a.out.
2719 # It will help us diagnose broken compilers, and finding out an intuition
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2722 $as_echo_n "checking for C compiler default output file name... " >&6; }
2723 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2725 # The possible output files:
2726 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2729 for ac_file in $ac_files
2732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2733 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2738 if { { ac_try="$ac_link_default"
2740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2741 *) ac_try_echo
=$ac_try;;
2743 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744 $as_echo "$ac_try_echo"; } >&5
2745 (eval "$ac_link_default") 2>&5
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; }; then :
2749 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2750 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2751 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2752 # so that the user can short-circuit this test for compilers unknown to
2754 for ac_file
in $ac_files ''
2756 test -f "$ac_file" ||
continue
2758 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2761 # We found the default executable, but exeext='' is most
2765 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2767 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2769 # We set ac_cv_exeext here because the later test for it is not
2770 # safe: cross compilers may not add the suffix if given an `-o'
2771 # argument, so we may need to know it at that point already.
2772 # Even if this section looks crufty: it has the advantage of
2779 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2785 $as_echo "$ac_file" >&6; }
2786 if test -z "$ac_file"; then :
2787 $as_echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.
$ac_ext >&5
2790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792 { as_fn_set_status
77
2793 as_fn_error
"C compiler cannot create executables
2794 See \`config.log' for more details." "$LINENO" 5; }; }
2796 ac_exeext
=$ac_cv_exeext
2798 # Check that the compiler produces executables we can run. If not, either
2799 # the compiler is broken, or we cross compile.
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2801 $as_echo_n "checking whether the C compiler works... " >&6; }
2802 # If not cross compiling, check that we can run a simple program.
2803 if test "$cross_compiling" != yes; then
2804 if { ac_try
='./$ac_file'
2805 { { case "(($ac_try" in
2806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2810 $as_echo "$ac_try_echo"; } >&5
2811 (eval "$ac_try") 2>&5
2813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2814 test $ac_status = 0; }; }; then
2817 if test "$cross_compiling" = maybe; then
2820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822 as_fn_error "cannot run C compiled programs.
2823 If you meant to cross compile
, use \
`--host'.
2824 See \`config.log
' for more details." "$LINENO" 5; }
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 $as_echo "yes" >&6; }
2831 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2832 ac_clean_files=$ac_clean_files_save
2833 # Check that the compiler produces executables we can run. If not, either
2834 # the compiler is broken, or we cross compile.
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2836 $as_echo_n "checking whether we are cross compiling... " >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2838 $as_echo "$cross_compiling" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2841 $as_echo_n "checking for suffix of executables... " >&6; }
2842 if { { ac_try="$ac_link"
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2848 $as_echo "$ac_try_echo"; } >&5
2849 (eval "$ac_link") 2>&5
2851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2852 test $ac_status = 0; }; then :
2853 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2854 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2855 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2857 for ac_file
in conftest.exe conftest conftest.
*; do
2858 test -f "$ac_file" ||
continue
2860 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2861 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." "$LINENO" 5; }
2872 rm -f conftest
$ac_cv_exeext
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2874 $as_echo "$ac_cv_exeext" >&6; }
2876 rm -f conftest.
$ac_ext
2877 EXEEXT
=$ac_cv_exeext
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2880 $as_echo_n "checking for suffix of object files... " >&6; }
2881 if test "${ac_cv_objext+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
2884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2895 rm -f conftest.o conftest.obj
2896 if { { ac_try
="$ac_compile"
2898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902 $as_echo "$ac_try_echo"; } >&5
2903 (eval "$ac_compile") 2>&5
2905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }; then :
2907 for ac_file in conftest.o conftest.obj conftest.*; do
2908 test -f "$ac_file" || continue;
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2911 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2916 $as_echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 as_fn_error "cannot compute suffix of object files
: cannot compile
2922 See \
`config.log' for more details." "$LINENO" 5; }
2924 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2927 $as_echo "$ac_cv_objext" >&6; }
2928 OBJEXT=$ac_cv_objext
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2931 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2932 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2933 $as_echo_n "(cached) " >&6
2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h. */
2949 if ac_fn_c_try_compile "$LINENO"; then :
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2959 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2960 if test $ac_compiler_gnu = yes; then
2965 ac_test_CFLAGS=${CFLAGS+set}
2966 ac_save_CFLAGS=$CFLAGS
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2968 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2969 if test "${ac_cv_prog_cc_g+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2972 ac_save_c_werror_flag=$ac_c_werror_flag
2973 ac_c_werror_flag=yes
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2987 if ac_fn_c_try_compile "$LINENO"; then :
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h. */
3002 if ac_fn_c_try_compile "$LINENO"; then :
3005 ac_c_werror_flag=$ac_save_c_werror_flag
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3018 if ac_fn_c_try_compile "$LINENO"; then :
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3026 ac_c_werror_flag=$ac_save_c_werror_flag
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3029 $as_echo "$ac_cv_prog_cc_g" >&6; }
3030 if test "$ac_test_CFLAGS" = set; then
3031 CFLAGS=$ac_save_CFLAGS
3032 elif test $ac_cv_prog_cc_g = yes; then
3033 if test "$GCC" = yes; then
3039 if test "$GCC" = yes; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3046 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3047 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3050 ac_cv_prog_cc_c89=no
3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h. */
3056 #include <sys/types.h>
3057 #include <sys/stat.h>
3058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3059 struct buf { int x; };
3060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3061 static char *e (p, i)
3067 static char *f (char * (*g) (char **, int), char **p, ...)
3072 s = g (p, va_arg (v,int));
3077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3078 function prototypes and stuff, but not '\xHH' hex character constants.
3079 These don't provoke an error unfortunately, instead are silently treated
3080 as 'x'. The following induces an error, until -std is added to get
3081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3082 array size at least. It's necessary to write '\x00'==0 to get something
3083 that's true only with -std. */
3084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3087 inside strings and character constants. */
3089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3091 int test (int i, double x);
3092 struct s1 {int (*f) (int a);};
3093 struct s2 {int (*f) (double a);};
3094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3108 CC="$ac_save_CC $ac_arg"
3109 if ac_fn_c_try_compile "$LINENO"; then :
3110 ac_cv_prog_cc_c89=$ac_arg
3112 rm -f core conftest.err conftest.$ac_objext
3113 test "x$ac_cv_prog_cc_c89" != "xno" && break
3115 rm -f conftest.$ac_ext
3120 case "x$ac_cv_prog_cc_c89" in
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3123 $as_echo "none needed" >&6; } ;;
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3126 $as_echo "unsupported" >&6; } ;;
3128 CC="$CC $ac_cv_prog_cc_c89"
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3130 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3132 if test "x$ac_cv_prog_cc_c89" != xno; then :
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3149 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3150 # On Suns, sometimes $CPP names a directory.
3151 if test -n "$CPP" && test -d "$CPP"; then
3154 if test -z "$CPP"; then
3155 if test "${ac_cv_prog_CPP+set}" = set; then :
3156 $as_echo_n "(cached) " >&6
3158 # Double quotes because CPP needs to be expanded
3159 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3162 for ac_c_preproc_warn_flag in '' yes
3164 # Use a header file that comes with gcc, so configuring glibc
3165 # with a fresh cross-compiler works.
3166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3167 # <limits.h> exists even on freestanding compilers.
3168 # On the NeXT, cc -E runs the code through the compiler's parser,
3169 # not just through cpp. "Syntax error" is here to catch this case.
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3173 # include <limits.h>
3175 # include <assert.h>
3179 if ac_fn_c_try_cpp "$LINENO"; then :
3182 # Broken: fails on valid input.
3185 rm -f conftest.err conftest.$ac_ext
3187 # OK, works on sane cases. Now check whether nonexistent headers
3188 # can be detected and how.
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3191 #include <ac_nonexistent.h>
3193 if ac_fn_c_try_cpp "$LINENO"; then :
3194 # Broken: success on invalid input.
3197 # Passes both tests.
3201 rm -f conftest.err conftest.$ac_ext
3204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3205 rm -f conftest.err conftest.
$ac_ext
3206 if $ac_preproc_ok; then :
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3219 $as_echo "$CPP" >&6; }
3221 for ac_c_preproc_warn_flag
in '' yes
3223 # Use a header file that comes with gcc, so configuring glibc
3224 # with a fresh cross-compiler works.
3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226 # <limits.h> exists even on freestanding compilers.
3227 # On the NeXT, cc -E runs the code through the compiler's parser,
3228 # not just through cpp. "Syntax error" is here to catch this case.
3229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3232 # include <limits.h>
3234 # include <assert.h>
3238 if ac_fn_c_try_cpp
"$LINENO"; then :
3241 # Broken: fails on valid input.
3244 rm -f conftest.err conftest.
$ac_ext
3246 # OK, works on sane cases. Now check whether nonexistent headers
3247 # can be detected and how.
3248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3250 #include <ac_nonexistent.h>
3252 if ac_fn_c_try_cpp
"$LINENO"; then :
3253 # Broken: success on invalid input.
3256 # Passes both tests.
3260 rm -f conftest.err conftest.
$ac_ext
3263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3264 rm -f conftest.err conftest.
$ac_ext
3265 if $ac_preproc_ok; then :
3268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3271 See \`config.log' for more details." "$LINENO" 5; }
3275 ac_cpp
='$CPP $CPPFLAGS'
3276 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3282 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3283 if test "${ac_cv_path_GREP+set}" = set; then :
3284 $as_echo_n "(cached) " >&6
3286 if test -z "$GREP"; then
3287 ac_path_GREP_found
=false
3288 # Loop through the user's path and test for each of PROGNAME-LIST
3289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3290 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3293 test -z "$as_dir" && as_dir
=.
3294 for ac_prog
in grep ggrep
; do
3295 for ac_exec_ext
in '' $ac_executable_extensions; do
3296 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3297 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3298 # Check for GNU ac_path_GREP and select it if it is found.
3299 # Check for GNU $ac_path_GREP
3300 case `"$ac_path_GREP" --version 2>&1` in
3302 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3305 $as_echo_n 0123456789 >"conftest.in"
3308 cat "conftest.in" "conftest.in" >"conftest.tmp"
3309 mv "conftest.tmp" "conftest.in"
3310 cp "conftest.in" "conftest.nl"
3311 $as_echo 'GREP' >> "conftest.nl"
3312 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3313 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3314 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3315 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3316 # Best one so far, save it but keep looking for a better one
3317 ac_cv_path_GREP
="$ac_path_GREP"
3318 ac_path_GREP_max
=$ac_count
3320 # 10*(2^10) chars as input seems more than enough
3321 test $ac_count -gt 10 && break
3323 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3326 $ac_path_GREP_found && break 3
3331 if test -z "$ac_cv_path_GREP"; then
3332 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3335 ac_cv_path_GREP
=$GREP
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3340 $as_echo "$ac_cv_path_GREP" >&6; }
3341 GREP
="$ac_cv_path_GREP"
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3345 $as_echo_n "checking for egrep... " >&6; }
3346 if test "${ac_cv_path_EGREP+set}" = set; then :
3347 $as_echo_n "(cached) " >&6
3349 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3350 then ac_cv_path_EGREP
="$GREP -E"
3352 if test -z "$EGREP"; then
3353 ac_path_EGREP_found
=false
3354 # Loop through the user's path and test for each of PROGNAME-LIST
3355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3356 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3359 test -z "$as_dir" && as_dir
=.
3360 for ac_prog
in egrep; do
3361 for ac_exec_ext
in '' $ac_executable_extensions; do
3362 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3363 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3364 # Check for GNU ac_path_EGREP and select it if it is found.
3365 # Check for GNU $ac_path_EGREP
3366 case `"$ac_path_EGREP" --version 2>&1` in
3368 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3371 $as_echo_n 0123456789 >"conftest.in"
3374 cat "conftest.in" "conftest.in" >"conftest.tmp"
3375 mv "conftest.tmp" "conftest.in"
3376 cp "conftest.in" "conftest.nl"
3377 $as_echo 'EGREP' >> "conftest.nl"
3378 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3379 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3380 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3381 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3382 # Best one so far, save it but keep looking for a better one
3383 ac_cv_path_EGREP
="$ac_path_EGREP"
3384 ac_path_EGREP_max
=$ac_count
3386 # 10*(2^10) chars as input seems more than enough
3387 test $ac_count -gt 10 && break
3389 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3392 $ac_path_EGREP_found && break 3
3397 if test -z "$ac_cv_path_EGREP"; then
3398 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3401 ac_cv_path_EGREP
=$EGREP
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3407 $as_echo "$ac_cv_path_EGREP" >&6; }
3408 EGREP
="$ac_cv_path_EGREP"
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3412 $as_echo_n "checking for ANSI C header files... " >&6; }
3413 if test "${ac_cv_header_stdc+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
3416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3431 if ac_fn_c_try_compile
"$LINENO"; then :
3432 ac_cv_header_stdc
=yes
3434 ac_cv_header_stdc
=no
3436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3438 if test $ac_cv_header_stdc = yes; then
3439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 $EGREP "memchr" >/dev
/null
2>&1; then :
3449 ac_cv_header_stdc
=no
3455 if test $ac_cv_header_stdc = yes; then
3456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463 $EGREP "free" >/dev
/null
2>&1; then :
3466 ac_cv_header_stdc
=no
3472 if test $ac_cv_header_stdc = yes; then
3473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3474 if test "$cross_compiling" = yes; then :
3477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3481 #if ((' ' & 0x0FF) == 0x020)
3482 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3483 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3485 # define ISLOWER(c) \
3486 (('a' <= (c) && (c) <= 'i') \
3487 || ('j' <= (c) && (c) <= 'r') \
3488 || ('s' <= (c) && (c) <= 'z'))
3489 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3492 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3497 for (i = 0; i < 256; i++)
3498 if (XOR (islower (i), ISLOWER (i))
3499 || toupper (i) != TOUPPER (i))
3504 if ac_fn_c_try_run
"$LINENO"; then :
3507 ac_cv_header_stdc
=no
3509 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3510 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3516 $as_echo "$ac_cv_header_stdc" >&6; }
3517 if test $ac_cv_header_stdc = yes; then
3519 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3523 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3524 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3525 inttypes.h stdint.h unistd.h
3527 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3528 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3530 eval as_val
=\$
$as_ac_Header
3531 if test "x$as_val" = x
""yes; then :
3532 cat >>confdefs.h
<<_ACEOF
3533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3542 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3543 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3550 if test "$MINIX" = yes; then
3552 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3555 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3558 $as_echo "#define _MINIX 1" >>confdefs.h
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3564 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3565 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3571 # define __EXTENSIONS__ 1
3572 $ac_includes_default
3581 if ac_fn_c_try_compile
"$LINENO"; then :
3582 ac_cv_safe_to_define___extensions__
=yes
3584 ac_cv_safe_to_define___extensions__
=no
3586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3589 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3590 test $ac_cv_safe_to_define___extensions__ = yes &&
3591 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3593 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3595 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3597 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3599 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3603 ac_cpp
='$CPP $CPPFLAGS'
3604 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3609 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if test "${ac_cv_prog_CC+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC
="$CC" # Let the user override the test.
3618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3622 test -z "$as_dir" && as_dir
=.
3623 for ac_exec_ext
in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3646 if test -z "$ac_cv_prog_CC"; then
3648 # Extract the first word of "gcc", so it can be a program name with args.
3649 set dummy gcc
; ac_word
=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3655 if test -n "$ac_ct_CC"; then
3656 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir
=.
3663 for ac_exec_ext
in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_ac_ct_CC
="gcc"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3676 if test -n "$ac_ct_CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678 $as_echo "$ac_ct_CC" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3684 if test "x$ac_ct_CC" = x
; then
3687 case $cross_compiling:$ac_tool_warned in
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691 ac_tool_warned
=yes ;;
3699 if test -z "$CC"; then
3700 if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3702 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if test "${ac_cv_prog_CC+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC
="$CC" # Let the user override the test.
3711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir
=.
3716 for ac_exec_ext
in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3740 if test -z "$CC"; then
3741 # Extract the first word of "cc", so it can be a program name with args.
3742 set dummy cc
; ac_word
=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if test "${ac_cv_prog_CC+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
3748 if test -n "$CC"; then
3749 ac_cv_prog_CC
="$CC" # Let the user override the test.
3752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir
=.
3757 for ac_exec_ext
in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3760 ac_prog_rejected
=yes
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 if test $ac_prog_rejected = yes; then
3772 # We found a bogon in the path, so make sure we never use it.
3773 set dummy
$ac_cv_prog_CC
3775 if test $# != 0; then
3776 # We chose a different compiler from the bogus one.
3777 # However, it has the same basename, so the bogon will be chosen
3778 # first if we set CC to just the basename; use the full file name.
3780 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3786 if test -n "$CC"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3788 $as_echo "$CC" >&6; }
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3796 if test -z "$CC"; then
3797 if test -n "$ac_tool_prefix"; then
3798 for ac_prog
in cl.exe
3800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if test "${ac_cv_prog_CC+set}" = set; then :
3805 $as_echo_n "(cached) " >&6
3807 if test -n "$CC"; then
3808 ac_cv_prog_CC
="$CC" # Let the user override the test.
3810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir
=.
3815 for ac_exec_ext
in '' $ac_executable_extensions; do
3816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 if test -n "$CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830 $as_echo "$CC" >&6; }
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3837 test -n "$CC" && break
3840 if test -z "$CC"; then
3842 for ac_prog
in cl.exe
3844 # Extract the first word of "$ac_prog", so it can be a program name with args.
3845 set dummy
$ac_prog; ac_word
=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
3851 if test -n "$ac_ct_CC"; then
3852 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3858 test -z "$as_dir" && as_dir
=.
3859 for ac_exec_ext
in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861 ac_cv_prog_ac_ct_CC
="$ac_prog"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3872 if test -n "$ac_ct_CC"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3874 $as_echo "$ac_ct_CC" >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3881 test -n "$ac_ct_CC" && break
3884 if test "x$ac_ct_CC" = x
; then
3887 case $cross_compiling:$ac_tool_warned in
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned
=yes ;;
3900 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error
"no acceptable C compiler found in \$PATH
3903 See \`config.log' for more details." "$LINENO" 5; }
3905 # Provide some information about the compiler.
3906 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3909 for ac_option
in --version -v -V -qversion; do
3910 { { ac_try
="$ac_compiler $ac_option >&5"
3912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3919 if test -s conftest.err; then
3921 ... rest of stderr output deleted ...
3922 10q' conftest.err >conftest.er1
3923 cat conftest.er1 >&5
3924 rm -f conftest.er1 conftest.err
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3931 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3932 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3949 if ac_fn_c_try_compile "$LINENO"; then :
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3959 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3960 if test $ac_compiler_gnu = yes; then
3965 ac_test_CFLAGS=${CFLAGS+set}
3966 ac_save_CFLAGS=$CFLAGS
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3968 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3969 if test "${ac_cv_prog_cc_g+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3972 ac_save_c_werror_flag=$ac_c_werror_flag
3973 ac_c_werror_flag=yes
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3987 if ac_fn_c_try_compile "$LINENO"; then :
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
4002 if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_c_werror_flag=$ac_save_c_werror_flag
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4018 if ac_fn_c_try_compile "$LINENO"; then :
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_c_werror_flag=$ac_save_c_werror_flag
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4029 $as_echo "$ac_cv_prog_cc_g" >&6; }
4030 if test "$ac_test_CFLAGS" = set; then
4031 CFLAGS=$ac_save_CFLAGS
4032 elif test $ac_cv_prog_cc_g = yes; then
4033 if test "$GCC" = yes; then
4039 if test "$GCC" = yes; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4046 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4047 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4050 ac_cv_prog_cc_c89=no
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4056 #include <sys/types.h>
4057 #include <sys/stat.h>
4058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4059 struct buf { int x; };
4060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4061 static char *e (p, i)
4067 static char *f (char * (*g) (char **, int), char **p, ...)
4072 s = g (p, va_arg (v,int));
4077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4078 function prototypes and stuff, but not '\xHH' hex character constants.
4079 These don't provoke an error unfortunately, instead are silently treated
4080 as 'x'. The following induces an error, until -std is added to get
4081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4082 array size at least. It's necessary to write '\x00'==0 to get something
4083 that's true only with -std. */
4084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4087 inside strings and character constants. */
4089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4091 int test (int i, double x);
4092 struct s1 {int (*f) (int a);};
4093 struct s2 {int (*f) (double a);};
4094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4108 CC="$ac_save_CC $ac_arg"
4109 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_cv_prog_cc_c89=$ac_arg
4112 rm -f core conftest.err conftest.$ac_objext
4113 test "x$ac_cv_prog_cc_c89" != "xno" && break
4115 rm -f conftest.$ac_ext
4120 case "x$ac_cv_prog_cc_c89" in
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4123 $as_echo "none needed" >&6; } ;;
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4126 $as_echo "unsupported" >&6; } ;;
4128 CC="$CC $ac_cv_prog_cc_c89"
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4130 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4132 if test "x$ac_cv_prog_cc_c89" != xno; then :
4137 ac_cpp='$CPP $CPPFLAGS'
4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142 if test $ac_cv_c_compiler_gnu = yes; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4144 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4145 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4148 ac_pattern="Autoconf.*'x'"
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4156 ac_cv_prog_gcc_traditional=yes
4158 ac_cv_prog_gcc_traditional=no
4163 if test $ac_cv_prog_gcc_traditional = no; then
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4171 ac_cv_prog_gcc_traditional=yes
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4178 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4179 if test $ac_cv_prog_gcc_traditional = yes; then
4180 CC="$CC -traditional"
4185 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4186 for ac_t in install-sh install.sh shtool; do
4187 if test -f "$ac_dir/$ac_t"; then
4189 ac_install_sh="$ac_aux_dir/$ac_t -c"
4194 if test -z "$ac_aux_dir"; then
4195 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4198 # These three variables are undocumented and unsupported,
4199 # and are intended to be withdrawn in a future Autoconf release.
4200 # They can cause serious problems if a builder's source tree is in a directory
4201 # whose full name contains unusual characters.
4202 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4203 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4204 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4207 # Find a good install program. We prefer a C program (faster),
4208 # so one script is as good as another. But avoid the broken or
4209 # incompatible versions:
4210 # SysV /etc/install, /usr/sbin/install
4211 # SunOS /usr/etc/install
4212 # IRIX /sbin/install
4214 # AmigaOS /C/install, which installs bootblocks on floppy discs
4215 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4216 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4217 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4218 # OS/2's system install, which has a completely different semantic
4219 # ./install, which can be erroneously created by make from ./install.sh.
4220 # Reject install programs that cannot install multiple files.
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4222 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4223 if test -z "$INSTALL"; then
4224 if test "${ac_cv_path_install+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 test -z "$as_dir" && as_dir=.
4232 # Account for people who put trailing slashes in PATH elements.
4233 case $as_dir/ in #((
4234 ./ | .// | /[cC]/* | \
4235 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4236 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4239 # OSF1 and SCO ODT 3.0 have their own names for install.
4240 # Don't use installbsd from OSF since it installs stuff as root
4242 for ac_prog in ginstall scoinst install; do
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4245 if test $ac_prog = install &&
4246 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4247 # AIX install. It has an incompatible calling convention.
4249 elif test $ac_prog = install &&
4250 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4251 # program-specific install script used by HP pwplus--don't use.
4254 rm -rf conftest.one conftest.two conftest.dir
4255 echo one > conftest.one
4256 echo two > conftest.two
4258 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4259 test -s conftest.one && test -s conftest.two &&
4260 test -s conftest.dir/conftest.one &&
4261 test -s conftest.dir/conftest.two
4263 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4276 rm -rf conftest.one conftest.two conftest.dir
4279 if test "${ac_cv_path_install+set}" = set; then
4280 INSTALL=$ac_cv_path_install
4282 # As a last resort, use the slow shell script. Don't cache a
4283 # value for INSTALL within a source directory, because that will
4284 # break other packages using the cache if that directory is
4285 # removed, or if the value is a relative name.
4286 INSTALL=$ac_install_sh
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4290 $as_echo "$INSTALL" >&6; }
4292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4293 # It thinks the first close brace ends the variable substitution.
4294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4300 if test -x /usr/bin/getconf; then
4301 bmake_path_max=`getconf PATH_MAX
/ 2> /dev
/null
`
4302 # only a numeric response is useful
4303 test ${bmake_path_max:-0} -gt 0 2> /dev/null || bmake_path_max=
4305 bmake_path_max=${bmake_path_max:-1024}
4306 if test $bmake_path_max -gt 1024; then
4307 # this is all we expect
4310 echo "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4313 $as_echo_n "checking for ANSI C header files... " >&6; }
4314 if test "${ac_cv_header_stdc+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4332 if ac_fn_c_try_compile "$LINENO"; then :
4333 ac_cv_header_stdc=yes
4335 ac_cv_header_stdc=no
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 if test $ac_cv_header_stdc = yes; then
4340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 $EGREP "memchr" >/dev/null 2>&1; then :
4350 ac_cv_header_stdc=no
4356 if test $ac_cv_header_stdc = yes; then
4357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364 $EGREP "free" >/dev/null 2>&1; then :
4367 ac_cv_header_stdc=no
4373 if test $ac_cv_header_stdc = yes; then
4374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4375 if test "$cross_compiling" = yes; then :
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4382 #if ((' ' & 0x0FF) == 0x020)
4383 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4384 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4386 # define ISLOWER(c) \
4387 (('a' <= (c) && (c) <= 'i') \
4388 || ('j' <= (c) && (c) <= 'r') \
4389 || ('s' <= (c) && (c) <= 'z'))
4390 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4393 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4398 for (i = 0; i < 256; i++)
4399 if (XOR (islower (i), ISLOWER (i))
4400 || toupper (i) != TOUPPER (i))
4405 if ac_fn_c_try_run "$LINENO"; then :
4408 ac_cv_header_stdc=no
4410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4411 conftest.$ac_objext conftest.beam conftest.$ac_ext
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4417 $as_echo "$ac_cv_header_stdc" >&6; }
4418 if test $ac_cv_header_stdc = yes; then
4420 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4425 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4426 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #include <sys/types.h>
4432 #include <sys/wait.h>
4434 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4437 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4445 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4450 if ac_fn_c_try_compile "$LINENO"; then :
4451 ac_cv_header_sys_wait_h=yes
4453 ac_cv_header_sys_wait_h=no
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4458 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4459 if test $ac_cv_header_sys_wait_h = yes; then
4461 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4466 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4467 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4469 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4471 $as_echo_n "(cached) " >&6
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475 #include <sys/types.h>
4487 if ac_fn_c_try_compile "$LINENO"; then :
4488 eval "$as_ac_Header=yes"
4490 eval "$as_ac_Header=no"
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 eval ac_res=\$$as_ac_Header
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4496 $as_echo "$ac_res" >&6; }
4497 eval as_val=\$$as_ac_Header
4498 if test "x$as_val" = x""yes; then :
4499 cat >>confdefs.h <<_ACEOF
4500 #define `$as_echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
4503 ac_header_dirent=$ac_hdr; break
4507 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4508 if test $ac_header_dirent = dirent.h; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4510 $as_echo_n "checking for library containing opendir... " >&6; }
4511 if test "${ac_cv_search_opendir+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4514 ac_func_search_save_LIBS=$LIBS
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4518 /* Override any GCC internal prototype to avoid an error.
4519 Use char because int might match the return type of a GCC
4520 builtin and then its argument prototype would still apply. */
4533 for ac_lib in '' dir; do
4534 if test -z "$ac_lib"; then
4535 ac_res="none required"
4538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4540 if ac_fn_c_try_link "$LINENO"; then :
4541 ac_cv_search_opendir=$ac_res
4543 rm -f core conftest.err conftest.$ac_objext \
4545 if test "${ac_cv_search_opendir+set}" = set; then :
4549 if test "${ac_cv_search_opendir+set}" = set; then :
4552 ac_cv_search_opendir=no
4555 LIBS=$ac_func_search_save_LIBS
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4558 $as_echo "$ac_cv_search_opendir" >&6; }
4559 ac_res=$ac_cv_search_opendir
4560 if test "$ac_res" != no; then :
4561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4567 $as_echo_n "checking for library containing opendir... " >&6; }
4568 if test "${ac_cv_search_opendir+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4571 ac_func_search_save_LIBS=$LIBS
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4575 /* Override any GCC internal prototype to avoid an error.
4576 Use char because int might match the return type of a GCC
4577 builtin and then its argument prototype would still apply. */
4590 for ac_lib in '' x; do
4591 if test -z "$ac_lib"; then
4592 ac_res="none required"
4595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4597 if ac_fn_c_try_link "$LINENO"; then :
4598 ac_cv_search_opendir=$ac_res
4600 rm -f core conftest.err conftest.$ac_objext \
4602 if test "${ac_cv_search_opendir+set}" = set; then :
4606 if test "${ac_cv_search_opendir+set}" = set; then :
4609 ac_cv_search_opendir=no
4612 LIBS=$ac_func_search_save_LIBS
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4615 $as_echo "$ac_cv_search_opendir" >&6; }
4616 ac_res=$ac_cv_search_opendir
4617 if test "$ac_res" != no; then :
4618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4624 for ac_header in sys/param.h
4626 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4627 if test "x$ac_cv_header_sys_param_h" = x""yes; then :
4628 cat >>confdefs.h <<_ACEOF
4629 #define HAVE_SYS_PARAM_H 1
4636 for ac_header in sys/sysctl.h
4638 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#ifdef HAVE_SYS_PARAM_H
4639 # include <sys/param.h>
4643 if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
4644 cat >>confdefs.h <<_ACEOF
4645 #define HAVE_SYS_SYSCTL_H 1
4672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4673 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4674 eval as_val=\$$as_ac_Header
4675 if test "x$as_val" = x""yes; then :
4676 cat >>confdefs.h <<_ACEOF
4677 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4685 ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
4686 if test "x$ac_cv_header_sys_cdefs_h" = x""yes; then :
4687 echo $ECHO_N "checking whether sys/cdefs.h is compatible... $ECHO_C" >&6
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690 #include <sys/cdefs.h>
4696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4697 $EGREP "yes" >/dev/null 2>&1; then :
4700 echo no >&6; CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing
&& pwd` -DNEED_HOST_CDEFS_H"
4705 CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing
&& pwd`"
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4712 $as_echo_n "checking for __attribute__... " >&6; }
4713 if test "${ac_cv___attribute__+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4726 static void foo(void) __attribute__ ((noreturn));
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 ac_cv___attribute__=yes
4741 ac_cv___attribute__=no
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 if test "$ac_cv___attribute__" = "yes"; then
4748 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
4752 $as_echo "$ac_cv___attribute__" >&6; }
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4755 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4756 if test "${ac_cv_c_bigendian+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4759 ac_cv_c_bigendian=unknown
4760 # See if we're dealing with a universal compiler.
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763 #ifndef __APPLE_CC__
4764 not a universal capable compiler
4769 if ac_fn_c_try_compile "$LINENO"; then :
4771 # Check for potential -arch flags. It is not universal unless
4772 # there are at least two -arch flags with different values.
4775 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4776 if test -n "$ac_prev"; then
4778 i?86 | x86_64 | ppc | ppc64)
4779 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4782 ac_cv_c_bigendian=universal
4788 elif test "x$ac_word" = "x-arch"; then
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 if test $ac_cv_c_bigendian = unknown; then
4795 # See if sys/param.h defines the BYTE_ORDER macro.
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 #include <sys/types.h>
4799 #include <sys/param.h>
4804 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4805 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4814 if ac_fn_c_try_compile "$LINENO"; then :
4815 # It does; now see whether it defined to BIG_ENDIAN or not.
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <sys/types.h>
4819 #include <sys/param.h>
4824 #if BYTE_ORDER != BIG_ENDIAN
4832 if ac_fn_c_try_compile "$LINENO"; then :
4833 ac_cv_c_bigendian=yes
4835 ac_cv_c_bigendian=no
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 if test $ac_cv_c_bigendian = unknown; then
4842 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4850 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4858 if ac_fn_c_try_compile "$LINENO"; then :
4859 # It does; now see whether it defined to _BIG_ENDIAN or not.
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876 ac_cv_c_bigendian=yes
4878 ac_cv_c_bigendian=no
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 if test $ac_cv_c_bigendian = unknown; then
4885 # Compile a test program.
4886 if test "$cross_compiling" = yes; then :
4887 # Try to guess by grepping values from an object file.
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 short int ascii_mm[] =
4891 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4892 short int ascii_ii[] =
4893 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4894 int use_ascii (int i) {
4895 return ascii_mm[i] + ascii_ii[i];
4897 short int ebcdic_ii[] =
4898 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4899 short int ebcdic_mm[] =
4900 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4901 int use_ebcdic (int i) {
4902 return ebcdic_mm[i] + ebcdic_ii[i];
4909 return use_ascii (foo) == use_ebcdic (foo);
4914 if ac_fn_c_try_compile "$LINENO"; then :
4915 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4916 ac_cv_c_bigendian=yes
4918 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4919 if test "$ac_cv_c_bigendian" = unknown; then
4920 ac_cv_c_bigendian=no
4922 # finding both strings is unlikely to happen, but who knows?
4923 ac_cv_c_bigendian=unknown
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 $ac_includes_default
4936 /* Are we little or big endian? From Harbison&Steele. */
4940 char c[sizeof (long int)];
4943 return u.c[sizeof (long int) - 1] == 1;
4949 if ac_fn_c_try_run "$LINENO"; then :
4950 ac_cv_c_bigendian=no
4952 ac_cv_c_bigendian=yes
4954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4955 conftest.$ac_objext conftest.beam conftest.$ac_ext
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4961 $as_echo "$ac_cv_c_bigendian" >&6; }
4962 case $ac_cv_c_bigendian in #(
4964 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4970 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4974 as_fn_error "unknown endianness
4975 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4979 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4980 if test "${ac_cv_c_const+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4989 /* FIXME: Include the comments suggested by Paul. */
4991 /* Ultrix mips cc rejects this. */
4992 typedef int charset[2];
4994 /* SunOS 4.1.1 cc rejects this. */
4995 char const *const *pcpcc;
4997 /* NEC SVR4.0.2 mips cc rejects this. */
4998 struct point {int x, y;};
4999 static struct point const zero = {0,0};
5000 /* AIX XL C 1.02.0.0 rejects this.
5001 It does not let you subtract one const X* pointer from another in
5002 an arm of an if-expression whose if-part is not a constant
5004 const char *g = "string";
5005 pcpcc = &g + (g ? g-g : 0);
5006 /* HPUX 7.0 cc rejects these. */
5008 ppc = (char**) pcpcc;
5009 pcpcc = (char const *const *) ppc;
5010 { /* SCO 3.2v4 cc rejects this. */
5012 char const *s = 0 ? (char *) 0 : (char const *) 0;
5017 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5019 const int *foo = &x[0];
5022 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5023 typedef const int *iptr;
5027 { /* AIX XL C 1.02.0.0 rejects this saying
5028 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5029 struct s { int j; const int *ap[3]; };
5030 struct s *b; b->j = 5;
5032 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5036 return !cs[0] && !zero.x;
5043 if ac_fn_c_try_compile "$LINENO"; then :
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5051 $as_echo "$ac_cv_c_const" >&6; }
5052 if test $ac_cv_c_const = no; then
5054 $as_echo "#define const /**/" >>confdefs.h
5058 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5059 if test "x$ac_cv_type_mode_t" = x""yes; then :
5063 cat >>confdefs.h <<_ACEOF
5069 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5070 if test "x$ac_cv_type_off_t" = x""yes; then :
5074 cat >>confdefs.h <<_ACEOF
5075 #define off_t long int
5080 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5081 if test "x$ac_cv_type_pid_t" = x""yes; then :
5085 cat >>confdefs.h <<_ACEOF
5091 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5092 if test "x$ac_cv_type_size_t" = x""yes; then :
5096 cat >>confdefs.h <<_ACEOF
5097 #define size_t unsigned int
5102 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5103 case $ac_cv_c_uint32_t in #(
5107 $as_echo "#define _UINT32_T 1" >>confdefs.h
5110 cat >>confdefs.h <<_ACEOF
5111 #define uint32_t $ac_cv_c_uint32_t
5116 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
5117 /* NetBSD declares sys_siglist in unistd.h. */
5118 #ifdef HAVE_UNISTD_H
5119 # include <unistd.h>
5123 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
5129 cat >>confdefs.h <<_ACEOF
5130 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5135 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5136 if test "${ac_cv_header_time+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141 #include <sys/types.h>
5142 #include <sys/time.h>
5148 if ((struct tm *) 0)
5154 if ac_fn_c_try_compile "$LINENO"; then :
5155 ac_cv_header_time=yes
5157 ac_cv_header_time=no
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5162 $as_echo "$ac_cv_header_time" >&6; }
5163 if test $ac_cv_header_time = yes; then
5165 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5170 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5171 if test "${ac_cv_struct_tm+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #include <sys/types.h>
5183 int *p = &tm.tm_sec;
5189 if ac_fn_c_try_compile "$LINENO"; then :
5190 ac_cv_struct_tm=time.h
5192 ac_cv_struct_tm=sys/time.h
5194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5197 $as_echo "$ac_cv_struct_tm" >&6; }
5198 if test $ac_cv_struct_tm = sys/time.h; then
5200 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5206 $as_echo_n "checking return type of signal handlers... " >&6; }
5207 if test "${ac_cv_type_signal+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 #include <sys/types.h>
5218 return *(signal (0, 0)) (0) == 1;
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224 ac_cv_type_signal=int
5226 ac_cv_type_signal=void
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5231 $as_echo "$ac_cv_type_signal" >&6; }
5233 cat >>confdefs.h <<_ACEOF
5234 #define RETSIGTYPE $ac_cv_type_signal
5238 for ac_header in vfork.h
5240 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5241 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5242 cat >>confdefs.h <<_ACEOF
5243 #define HAVE_VFORK_H 1
5250 for ac_func in fork vfork
5252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5254 eval as_val=\$$as_ac_var
5255 if test "x$as_val" = x""yes; then :
5256 cat >>confdefs.h <<_ACEOF
5257 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5263 if test "x$ac_cv_func_fork" = xyes; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5265 $as_echo_n "checking for working fork... " >&6; }
5266 if test "${ac_cv_func_fork_works+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5269 if test "$cross_compiling" = yes; then :
5270 ac_cv_func_fork_works=cross
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 $ac_includes_default
5279 /* By Ruediger Kuhlmann. */
5286 if ac_fn_c_try_run "$LINENO"; then :
5287 ac_cv_func_fork_works=yes
5289 ac_cv_func_fork_works=no
5291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5292 conftest.$ac_objext conftest.beam conftest.$ac_ext
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5297 $as_echo "$ac_cv_func_fork_works" >&6; }
5300 ac_cv_func_fork_works=$ac_cv_func_fork
5302 if test "x$ac_cv_func_fork_works" = xcross; then
5304 *-*-amigaos* | *-*-msdosdjgpp*)
5305 # Override, as these systems have only a dummy fork() stub
5306 ac_cv_func_fork_works=no
5309 ac_cv_func_fork_works=yes
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5313 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5315 ac_cv_func_vfork_works=$ac_cv_func_vfork
5316 if test "x$ac_cv_func_vfork" = xyes; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5318 $as_echo_n "checking for working vfork... " >&6; }
5319 if test "${ac_cv_func_vfork_works+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5322 if test "$cross_compiling" = yes; then :
5323 ac_cv_func_vfork_works=cross
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 /* Thanks to Paul Eggert for this test. */
5328 $ac_includes_default
5329 #include <sys/wait.h>
5333 /* On some sparc systems, changes by the child to local and incoming
5334 argument registers are propagated back to the parent. The compiler
5335 is told about this with #include <vfork.h>, but some compilers
5336 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5337 static variable whose address is put into a register that is
5338 clobbered by the vfork. */
5341 sparc_address_test (int arg)
5343 sparc_address_test (arg) int arg;
5364 pid_t parent = getpid ();
5367 sparc_address_test (0);
5372 /* Here is another test for sparc vfork register problems. This
5373 test uses lots of local variables, at least as many local
5374 variables as main has allocated so far including compiler
5375 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5376 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5377 reuse the register of parent for one of the local variables,
5378 since it will think that parent can't possibly be used any more
5379 in this routine. Assigning to the local variable will thus
5380 munge parent in the parent process. */
5382 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5383 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5384 /* Convince the compiler that p..p7 are live; otherwise, it might
5385 use the same hardware register for all 8 local variables. */
5386 if (p != p1 || p != p2 || p != p3 || p != p4
5387 || p != p5 || p != p6 || p != p7)
5390 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5391 from child file descriptors. If the child closes a descriptor
5392 before it execs or exits, this munges the parent's descriptor
5393 as well. Test for this by closing stdout in the child. */
5394 _exit(close(fileno(stdout)) != 0);
5399 while (wait(&status) != child)
5402 /* Was there some problem with vforking? */
5405 /* Did the child fail? (This shouldn't happen.) */
5408 /* Did the vfork/compiler bug occur? */
5409 || parent != getpid()
5411 /* Did the file descriptor bug occur? */
5412 || fstat(fileno(stdout), &st) != 0
5417 if ac_fn_c_try_run "$LINENO"; then :
5418 ac_cv_func_vfork_works=yes
5420 ac_cv_func_vfork_works=no
5422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5423 conftest.$ac_objext conftest.beam conftest.$ac_ext
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5428 $as_echo "$ac_cv_func_vfork_works" >&6; }
5431 if test "x$ac_cv_func_fork_works" = xcross; then
5432 ac_cv_func_vfork_works=$ac_cv_func_vfork
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5434 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5437 if test "x$ac_cv_func_vfork_works" = xyes; then
5439 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5443 $as_echo "#define vfork fork" >>confdefs.h
5446 if test "x$ac_cv_func_fork_works" = xyes; then
5448 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5452 for ac_func in vprintf
5454 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5455 if test "x$ac_cv_func_vprintf" = x""yes; then :
5456 cat >>confdefs.h <<_ACEOF
5457 #define HAVE_VPRINTF 1
5460 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5461 if test "x$ac_cv_func__doprnt" = x""yes; then :
5463 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
5472 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
5473 if test "${ac_cv_func_wait3_rusage+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5476 if test "$cross_compiling" = yes; then :
5477 ac_cv_func_wait3_rusage=no
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 #include <sys/time.h>
5483 #include <sys/resource.h>
5484 #include <sys/wait.h>
5485 /* HP-UX has wait3 but does not fill in rusage at all. */
5491 /* Use a field that we can force nonzero --
5492 voluntary context switches.
5493 For systems like NeXT and OSF/1 that don't set it,
5494 also use the system CPU time. And page faults (I/O) for Linux. */
5496 r.ru_stime.tv_sec = 0;
5497 r.ru_stime.tv_usec = 0;
5498 r.ru_majflt = r.ru_minflt = 0;
5501 case 0: /* Child. */
5502 sleep(1); /* Give up the CPU. */
5505 case -1: /* What can we do? */
5508 default: /* Parent. */
5510 /* Avoid "text file busy" from rm on fast HP-UX machines. */
5512 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
5513 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
5517 if ac_fn_c_try_run "$LINENO"; then :
5518 ac_cv_func_wait3_rusage=yes
5520 ac_cv_func_wait3_rusage=no
5522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5523 conftest.$ac_objext conftest.beam conftest.$ac_ext
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
5528 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
5529 if test $ac_cv_func_wait3_rusage = yes; then
5531 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
5567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5568 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5569 eval as_val=\$$as_ac_var
5570 if test "x$as_val" = x""yes; then :
5571 cat >>confdefs.h <<_ACEOF
5572 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5588 eval as_val=\$$as_ac_var
5589 if test "x$as_val" = x""yes; then :
5590 cat >>confdefs.h <<_ACEOF
5591 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5595 case " $LIBOBJS " in
5596 *" $ac_func.$ac_objext "* ) ;;
5597 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
5607 $as_echo_n "checking for emalloc in -lutil... " >&6; }
5608 if test "${ac_cv_lib_util_emalloc+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5611 ac_check_lib_save_LIBS=$LIBS
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5616 /* Override any GCC internal prototype to avoid an error.
5617 Use char because int might match the return type of a GCC
5618 builtin and then its argument prototype would still apply. */
5631 if ac_fn_c_try_link "$LINENO"; then :
5632 ac_cv_lib_util_emalloc=yes
5634 ac_cv_lib_util_emalloc=no
5636 rm -f core conftest.err conftest.$ac_objext \
5637 conftest$ac_exeext conftest.$ac_ext
5638 LIBS=$ac_check_lib_save_LIBS
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
5641 $as_echo "$ac_cv_lib_util_emalloc" >&6; }
5642 if test "x$ac_cv_lib_util_emalloc" = x""yes; then :
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
5644 $as_echo_n "checking for erealloc in -lutil... " >&6; }
5645 if test "${ac_cv_lib_util_erealloc+set}" = set; then :
5646 $as_echo_n "(cached) " >&6
5648 ac_check_lib_save_LIBS=$LIBS
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5653 /* Override any GCC internal prototype to avoid an error.
5654 Use char because int might match the return type of a GCC
5655 builtin and then its argument prototype would still apply. */
5668 if ac_fn_c_try_link "$LINENO"; then :
5669 ac_cv_lib_util_erealloc=yes
5671 ac_cv_lib_util_erealloc=no
5673 rm -f core conftest.err conftest.$ac_objext \
5674 conftest$ac_exeext conftest.$ac_ext
5675 LIBS=$ac_check_lib_save_LIBS
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
5678 $as_echo "$ac_cv_lib_util_erealloc" >&6; }
5679 if test "x$ac_cv_lib_util_erealloc" = x""yes; then :
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
5681 $as_echo_n "checking for estrdup in -lutil... " >&6; }
5682 if test "${ac_cv_lib_util_estrdup+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
5685 ac_check_lib_save_LIBS=$LIBS
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5690 /* Override any GCC internal prototype to avoid an error.
5691 Use char because int might match the return type of a GCC
5692 builtin and then its argument prototype would still apply. */
5705 if ac_fn_c_try_link "$LINENO"; then :
5706 ac_cv_lib_util_estrdup=yes
5708 ac_cv_lib_util_estrdup=no
5710 rm -f core conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712 LIBS=$ac_check_lib_save_LIBS
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
5715 $as_echo "$ac_cv_lib_util_estrdup" >&6; }
5716 if test "x$ac_cv_lib_util_estrdup" = x""yes; then :
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
5718 $as_echo_n "checking for estrndup in -lutil... " >&6; }
5719 if test "${ac_cv_lib_util_estrndup+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5722 ac_check_lib_save_LIBS=$LIBS
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5727 /* Override any GCC internal prototype to avoid an error.
5728 Use char because int might match the return type of a GCC
5729 builtin and then its argument prototype would still apply. */
5742 if ac_fn_c_try_link "$LINENO"; then :
5743 ac_cv_lib_util_estrndup=yes
5745 ac_cv_lib_util_estrndup=no
5747 rm -f core conftest.err conftest.$ac_objext \
5748 conftest$ac_exeext conftest.$ac_ext
5749 LIBS=$ac_check_lib_save_LIBS
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
5752 $as_echo "$ac_cv_lib_util_estrndup" >&6; }
5753 if test "x$ac_cv_lib_util_estrndup" = x""yes; then :
5755 CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5766 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5767 if test "${ac_cv_header_stat_broken+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 #include <sys/types.h>
5773 #include <sys/stat.h>
5775 #if defined S_ISBLK && defined S_IFDIR
5776 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5779 #if defined S_ISBLK && defined S_IFCHR
5780 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5783 #if defined S_ISLNK && defined S_IFREG
5784 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5787 #if defined S_ISSOCK && defined S_IFREG
5788 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5792 if ac_fn_c_try_compile "$LINENO"; then :
5793 ac_cv_header_stat_broken=no
5795 ac_cv_header_stat_broken=yes
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5800 $as_echo "$ac_cv_header_stat_broken" >&6; }
5801 if test $ac_cv_header_stat_broken = yes; then
5803 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5807 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5808 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5810 cat >>confdefs.h <<_ACEOF
5811 #define HAVE_STRUCT_STAT_ST_RDEV 1
5815 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
5820 echo "checking if compiler supports __func__" >&6
5822 ac_cpp='$CPP $CPPFLAGS'
5823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5833 const char *func = __func__;
5838 if ac_fn_c_try_compile "$LINENO"; then :
5842 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 echo $ECHO_N "checking if diff -u works... $ECHO_C" >&6
5847 if diff -u /dev/null /dev/null > /dev/null 2>&1; then
5854 echo "checking for MACHINE & MACHINE_ARCH..." >&6
5855 cat > conftest.$ac_ext <<EOF
5856 #include "confdefs.h"
5857 #include <sys/param.h>
5862 machine_arch=MACHINE_ARCH
5866 default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5867 egrep machine
= |
tr -d ' "'`
5869 if test "$default_machine"; then
5870 eval "$default_machine"
5872 machine=${machine:-`$srcdir/machine.sh`}
5873 machine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
5874 echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
5876 # Check whether --with-machine was given.
5877 if test "${with_machine+set}" = set; then :
5878 withval=$with_machine; case "${withval}" in
5879 yes) as_fn_error "bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
5881 generic) machine=`$srcdir/machine.sh
`;;
5882 *) machine=$with_machine;;
5888 # Check whether --with-force_machine was given.
5889 if test "${with_force_machine+set}" = set; then :
5890 withval=$with_force_machine; case "${withval}" in
5891 yes) force_machine=FORCE_;;
5893 *) force_machine=FORCE_; machine=$with_force_machine;;
5899 # Check whether --with-force_machine_arch was given.
5900 if test "${with_force_machine_arch+set}" = set; then :
5901 withval=$with_force_machine_arch; case "${withval}" in
5902 yes) force_machine_arch=FORCE_;;
5904 *) force_machine_arch=FORCE_; machine_arch=$with_force_machine;;
5909 # Check whether --with-machine_arch was given.
5910 if test "${with_machine_arch+set}" = set; then :
5911 withval=$with_machine_arch; case "${withval}" in
5912 yes) as_fn_error "bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
5914 *) machine_arch=$with_machine_arch;;
5918 echo "Using: ${force_machine}MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
5919 default_sys_path=\${prefix}/share/mk
5921 # Check whether --with-default-sys-path was given.
5922 if test "${with_default_sys_path+set}" = set; then :
5923 withval=$with_default_sys_path; case "${withval}" in
5924 yes) as_fn_error "bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
5926 *) default_sys_path="$with_default_sys_path"
5932 # Check whether --with-path-objdirprefix was given.
5933 if test "${with_path_objdirprefix+set}" = set; then :
5934 withval=$with_path_objdirprefix; case "${withval}" in
5935 yes) as_fn_error "bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
5936 no) CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
5937 *) CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
5941 # Check whether --enable-pwd-override was given.
5942 if test "${enable_pwd_override+set}" = set; then :
5943 enableval=$enable_pwd_override; case "${enableval}" in
5945 no) CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
5946 *) as_fn_error "bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
5950 # Check whether --enable-check-make-chdir was given.
5951 if test "${enable_check_make_chdir+set}" = set; then :
5952 enableval=$enable_check_make_chdir; case "${enableval}" in
5954 no) CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
5955 *) as_fn_error "bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
5960 # Check whether --with-mksrc was given.
5961 if test "${with_mksrc+set}" = set; then :
5962 withval=$with_mksrc; case "${withval}" in
5964 *) test -s $withval/install-mk && mksrc=$withval ||
5965 as_fn_error "bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
5971 srcdir=`cd $srcdir && pwd`
5972 for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
5974 test -s $mksrc/install-mk || continue
5975 mksrc=`cd $mksrc && pwd`
5978 mksrc=`echo $mksrc |
sed "s,$srcdir,\\\${srcdir},"`
5979 echo "Using: MKSRC=$mksrc" 1>&6
5980 if test -x /usr/xpg4/bin/sh; then
5981 defshell_path=${defshell_path:-/usr/xpg4/bin/sh}
5983 if test -n "$defshell_path"; then
5984 echo "Using: SHELL=$defshell_path" >&6
5986 cat >>confdefs.h <<_ACEOF
5987 #define DEFSHELL_CUSTOM "$defshell_path"
5991 if test -n "$DEFSHELL_INDEX"; then
5993 cat >>confdefs.h <<_ACEOF
5994 #define DEFSHELL_INDEX $DEFSHELL_INDEX
6008 ac_config_files="$ac_config_files makefile Makefile.config make-bootstrap.sh unit-tests/Makefile"
6010 cat >confcache <<\_ACEOF
6011 # This file is a shell script that caches the results of configure
6012 # tests run on this system so they can be shared between configure
6013 # scripts and configure runs, see configure's option --config-cache.
6014 # It is not useful on other systems. If it contains results you don't
6015 # want to keep, you may remove or edit it.
6017 # config.status only pays attention to the cache file if you give it
6018 # the --recheck option to rerun configure.
6020 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
6021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6026 # The following way of writing the cache mishandles newlines in values,
6027 # but we know of no workaround that is simple, portable, and efficient.
6028 # So, we kill variables containing newlines.
6029 # Ultrix sh set writes to stderr and can't be redirected directly,
6030 # and sets the high bit in the cache file unless we assign to the vars.
6032 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6033 eval ac_val
=\$
$ac_var
6037 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6041 _ | IFS | as_nl
) ;; #(
6042 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6043 *) { eval $ac_var=; unset $ac_var;} ;;
6049 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6050 *${as_nl}ac_space
=\
*)
6051 # `set' does not quote correctly, so add quotes: double-quote
6052 # substitution turns \\\\ into \\, and sed turns \\ into \.
6055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6058 # `set' quotes correctly as required by POSIX, so do not add quotes.
6059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6070 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6072 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6073 if test -w "$cache_file"; then
6074 test "x$cache_file" != "x/dev/null" &&
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6076 $as_echo "$as_me: updating cache $cache_file" >&6;}
6077 cat confcache
>$cache_file
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6080 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6085 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6086 # Let make expand exec_prefix.
6087 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6089 DEFS
=-DHAVE_CONFIG_H
6093 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6094 # 1. Remove the extension, and $U if already installed.
6095 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6096 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6097 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6098 # will be set to the directory where LIBOBJS objects are built.
6099 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6100 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6104 LTLIBOBJS
=$ac_ltlibobjs
6109 : ${CONFIG_STATUS=./config.status}
6111 ac_clean_files_save
=$ac_clean_files
6112 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6114 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6116 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6118 # Generated by $as_me.
6119 # Run this file to recreate the current configuration.
6120 # Compiler output produced by configure, useful for debugging
6121 # configure, is in config.log if it exists.
6127 SHELL=\${CONFIG_SHELL-$SHELL}
6130 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6131 ## -------------------- ##
6132 ## M4sh Initialization. ##
6133 ## -------------------- ##
6135 # Be more Bourne compatible
6136 DUALCASE
=1; export DUALCASE
# for MKS sh
6137 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6140 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6141 # is contrary to our usage. Disable this feature.
6142 alias -g '${1+"$@"}'='"$@"'
6143 setopt NO_GLOB_SUBST
6145 case `(set -o) 2>/dev/null` in #(
6157 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6158 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6159 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6161 # Prefer a ksh shell builtin over an external printf program on Solaris,
6162 # but without wasting forks for bash or zsh.
6163 if test -z "$BASH_VERSION$ZSH_VERSION" \
6164 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6165 as_echo='print
-r --'
6166 as_echo_n='print
-rn --'
6167 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6168 as_echo='printf %s
\n'
6169 as_echo_n='printf %s
'
6171 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6172 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6173 as_echo_n='/usr
/ucb
/echo -n'
6175 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6176 as_echo_n_body='eval
6180 expr "X$arg" : "X\\(.*\\)$as_nl";
6181 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6183 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6185 export as_echo_n_body
6186 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6189 as_echo='sh
-c $as_echo_body as_echo
'
6192 # The user is always right.
6193 if test "${PATH_SEPARATOR+set}" != set; then
6195 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6196 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6203 # We need space, tab and new line, in precisely that order. Quoting is
6204 # there to prevent editors from complaining about space-tab.
6205 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6206 # splitting by setting IFS to empty value.)
6209 # Find who we are. Look in the path if we contain no directory separator.
6211 *[\\/]* ) as_myself=$0 ;;
6212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 test -z "$as_dir" && as_dir=.
6217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6223 # We did not find ourselves, most probably we were run as `sh COMMAND'
6224 # in which case we are not to be found in the path.
6225 if test "x$as_myself" = x
; then
6228 if test ! -f "$as_myself"; then
6229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6233 # Unset variables that we do not need and which cause bugs (e.g. in
6234 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6235 # suppresses any "Segmentation fault" message there. '((' could
6236 # trigger a bug in pdksh 5.2.14.
6237 for as_var
in BASH_ENV ENV MAIL MAILPATH
6238 do eval test x\
${$as_var+set} = xset \
6239 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6252 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6255 # as_fn_error ERROR [LINENO LOG_FD]
6256 # ---------------------------------
6257 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6258 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6259 # script with status $?, using 1 if that was 0.
6262 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6264 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6265 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6267 $as_echo "$as_me: error: $1" >&2
6268 as_fn_exit
$as_status
6272 # as_fn_set_status STATUS
6273 # -----------------------
6274 # Set $? to STATUS, without forking.
6278 } # as_fn_set_status
6282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6292 # Portably unset VAR.
6295 { eval $1=; unset $1;}
6297 as_unset
=as_fn_unset
6298 # as_fn_append VAR VALUE
6299 # ----------------------
6300 # Append the text in VALUE to the end of the definition contained in VAR. Take
6301 # advantage of any shell optimizations that allow amortized linear growth over
6302 # repeated appends, instead of the typical quadratic growth present in naive
6304 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6305 eval 'as_fn_append ()
6316 # as_fn_arith ARG...
6317 # ------------------
6318 # Perform arithmetic evaluation on the ARGs, and store the result in the
6319 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6320 # must be portable across $(()) and expr.
6321 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6322 eval 'as_fn_arith ()
6329 as_val
=`expr "$@" || test $? -eq 1`
6334 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6335 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6341 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6342 as_basename
=basename
6347 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6353 as_me
=`$as_basename -- "$0" ||
6354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6355 X"$0" : 'X\(//\)$' \| \
6356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6358 sed '/^.*\/\([^/][^/]*\)\/*$/{
6372 # Avoid depending upon Character Ranges.
6373 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6374 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6375 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6376 as_cr_digits
='0123456789'
6377 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6379 ECHO_C
= ECHO_N
= ECHO_T
=
6380 case `echo -n x` in #(((((
6382 case `echo 'xy\c'` in
6383 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6385 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6392 rm -f conf$$ conf$$.exe conf$$.
file
6393 if test -d conf$$.dir
; then
6394 rm -f conf$$.dir
/conf$$.
file
6397 mkdir conf$$.dir
2>/dev
/null
6399 if (echo >conf$$.
file) 2>/dev
/null
; then
6400 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6402 # ... but there are two gotchas:
6403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6405 # In both cases, we have to default to `cp -p'.
6406 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6408 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6416 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6417 rmdir conf$$.dir
2>/dev
/null
6422 # Create "$as_dir" as a directory, including parents if necessary.
6427 -*) as_dir
=.
/$as_dir;;
6429 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6433 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6434 *) as_qdir
=$as_dir;;
6436 as_dirs
="'$as_qdir' $as_dirs"
6437 as_dir
=`$as_dirname -- "$as_dir" ||
6438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6439 X"$as_dir" : 'X\(//\)[^/]' \| \
6440 X"$as_dir" : 'X\(//\)$' \| \
6441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6442 $as_echo X"$as_dir" |
6443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6460 test -d "$as_dir" && break
6462 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6463 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6467 if mkdir
-p .
2>/dev
/null
; then
6468 as_mkdir_p
='mkdir -p "$as_dir"'
6470 test -d .
/-p && rmdir .
/-p
6474 if test -x / >/dev
/null
2>&1; then
6477 if ls -dL / >/dev
/null
2>&1; then
6484 if test -d "$1"; then
6490 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6491 ???[sx]*):;;*)false;;esac;fi
6495 as_executable_p
=$as_test_x
6497 # Sed expression to map a string onto a valid CPP name.
6498 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6500 # Sed expression to map a string onto a valid variable name.
6501 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6505 ## ----------------------------------- ##
6506 ## Main body of $CONFIG_STATUS script. ##
6507 ## ----------------------------------- ##
6509 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6512 # Save the log message, to keep $0 and so on meaningful, and to
6513 # report actual input values of CONFIG_FILES etc. instead of their
6514 # values after options handling.
6516 This file was extended by bmake $as_me 20160606, which was
6517 generated by GNU Autoconf 2.64. Invocation command line was
6519 CONFIG_FILES = $CONFIG_FILES
6520 CONFIG_HEADERS = $CONFIG_HEADERS
6521 CONFIG_LINKS = $CONFIG_LINKS
6522 CONFIG_COMMANDS = $CONFIG_COMMANDS
6525 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6530 case $ac_config_files in *"
6531 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6534 case $ac_config_headers in *"
6535 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6540 # Files that config.status was made for.
6541 config_files="$ac_config_files"
6542 config_headers="$ac_config_headers"
6546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6548 \`$as_me' instantiates files and other configuration actions
6549 from templates according to the current configuration. Unless the files
6550 and actions are specified as TAGs, all are instantiated by default.
6552 Usage: $0 [OPTION]... [TAG]...
6554 -h, --help print this help, then exit
6555 -V, --version print version number and configuration settings, then exit
6556 -q, --quiet, --silent
6557 do not print progress messages
6558 -d, --debug don't remove temporary files
6559 --recheck update $as_me by reconfiguring in the same conditions
6560 --file=FILE[:TEMPLATE]
6561 instantiate the configuration file FILE
6562 --header=FILE[:TEMPLATE]
6563 instantiate the configuration header FILE
6565 Configuration files:
6568 Configuration headers:
6571 Report bugs to <sjg@NetBSD.org>."
6574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6576 bmake config.status 20160606
6577 configured by $0, generated by GNU Autoconf 2.64,
6578 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6580 Copyright (C) 2009 Free Software Foundation, Inc.
6581 This config.status script is free software; the Free Software Foundation
6582 gives unlimited permission to copy, distribute and modify it."
6587 test -n "\$AWK" || AWK=awk
6590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6591 # The default lists apply if the user does not specify any file.
6597 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6598 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6609 # Handling of the options.
6610 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6612 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6613 $as_echo "$ac_cs_version"; exit ;;
6614 --debug |
--debu |
--deb |
--de |
--d |
-d )
6616 --file |
--fil |
--fi |
--f )
6619 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6621 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6622 ac_need_defaults
=false
;;
6623 --header |
--heade |
--head |
--hea )
6626 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6628 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6629 ac_need_defaults
=false
;;
6631 # Conflict between --help and --header
6632 as_fn_error
"ambiguous option: \`$1'
6633 Try \`$0 --help' for more information.";;
6634 --help |
--hel |
-h )
6635 $as_echo "$ac_cs_usage"; exit ;;
6636 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6637 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6641 -*) as_fn_error
"unrecognized option: \`$1'
6642 Try \`$0 --help' for more information." ;;
6644 *) as_fn_append ac_config_targets
" $1"
6645 ac_need_defaults
=false
;;
6651 ac_configure_extra_args
=
6653 if $ac_cs_silent; then
6655 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6660 if \$ac_cs_recheck; then
6661 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6663 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6664 CONFIG_SHELL='$SHELL'
6670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6675 ## Running $as_me. ##
6681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6686 # Handling of arguments.
6687 for ac_config_target
in $ac_config_targets
6689 case $ac_config_target in
6690 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
6691 "makefile") CONFIG_FILES
="$CONFIG_FILES makefile" ;;
6692 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
6693 "make-bootstrap.sh") CONFIG_FILES
="$CONFIG_FILES make-bootstrap.sh" ;;
6694 "unit-tests/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/Makefile" ;;
6696 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6701 # If the user did not use the arguments to specify the items to instantiate,
6702 # then the envvar interface is used. Set only those that are not.
6703 # We use the long form for the default assignment because of an extremely
6704 # bizarre bug on SunOS 4.1.3.
6705 if $ac_need_defaults; then
6706 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6707 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6710 # Have a temporary directory for convenience. Make it in the build tree
6711 # simply because there is no reason against having it here, and in addition,
6712 # creating and moving files from /tmp can sometimes cause problems.
6713 # Hook for its removal unless debugging.
6714 # Note that there is a small window in which the directory will not be cleaned:
6715 # after its creation but before its name has been assigned to `$tmp'.
6719 trap 'exit_status=$?
6720 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6722 trap 'as_fn_exit 1' 1 2 13 15
6724 # Create a (secure) tmp directory for tmp files.
6727 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6728 test -n "$tmp" && test -d "$tmp"
6731 tmp
=.
/conf$$
-$RANDOM
6732 (umask 077 && mkdir
"$tmp")
6733 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6735 # Set up the scripts for CONFIG_FILES section.
6736 # No need to generate them if there are no CONFIG_FILES.
6737 # This happens for instance with `./config.status config.h'.
6738 if test -n "$CONFIG_FILES"; then
6741 ac_cr
=`echo X | tr X '\015'`
6742 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6743 # But we know of no other shell where ac_cr would be empty at this
6744 # point, so we can use a bashism as a fallback.
6745 if test "x$ac_cr" = x
; then
6746 eval ac_cr
=\$
\'\\r
\'
6748 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6749 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6755 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6760 echo "cat >conf$$subs.awk <<_ACEOF" &&
6761 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6764 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6765 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6767 for ac_last_try in false false false false false :; do
6768 . ./conf$$subs.sh ||
6769 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6771 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6772 if test $ac_delim_n = $ac_delim_num; then
6774 elif $ac_last_try; then
6775 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6777 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6783 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6787 s/^/S["/; s
/!.
*/"]=/
6797 s/\(.\{148\}\).*/\1/
6799 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6804 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6811 s/\(.\{148\}\).*/\1/
6813 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6817 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6822 ' <conf$$subs.awk | sed '
6827 ' >>$CONFIG_STATUS || ac_write_fail=1
6828 rm -f conf$$subs.awk
6829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6831 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6832 for (key in S) S_is_set[key] = 1
6838 nfields = split(line, field, "@
")
6840 len = length(field[1])
6841 for (i = 2; i < nfields; i++) {
6843 keylen = length(key)
6844 if (S_is_set[key]) {
6846 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6847 len += length(value) + length(field[++i])
6858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6859 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6860 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6863 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6864 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6867 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6868 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6869 # trailing colons and then remove the whole line if VPATH becomes empty
6870 # (actually we leave an empty line to preserve line numbers).
6871 if test "x
$srcdir" = x.; then
6872 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6876 s/^\([^=]*=[ ]*\):*/\1/
6882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6883 fi # test -n "$CONFIG_FILES"
6885 # Set up the scripts for CONFIG_HEADERS section.
6886 # No need to generate them if there are no CONFIG_HEADERS.
6887 # This happens for instance with `./config.status Makefile'.
6888 if test -n "$CONFIG_HEADERS"; then
6889 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6893 # Transform confdefs.h into an awk script `defines.awk', embedded as
6894 # here-document in config.status, that substitutes the proper values into
6895 # config.h.in to produce config.h.
6897 # Create a delimiter string that does not exist in confdefs.h, to ease
6898 # handling of long lines.
6900 for ac_last_try in false false :; do
6901 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6902 if test -z "$ac_t"; then
6904 elif $ac_last_try; then
6905 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6907 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6911 # For the awk script, D is an array of macro values keyed by name,
6912 # likewise P contains macro parameters if any. Preserve backslash
6913 # newline sequences.
6915 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6917 s/.\{148\}/&'"$ac_delim"'/g
6920 s/^[ ]*#[ ]*define[ ][ ]*/ /
6927 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6929 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6934 D["\
1"]=" \
3\\\\\\n
"\\/p
6936 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6941 s/.\{148\}/&'"$ac_delim"'/g
6946 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6949 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6951 ' <confdefs.h | sed '
6952 s/'"$ac_delim"'/"\\\
6953 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6956 for (key in D) D_is_set[key] = 1
6959 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6961 split(line, arg, " ")
6962 if (arg[1] == "#") {
6966 defundef
= substr
(arg
[1], 2)
6969 split(mac1
, mac2
, "(") #)
6971 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6972 if (D_is_set
[macro
]) {
6973 # Preserve the white space surrounding the "#".
6974 print prefix
"define", macro P
[macro
] D
[macro
]
6977 # Replace #undef with comments. This is necessary, for example,
6978 # in the case of _POSIX_SOURCE, which is predefined and required
6979 # on some systems where configure will not decide to define it.
6980 if (defundef
== "undef") {
6981 print
"/*", prefix defundef
, macro
, "*/"
6989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6990 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
6991 fi # test -n "$CONFIG_HEADERS"
6994 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
6999 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7001 case $ac_mode$ac_tag in
7003 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7004 :[FH
]-) ac_tag
=-:-;;
7005 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7022 -) ac_f
="$tmp/stdin";;
7023 *) # Look for the file first in the build tree, then in the source tree
7024 # (if the path is not absolute). The absolute path cannot be DOS-style,
7025 # because $ac_f cannot contain `:'.
7029 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7031 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
7033 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7034 as_fn_append ac_file_inputs
" '$ac_f'"
7037 # Let's still pretend it is `configure' which instantiates (i.e., don't
7038 # use $as_me), people would be surprised to read:
7039 # /* config.h. Generated by config.status. */
7040 configure_input
='Generated from '`
7041 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7043 if test x
"$ac_file" != x-
; then
7044 configure_input
="$ac_file. $configure_input"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7046 $as_echo "$as_me: creating $ac_file" >&6;}
7048 # Neutralize special characters interpreted by sed in replacement strings.
7049 case $configure_input in #(
7050 *\
&* |
*\|
* |
*\\* )
7051 ac_sed_conf_input
=`$as_echo "$configure_input" |
7052 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7053 *) ac_sed_conf_input
=$configure_input;;
7057 *:-:* |
*:-) cat >"$tmp/stdin" \
7058 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
7063 ac_dir
=`$as_dirname -- "$ac_file" ||
7064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7065 X"$ac_file" : 'X\(//\)[^/]' \| \
7066 X"$ac_file" : 'X\(//\)$' \| \
7067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7068 $as_echo X"$ac_file" |
7069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7086 as_dir
="$ac_dir"; as_fn_mkdir_p
7090 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7092 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7093 # A ".." for each directory in $ac_dir_suffix.
7094 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7095 case $ac_top_builddir_sub in
7096 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7097 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7100 ac_abs_top_builddir
=$ac_pwd
7101 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7102 # for backward compatibility:
7103 ac_top_builddir
=$ac_top_build_prefix
7106 .
) # We are building in place.
7108 ac_top_srcdir
=$ac_top_builddir_sub
7109 ac_abs_top_srcdir
=$ac_pwd ;;
7110 [\\/]* | ?
:[\\/]* ) # Absolute name.
7111 ac_srcdir
=$srcdir$ac_dir_suffix;
7112 ac_top_srcdir
=$srcdir
7113 ac_abs_top_srcdir
=$srcdir ;;
7115 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7116 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7117 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7119 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7129 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7130 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7135 # If the template does not know about datarootdir, expand it.
7136 # FIXME: This hack should be removed a few years after 2.60.
7137 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7148 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7149 *datarootdir
*) ac_datarootdir_seen
=yes;;
7150 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7152 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7155 ac_datarootdir_hack='
7156 s&@datadir@&$datadir&g
7157 s&@docdir@&$docdir&g
7158 s&@infodir@&$infodir&g
7159 s&@localedir@&$localedir&g
7160 s&@mandir@&$mandir&g
7161 s&\\\${datarootdir}&$datarootdir&g' ;;
7165 # Neutralize VPATH when `$srcdir' = `.'.
7166 # Shell code in configure.ac might set extrasub.
7167 # FIXME: do we really want to maintain this feature?
7168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7169 ac_sed_extra="$ac_vpsub
7172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7174 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7175 s|@configure_input@|
$ac_sed_conf_input|
;t t
7176 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7177 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7178 s
&@srcdir@
&$ac_srcdir&;t t
7179 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7180 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7181 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7182 s
&@builddir@
&$ac_builddir&;t t
7183 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7184 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7185 s
&@INSTALL@
&$ac_INSTALL&;t t
7186 $ac_datarootdir_hack
7188 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7189 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7191 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7192 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7193 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7195 which seems to be undefined. Please make sure it is defined." >&5
7196 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7197 which seems to be undefined. Please make sure it is defined." >&2;}
7201 -) cat "$tmp/out" && rm -f "$tmp/out";;
7202 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7204 || as_fn_error "could not create $ac_file" "$LINENO" 5
7210 if test x"$ac_file" != x-; then
7212 $as_echo "/* $configure_input */" \
7213 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7214 } >"$tmp/config.h" \
7215 || as_fn_error "could not create $ac_file" "$LINENO" 5
7216 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7218 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7221 mv "$tmp/config.h" "$ac_file" \
7222 || as_fn_error "could not create $ac_file" "$LINENO" 5
7225 $as_echo "/* $configure_input */" \
7226 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7227 || as_fn_error "could not create -" "$LINENO" 5
7239 ac_clean_files=$ac_clean_files_save
7241 test $ac_write_fail = 0 ||
7242 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7245 # configure is writing to config.log, and then calls config.status.
7246 # config.status does its own redirection, appending to config.log.
7247 # Unfortunately, on DOS this fails, as config.log is still kept open
7248 # by configure, so config.status won't be able to
write to it
; its
7249 # output is simply discarded. So we exec the FD to /dev/null,
7250 # effectively closing config.log, so it can be properly (re)opened and
7251 # appended to by config.status. When coming back to configure, we
7252 # need to make the FD available again.
7253 if test "$no_create" != yes; then
7255 ac_config_status_args
=
7256 test "$silent" = yes &&
7257 ac_config_status_args
="$ac_config_status_args --quiet"
7259 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7261 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7262 # would make configure fail if this is the last instruction.
7263 $ac_cs_success || as_fn_exit $?
7265 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7267 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7275 sh ./make-bootstrap.sh
7277 to produce a fully functional bmake.