2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for bmake 20220909.
5 # Report bugs to <sjg@NetBSD.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \
${$as_var+y} \
69 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
74 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
81 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself
=$0 ;;
91 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
120 _as_can_reexec
=no
; export _as_can_reexec
;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
129 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec
=; unset _as_can_reexec
;}
142 if test "x$CONFIG_SHELL" = x
; then
143 as_bourne_compatible
="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required
="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
186 if (eval "$as_required") 2>/dev
/null
192 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
198 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
204 *) as_dir
=$as_dir/ ;;
209 for as_base
in sh bash ksh sh5
; do
210 # Try only shells that exist, to save several forks.
211 as_shell
=$as_dir$as_base
212 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
213 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
215 CONFIG_SHELL
=$as_shell as_have_required
=yes
216 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
230 if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
231 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
247 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
249 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 if test x
$as_have_required = xno
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and sjg@NetBSD.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Do nothing but, unlike ":", preserve the value of $?.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir
=.
/$as_dir;;
333 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
337 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs
="'$as_qdir' $as_dirs"
341 as_dir
=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
367 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p
()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
387 eval 'as_fn_append ()
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
412 as_val
=`expr "$@" || test $? -eq 1`
418 # Do nothing but, unlike ":", preserve the value of $?.
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
432 as_status
=$1; test $as_status -eq 0 && as_status
=1
434 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit
$as_status
441 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
448 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
454 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
460 as_me
=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
479 # Avoid depending upon Character Ranges.
480 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits
='0123456789'
484 as_cr_alnum
=$as_cr_Letters$as_cr_digits
487 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
488 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
507 chmod +x
"$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec
=no
; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
518 # Exit status is that of the last command.
523 # Determine whether it's possible to make 'echo' print without a newline.
524 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525 # for compatibility with existing Makefiles.
526 ECHO_C
= ECHO_N
= ECHO_T
=
527 case `echo -n x` in #(((((
529 case `echo 'xy\c'` in
530 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
539 # For backward compatibility with old third-party macros, we provide
540 # the shell variables $as_echo and $as_echo_n. New code should use
541 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542 as_echo
='printf %s\n'
543 as_echo_n
='printf %s'
546 rm -f conf$$ conf$$.exe conf$$.
file
547 if test -d conf$$.dir
; then
548 rm -f conf$$.dir
/conf$$.
file
551 mkdir conf$$.dir
2>/dev
/null
553 if (echo >conf$$.
file) 2>/dev
/null
; then
554 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
562 elif ln conf$$.
file conf$$
2>/dev
/null
; then
570 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
571 rmdir conf$$.dir
2>/dev
/null
573 if mkdir
-p .
2>/dev
/null
; then
574 as_mkdir_p
='mkdir -p "$as_dir"'
576 test -d .
/-p && rmdir .
/-p
581 as_executable_p
=as_fn_executable_p
583 # Sed expression to map a string onto a valid CPP name.
584 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586 # Sed expression to map a string onto a valid variable name.
587 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
594 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595 # so uname gets run too.
596 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
601 ac_default_prefix
=/usr
/local
603 ac_config_libobj_dir
=.
610 # Identity of this package.
612 PACKAGE_TARNAME
='bmake'
613 PACKAGE_VERSION
='20220909'
614 PACKAGE_STRING
='bmake 20220909'
615 PACKAGE_BUGREPORT
='sjg@NetBSD.org'
618 # Factoring default headers for most tests.
619 ac_includes_default
="\
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
636 #ifdef HAVE_STRINGS_H
637 # include <strings.h>
639 #ifdef HAVE_SYS_TYPES_H
640 # include <sys/types.h>
642 #ifdef HAVE_SYS_STAT_H
643 # include <sys/stat.h>
651 ac_subst_vars
='LTLIBOBJS
709 program_transform_name
722 enable_option_checking
729 with_force_machine_arch
731 with_default_sys_path
732 with_path_objdirprefix
734 enable_check_make_chdir
737 ac_precious_vars
='build_alias
747 # Initialize some variables set by options.
749 ac_init_version
=false
750 ac_unrecognized_opts
=
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
761 program_transform_name
=s
,x
,x
,
769 # Installation directory options.
770 # These are left unexpanded so users can "make install exec_prefix=/foo"
771 # and all the variables that are supposed to be based on exec_prefix
772 # by default will actually change.
773 # Use braces instead of parens because sh, perl, etc. also accept them.
774 # (The list follows the same order as the GNU Coding Standards.)
775 bindir
='${exec_prefix}/bin'
776 sbindir
='${exec_prefix}/sbin'
777 libexecdir
='${exec_prefix}/libexec'
778 datarootdir
='${prefix}/share'
779 datadir
='${datarootdir}'
780 sysconfdir
='${prefix}/etc'
781 sharedstatedir
='${prefix}/com'
782 localstatedir
='${prefix}/var'
783 runstatedir
='${localstatedir}/run'
784 includedir
='${prefix}/include'
785 oldincludedir
='/usr/include'
786 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir
='${datarootdir}/info'
792 libdir
='${exec_prefix}/lib'
793 localedir
='${datarootdir}/locale'
794 mandir
='${datarootdir}/man'
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\
$ac_option
808 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 case $ac_dashdash$ac_option in
817 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
819 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
822 -build |
--build |
--buil |
--bui |
--bu)
823 ac_prev
=build_alias
;;
824 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
825 build_alias
=$ac_optarg ;;
827 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
828 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
829 ac_prev
=cache_file
;;
830 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
831 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
832 cache_file
=$ac_optarg ;;
835 cache_file
=config.cache
;;
837 -datadir |
--datadir |
--datadi |
--datad)
839 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
840 datadir
=$ac_optarg ;;
842 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
843 |
--dataroo |
--dataro |
--datar)
844 ac_prev
=datarootdir
;;
845 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
846 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
847 datarootdir
=$ac_optarg ;;
849 -disable-* |
--disable-*)
850 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
853 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
854 ac_useropt_orig
=$ac_useropt
855 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
860 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
861 ac_unrecognized_sep
=', ';;
863 eval enable_
$ac_useropt=no
;;
865 -docdir |
--docdir |
--docdi |
--doc |
--do)
867 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
870 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
872 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
875 -enable-* |
--enable-*)
876 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
879 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
880 ac_useropt_orig
=$ac_useropt
881 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
886 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
887 ac_unrecognized_sep
=', ';;
889 eval enable_
$ac_useropt=\
$ac_optarg ;;
891 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
892 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
893 |
--exec |
--exe |
--ex)
894 ac_prev
=exec_prefix
;;
895 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
896 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
897 |
--exec=* |
--exe=* |
--ex=*)
898 exec_prefix
=$ac_optarg ;;
900 -gas |
--gas |
--ga |
--g)
901 # Obsolete; use --with-gas.
904 -help |
--help |
--hel |
--he |
-h)
906 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
907 ac_init_help
=recursive
;;
908 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
909 ac_init_help
=short
;;
911 -host |
--host |
--hos |
--ho)
912 ac_prev
=host_alias
;;
913 -host=* |
--host=* |
--hos=* |
--ho=*)
914 host_alias
=$ac_optarg ;;
916 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
918 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
920 htmldir
=$ac_optarg ;;
922 -includedir |
--includedir |
--includedi |
--included |
--include \
923 |
--includ |
--inclu |
--incl |
--inc)
924 ac_prev
=includedir
;;
925 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
926 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
927 includedir
=$ac_optarg ;;
929 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
931 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
932 infodir
=$ac_optarg ;;
934 -libdir |
--libdir |
--libdi |
--libd)
936 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
939 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
940 |
--libexe |
--libex |
--libe)
941 ac_prev
=libexecdir
;;
942 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
943 |
--libexe=* |
--libex=* |
--libe=*)
944 libexecdir
=$ac_optarg ;;
946 -localedir |
--localedir |
--localedi |
--localed |
--locale)
948 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
949 localedir
=$ac_optarg ;;
951 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
952 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
953 ac_prev
=localstatedir
;;
954 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
955 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
956 localstatedir
=$ac_optarg ;;
958 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
960 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
964 # Obsolete; use --without-fp.
967 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
968 |
--no-cr |
--no-c |
-n)
971 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
972 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
975 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
976 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
977 |
--oldin |
--oldi |
--old |
--ol |
--o)
978 ac_prev
=oldincludedir
;;
979 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
980 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
981 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
982 oldincludedir
=$ac_optarg ;;
984 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
986 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
989 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
990 |
--program-pre |
--program-pr |
--program-p)
991 ac_prev
=program_prefix
;;
992 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
993 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
994 program_prefix
=$ac_optarg ;;
996 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
997 |
--program-suf |
--program-su |
--program-s)
998 ac_prev
=program_suffix
;;
999 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1000 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1001 program_suffix
=$ac_optarg ;;
1003 -program-transform-name |
--program-transform-name \
1004 |
--program-transform-nam |
--program-transform-na \
1005 |
--program-transform-n |
--program-transform- \
1006 |
--program-transform |
--program-transfor \
1007 |
--program-transfo |
--program-transf \
1008 |
--program-trans |
--program-tran \
1009 |
--progr-tra |
--program-tr |
--program-t)
1010 ac_prev
=program_transform_name
;;
1011 -program-transform-name=* |
--program-transform-name=* \
1012 |
--program-transform-nam=* |
--program-transform-na=* \
1013 |
--program-transform-n=* |
--program-transform-=* \
1014 |
--program-transform=* |
--program-transfor=* \
1015 |
--program-transfo=* |
--program-transf=* \
1016 |
--program-trans=* |
--program-tran=* \
1017 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1018 program_transform_name
=$ac_optarg ;;
1020 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1022 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1023 pdfdir
=$ac_optarg ;;
1025 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1027 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1030 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1031 |
-silent |
--silent |
--silen |
--sile |
--sil)
1034 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1035 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1036 |
--run |
--ru |
--r)
1037 ac_prev
=runstatedir
;;
1038 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1039 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1040 |
--run=* |
--ru=* |
--r=*)
1041 runstatedir
=$ac_optarg ;;
1043 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1045 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1047 sbindir
=$ac_optarg ;;
1049 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1050 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1051 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1053 ac_prev
=sharedstatedir
;;
1054 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1055 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1056 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1058 sharedstatedir
=$ac_optarg ;;
1060 -site |
--site |
--sit)
1062 -site=* |
--site=* |
--sit=*)
1065 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1067 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1068 srcdir
=$ac_optarg ;;
1070 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1071 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1072 ac_prev
=sysconfdir
;;
1073 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1074 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1075 sysconfdir
=$ac_optarg ;;
1077 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1078 ac_prev
=target_alias
;;
1079 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1080 target_alias
=$ac_optarg ;;
1082 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1085 -version |
--version |
--versio |
--versi |
--vers |
-V)
1086 ac_init_version
=: ;;
1089 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1092 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1093 ac_useropt_orig
=$ac_useropt
1094 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep
=', ';;
1102 eval with_
$ac_useropt=\
$ac_optarg ;;
1104 -without-* |
--without-*)
1105 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1108 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1109 ac_useropt_orig
=$ac_useropt
1110 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep
=', ';;
1118 eval with_
$ac_useropt=no
;;
1121 # Obsolete; use --with-x.
1124 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1125 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1126 ac_prev
=x_includes
;;
1127 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1128 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1129 x_includes
=$ac_optarg ;;
1131 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1132 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1133 ac_prev
=x_libraries
;;
1134 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1135 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1136 x_libraries
=$ac_optarg ;;
1138 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information"
1143 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1147 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1149 eval $ac_envvar=\
$ac_optarg
1150 export $ac_envvar ;;
1153 # FIXME: should be removed in autoconf 3.0.
1154 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1156 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163 if test -n "$ac_prev"; then
1164 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error $?
"missing argument to $ac_option"
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1171 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1172 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176 # Check all directory arguments for consistency.
1177 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir runstatedir
1182 eval ac_val
=\$
$ac_var
1183 # Remove trailing slashes.
1186 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\
$ac_val;;
1189 # Be sure to have absolute directory names.
1191 [\\/$
]* | ?
:[\\/]* ) continue;;
1192 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1194 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1202 target
=$target_alias
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x
; then
1206 if test "x$build_alias" = x
; then
1207 cross_compiling
=maybe
1208 elif test "x$build_alias" != "x$host_alias"; then
1214 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1216 test "$silent" = yes && exec 6>/dev
/null
1219 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di
=`ls -di .` &&
1221 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1222 as_fn_error $?
"working directory cannot be determined"
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 as_fn_error $?
"pwd does not report name of working directory"
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted
=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir
=`$as_dirname -- "$as_myself" ||
1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236 printf "%s\n" X"$as_myself" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted
=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1263 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1265 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1277 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 for ac_var
in $ac_precious_vars; do
1280 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1282 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1287 # Report the --help message.
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1293 \`configure' configures bmake 20220909 to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1300 Defaults for the options are specified in brackets.
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking ...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1324 For better control, use the options below.
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/bmake]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
1353 if test -n "$ac_init_help"; then
1354 case $ac_init_help in
1355 short | recursive
) echo "Configuration of bmake 20220909:";;
1360 --disable-option-checking ignore unrecognized
--enable/--with options
1361 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1362 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1363 --disable-pwd-override disable
$PWD overriding getcwd
()
1364 --disable-check-make-chdir disable
make trying to guess
1365 when it should automatically
cd ${.CURDIR}
1368 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1369 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1370 --with-defshell=SHELL use SHELL by default
- must be sh compatible
, use sh or ksh to pick the internal definitions
1371 --without-makefile disable use of generated makefile
1372 --without-meta disable use of meta-mode
1373 --with-filemon={no
,dev
,ktrace
,path
/filemon.h
} indicate filemon method
for meta-mode. Path to filemon.h implies dev
1374 --with-machine=MACHINE explicitly
set MACHINE
1375 --with-force-machine=MACHINE
set FORCE_MACHINE
1376 --with-force-machine-arch=MACHINE
set FORCE_MACHINE_ARCH
1377 --with-machine_arch=MACHINE_ARCH explicitly
set MACHINE_ARCH
1378 --with-default-sys-path=PATH
:DIR
:LIST use an explicit _PATH_DEFSYSPATH
1379 MAKESYSPATH is a
':' separated list of directories
1380 that bmake will search
for system .mk files.
1381 _PATH_DEFSYSPATH is its default value.
1382 --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX
1383 --with-mksrc=PATH tell makefile.boot where to
find mk src
1385 Some influential environment variables
:
1386 CC C compiler
command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1389 nonstandard directory
<lib dir
>
1390 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1391 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1392 you have headers
in a nonstandard directory
<include dir
>
1394 Use these variables to override the choices made by
`configure' or to help
1395 it to find libraries and programs with nonstandard names/locations.
1397 Report bugs to <sjg@NetBSD.org>.
1402 if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" ||
1406 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 ac_dir_suffix=/`printf "%s\n" "$ac_dir" |
sed 's|^\.[\\/]||'`
1414 # A ".." for each directory in $ac_dir_suffix.
1415 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1416 case $ac_top_builddir_sub in
1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421 ac_abs_top_builddir=$ac_pwd
1422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1423 # for backward compatibility:
1424 ac_top_builddir=$ac_top_build_prefix
1427 .) # We are building in place.
1429 ac_top_srcdir=$ac_top_builddir_sub
1430 ac_abs_top_srcdir=$ac_pwd ;;
1431 [\\/]* | ?:[\\/]* ) # Absolute name.
1432 ac_srcdir=$srcdir$ac_dir_suffix;
1433 ac_top_srcdir=$srcdir
1434 ac_abs_top_srcdir=$srcdir ;;
1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1437 ac_top_srcdir=$ac_top_build_prefix$srcdir
1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442 cd "$ac_dir" || { ac_status=$?; continue; }
1443 # Check for configure.gnu first; this name is used for a wrapper for
1444 # Metaconfig's "Configure" on case-insensitive file systems.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1450 $SHELL "$ac_srcdir/configure" --help=recursive
1452 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454 cd "$ac_pwd" || { ac_status=$?; break; }
1458 test -n "$ac_init_help" && exit $ac_status
1459 if $ac_init_version; then
1461 bmake configure 20220909
1462 generated by GNU Autoconf 2.71
1464 Copyright (C) 2021 Free Software Foundation, Inc.
1465 This configure script is free software; the Free Software Foundation
1466 gives unlimited permission to copy, distribute and modify it.
1471 ## ------------------------ ##
1472 ## Autoconf initialization. ##
1473 ## ------------------------ ##
1475 # ac_fn_c_try_compile LINENO
1476 # --------------------------
1477 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1478 ac_fn_c_try_compile ()
1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481 rm -f conftest.$ac_objext conftest.beam
1482 if { { ac_try="$ac_compile"
1484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1485 *) ac_try_echo
=$ac_try;;
1487 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 printf "%s\n" "$ac_try_echo"; } >&5
1489 (eval "$ac_compile") 2>conftest.err
1491 if test -s conftest.err
; then
1492 grep -v '^ *+' conftest.err
>conftest.er1
1493 cat conftest.er1
>&5
1494 mv -f conftest.er1 conftest.err
1496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } && {
1498 test -z "$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1500 } && test -s conftest.
$ac_objext
1504 printf "%s\n" "$as_me: failed program was:" >&5
1505 sed 's/^/| /' conftest.
$ac_ext >&5
1509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1510 as_fn_set_status
$ac_retval
1512 } # ac_fn_c_try_compile
1514 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1515 # -------------------------------------------------------
1516 # Tests whether HEADER exists and can be compiled using the include files in
1517 # INCLUDES, setting the cache variable VAR accordingly.
1518 ac_fn_c_check_header_compile
()
1520 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1522 printf %s
"checking for $2... " >&6; }
1523 if eval test \
${$3+y}
1525 printf %s
"(cached) " >&6
1527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1528 /* end confdefs.h. */
1532 if ac_fn_c_try_compile
"$LINENO"
1538 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1542 printf "%s\n" "$ac_res" >&6; }
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1545 } # ac_fn_c_check_header_compile
1547 # ac_fn_c_try_link LINENO
1548 # -----------------------
1549 # Try to link conftest.$ac_ext, and return whether this succeeded.
1552 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1553 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1554 if { { ac_try
="$ac_link"
1556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 printf "%s\n" "$ac_try_echo"; } >&5
1561 (eval "$ac_link") 2>conftest.err
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest$ac_exeext && {
1573 test "$cross_compiling" = yes ||
1574 test -x conftest$ac_exeext
1579 printf "%s\n" "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1584 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1585 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1586 # interfere with the next link command; also delete a directory that is
1587 # left behind by Apple's compiler. We do this before executing the actions.
1588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1592 } # ac_fn_c_try_link
1594 # ac_fn_c_try_run LINENO
1595 # ----------------------
1596 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1597 # executables *can* be run.
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_link"
1603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1604 *) ac_try_echo
=$ac_try;;
1606 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 printf "%s\n" "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>&5
1610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1612 { { case "(($ac_try" in
1613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 printf "%s\n" "$ac_try_echo"; } >&5
1618 (eval "$ac_try") 2>&5
1620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; }; }
1625 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1626 printf "%s\n" "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1629 ac_retval=$ac_status
1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1637 # ac_fn_c_find_intX_t LINENO BITS VAR
1638 # -----------------------------------
1639 # Finds a signed integer type with width BITS, setting cache variable VAR
1641 ac_fn_c_find_intX_t ()
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1645 printf %s "checking for int$2_t... " >&6; }
1646 if eval test \${$3+y}
1648 printf %s "(cached) " >&6
1651 # Order is important - never check a type that is potentially smaller
1652 # than half of the expected target width.
1653 for ac_type in int$2_t 'int' 'long int' \
1654 'long long int' 'short int' 'signed char'; do
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 $ac_includes_default
1658 enum { N = $2 / 2 - 1 };
1662 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1664 return test_array [0];
1670 if ac_fn_c_try_compile "$LINENO"
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 $ac_includes_default
1675 enum { N = $2 / 2 - 1 };
1679 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1680 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1682 return test_array [0];
1688 if ac_fn_c_try_compile "$LINENO"
1696 eval "$3=\$ac_type" ;;
1699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1702 if eval test \"x\$"$3"\" = x"no"
1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 printf "%s\n" "$ac_res" >&6; }
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 } # ac_fn_c_find_intX_t
1717 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1718 # -------------------------------------------
1719 # Tests whether TYPE exists after having included INCLUDES, setting cache
1720 # variable VAR accordingly.
1721 ac_fn_c_check_type ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 printf %s "checking for $2... " >&6; }
1726 if eval test \${$3+y}
1728 printf %s "(cached) " >&6
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1743 if ac_fn_c_try_compile "$LINENO"
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1757 if ac_fn_c_try_compile "$LINENO"
1763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 printf "%s\n" "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 } # ac_fn_c_check_type
1774 # ac_fn_c_find_uintX_t LINENO BITS VAR
1775 # ------------------------------------
1776 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1778 ac_fn_c_find_uintX_t ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1782 printf %s "checking for uint$2_t... " >&6; }
1783 if eval test \${$3+y}
1785 printf %s "(cached) " >&6
1788 # Order is important - never check a type that is potentially smaller
1789 # than half of the expected target width.
1790 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1791 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 $ac_includes_default
1798 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1800 return test_array [0];
1806 if ac_fn_c_try_compile "$LINENO"
1812 eval "$3=\$ac_type" ;;
1815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1816 if eval test \"x\$"$3"\" = x"no"
1825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 printf "%s\n" "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } # ac_fn_c_find_uintX_t
1831 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1832 # ------------------------------------------------------------------
1833 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1834 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1840 printf %s "checking whether $as_decl_name is declared... " >&6; }
1841 if eval test \${$3+y}
1843 printf %s "(cached) " >&6
1845 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1846 eval ac_save_FLAGS=\$$6
1847 as_fn_append $6 " $5"
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1854 #ifndef $as_decl_name
1856 (void) $as_decl_use;
1858 (void) $as_decl_name;
1866 if ac_fn_c_try_compile "$LINENO"
1872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1873 eval $6=\$ac_save_FLAGS
1877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 printf "%s\n" "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_check_decl
1883 # ac_fn_c_check_func LINENO FUNC VAR
1884 # ----------------------------------
1885 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1886 ac_fn_c_check_func ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 printf %s "checking for $2... " >&6; }
1891 if eval test \${$3+y}
1893 printf %s "(cached) " >&6
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1899 #define $2 innocuous_$2
1901 /* System header to define __stub macros and hopefully few prototypes,
1902 which can conflict with char $2 (); below. */
1907 /* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1914 /* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917 #if defined __stub_$2 || defined __stub___$2
1929 if ac_fn_c_try_link "$LINENO"
1935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1936 conftest$ac_exeext conftest.$ac_ext
1939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 printf "%s\n" "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_func
1944 ac_configure_args_raw=
1949 ac_arg=`printf "%s\n" "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1951 as_fn_append ac_configure_args_raw " '$ac_arg'"
1954 case $ac_configure_args_raw in
1958 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1959 ac_unsafe_a="$ac_unsafe_z#~
"
1960 ac_safe_unquote="s
/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g
"
1961 ac_configure_args_raw=` printf "%s
\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1964 cat >config.log <<_ACEOF
1965 This file contains any messages produced by compilers while
1966 running configure, to aid debugging if configure makes a mistake.
1968 It was created by bmake $as_me 20220909, which was
1969 generated by GNU Autoconf 2.71. Invocation command line was
1971 $ $0$ac_configure_args_raw
1981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1993 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 case $as_dir in #(((
2007 *) as_dir=$as_dir/ ;;
2009 printf "%s
\n" "PATH
: $as_dir"
2025 # Keep a trace of the command line.
2026 # Strip out --no-create and --no-recursion so they do not pile up.
2027 # Strip out --silent because we don't want to record it for future runs.
2028 # Also quote any args containing shell meta-characters.
2029 # Make two passes to allow for proper duplicate-argument suppression.
2033 ac_must_keep_next=false
2039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2041 | -silent | --silent | --silen | --sile | --sil)
2044 ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2047 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2049 as_fn_append ac_configure_args1 " '$ac_arg'"
2050 if test $ac_must_keep_next = true; then
2051 ac_must_keep_next=false # Got value, back to normal.
2054 *=* | --config-cache | -C | -disable-* | --disable-* \
2055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2057 | -with-* | --with-* | -without-* | --without-* | --x)
2058 case "$ac_configure_args0 " in
2059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062 -* ) ac_must_keep_next=true ;;
2065 as_fn_append ac_configure_args " '$ac_arg'"
2070 { ac_configure_args0=; unset ac_configure_args0;}
2071 { ac_configure_args1=; unset ac_configure_args1;}
2073 # When interrupted or exit'd, cleanup temporary files, and complete
2074 # config.log. We remove comments because anyway the quotes in there
2075 # would cause problems or look ugly.
2076 # WARNING: Use '\'' to represent an apostrophe within the trap.
2077 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2078 trap 'exit_status=$?
2081 # Save into config.log some information that might help in debugging.
2085 printf "%s
\n" "## ---------------- ##
2086 ## Cache variables. ##
2087 ## ---------------- ##"
2089 # The following way of writing the cache mishandles newlines in values,
2091 for ac_var
in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092 eval ac_val
=\$
$ac_var
2096 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 _ | IFS | as_nl
) ;; #(
2101 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
2102 *) { eval $ac_var=; unset $ac_var;} ;;
2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108 *${as_nl}ac_space
=\
*)
2110 "s/'\''/'\''\\\\'\'''\''/g;
2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2121 printf "%s\n" "## ----------------- ##
2122 ## Output variables. ##
2123 ## ----------------- ##"
2125 for ac_var
in $ac_subst_vars
2127 eval ac_val
=\$
$ac_var
2129 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 printf "%s\n" "$ac_var='\''$ac_val'\''"
2135 if test -n "$ac_subst_files"; then
2136 printf "%s\n" "## ------------------- ##
2137 ## File substitutions. ##
2138 ## ------------------- ##"
2140 for ac_var in $ac_subst_files
2142 eval ac_val=\$$ac_var
2144 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 printf "%s\n" "$ac_var='\''$ac_val'\''"
2151 if test -s confdefs.h
; then
2152 printf "%s\n" "## ----------- ##
2159 test "$ac_signal" != 0 &&
2160 printf "%s\n" "$as_me: caught signal $ac_signal"
2161 printf "%s\n" "$as_me: exit $exit_status"
2163 rm -f core
*.core core.conftest.
* &&
2164 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
2167 for ac_signal in 1 2 13 15; do
2168 trap 'ac_signal
='$ac_signal'; as_fn_exit
1' $ac_signal
2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2173 rm -f -r conftest* confdefs.h
2175 printf "%s\n" "/* confdefs.h */" > confdefs.h
2177 # Predefined preprocessor variables.
2179 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2181 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2183 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2185 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2187 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2189 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2192 # Let the site file select an alternate cache file if it wants to.
2193 # Prefer an explicitly selected file to automatically selected ones.
2194 if test -n "$CONFIG_SITE"; then
2195 ac_site_files="$CONFIG_SITE"
2196 elif test "x$prefix" != xNONE; then
2197 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2199 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2202 for ac_site_file in $ac_site_files
2204 case $ac_site_file in #(
2208 ac_site_file=./$ac_site_file ;;
2210 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2213 sed 's
/^
/|
/' "$ac_site_file" >&5
2215 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
2217 as_fn_error $? "failed to load site script $ac_site_file
2218 See \`config.log
' for more details" "$LINENO" 5; }
2222 if test -r "$cache_file"; then
2223 # Some versions of bash will fail to source /dev/null (special files
2224 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2225 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2227 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2229 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2230 *) . "./$cache_file";;
2234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2235 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2239 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2240 # Test code for whether the C compiler supports C89 (global declarations)
2241 ac_c_conftest_c89_globals='
2242 /* Does the compiler advertise C89 conformance?
2243 Do not
test the value of __STDC__
, because some compilers
set it to
0
2244 while being otherwise adequately conformant.
*/
2245 #if !defined __STDC__
2246 # error "Compiler does not advertise C89 conformance"
2252 /* Most of the following tests are stolen from RCS
5.7 src
/conf.sh.
*/
2253 struct buf
{ int x
; };
2254 struct buf
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
2255 static char
*e
(p
, i
)
2261 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
2266 s
= g
(p
, va_arg
(v
,int
));
2271 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
2272 function prototypes and stuff
, but not \xHH hex character constants.
2273 These
do not provoke an error unfortunately
, instead are silently treated
2274 as an
"x". The following induces an error
, until -std is added to get
2275 proper ANSI mode. Curiously
\x00 != x always comes out true
, for an
2276 array size
at least. It is necessary to
write \x00 == 0 to get something
2277 that is true only with
-std.
*/
2278 int osf4_cc_array
['\''\x00'\'' == 0 ?
1 : -1];
2280 /* IBM C
6 for AIX is almost-ANSI by default
, but it replaces macro parameters
2281 inside
strings and character constants.
*/
2282 #define FOO(x) '\''x'\''
2283 int xlc6_cc_array
[FOO
(a
) == '\''x
'\'' ?
1 : -1];
2285 int
test (int i
, double x
);
2286 struct s1
{int
(*f
) (int a
);};
2287 struct s2
{int
(*f
) (double a
);};
2288 int pairnames
(int
, char
**, int
*(*)(struct buf
*, struct stat
*, int
),
2291 # Test code for whether the C compiler supports C89 (body of main).
2292 ac_c_conftest_c89_main='
2293 ok |
= (argc
== 0 || f
(e
, argv
, 0) != argv
[0] || f
(e
, argv
, 1) != argv
[1]);
2296 # Test code for whether the C compiler supports C99 (global declarations)
2297 ac_c_conftest_c99_globals='
2298 // Does the compiler advertise C99 conformance?
2299 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2300 # error "Compiler does not advertise C99 conformance"
2303 #include <stdbool.h>
2304 extern int puts
(const char
*);
2305 extern int
printf (const char
*, ...
);
2306 extern int dprintf
(int
, const char
*, ...
);
2307 extern void
*malloc
(size_t
);
2309 // Check varargs macros. These examples are taken from C99
6.10.3.5.
2310 // dprintf is used instead of fprintf to avoid needing to
declare
2312 #define debug(...) dprintf (2, __VA_ARGS__)
2313 #define showlist(...) puts (#__VA_ARGS__)
2314 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2316 test_varargs_macros
(void
)
2321 debug
("X = %d\n", x
);
2322 showlist
(The first
, second
, and third items.
);
2323 report
(x
>y
, "x is %d but y is %d", x
, y
);
2326 // Check long long types.
2327 #define BIG64 18446744073709551615ull
2328 #define BIG32 4294967295ul
2329 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2331 #error "your preprocessor is broken"
2335 #error "your preprocessor is broken"
2337 static long long int bignum
= -9223372036854775807LL;
2338 static unsigned long long int ubignum
= BIG64
;
2340 struct incomplete_array
2348 const wchar_t
*name
;
2352 typedef const char
*ccp
;
2355 test_restrict
(ccp restrict text
)
2357 // See
if C
++-style comments work.
2358 // Iterate through items via the restricted pointer.
2359 // Also check
for declarations
in for loops.
2360 for (unsigned int i
= 0; *(text
+i
) != '\''\
0'\''; ++i
)
2365 // Check varargs and va_copy.
2367 test_varargs
(const char
*format
, ...
)
2370 va_start
(args
, format
);
2372 va_copy
(args_copy
, args
);
2374 const char
*str
= "";
2382 case '\''s
'\'': // string
2383 str
= va_arg
(args_copy
, const char
*);
2385 case '\''d
'\'': // int
2386 number
= va_arg
(args_copy
, int
);
2388 case '\''f
'\'': // float
2389 fnumber
= va_arg
(args_copy
, double
);
2398 return *str
&& number
&& fnumber
;
2402 # Test code for whether the C compiler supports C99 (body of main).
2403 ac_c_conftest_c99_main='
2405 _Bool success
= false
;
2406 success |
= (argc
!= 0);
2409 if (test_restrict
("String literal") == 0)
2411 char
*restrict newvar
= "Another string";
2414 success
&= test_varargs
("s, d'\'' f .", "string", 65, 34.234);
2415 test_varargs_macros
();
2417 // Check flexible array members.
2418 struct incomplete_array
*ia
=
2419 malloc
(sizeof
(struct incomplete_array
) + (sizeof
(double
) * 10));
2421 for (int i
= 0; i
< ia-
>datasize
; ++i
)
2422 ia-
>data
[i
] = i
* 1.234;
2424 // Check named initializers.
2425 struct named_init ni
= {
2427 .name
= L
"Test wide string",
2428 .average
= 543.34343,
2433 int dynamic_array
[ni.number
];
2434 dynamic_array
[0] = argv
[0][0];
2435 dynamic_array
[ni.number
- 1] = 543;
2437 // work around unused variable warnings
2438 ok |
= (!success || bignum
== 0LL || ubignum
== 0uLL || newvar
[0] == '\''x
'\''
2439 || dynamic_array
[ni.number
- 1] != 543);
2442 # Test code for whether the C compiler supports C11 (global declarations)
2443 ac_c_conftest_c11_globals='
2444 // Does the compiler advertise C11 conformance?
2445 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2446 # error "Compiler does not advertise C11 conformance"
2450 char _Alignas
(double
) aligned_as_double
;
2451 char _Alignas
(0) no_special_alignment
;
2452 extern char aligned_as_int
;
2453 char _Alignas
(0) _Alignas
(int
) aligned_as_int
;
2458 int_alignment
= _Alignof
(int
),
2459 int_array_alignment
= _Alignof
(int
[100]),
2460 char_alignment
= _Alignof
(char
)
2462 _Static_assert
(0 < -_Alignof (int
), "_Alignof is signed");
2465 int _Noreturn does_not_return
(void
) { for (;;) continue; }
2467 // Check _Static_assert.
2468 struct test_static_assert
2471 _Static_assert
(sizeof
(int
) <= sizeof
(long int
),
2472 "_Static_assert does not work in struct");
2476 // Check UTF-8 literals.
2477 #define u8 syntax error!
2478 char const utf8_literal
[] = u8
"happens to be ASCII" "another string";
2480 // Check duplicate typedefs.
2481 typedef long
*long_ptr
;
2482 typedef long int
*long_ptr
;
2483 typedef long_ptr long_ptr
;
2485 // Anonymous structures and unions
-- taken from C11
6.7.2.1 Example
1.
2489 struct
{ int i
; int j
; };
2490 struct
{ int k
; long int l
; } w
;
2496 # Test code for whether the C compiler supports C11 (body of main).
2497 ac_c_conftest_c11_main='
2498 _Static_assert
((offsetof
(struct anonymous
, i
)
2499 == offsetof
(struct anonymous
, w.k
)),
2500 "Anonymous union alignment botch");
2506 # Test code for whether the C compiler supports C11 (complete).
2507 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2508 ${ac_c_conftest_c99_globals}
2509 ${ac_c_conftest_c11_globals}
2512 main (int argc, char **argv)
2515 ${ac_c_conftest_c89_main}
2516 ${ac_c_conftest_c99_main}
2517 ${ac_c_conftest_c11_main}
2522 # Test code for whether the C compiler supports C99 (complete).
2523 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2524 ${ac_c_conftest_c99_globals}
2527 main (int argc, char **argv)
2530 ${ac_c_conftest_c89_main}
2531 ${ac_c_conftest_c99_main}
2536 # Test code for whether the C compiler supports C89 (complete).
2537 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2540 main (int argc, char **argv)
2543 ${ac_c_conftest_c89_main}
2548 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2549 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2550 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2551 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2552 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2553 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2554 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2555 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2556 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2557 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2558 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2559 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2560 as_fn_append ac_func_c_list " fork HAVE_FORK"
2561 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2562 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2564 # Auxiliary files required by this configure script.
2565 ac_aux_files="install-sh"
2567 # Locations in which to look for auxiliary files.
2568 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2570 # Search for a directory containing all of the required auxiliary files,
2571 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2572 # If we don't
find one directory that contains all the files we need
,
2573 # we report the set of missing files from the *first* directory in
2574 # $ac_aux_dir_candidates and give up.
2575 ac_missing_aux_files
=""
2576 ac_first_candidate
=:
2577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2580 for as_dir
in $ac_aux_dir_candidates
2583 case $as_dir in #(((
2586 *) as_dir
=$as_dir/ ;;
2590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2591 ac_aux_dir_found
=yes
2593 for ac_aux
in $ac_aux_files
2595 # As a special case, if "install-sh" is required, that requirement
2596 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2597 # and $ac_install_sh is set appropriately for whichever one is found.
2598 if test x
"$ac_aux" = x
"install-sh"
2600 if test -f "${as_dir}install-sh"; then
2601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2602 ac_install_sh
="${as_dir}install-sh -c"
2603 elif test -f "${as_dir}install.sh"; then
2604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2605 ac_install_sh
="${as_dir}install.sh -c"
2606 elif test -f "${as_dir}shtool"; then
2607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2608 ac_install_sh
="${as_dir}shtool install -c"
2611 if $ac_first_candidate; then
2612 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2618 if test -f "${as_dir}${ac_aux}"; then
2619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2622 if $ac_first_candidate; then
2623 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2630 if test "$ac_aux_dir_found" = yes; then
2631 ac_aux_dir
="$as_dir"
2634 ac_first_candidate
=false
2643 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2647 # These three variables are undocumented and unsupported,
2648 # and are intended to be withdrawn in a future Autoconf release.
2649 # They can cause serious problems if a builder's source tree is in a directory
2650 # whose full name contains unusual characters.
2651 if test -f "${ac_aux_dir}config.guess"; then
2652 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2654 if test -f "${ac_aux_dir}config.sub"; then
2655 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2657 if test -f "$ac_aux_dir/configure"; then
2658 ac_configure
="$SHELL ${ac_aux_dir}configure"
2661 # Check that the precious variables saved in the cache have kept the same
2663 ac_cache_corrupted
=false
2664 for ac_var
in $ac_precious_vars; do
2665 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2666 eval ac_new_set
=\
$ac_env_${ac_var}_set
2667 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2668 eval ac_new_val
=\
$ac_env_${ac_var}_value
2669 case $ac_old_set,$ac_new_set in
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2672 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2673 ac_cache_corrupted
=: ;;
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2676 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2677 ac_cache_corrupted
=: ;;
2680 if test "x$ac_old_val" != "x$ac_new_val"; then
2681 # differences in whitespace do not lead to failure.
2682 ac_old_val_w
=`echo x $ac_old_val`
2683 ac_new_val_w
=`echo x $ac_new_val`
2684 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2686 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2687 ac_cache_corrupted
=:
2689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2690 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2691 eval $ac_var=\
$ac_old_val
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2694 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2696 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2699 # Pass precious variables to config.status.
2700 if test "$ac_new_set" = set; then
2702 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2703 *) ac_arg
=$ac_var=$ac_new_val ;;
2705 case " $ac_configure_args " in
2706 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2707 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2711 if $ac_cache_corrupted; then
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2713 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2715 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2716 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2717 and start over" "$LINENO" 5
2719 ## -------------------- ##
2720 ## Main body of script. ##
2721 ## -------------------- ##
2724 ac_cpp
='$CPP $CPPFLAGS'
2725 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2730 ac_config_headers
="$ac_config_headers config.h"
2735 *) srcdir
=`cd $srcdir && 'pwd'`;;
2742 case "$defshell_path$DEFSHELL_INDEX" in
2747 *csh
) # we must be desperate
2748 DEFSHELL_INDEX
=DEFSHELL_INDEX_CSH
;;
2750 DEFSHELL_INDEX
=DEFSHELL_INDEX_KSH
;;
2752 DEFSHELL_INDEX
=DEFSHELL_INDEX_SH
;;
2753 *) DEFSHELL_INDEX
=DEFSHELL_INDEX_CUSTOM
2759 */*) defshell_path
=$1;;
2763 # Check whether --with-defshell was given.
2764 if test ${with_defshell+y}
2766 withval
=$with_defshell; case "${withval}" in
2767 yes) as_fn_error $?
"bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;;
2769 *) use_defshell
$with_defshell;;
2774 CYGWIN
*|MINGW
*) use_makefile
=no
;;
2775 *) use_makefile
=yes;;
2778 # Check whether --with-makefile was given.
2779 if test ${with_makefile+y}
2781 withval
=$with_makefile; case "${withval}" in
2782 yes|no
) use_makefile
=${withval};;
2783 *) as_fn_error $?
"bad value ${withval} given for makefile" "$LINENO" 5 ;;
2789 # Check whether --with-meta was given.
2790 if test ${with_meta+y}
2792 withval
=$with_meta; case "${withval}" in
2793 yes|no
) use_meta
=${withval};;
2794 *) as_fn_error $?
"bad value ${withval} given for meta" "$LINENO" 5 ;;
2799 # Check whether --with-filemon was given.
2800 if test ${with_filemon+y}
2802 withval
=$with_filemon; case "/${withval}" in
2803 /no
) use_filemon
=no
;;
2804 /*trace
) filemon_h
=no use_filemon
="${withval}";;
2805 */filemon.h
) filemon_h
="${withval}";;
2806 */filemon
*) filemon_h
="${withval}/filemon.h";;
2807 *) as_fn_error $?
"bad value ${withval} given for filemon" "$LINENO" 5 ;;
2809 case "$use_filemon,$filemon_h" in
2810 ,*.h
) use_filemon
=dev
;;
2816 NetBSD
) filemon_h
=no use_filemon
=ktrace
;;
2818 for d
in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
2822 filemon_h
="$d$x/filemon.h"
2823 test -s "$filemon_h" && break
2825 test -s "$filemon_h" && { use_filemon
=dev
; break; }
2829 use_filemon
=${use_filemon:-no}
2830 case "$use_filemon" in
2839 case "$use_filemon" in
2841 *) echo "Using: filemon_${use_filemon}.c" >&6;;
2846 Minix
) CPPFLAGS
="${CPPFLAGS} -D_NETBSD_SOURCE"
2847 test -x /usr
/pkg
/bin
/clang
&& CC
=${CC:-clang}
2849 SCO_SV
) # /bin/sh is not usable
2850 ALT_DEF_SHELLS
="/bin/lsh /usr/bin/bash /bin/ksh"
2851 CPPFLAGS
="${CPPFLAGS} -DFORCE_USE_SHELL"
2854 echo $ECHO_N "checking whether system has timezone Europe/Berlin... $ECHO_C" >&6
2855 if test -f /usr
/share
/zoneinfo
/Europe
/Berlin
; then
2860 utcH
=`TZ=UTC date +%H 2> /dev/null`
2861 utc_1H
=`TZ=UTC-1 date +%H 2> /dev/null`
2862 if test ${utcH-0} -lt ${utc_1H-0}; then
2864 echo no
, using UTC-1
>&6
2870 for d
in /usr
/gnu
/bin
2872 test -d $d ||
continue
2886 ac_cpp
='$CPP $CPPFLAGS'
2887 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2890 if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 printf %s
"checking for $ac_word... " >&6; }
2895 if test ${ac_cv_prog_CC+y}
2897 printf %s
"(cached) " >&6
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC
="$CC" # Let the user override the test.
2902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2906 case $as_dir in #(((
2909 *) as_dir
=$as_dir/ ;;
2911 for ac_exec_ext
in '' $ac_executable_extensions; do
2912 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2924 if test -n "$CC"; then
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926 printf "%s\n" "$CC" >&6; }
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 printf "%s\n" "no" >&6; }
2934 if test -z "$ac_cv_prog_CC"; then
2936 # Extract the first word of "gcc", so it can be a program name with args.
2937 set dummy gcc
; ac_word
=$2
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 printf %s
"checking for $ac_word... " >&6; }
2940 if test ${ac_cv_prog_ac_ct_CC+y}
2942 printf %s
"(cached) " >&6
2944 if test -n "$ac_ct_CC"; then
2945 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2951 case $as_dir in #(((
2954 *) as_dir
=$as_dir/ ;;
2956 for ac_exec_ext
in '' $ac_executable_extensions; do
2957 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_ac_ct_CC
="gcc"
2959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2968 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2969 if test -n "$ac_ct_CC"; then
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2971 printf "%s\n" "$ac_ct_CC" >&6; }
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 printf "%s\n" "no" >&6; }
2977 if test "x$ac_ct_CC" = x
; then
2980 case $cross_compiling:$ac_tool_warned in
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984 ac_tool_warned
=yes ;;
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2995 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 printf %s
"checking for $ac_word... " >&6; }
2998 if test ${ac_cv_prog_CC+y}
3000 printf %s
"(cached) " >&6
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC
="$CC" # Let the user override the test.
3005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3009 case $as_dir in #(((
3012 *) as_dir
=$as_dir/ ;;
3014 for ac_exec_ext
in '' $ac_executable_extensions; do
3015 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3027 if test -n "$CC"; then
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 printf "%s\n" "$CC" >&6; }
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 printf "%s\n" "no" >&6; }
3038 if test -z "$CC"; then
3039 # Extract the first word of "cc", so it can be a program name with args.
3040 set dummy cc
; ac_word
=$2
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 printf %s
"checking for $ac_word... " >&6; }
3043 if test ${ac_cv_prog_CC+y}
3045 printf %s
"(cached) " >&6
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC
="$CC" # Let the user override the test.
3051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3055 case $as_dir in #(((
3058 *) as_dir
=$as_dir/ ;;
3060 for ac_exec_ext
in '' $ac_executable_extensions; do
3061 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3062 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3063 ac_prog_rejected
=yes
3067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3074 if test $ac_prog_rejected = yes; then
3075 # We found a bogon in the path, so make sure we never use it.
3076 set dummy
$ac_cv_prog_CC
3078 if test $# != 0; then
3079 # We chose a different compiler from the bogus one.
3080 # However, it has the same basename, so the bogon will be chosen
3081 # first if we set CC to just the basename; use the full file name.
3083 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3089 if test -n "$CC"; then
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 printf "%s\n" "$CC" >&6; }
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 printf "%s\n" "no" >&6; }
3099 if test -z "$CC"; then
3100 if test -n "$ac_tool_prefix"; then
3101 for ac_prog
in cl.exe
3103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 printf %s
"checking for $ac_word... " >&6; }
3107 if test ${ac_cv_prog_CC+y}
3109 printf %s
"(cached) " >&6
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC
="$CC" # Let the user override the test.
3114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3118 case $as_dir in #(((
3121 *) as_dir
=$as_dir/ ;;
3123 for ac_exec_ext
in '' $ac_executable_extensions; do
3124 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3136 if test -n "$CC"; then
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138 printf "%s\n" "$CC" >&6; }
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 printf "%s\n" "no" >&6; }
3145 test -n "$CC" && break
3148 if test -z "$CC"; then
3150 for ac_prog
in cl.exe
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy
$ac_prog; ac_word
=$2
3154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 printf %s
"checking for $ac_word... " >&6; }
3156 if test ${ac_cv_prog_ac_ct_CC+y}
3158 printf %s
"(cached) " >&6
3160 if test -n "$ac_ct_CC"; then
3161 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3167 case $as_dir in #(((
3170 *) as_dir
=$as_dir/ ;;
3172 for ac_exec_ext
in '' $ac_executable_extensions; do
3173 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_ac_ct_CC
="$ac_prog"
3175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3184 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3185 if test -n "$ac_ct_CC"; then
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3187 printf "%s\n" "$ac_ct_CC" >&6; }
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 printf "%s\n" "no" >&6; }
3194 test -n "$ac_ct_CC" && break
3197 if test "x$ac_ct_CC" = x
; then
3200 case $cross_compiling:$ac_tool_warned in
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned
=yes ;;
3211 if test -z "$CC"; then
3212 if test -n "$ac_tool_prefix"; then
3213 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3214 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 printf %s
"checking for $ac_word... " >&6; }
3217 if test ${ac_cv_prog_CC+y}
3219 printf %s
"(cached) " >&6
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC
="$CC" # Let the user override the test.
3224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3228 case $as_dir in #(((
3231 *) as_dir
=$as_dir/ ;;
3233 for ac_exec_ext
in '' $ac_executable_extensions; do
3234 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3246 if test -n "$CC"; then
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248 printf "%s\n" "$CC" >&6; }
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 printf "%s\n" "no" >&6; }
3256 if test -z "$ac_cv_prog_CC"; then
3258 # Extract the first word of "clang", so it can be a program name with args.
3259 set dummy clang
; ac_word
=$2
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 printf %s
"checking for $ac_word... " >&6; }
3262 if test ${ac_cv_prog_ac_ct_CC+y}
3264 printf %s
"(cached) " >&6
3266 if test -n "$ac_ct_CC"; then
3267 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3273 case $as_dir in #(((
3276 *) as_dir
=$as_dir/ ;;
3278 for ac_exec_ext
in '' $ac_executable_extensions; do
3279 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_ac_ct_CC
="clang"
3281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3290 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3291 if test -n "$ac_ct_CC"; then
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3293 printf "%s\n" "$ac_ct_CC" >&6; }
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 printf "%s\n" "no" >&6; }
3299 if test "x$ac_ct_CC" = x
; then
3302 case $cross_compiling:$ac_tool_warned in
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306 ac_tool_warned
=yes ;;
3317 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $?
"no acceptable C compiler found in \$PATH
3320 See \`config.log' for more details" "$LINENO" 5; }
3322 # Provide some information about the compiler.
3323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3326 for ac_option
in --version -v -V -qversion -version; do
3327 { { ac_try
="$ac_compiler $ac_option >&5"
3329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 printf "%s\n" "$ac_try_echo"; } >&5
3334 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3336 if test -s conftest.err; then
3338 ... rest of stderr output deleted ...
3339 10q' conftest.err >conftest.er1
3340 cat conftest.er1 >&5
3342 rm -f conftest.er1 conftest.err
3343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3358 ac_clean_files_save=$ac_clean_files
3359 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3360 # Try to create an executable without -o first, disregard a.out.
3361 # It will help us diagnose broken compilers, and finding out an intuition
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3364 printf %s "checking whether the C compiler works... " >&6; }
3365 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3367 # The possible output files:
3368 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3371 for ac_file in $ac_files
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3375 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3380 if { { ac_try="$ac_link_default"
3382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3383 *) ac_try_echo
=$ac_try;;
3385 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 printf "%s\n" "$ac_try_echo"; } >&5
3387 (eval "$ac_link_default") 2>&5
3389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3395 # so that the user can short-circuit this test for compilers unknown to
3397 for ac_file
in $ac_files ''
3399 test -f "$ac_file" ||
continue
3401 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3404 # We found the default executable, but exeext='' is most
3408 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
3410 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 # We set ac_cv_exeext here because the later test for it is not
3413 # safe: cross compilers may not add the suffix if given an `-o'
3414 # argument, so we may need to know it at that point already.
3415 # Even if this section looks crufty: it has the advantage of
3422 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3427 if test -z "$ac_file"
3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 printf "%s\n" "no" >&6; }
3431 printf "%s\n" "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.
$ac_ext >&5
3434 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error
77 "C compiler cannot create executables
3437 See \`config.log' for more details" "$LINENO" 5; }
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440 printf "%s\n" "yes" >&6; }
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3443 printf %s
"checking for C compiler default output file name... " >&6; }
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3445 printf "%s\n" "$ac_file" >&6; }
3446 ac_exeext
=$ac_cv_exeext
3448 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3449 ac_clean_files
=$ac_clean_files_save
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3451 printf %s
"checking for suffix of executables... " >&6; }
3452 if { { ac_try
="$ac_link"
3454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 printf "%s\n" "$ac_try_echo"; } >&5
3459 (eval "$ac_link") 2>&5
3461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }
3464 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3465 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3466 # work properly (i.e., refer to `conftest.exe'), while it won't with
3468 for ac_file
in conftest.exe conftest conftest.
*; do
3469 test -f "$ac_file" ||
continue
3471 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3472 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3481 See \`config.log' for more details" "$LINENO" 5; }
3483 rm -f conftest conftest
$ac_cv_exeext
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3485 printf "%s\n" "$ac_cv_exeext" >&6; }
3487 rm -f conftest.
$ac_ext
3488 EXEEXT
=$ac_cv_exeext
3490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3496 FILE *f = fopen ("conftest.out", "w");
3497 return ferror (f) || fclose (f) != 0;
3503 ac_clean_files
="$ac_clean_files conftest.out"
3504 # Check that the compiler produces executables we can run. If not, either
3505 # the compiler is broken, or we cross compile.
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3507 printf %s
"checking whether we are cross compiling... " >&6; }
3508 if test "$cross_compiling" != yes; then
3509 { { ac_try
="$ac_link"
3511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 printf "%s\n" "$ac_try_echo"; } >&5
3516 (eval "$ac_link") 2>&5
3518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }
3520 if { ac_try='./conftest$ac_cv_exeext'
3521 { { case "(($ac_try" in
3522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3523 *) ac_try_echo
=$ac_try;;
3525 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 printf "%s\n" "$ac_try_echo"; } >&5
3527 (eval "$ac_try") 2>&5
3529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }; }; then
3533 if test "$cross_compiling" = maybe
; then
3536 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3538 as_fn_error
77 "cannot run C compiled programs.
3539 If you meant to cross compile, use \`--host'.
3540 See \`config.log' for more details" "$LINENO" 5; }
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3545 printf "%s\n" "$cross_compiling" >&6; }
3547 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3548 ac_clean_files
=$ac_clean_files_save
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3550 printf %s
"checking for suffix of object files... " >&6; }
3551 if test ${ac_cv_objext+y}
3553 printf %s
"(cached) " >&6
3555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3566 rm -f conftest.o conftest.obj
3567 if { { ac_try
="$ac_compile"
3569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 printf "%s\n" "$ac_try_echo"; } >&5
3574 (eval "$ac_compile") 2>&5
3576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }
3579 for ac_file in conftest.o conftest.obj conftest.*; do
3580 test -f "$ac_file" || continue;
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3583 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3588 printf "%s\n" "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3594 See \
`config.log' for more details" "$LINENO" 5; }
3596 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3599 printf "%s\n" "$ac_cv_objext" >&6; }
3600 OBJEXT=$ac_cv_objext
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3603 printf %s "checking whether the compiler supports GNU C... " >&6; }
3604 if test ${ac_cv_c_compiler_gnu+y}
3606 printf %s "(cached) " >&6
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3622 if ac_fn_c_try_compile "$LINENO"
3628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3629 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3633 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 if test $ac_compiler_gnu = yes; then
3641 ac_test_CFLAGS=${CFLAGS+y}
3642 ac_save_CFLAGS=$CFLAGS
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3644 printf %s "checking whether $CC accepts -g... " >&6; }
3645 if test ${ac_cv_prog_cc_g+y}
3647 printf %s "(cached) " >&6
3649 ac_save_c_werror_flag=$ac_c_werror_flag
3650 ac_c_werror_flag=yes
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3664 if ac_fn_c_try_compile "$LINENO"
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3680 if ac_fn_c_try_compile "$LINENO"
3684 ac_c_werror_flag=$ac_save_c_werror_flag
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3697 if ac_fn_c_try_compile "$LINENO"
3701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3706 ac_c_werror_flag=$ac_save_c_werror_flag
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3709 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3710 if test $ac_test_CFLAGS; then
3711 CFLAGS=$ac_save_CFLAGS
3712 elif test $ac_cv_prog_cc_g = yes; then
3713 if test "$GCC" = yes; then
3719 if test "$GCC" = yes; then
3726 if test x$ac_prog_cc_stdc = xno
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3729 printf %s "checking for $CC option to enable C11 features... " >&6; }
3730 if test ${ac_cv_prog_cc_c11+y}
3732 printf %s "(cached) " >&6
3734 ac_cv_prog_cc_c11=no
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738 $ac_c_conftest_c11_program
3740 for ac_arg in '' -std=gnu11
3742 CC="$ac_save_CC $ac_arg"
3743 if ac_fn_c_try_compile "$LINENO"
3745 ac_cv_prog_cc_c11=$ac_arg
3747 rm -f core conftest.err conftest.$ac_objext conftest.beam
3748 test "x$ac_cv_prog_cc_c11" != "xno" && break
3750 rm -f conftest.$ac_ext
3754 if test "x$ac_cv_prog_cc_c11" = xno
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3757 printf "%s\n" "unsupported" >&6; }
3759 if test "x$ac_cv_prog_cc_c11" = x
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3762 printf "%s\n" "none needed" >&6; }
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3765 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3766 CC="$CC $ac_cv_prog_cc_c11"
3768 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3772 if test x$ac_prog_cc_stdc = xno
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3775 printf %s "checking for $CC option to enable C99 features... " >&6; }
3776 if test ${ac_cv_prog_cc_c99+y}
3778 printf %s "(cached) " >&6
3780 ac_cv_prog_cc_c99=no
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784 $ac_c_conftest_c99_program
3786 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3788 CC="$ac_save_CC $ac_arg"
3789 if ac_fn_c_try_compile "$LINENO"
3791 ac_cv_prog_cc_c99=$ac_arg
3793 rm -f core conftest.err conftest.$ac_objext conftest.beam
3794 test "x$ac_cv_prog_cc_c99" != "xno" && break
3796 rm -f conftest.$ac_ext
3800 if test "x$ac_cv_prog_cc_c99" = xno
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3803 printf "%s\n" "unsupported" >&6; }
3805 if test "x$ac_cv_prog_cc_c99" = x
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3808 printf "%s\n" "none needed" >&6; }
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3811 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3812 CC="$CC $ac_cv_prog_cc_c99"
3814 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3818 if test x$ac_prog_cc_stdc = xno
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3821 printf %s "checking for $CC option to enable C89 features... " >&6; }
3822 if test ${ac_cv_prog_cc_c89+y}
3824 printf %s "(cached) " >&6
3826 ac_cv_prog_cc_c89=no
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3830 $ac_c_conftest_c89_program
3832 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3834 CC="$ac_save_CC $ac_arg"
3835 if ac_fn_c_try_compile "$LINENO"
3837 ac_cv_prog_cc_c89=$ac_arg
3839 rm -f core conftest.err conftest.$ac_objext conftest.beam
3840 test "x$ac_cv_prog_cc_c89" != "xno" && break
3842 rm -f conftest.$ac_ext
3846 if test "x$ac_cv_prog_cc_c89" = xno
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3849 printf "%s\n" "unsupported" >&6; }
3851 if test "x$ac_cv_prog_cc_c89" = x
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3854 printf "%s\n" "none needed" >&6; }
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3857 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3858 CC="$CC $ac_cv_prog_cc_c89"
3860 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872 ac_header= ac_cache=
3873 for ac_item in $ac_header_c_list
3875 if test $ac_cache; then
3876 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3877 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3878 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3880 ac_header= ac_cache=
3881 elif test $ac_header; then
3895 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3898 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3908 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3909 if test ${ac_cv_safe_to_define___extensions__+y}
3911 printf %s "(cached) " >&6
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3916 # define __EXTENSIONS__ 1
3917 $ac_includes_default
3926 if ac_fn_c_try_compile "$LINENO"
3928 ac_cv_safe_to_define___extensions__=yes
3930 ac_cv_safe_to_define___extensions__=no
3932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3935 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3938 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3939 if test ${ac_cv_should_define__xopen_source+y}
3941 printf %s "(cached) " >&6
3943 ac_cv_should_define__xopen_source=no
3944 if test $ac_cv_header_wchar_h = yes
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3959 if ac_fn_c_try_compile "$LINENO"
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3966 #define _XOPEN_SOURCE 500
3977 if ac_fn_c_try_compile "$LINENO"
3979 ac_cv_should_define__xopen_source=yes
3981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3987 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3989 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3991 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3993 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3995 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3997 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3999 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4001 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4003 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4005 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4007 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4009 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4011 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4013 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4015 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4017 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4019 if test $ac_cv_header_minix_config_h = yes
4022 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4024 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4026 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4031 if test $ac_cv_safe_to_define___extensions__ = yes
4033 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4036 if test $ac_cv_should_define__xopen_source = yes
4038 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047 if test -n "$ac_tool_prefix"; then
4048 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4049 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 printf %s "checking for $ac_word... " >&6; }
4052 if test ${ac_cv_prog_CC+y}
4054 printf %s "(cached) " >&6
4056 if test -n "$CC"; then
4057 ac_cv_prog_CC="$CC" # Let the user override the test.
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 case $as_dir in #(((
4066 *) as_dir=$as_dir/ ;;
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4081 if test -n "$CC"; then
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083 printf "%s\n" "$CC" >&6; }
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 printf "%s\n" "no" >&6; }
4091 if test -z "$ac_cv_prog_CC"; then
4093 # Extract the first word of "gcc", so it can be a program name with args.
4094 set dummy gcc; ac_word=$2
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 printf %s "checking for $ac_word... " >&6; }
4097 if test ${ac_cv_prog_ac_ct_CC+y}
4099 printf %s "(cached) " >&6
4101 if test -n "$ac_ct_CC"; then
4102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 case $as_dir in #(((
4111 *) as_dir=$as_dir/ ;;
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_ac_ct_CC="gcc"
4116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4126 if test -n "$ac_ct_CC"; then
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4128 printf "%s\n" "$ac_ct_CC" >&6; }
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 printf "%s\n" "no" >&6; }
4134 if test "x$ac_ct_CC" = x; then
4137 case $cross_compiling:$ac_tool_warned in
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4140 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4141 ac_tool_warned=yes ;;
4149 if test -z "$CC"; then
4150 if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4152 set dummy ${ac_tool_prefix}cc; ac_word=$2
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 printf %s "checking for $ac_word... " >&6; }
4155 if test ${ac_cv_prog_CC+y}
4157 printf %s "(cached) " >&6
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 case $as_dir in #(((
4169 *) as_dir=$as_dir/ ;;
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_CC="${ac_tool_prefix}cc"
4174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4184 if test -n "$CC"; then
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 printf "%s\n" "$CC" >&6; }
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 printf "%s\n" "no" >&6; }
4195 if test -z "$CC"; then
4196 # Extract the first word of "cc", so it can be a program name with args.
4197 set dummy cc; ac_word=$2
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 printf %s "checking for $ac_word... " >&6; }
4200 if test ${ac_cv_prog_CC+y}
4202 printf %s "(cached) " >&6
4204 if test -n "$CC"; then
4205 ac_cv_prog_CC="$CC" # Let the user override the test.
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 case $as_dir in #(((
4215 *) as_dir=$as_dir/ ;;
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4219 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4220 ac_prog_rejected=yes
4224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4231 if test $ac_prog_rejected = yes; then
4232 # We found a bogon in the path, so make sure we never use it.
4233 set dummy $ac_cv_prog_CC
4235 if test $# != 0; then
4236 # We chose a different compiler from the bogus one.
4237 # However, it has the same basename, so the bogon will be chosen
4238 # first if we set CC to just the basename; use the full file name.
4240 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4246 if test -n "$CC"; then
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248 printf "%s\n" "$CC" >&6; }
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 printf "%s\n" "no" >&6; }
4256 if test -z "$CC"; then
4257 if test -n "$ac_tool_prefix"; then
4258 for ac_prog in cl.exe
4260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 printf %s "checking for $ac_word... " >&6; }
4264 if test ${ac_cv_prog_CC+y}
4266 printf %s "(cached) " >&6
4268 if test -n "$CC"; then
4269 ac_cv_prog_CC="$CC" # Let the user override the test.
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 case $as_dir in #(((
4278 *) as_dir=$as_dir/ ;;
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4293 if test -n "$CC"; then
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4295 printf "%s\n" "$CC" >&6; }
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 printf "%s\n" "no" >&6; }
4302 test -n "$CC" && break
4305 if test -z "$CC"; then
4307 for ac_prog in cl.exe
4309 # Extract the first word of "$ac_prog", so it can be a program name with args.
4310 set dummy $ac_prog; ac_word=$2
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 printf %s "checking for $ac_word... " >&6; }
4313 if test ${ac_cv_prog_ac_ct_CC+y}
4315 printf %s "(cached) " >&6
4317 if test -n "$ac_ct_CC"; then
4318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 case $as_dir in #(((
4327 *) as_dir=$as_dir/ ;;
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_ac_ct_CC="$ac_prog"
4332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4342 if test -n "$ac_ct_CC"; then
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4344 printf "%s\n" "$ac_ct_CC" >&6; }
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 printf "%s\n" "no" >&6; }
4351 test -n "$ac_ct_CC" && break
4354 if test "x$ac_ct_CC" = x; then
4357 case $cross_compiling:$ac_tool_warned in
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned=yes ;;
4368 if test -z "$CC"; then
4369 if test -n "$ac_tool_prefix"; then
4370 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4371 set dummy ${ac_tool_prefix}clang; ac_word=$2
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 printf %s "checking for $ac_word... " >&6; }
4374 if test ${ac_cv_prog_CC+y}
4376 printf %s "(cached) " >&6
4378 if test -n "$CC"; then
4379 ac_cv_prog_CC="$CC" # Let the user override the test.
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 case $as_dir in #(((
4388 *) as_dir=$as_dir/ ;;
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4392 ac_cv_prog_CC="${ac_tool_prefix}clang"
4393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4403 if test -n "$CC"; then
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4405 printf "%s\n" "$CC" >&6; }
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 printf "%s\n" "no" >&6; }
4413 if test -z "$ac_cv_prog_CC"; then
4415 # Extract the first word of "clang", so it can be a program name with args.
4416 set dummy clang; ac_word=$2
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 printf %s "checking for $ac_word... " >&6; }
4419 if test ${ac_cv_prog_ac_ct_CC+y}
4421 printf %s "(cached) " >&6
4423 if test -n "$ac_ct_CC"; then
4424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 case $as_dir in #(((
4433 *) as_dir=$as_dir/ ;;
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_ac_ct_CC="clang"
4438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4448 if test -n "$ac_ct_CC"; then
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4450 printf "%s\n" "$ac_ct_CC" >&6; }
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 printf "%s\n" "no" >&6; }
4456 if test "x$ac_ct_CC" = x; then
4459 case $cross_compiling:$ac_tool_warned in
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463 ac_tool_warned=yes ;;
4474 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error $? "no acceptable C compiler found
in \
$PATH
4477 See \
`config.log' for more details" "$LINENO" 5; }
4479 # Provide some information about the compiler.
4480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4483 for ac_option in --version -v -V -qversion -version; do
4484 { { ac_try="$ac_compiler $ac_option >&5"
4486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4487 *) ac_try_echo
=$ac_try;;
4489 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490 printf "%s\n" "$ac_try_echo"; } >&5
4491 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4493 if test -s conftest.err
; then
4495 ... rest of stderr output deleted ...
4496 10q' conftest.err
>conftest.er1
4497 cat conftest.er1
>&5
4499 rm -f conftest.er1 conftest.err
4500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4501 test $ac_status = 0; }
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4505 printf %s
"checking whether the compiler supports GNU C... " >&6; }
4506 if test ${ac_cv_c_compiler_gnu+y}
4508 printf %s
"(cached) " >&6
4510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4524 if ac_fn_c_try_compile
"$LINENO"
4530 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4531 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4535 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4536 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4538 if test $ac_compiler_gnu = yes; then
4543 ac_test_CFLAGS
=${CFLAGS+y}
4544 ac_save_CFLAGS
=$CFLAGS
4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4546 printf %s
"checking whether $CC accepts -g... " >&6; }
4547 if test ${ac_cv_prog_cc_g+y}
4549 printf %s
"(cached) " >&6
4551 ac_save_c_werror_flag
=$ac_c_werror_flag
4552 ac_c_werror_flag
=yes
4555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4566 if ac_fn_c_try_compile
"$LINENO"
4571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4582 if ac_fn_c_try_compile
"$LINENO"
4586 ac_c_werror_flag
=$ac_save_c_werror_flag
4588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4599 if ac_fn_c_try_compile
"$LINENO"
4603 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4605 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4607 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4608 ac_c_werror_flag
=$ac_save_c_werror_flag
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4611 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4612 if test $ac_test_CFLAGS; then
4613 CFLAGS
=$ac_save_CFLAGS
4614 elif test $ac_cv_prog_cc_g = yes; then
4615 if test "$GCC" = yes; then
4621 if test "$GCC" = yes; then
4628 if test x
$ac_prog_cc_stdc = xno
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4631 printf %s
"checking for $CC option to enable C11 features... " >&6; }
4632 if test ${ac_cv_prog_cc_c11+y}
4634 printf %s
"(cached) " >&6
4636 ac_cv_prog_cc_c11
=no
4638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 $ac_c_conftest_c11_program
4642 for ac_arg
in '' -std=gnu11
4644 CC
="$ac_save_CC $ac_arg"
4645 if ac_fn_c_try_compile
"$LINENO"
4647 ac_cv_prog_cc_c11
=$ac_arg
4649 rm -f core conftest.err conftest.
$ac_objext conftest.beam
4650 test "x$ac_cv_prog_cc_c11" != "xno" && break
4652 rm -f conftest.
$ac_ext
4656 if test "x$ac_cv_prog_cc_c11" = xno
4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4659 printf "%s\n" "unsupported" >&6; }
4661 if test "x$ac_cv_prog_cc_c11" = x
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4664 printf "%s\n" "none needed" >&6; }
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4667 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4668 CC
="$CC $ac_cv_prog_cc_c11"
4670 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c11
4674 if test x
$ac_prog_cc_stdc = xno
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4677 printf %s
"checking for $CC option to enable C99 features... " >&6; }
4678 if test ${ac_cv_prog_cc_c99+y}
4680 printf %s
"(cached) " >&6
4682 ac_cv_prog_cc_c99
=no
4684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 $ac_c_conftest_c99_program
4688 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -qlanglvl=extc1x
-qlanglvl=extc99
-AC99 -D_STDC_C99=
4690 CC
="$ac_save_CC $ac_arg"
4691 if ac_fn_c_try_compile
"$LINENO"
4693 ac_cv_prog_cc_c99
=$ac_arg
4695 rm -f core conftest.err conftest.
$ac_objext conftest.beam
4696 test "x$ac_cv_prog_cc_c99" != "xno" && break
4698 rm -f conftest.
$ac_ext
4702 if test "x$ac_cv_prog_cc_c99" = xno
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4705 printf "%s\n" "unsupported" >&6; }
4707 if test "x$ac_cv_prog_cc_c99" = x
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4710 printf "%s\n" "none needed" >&6; }
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4713 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4714 CC
="$CC $ac_cv_prog_cc_c99"
4716 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
4720 if test x
$ac_prog_cc_stdc = xno
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4723 printf %s
"checking for $CC option to enable C89 features... " >&6; }
4724 if test ${ac_cv_prog_cc_c89+y}
4726 printf %s
"(cached) " >&6
4728 ac_cv_prog_cc_c89
=no
4730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4732 $ac_c_conftest_c89_program
4734 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4736 CC
="$ac_save_CC $ac_arg"
4737 if ac_fn_c_try_compile
"$LINENO"
4739 ac_cv_prog_cc_c89
=$ac_arg
4741 rm -f core conftest.err conftest.
$ac_objext conftest.beam
4742 test "x$ac_cv_prog_cc_c89" != "xno" && break
4744 rm -f conftest.
$ac_ext
4748 if test "x$ac_cv_prog_cc_c89" = xno
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4751 printf "%s\n" "unsupported" >&6; }
4753 if test "x$ac_cv_prog_cc_c89" = x
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4756 printf "%s\n" "none needed" >&6; }
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4759 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4760 CC
="$CC $ac_cv_prog_cc_c89"
4762 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
4768 ac_cpp
='$CPP $CPPFLAGS'
4769 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4770 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4771 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4775 # Find a good install program. We prefer a C program (faster),
4776 # so one script is as good as another. But avoid the broken or
4777 # incompatible versions:
4778 # SysV /etc/install, /usr/sbin/install
4779 # SunOS /usr/etc/install
4780 # IRIX /sbin/install
4782 # AmigaOS /C/install, which installs bootblocks on floppy discs
4783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4786 # OS/2's system install, which has a completely different semantic
4787 # ./install, which can be erroneously created by make from ./install.sh.
4788 # Reject install programs that cannot install multiple files.
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4790 printf %s
"checking for a BSD-compatible install... " >&6; }
4791 if test -z "$INSTALL"; then
4792 if test ${ac_cv_path_install+y}
4794 printf %s
"(cached) " >&6
4796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4800 case $as_dir in #(((
4803 *) as_dir
=$as_dir/ ;;
4805 # Account for fact that we put trailing slashes in our PATH walk.
4808 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4809 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4812 # OSF1 and SCO ODT 3.0 have their own names for install.
4813 # Don't use installbsd from OSF since it installs stuff as root
4815 for ac_prog
in ginstall scoinst
install; do
4816 for ac_exec_ext
in '' $ac_executable_extensions; do
4817 if as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext"; then
4818 if test $ac_prog = install &&
4819 grep dspmsg
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4820 # AIX install. It has an incompatible calling convention.
4822 elif test $ac_prog = install &&
4823 grep pwplus
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4824 # program-specific install script used by HP pwplus--don't use.
4827 rm -rf conftest.one conftest.two conftest.dir
4828 echo one
> conftest.one
4829 echo two
> conftest.two
4831 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir/" &&
4832 test -s conftest.one
&& test -s conftest.two
&&
4833 test -s conftest.dir
/conftest.one
&&
4834 test -s conftest.dir
/conftest.two
4836 ac_cv_path_install
="$as_dir$ac_prog$ac_exec_ext -c"
4849 rm -rf conftest.one conftest.two conftest.dir
4852 if test ${ac_cv_path_install+y}; then
4853 INSTALL
=$ac_cv_path_install
4855 # As a last resort, use the slow shell script. Don't cache a
4856 # value for INSTALL within a source directory, because that will
4857 # break other packages using the cache if that directory is
4858 # removed, or if the value is a relative name.
4859 INSTALL
=$ac_install_sh
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4863 printf "%s\n" "$INSTALL" >&6; }
4865 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4866 # It thinks the first close brace ends the variable substitution.
4867 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4869 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4871 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4873 if test -x /usr
/bin
/getconf
; then
4874 bmake_path_max
=`getconf PATH_MAX / 2> /dev/null`
4875 # only a numeric response is useful
4876 test ${bmake_path_max:-0} -gt 0 2> /dev
/null || bmake_path_max
=
4878 bmake_path_max
=${bmake_path_max:-1024}
4879 if test $bmake_path_max -gt 1024; then
4880 # this is all we expect
4883 echo "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6
4884 if (type cat) > /dev
/null
2>&1; then
4887 type "$@" |
sed 's,[()],,g;s,^[^/][^/]*,,;q'
4898 if test -x ${_cc:-/dev/null}; then
4899 _cc_dir
=`dirname $_cc`
4900 case ":$oldPATH:" in
4902 *) CC
=$_cc_dir/$CC;;
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4908 printf %s
"checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4909 if test ${ac_cv_header_sys_wait_h+y}
4911 printf %s
"(cached) " >&6
4913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 #include <sys/types.h>
4916 #include <sys/wait.h>
4918 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4921 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4929 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4934 if ac_fn_c_try_compile
"$LINENO"
4936 ac_cv_header_sys_wait_h
=yes
4938 ac_cv_header_sys_wait_h
=no
4940 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4943 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
4944 if test $ac_cv_header_sys_wait_h = yes; then
4946 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4951 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4952 as_ac_Header
=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4954 printf %s
"checking for $ac_hdr that defines DIR... " >&6; }
4955 if eval test \
${$as_ac_Header+y}
4957 printf %s
"(cached) " >&6
4959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961 #include <sys/types.h>
4973 if ac_fn_c_try_compile
"$LINENO"
4975 eval "$as_ac_Header=yes"
4977 eval "$as_ac_Header=no"
4979 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4981 eval ac_res
=\$
$as_ac_Header
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4983 printf "%s\n" "$ac_res" >&6; }
4984 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"
4986 cat >>confdefs.h
<<_ACEOF
4987 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
4990 ac_header_dirent
=$ac_hdr; break
4994 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4995 if test $ac_header_dirent = dirent.h
; then
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4997 printf %s
"checking for library containing opendir... " >&6; }
4998 if test ${ac_cv_search_opendir+y}
5000 printf %s
"(cached) " >&6
5002 ac_func_search_save_LIBS
=$LIBS
5003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5006 /* Override any GCC internal prototype to avoid an error.
5007 Use char because int might match the return type of a GCC
5008 builtin and then its argument prototype would still apply. */
5018 for ac_lib
in '' dir
5020 if test -z "$ac_lib"; then
5021 ac_res
="none required"
5024 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5026 if ac_fn_c_try_link
"$LINENO"
5028 ac_cv_search_opendir
=$ac_res
5030 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
5032 if test ${ac_cv_search_opendir+y}
5037 if test ${ac_cv_search_opendir+y}
5041 ac_cv_search_opendir
=no
5044 LIBS
=$ac_func_search_save_LIBS
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5047 printf "%s\n" "$ac_cv_search_opendir" >&6; }
5048 ac_res
=$ac_cv_search_opendir
5049 if test "$ac_res" != no
5051 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5057 printf %s
"checking for library containing opendir... " >&6; }
5058 if test ${ac_cv_search_opendir+y}
5060 printf %s
"(cached) " >&6
5062 ac_func_search_save_LIBS
=$LIBS
5063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5066 /* Override any GCC internal prototype to avoid an error.
5067 Use char because int might match the return type of a GCC
5068 builtin and then its argument prototype would still apply. */
5080 if test -z "$ac_lib"; then
5081 ac_res
="none required"
5084 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5086 if ac_fn_c_try_link
"$LINENO"
5088 ac_cv_search_opendir
=$ac_res
5090 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
5092 if test ${ac_cv_search_opendir+y}
5097 if test ${ac_cv_search_opendir+y}
5101 ac_cv_search_opendir
=no
5104 LIBS
=$ac_func_search_save_LIBS
5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5107 printf "%s\n" "$ac_cv_search_opendir" >&6; }
5108 ac_res
=$ac_cv_search_opendir
5109 if test "$ac_res" != no
5111 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5117 ac_fn_c_check_header_compile
"$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5118 if test "x$ac_cv_header_sys_param_h" = xyes
5120 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5124 ac_fn_c_check_header_compile
"$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#ifdef HAVE_SYS_PARAM_H
5125 # include <sys/param.h>
5129 if test "x$ac_cv_header_sys_sysctl_h" = xyes
5131 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
5136 ac_fn_c_check_header_compile
"$LINENO" "ar.h" "ac_cv_header_ar_h" "$ac_includes_default"
5137 if test "x$ac_cv_header_ar_h" = xyes
5139 printf "%s\n" "#define HAVE_AR_H 1" >>confdefs.h
5142 ac_fn_c_check_header_compile
"$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
5143 if test "x$ac_cv_header_err_h" = xyes
5145 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
5148 ac_fn_c_check_header_compile
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
5149 if test "x$ac_cv_header_fcntl_h" = xyes
5151 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
5154 ac_fn_c_check_header_compile
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
5155 if test "x$ac_cv_header_libgen_h" = xyes
5157 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
5160 ac_fn_c_check_header_compile
"$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5161 if test "x$ac_cv_header_limits_h" = xyes
5163 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
5166 ac_fn_c_check_header_compile
"$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
5167 if test "x$ac_cv_header_paths_h" = xyes
5169 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
5172 ac_fn_c_check_header_compile
"$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
5173 if test "x$ac_cv_header_poll_h" = xyes
5175 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
5178 ac_fn_c_check_header_compile
"$LINENO" "ranlib.h" "ac_cv_header_ranlib_h" "$ac_includes_default"
5179 if test "x$ac_cv_header_ranlib_h" = xyes
5181 printf "%s\n" "#define HAVE_RANLIB_H 1" >>confdefs.h
5184 ac_fn_c_check_header_compile
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
5185 if test "x$ac_cv_header_sys_mman_h" = xyes
5187 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
5190 ac_fn_c_check_header_compile
"$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5191 if test "x$ac_cv_header_sys_select_h" = xyes
5193 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
5196 ac_fn_c_check_header_compile
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
5197 if test "x$ac_cv_header_sys_socket_h" = xyes
5199 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
5202 ac_fn_c_check_header_compile
"$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5203 if test "x$ac_cv_header_sys_time_h" = xyes
5205 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
5208 ac_fn_c_check_header_compile
"$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
5209 if test "x$ac_cv_header_sys_uio_h" = xyes
5211 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
5214 ac_fn_c_check_header_compile
"$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
5215 if test "x$ac_cv_header_utime_h" = xyes
5217 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
5222 ac_fn_c_check_header_compile
"$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
5223 if test "x$ac_cv_header_sys_cdefs_h" = xyes
5227 CPPFLAGS
="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`"
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
5233 printf %s
"checking for __attribute__... " >&6; }
5234 if test ${ac_cv___attribute__+y}
5236 printf %s
"(cached) " >&6
5239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5244 static void foo(void) __attribute__ ((noreturn));
5253 main(int argc, char **argv)
5259 if ac_fn_c_try_link
"$LINENO"
5261 ac_cv___attribute__
=yes
5263 ac_cv___attribute__
=no
5265 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
5266 conftest
$ac_exeext conftest.
$ac_ext
5269 if test "$ac_cv___attribute__" = "yes"; then
5271 printf "%s\n" "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
5275 printf "%s\n" "$ac_cv___attribute__" >&6; }
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5278 printf %s
"checking whether byte ordering is bigendian... " >&6; }
5279 if test ${ac_cv_c_bigendian+y}
5281 printf %s
"(cached) " >&6
5283 ac_cv_c_bigendian
=unknown
5284 # See if we're dealing with a universal compiler.
5285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #ifndef __APPLE_CC__
5288 not a universal capable compiler
5293 if ac_fn_c_try_compile
"$LINENO"
5296 # Check for potential -arch flags. It is not universal unless
5297 # there are at least two -arch flags with different values.
5300 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5301 if test -n "$ac_prev"; then
5303 i?
86 | x86_64 | ppc | ppc64
)
5304 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
5307 ac_cv_c_bigendian
=universal
5313 elif test "x$ac_word" = "x-arch"; then
5318 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5319 if test $ac_cv_c_bigendian = unknown
; then
5320 # See if sys/param.h defines the BYTE_ORDER macro.
5321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #include <sys/types.h>
5324 #include <sys/param.h>
5329 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5330 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5339 if ac_fn_c_try_compile
"$LINENO"
5341 # It does; now see whether it defined to BIG_ENDIAN or not.
5342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <sys/types.h>
5345 #include <sys/param.h>
5350 #if BYTE_ORDER != BIG_ENDIAN
5358 if ac_fn_c_try_compile
"$LINENO"
5360 ac_cv_c_bigendian
=yes
5362 ac_cv_c_bigendian
=no
5364 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5366 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5368 if test $ac_cv_c_bigendian = unknown
; then
5369 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5377 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5385 if ac_fn_c_try_compile
"$LINENO"
5387 # It does; now see whether it defined to _BIG_ENDIAN or not.
5388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5403 if ac_fn_c_try_compile
"$LINENO"
5405 ac_cv_c_bigendian
=yes
5407 ac_cv_c_bigendian
=no
5409 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5411 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5413 if test $ac_cv_c_bigendian = unknown
; then
5414 # Compile a test program.
5415 if test "$cross_compiling" = yes
5417 # Try to guess by grepping values from an object file.
5418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 unsigned short int ascii_mm[] =
5421 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5422 unsigned short int ascii_ii[] =
5423 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5424 int use_ascii (int i) {
5425 return ascii_mm[i] + ascii_ii[i];
5427 unsigned short int ebcdic_ii[] =
5428 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5429 unsigned short int ebcdic_mm[] =
5430 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5431 int use_ebcdic (int i) {
5432 return ebcdic_mm[i] + ebcdic_ii[i];
5439 return use_ascii (foo) == use_ebcdic (foo);
5444 if ac_fn_c_try_compile
"$LINENO"
5446 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5447 ac_cv_c_bigendian
=yes
5449 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5450 if test "$ac_cv_c_bigendian" = unknown
; then
5451 ac_cv_c_bigendian
=no
5453 # finding both strings is unlikely to happen, but who knows?
5454 ac_cv_c_bigendian
=unknown
5458 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 $ac_includes_default
5467 /* Are we little or big endian? From Harbison&Steele. */
5471 char c[sizeof (long int)];
5474 return u.c[sizeof (long int) - 1] == 1;
5480 if ac_fn_c_try_run
"$LINENO"
5482 ac_cv_c_bigendian
=no
5484 ac_cv_c_bigendian
=yes
5486 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5487 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5493 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5494 case $ac_cv_c_bigendian in #(
5496 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5502 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5506 as_fn_error $?
"unknown endianness
5507 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5511 printf %s
"checking for an ANSI C-conforming const... " >&6; }
5512 if test ${ac_cv_c_const+y}
5514 printf %s
"(cached) " >&6
5516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5524 /* Ultrix mips cc rejects this sort of thing. */
5525 typedef int charset[2];
5526 const charset cs = { 0, 0 };
5527 /* SunOS 4.1.1 cc rejects this. */
5528 char const *const *pcpcc;
5530 /* NEC SVR4.0.2 mips cc rejects this. */
5531 struct point {int x, y;};
5532 static struct point const zero = {0,0};
5533 /* IBM XL C 1.02.0.0 rejects this.
5534 It does not let you subtract one const X* pointer from another in
5535 an arm of an if-expression whose if-part is not a constant
5537 const char *g = "string";
5538 pcpcc = &g + (g ? g-g : 0);
5539 /* HPUX 7.0 cc rejects these. */
5541 ppc = (char**) pcpcc;
5542 pcpcc = (char const *const *) ppc;
5543 { /* SCO 3.2v4 cc rejects this sort of thing. */
5546 char const *s = 0 ? (char *) 0 : (char const *) 0;
5551 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5553 const int *foo = &x[0];
5556 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5557 typedef const int *iptr;
5561 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5562 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5563 struct s { int j; const int *ap[3]; } bx;
5564 struct s *b = &bx; b->j = 5;
5566 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5570 return !cs[0] && !zero.x;
5577 if ac_fn_c_try_compile
"$LINENO"
5583 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5586 printf "%s\n" "$ac_cv_c_const" >&6; }
5587 if test $ac_cv_c_const = no
; then
5589 printf "%s\n" "#define const /**/" >>confdefs.h
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5594 printf %s
"checking for inline... " >&6; }
5595 if test ${ac_cv_c_inline+y}
5597 printf %s
"(cached) " >&6
5600 for ac_kw
in inline __inline__ __inline
; do
5601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5605 static $ac_kw foo_t static_foo (void) {return 0; }
5606 $ac_kw foo_t foo (void) {return 0; }
5610 if ac_fn_c_try_compile
"$LINENO"
5612 ac_cv_c_inline
=$ac_kw
5614 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5615 test "$ac_cv_c_inline" != no
&& break
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5620 printf "%s\n" "$ac_cv_c_inline" >&6; }
5622 case $ac_cv_c_inline in
5625 case $ac_cv_c_inline in
5627 *) ac_val
=$ac_cv_c_inline;;
5629 cat >>confdefs.h
<<_ACEOF
5631 #define inline $ac_val
5637 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5638 case $ac_cv_c_int64_t in #(
5642 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5648 printf %s
"checking for unsigned long long int... " >&6; }
5649 if test ${ac_cv_type_unsigned_long_long_int+y}
5651 printf %s
"(cached) " >&6
5653 ac_cv_type_unsigned_long_long_int
=yes
5654 case $ac_prog_cc_stdc in
5657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5660 /* For now, do not test the preprocessor; as of 2007 there are too many
5661 implementations with broken preprocessors. Perhaps this can
5662 be revisited in 2012. In the meantime, code should not expect
5663 #if to work with literals wider than 32 bits. */
5664 /* Test literals. */
5665 long long int ll = 9223372036854775807ll;
5666 long long int nll = -9223372036854775807LL;
5667 unsigned long long int ull = 18446744073709551615ULL;
5668 /* Test constant expressions. */
5669 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5671 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5677 /* Test availability of runtime routines for shift and division. */
5678 long long int llmax = 9223372036854775807ll;
5679 unsigned long long int ullmax = 18446744073709551615ull;
5680 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5681 | (llmax / ll) | (llmax % ll)
5682 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5683 | (ullmax / ull) | (ullmax % ull));
5689 if ac_fn_c_try_link
"$LINENO"
5693 ac_cv_type_unsigned_long_long_int
=no
5695 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
5696 conftest
$ac_exeext conftest.
$ac_ext;;
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5700 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
5701 if test $ac_cv_type_unsigned_long_long_int = yes; then
5703 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5710 printf %s
"checking for long long int... " >&6; }
5711 if test ${ac_cv_type_long_long_int+y}
5713 printf %s
"(cached) " >&6
5715 ac_cv_type_long_long_int
=yes
5716 case $ac_prog_cc_stdc in
5719 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
5720 if test $ac_cv_type_long_long_int = yes; then
5721 if test "$cross_compiling" = yes
5725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5730 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5731 # define LLONG_MAX (HALF - 1 + HALF)
5736 long long int n = 1;
5740 long long int m = n << i;
5743 if (LLONG_MAX / 2 < m)
5751 if ac_fn_c_try_run
"$LINENO"
5755 ac_cv_type_long_long_int
=no
5757 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5758 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5765 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
5766 if test $ac_cv_type_long_long_int = yes; then
5768 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5772 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5773 if test "x$ac_cv_type_mode_t" = xyes
5778 printf "%s\n" "#define mode_t int" >>confdefs.h
5782 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5783 if test "x$ac_cv_type_off_t" = xyes
5788 printf "%s\n" "#define off_t long int" >>confdefs.h
5793 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
5795 if test "x$ac_cv_type_pid_t" = xyes
5799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5802 #if defined _WIN64 && !defined __CYGWIN__
5815 if ac_fn_c_try_compile
"$LINENO"
5819 ac_pid_type
='__int64'
5821 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5823 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
5829 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5830 if test "x$ac_cv_type_size_t" = xyes
5835 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5839 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5840 case $ac_cv_c_uint32_t in #(
5844 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
5847 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5852 printf %s
"checking for $CC options needed to detect all undeclared functions... " >&6; }
5853 if test ${ac_cv_c_undeclared_builtin_options+y}
5855 printf %s
"(cached) " >&6
5857 ac_save_CFLAGS
=$CFLAGS
5858 ac_cv_c_undeclared_builtin_options
='cannot detect'
5859 for ac_arg
in '' -fno-builtin; do
5860 CFLAGS
="$ac_save_CFLAGS $ac_arg"
5861 # This test program should *not* compile successfully.
5862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5873 if ac_fn_c_try_compile
"$LINENO"
5877 # This test program should compile successfully.
5878 # No library function is consistently available on
5879 # freestanding implementations, so test against a dummy
5880 # declaration. Include always-available headers on the
5881 # off chance that they somehow elicit warnings.
5882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5888 extern void ac_decl (int, char *);
5893 (void) ac_decl (0, (char *) 0);
5900 if ac_fn_c_try_compile
"$LINENO"
5902 if test x
"$ac_arg" = x
5904 ac_cv_c_undeclared_builtin_options
='none needed'
5906 ac_cv_c_undeclared_builtin_options
=$ac_arg
5910 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5912 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5914 CFLAGS
=$ac_save_CFLAGS
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5918 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5919 case $ac_cv_c_undeclared_builtin_options in #(
5921 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5922 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5923 as_fn_error $?
"cannot make $CC report undeclared builtins
5924 See \`config.log' for more details" "$LINENO" 5; } ;; #(
5926 ac_c_undeclared_builtin_options
='' ;; #(
5928 ac_c_undeclared_builtin_options
=$ac_cv_c_undeclared_builtin_options ;;
5931 ac_fn_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
5932 /* NetBSD declares sys_siglist in unistd.h. */
5933 #ifdef HAVE_UNISTD_H
5934 # include <unistd.h>
5937 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5938 if test "x$ac_cv_have_decl_sys_siglist" = xyes
5944 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5951 printf %s
"checking whether struct tm is in sys/time.h or time.h... " >&6; }
5952 if test ${ac_cv_struct_tm+y}
5954 printf %s
"(cached) " >&6
5956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5958 #include <sys/types.h>
5965 int *p = &tm.tm_sec;
5971 if ac_fn_c_try_compile
"$LINENO"
5973 ac_cv_struct_tm
=time.h
5975 ac_cv_struct_tm
=sys
/time.h
5977 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5980 printf "%s\n" "$ac_cv_struct_tm" >&6; }
5981 if test $ac_cv_struct_tm = sys
/time.h
; then
5983 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
5989 ac_fn_c_check_type
"$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
5990 #ifdef HAVE_SYS_TYPES_H
5991 #include <sys/types.h>
5996 if test "x$ac_cv_type_sig_atomic_t" = xyes
5999 printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
6007 for ac_item
in $ac_func_c_list
6009 if test $ac_func; then
6010 ac_fn_c_check_func
"$LINENO" $ac_func ac_cv_func_
$ac_func
6011 if eval test \"x\
$ac_cv_func_$ac_func\" = xyes
; then
6012 echo "#define $ac_item 1" >> confdefs.h
6022 if test "x$ac_cv_func_fork" = xyes
; then
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6024 printf %s
"checking for working fork... " >&6; }
6025 if test ${ac_cv_func_fork_works+y}
6027 printf %s
"(cached) " >&6
6029 if test "$cross_compiling" = yes
6031 ac_cv_func_fork_works
=cross
6033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 $ac_includes_default
6040 /* By Ruediger Kuhlmann. */
6047 if ac_fn_c_try_run
"$LINENO"
6049 ac_cv_func_fork_works
=yes
6051 ac_cv_func_fork_works
=no
6053 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6054 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6059 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
6062 ac_cv_func_fork_works
=$ac_cv_func_fork
6064 if test "x$ac_cv_func_fork_works" = xcross
; then
6066 *-*-amigaos* |
*-*-msdosdjgpp*)
6067 # Override, as these systems have only a dummy fork() stub
6068 ac_cv_func_fork_works
=no
6071 ac_cv_func_fork_works
=yes
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6075 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6077 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6078 if test "x$ac_cv_func_vfork" = xyes
; then
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6080 printf %s
"checking for working vfork... " >&6; }
6081 if test ${ac_cv_func_vfork_works+y}
6083 printf %s
"(cached) " >&6
6085 if test "$cross_compiling" = yes
6087 ac_cv_func_vfork_works
=cross
6089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 /* Thanks to Paul Eggert for this test. */
6092 $ac_includes_default
6094 #include <sys/wait.h>
6100 do_nothing (int sig)
6105 /* On some sparc systems, changes by the child to local and incoming
6106 argument registers are propagated back to the parent. The compiler
6107 is told about this with #include <vfork.h>, but some compilers
6108 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6109 static variable whose address is put into a register that is
6110 clobbered by the vfork. */
6112 sparc_address_test (int arg)
6132 pid_t parent = getpid ();
6135 sparc_address_test (0);
6137 /* On Solaris 2.4, changes by the child to the signal handler
6138 also munge signal handlers in the parent. To detect this,
6139 start by putting the parent's handler in a known state. */
6140 signal (SIGTERM, SIG_DFL);
6145 /* Here is another test for sparc vfork register problems. This
6146 test uses lots of local variables, at least as many local
6147 variables as main has allocated so far including compiler
6148 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6149 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6150 reuse the register of parent for one of the local variables,
6151 since it will think that parent can't possibly be used any more
6152 in this routine. Assigning to the local variable will thus
6153 munge parent in the parent process. */
6155 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6156 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6157 /* Convince the compiler that p..p7 are live; otherwise, it might
6158 use the same hardware register for all 8 local variables. */
6159 if (p != p1 || p != p2 || p != p3 || p != p4
6160 || p != p5 || p != p6 || p != p7)
6163 /* Alter the child's signal handler. */
6164 if (signal (SIGTERM, do_nothing) != SIG_DFL)
6167 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6168 from child file descriptors. If the child closes a descriptor
6169 before it execs or exits, this munges the parent's descriptor
6170 as well. Test for this by closing stdout in the child. */
6171 _exit(close(fileno(stdout)) != 0);
6176 while (wait(&status) != child)
6179 /* Was there some problem with vforking? */
6182 /* Did the child munge the parent's signal handler? */
6183 || signal (SIGTERM, SIG_DFL) != SIG_DFL
6185 /* Did the child fail? (This shouldn't happen.) */
6188 /* Did the vfork/compiler bug occur? */
6189 || parent != getpid()
6191 /* Did the file descriptor bug occur? */
6192 || fstat(fileno(stdout), &st) != 0
6197 if ac_fn_c_try_run
"$LINENO"
6199 ac_cv_func_vfork_works
=yes
6201 ac_cv_func_vfork_works
=no
6203 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6204 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6209 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
6212 if test "x$ac_cv_func_fork_works" = xcross
; then
6213 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6215 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6218 if test "x$ac_cv_func_vfork_works" = xyes
; then
6220 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6224 printf "%s\n" "#define vfork fork" >>confdefs.h
6227 if test "x$ac_cv_func_fork_works" = xyes
; then
6229 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
6235 if test "x$ac_cv_func_vprintf" = xno
6237 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
6238 if test "x$ac_cv_func__doprnt" = xyes
6241 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
6247 printf %s
"checking for wait3 that fills in rusage... " >&6; }
6248 if test ${ac_cv_func_wait3_rusage+y}
6250 printf %s
"(cached) " >&6
6252 if test "$cross_compiling" = yes
6254 ac_cv_func_wait3_rusage
=no
6256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258 $ac_includes_default
6259 #include <sys/time.h>
6260 #include <sys/resource.h>
6261 #include <sys/wait.h>
6262 /* HP-UX has wait3 but does not fill in rusage at all. */
6268 /* Use a field that we can force nonzero --
6269 voluntary context switches.
6270 For systems like NeXT and OSF/1 that don't set it,
6271 also use the system CPU time. And page faults (I/O) for Linux. */
6273 r.ru_stime.tv_sec = 0;
6274 r.ru_stime.tv_usec = 0;
6275 r.ru_majflt = r.ru_minflt = 0;
6278 case 0: /* Child. */
6279 sleep(1); /* Give up the CPU. */
6282 case -1: /* What can we do? */
6285 default: /* Parent. */
6287 /* Avoid "text file busy" from rm on fast HP-UX machines. */
6289 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
6290 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
6294 if ac_fn_c_try_run
"$LINENO"
6296 ac_cv_func_wait3_rusage
=yes
6298 ac_cv_func_wait3_rusage
=no
6300 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6301 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
6306 printf "%s\n" "$ac_cv_func_wait3_rusage" >&6; }
6307 if test $ac_cv_func_wait3_rusage = yes; then
6309 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
6313 ac_fn_c_check_func
"$LINENO" "err" "ac_cv_func_err"
6314 if test "x$ac_cv_func_err" = xyes
6316 printf "%s\n" "#define HAVE_ERR 1" >>confdefs.h
6319 ac_fn_c_check_func
"$LINENO" "errx" "ac_cv_func_errx"
6320 if test "x$ac_cv_func_errx" = xyes
6322 printf "%s\n" "#define HAVE_ERRX 1" >>confdefs.h
6325 ac_fn_c_check_func
"$LINENO" "getcwd" "ac_cv_func_getcwd"
6326 if test "x$ac_cv_func_getcwd" = xyes
6328 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
6331 ac_fn_c_check_func
"$LINENO" "getenv" "ac_cv_func_getenv"
6332 if test "x$ac_cv_func_getenv" = xyes
6334 printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
6337 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
6338 if test "x$ac_cv_func_getwd" = xyes
6340 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
6343 ac_fn_c_check_func
"$LINENO" "killpg" "ac_cv_func_killpg"
6344 if test "x$ac_cv_func_killpg" = xyes
6346 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
6349 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
6350 if test "x$ac_cv_func_mmap" = xyes
6352 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
6355 ac_fn_c_check_func
"$LINENO" "putenv" "ac_cv_func_putenv"
6356 if test "x$ac_cv_func_putenv" = xyes
6358 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
6361 ac_fn_c_check_func
"$LINENO" "select" "ac_cv_func_select"
6362 if test "x$ac_cv_func_select" = xyes
6364 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
6367 ac_fn_c_check_func
"$LINENO" "setenv" "ac_cv_func_setenv"
6368 if test "x$ac_cv_func_setenv" = xyes
6370 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
6373 ac_fn_c_check_func
"$LINENO" "setpgid" "ac_cv_func_setpgid"
6374 if test "x$ac_cv_func_setpgid" = xyes
6376 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
6379 ac_fn_c_check_func
"$LINENO" "setrlimit" "ac_cv_func_setrlimit"
6380 if test "x$ac_cv_func_setrlimit" = xyes
6382 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
6385 ac_fn_c_check_func
"$LINENO" "setsid" "ac_cv_func_setsid"
6386 if test "x$ac_cv_func_setsid" = xyes
6388 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
6391 ac_fn_c_check_func
"$LINENO" "sigaddset" "ac_cv_func_sigaddset"
6392 if test "x$ac_cv_func_sigaddset" = xyes
6394 printf "%s\n" "#define HAVE_SIGADDSET 1" >>confdefs.h
6397 ac_fn_c_check_func
"$LINENO" "sigpending" "ac_cv_func_sigpending"
6398 if test "x$ac_cv_func_sigpending" = xyes
6400 printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h
6403 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
6404 if test "x$ac_cv_func_sigprocmask" = xyes
6406 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
6409 ac_fn_c_check_func
"$LINENO" "sigsetmask" "ac_cv_func_sigsetmask"
6410 if test "x$ac_cv_func_sigsetmask" = xyes
6412 printf "%s\n" "#define HAVE_SIGSETMASK 1" >>confdefs.h
6415 ac_fn_c_check_func
"$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
6416 if test "x$ac_cv_func_sigsuspend" = xyes
6418 printf "%s\n" "#define HAVE_SIGSUSPEND 1" >>confdefs.h
6421 ac_fn_c_check_func
"$LINENO" "sigvec" "ac_cv_func_sigvec"
6422 if test "x$ac_cv_func_sigvec" = xyes
6424 printf "%s\n" "#define HAVE_SIGVEC 1" >>confdefs.h
6427 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
6428 if test "x$ac_cv_func_snprintf" = xyes
6430 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
6433 ac_fn_c_check_func
"$LINENO" "strerror" "ac_cv_func_strerror"
6434 if test "x$ac_cv_func_strerror" = xyes
6436 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
6439 ac_fn_c_check_func
"$LINENO" "stresep" "ac_cv_func_stresep"
6440 if test "x$ac_cv_func_stresep" = xyes
6442 printf "%s\n" "#define HAVE_STRESEP 1" >>confdefs.h
6445 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
6446 if test "x$ac_cv_func_strftime" = xyes
6448 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
6451 ac_fn_c_check_func
"$LINENO" "strsep" "ac_cv_func_strsep"
6452 if test "x$ac_cv_func_strsep" = xyes
6454 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
6457 ac_fn_c_check_func
"$LINENO" "strtod" "ac_cv_func_strtod"
6458 if test "x$ac_cv_func_strtod" = xyes
6460 printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
6463 ac_fn_c_check_func
"$LINENO" "strtol" "ac_cv_func_strtol"
6464 if test "x$ac_cv_func_strtol" = xyes
6466 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
6469 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
6470 if test "x$ac_cv_func_strtoll" = xyes
6472 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
6475 ac_fn_c_check_func
"$LINENO" "strtoul" "ac_cv_func_strtoul"
6476 if test "x$ac_cv_func_strtoul" = xyes
6478 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
6481 ac_fn_c_check_func
"$LINENO" "sysctl" "ac_cv_func_sysctl"
6482 if test "x$ac_cv_func_sysctl" = xyes
6484 printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h
6487 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6488 if test "x$ac_cv_func_unsetenv" = xyes
6490 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
6493 ac_fn_c_check_func
"$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6494 if test "x$ac_cv_func_vsnprintf" = xyes
6496 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
6499 ac_fn_c_check_func
"$LINENO" "wait3" "ac_cv_func_wait3"
6500 if test "x$ac_cv_func_wait3" = xyes
6502 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
6505 ac_fn_c_check_func
"$LINENO" "wait4" "ac_cv_func_wait4"
6506 if test "x$ac_cv_func_wait4" = xyes
6508 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
6511 ac_fn_c_check_func
"$LINENO" "waitpid" "ac_cv_func_waitpid"
6512 if test "x$ac_cv_func_waitpid" = xyes
6514 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
6517 ac_fn_c_check_func
"$LINENO" "warn" "ac_cv_func_warn"
6518 if test "x$ac_cv_func_warn" = xyes
6520 printf "%s\n" "#define HAVE_WARN 1" >>confdefs.h
6523 ac_fn_c_check_func
"$LINENO" "warnx" "ac_cv_func_warnx"
6524 if test "x$ac_cv_func_warnx" = xyes
6526 printf "%s\n" "#define HAVE_WARNX 1" >>confdefs.h
6531 ac_fn_c_check_func
"$LINENO" "getopt" "ac_cv_func_getopt"
6532 if test "x$ac_cv_func_getopt" = xyes
6534 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
6537 case " $LIBOBJS " in
6538 *" getopt.$ac_objext "* ) ;;
6539 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
6544 ac_fn_c_check_func
"$LINENO" "realpath" "ac_cv_func_realpath"
6545 if test "x$ac_cv_func_realpath" = xyes
6547 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
6550 case " $LIBOBJS " in
6551 *" realpath.$ac_objext "* ) ;;
6552 *) LIBOBJS
="$LIBOBJS realpath.$ac_objext"
6557 ac_fn_c_check_func
"$LINENO" "dirname" "ac_cv_func_dirname"
6558 if test "x$ac_cv_func_dirname" = xyes
6560 printf "%s\n" "#define HAVE_DIRNAME 1" >>confdefs.h
6563 case " $LIBOBJS " in
6564 *" dirname.$ac_objext "* ) ;;
6565 *) LIBOBJS
="$LIBOBJS dirname.$ac_objext"
6570 ac_fn_c_check_func
"$LINENO" "sigaction" "ac_cv_func_sigaction"
6571 if test "x$ac_cv_func_sigaction" = xyes
6573 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
6576 case " $LIBOBJS " in
6577 *" sigaction.$ac_objext "* ) ;;
6578 *) LIBOBJS
="$LIBOBJS sigaction.$ac_objext"
6583 ac_fn_c_check_func
"$LINENO" "stresep" "ac_cv_func_stresep"
6584 if test "x$ac_cv_func_stresep" = xyes
6586 printf "%s\n" "#define HAVE_STRESEP 1" >>confdefs.h
6589 case " $LIBOBJS " in
6590 *" stresep.$ac_objext "* ) ;;
6591 *) LIBOBJS
="$LIBOBJS stresep.$ac_objext"
6596 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6597 if test "x$ac_cv_func_strlcpy" = xyes
6599 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
6602 case " $LIBOBJS " in
6603 *" strlcpy.$ac_objext "* ) ;;
6604 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
6612 printf %s
"checking for emalloc in -lutil... " >&6; }
6613 if test ${ac_cv_lib_util_emalloc+y}
6615 printf %s
"(cached) " >&6
6617 ac_check_lib_save_LIBS
=$LIBS
6619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6622 /* Override any GCC internal prototype to avoid an error.
6623 Use char because int might match the return type of a GCC
6624 builtin and then its argument prototype would still apply. */
6634 if ac_fn_c_try_link
"$LINENO"
6636 ac_cv_lib_util_emalloc
=yes
6638 ac_cv_lib_util_emalloc
=no
6640 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
6641 conftest
$ac_exeext conftest.
$ac_ext
6642 LIBS
=$ac_check_lib_save_LIBS
6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
6645 printf "%s\n" "$ac_cv_lib_util_emalloc" >&6; }
6646 if test "x$ac_cv_lib_util_emalloc" = xyes
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
6649 printf %s
"checking for erealloc in -lutil... " >&6; }
6650 if test ${ac_cv_lib_util_erealloc+y}
6652 printf %s
"(cached) " >&6
6654 ac_check_lib_save_LIBS
=$LIBS
6656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6659 /* Override any GCC internal prototype to avoid an error.
6660 Use char because int might match the return type of a GCC
6661 builtin and then its argument prototype would still apply. */
6671 if ac_fn_c_try_link
"$LINENO"
6673 ac_cv_lib_util_erealloc
=yes
6675 ac_cv_lib_util_erealloc
=no
6677 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
6678 conftest
$ac_exeext conftest.
$ac_ext
6679 LIBS
=$ac_check_lib_save_LIBS
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
6682 printf "%s\n" "$ac_cv_lib_util_erealloc" >&6; }
6683 if test "x$ac_cv_lib_util_erealloc" = xyes
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
6686 printf %s
"checking for estrdup in -lutil... " >&6; }
6687 if test ${ac_cv_lib_util_estrdup+y}
6689 printf %s
"(cached) " >&6
6691 ac_check_lib_save_LIBS
=$LIBS
6693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6696 /* Override any GCC internal prototype to avoid an error.
6697 Use char because int might match the return type of a GCC
6698 builtin and then its argument prototype would still apply. */
6708 if ac_fn_c_try_link
"$LINENO"
6710 ac_cv_lib_util_estrdup
=yes
6712 ac_cv_lib_util_estrdup
=no
6714 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
6715 conftest
$ac_exeext conftest.
$ac_ext
6716 LIBS
=$ac_check_lib_save_LIBS
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
6719 printf "%s\n" "$ac_cv_lib_util_estrdup" >&6; }
6720 if test "x$ac_cv_lib_util_estrdup" = xyes
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
6723 printf %s
"checking for estrndup in -lutil... " >&6; }
6724 if test ${ac_cv_lib_util_estrndup+y}
6726 printf %s
"(cached) " >&6
6728 ac_check_lib_save_LIBS
=$LIBS
6730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6733 /* Override any GCC internal prototype to avoid an error.
6734 Use char because int might match the return type of a GCC
6735 builtin and then its argument prototype would still apply. */
6745 if ac_fn_c_try_link
"$LINENO"
6747 ac_cv_lib_util_estrndup
=yes
6749 ac_cv_lib_util_estrndup
=no
6751 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
6752 conftest
$ac_exeext conftest.
$ac_ext
6753 LIBS
=$ac_check_lib_save_LIBS
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
6756 printf "%s\n" "$ac_cv_lib_util_estrndup" >&6; }
6757 if test "x$ac_cv_lib_util_estrndup" = xyes
6760 CPPFLAGS
="$CPPFLAGS -DUSE_EMALLOC"
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6771 printf %s
"checking whether stat file-mode macros are broken... " >&6; }
6772 if test ${ac_cv_header_stat_broken+y}
6774 printf %s
"(cached) " >&6
6776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 #include <sys/types.h>
6779 #include <sys/stat.h>
6781 #if defined S_ISBLK && defined S_IFDIR
6782 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6785 #if defined S_ISBLK && defined S_IFCHR
6786 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6789 #if defined S_ISLNK && defined S_IFREG
6790 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6793 #if defined S_ISSOCK && defined S_IFREG
6794 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6798 if ac_fn_c_try_compile
"$LINENO"
6800 ac_cv_header_stat_broken
=no
6802 ac_cv_header_stat_broken
=yes
6804 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6807 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
6808 if test $ac_cv_header_stat_broken = yes; then
6810 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6814 echo "checking if compiler supports __func__" >&6
6816 ac_cpp
='$CPP $CPPFLAGS'
6817 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6827 const char *func = __func__;
6832 if ac_fn_c_try_compile
"$LINENO"
6837 printf "%s\n" "#define __func__ __FUNCTION__" >>confdefs.h
6840 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6841 if test -x /usr
/gnu
/bin
/diff; then
6842 diff=/usr
/gnu
/bin
/diff
6846 echo $ECHO_N "checking if $diff -u works... $ECHO_C" >&6
6847 if $diff -u /dev
/null
/dev
/null
> /dev
/null
2>&1; then
6855 echo "checking for MACHINE & MACHINE_ARCH..." >&6
6856 cat > conftest.
$ac_ext <<EOF
6857 #include "confdefs.h"
6858 #include <sys/param.h>
6863 machine_arch=MACHINE_ARCH
6867 default_machine
=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6868 grep machine= | tr -d ' "'`
6870 if test "$default_machine"; then
6871 eval "$default_machine"
6873 machine
=${machine:-`$srcdir/machine.sh`}
6874 machine_arch
=${machine_arch:-`$srcdir/machine.sh arch`}
6875 echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
6877 # Check whether --with-machine was given.
6878 if test ${with_machine+y}
6880 withval
=$with_machine; case "${withval}" in
6881 yes) as_fn_error $?
"bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
6883 generic
) machine
=`$srcdir/machine.sh`;;
6884 *) machine
=$with_machine;;
6890 # Check whether --with-force_machine was given.
6891 if test ${with_force_machine+y}
6893 withval
=$with_force_machine; case "${withval}" in
6894 yes) force_machine
=FORCE_
;;
6896 *) force_machine
=FORCE_
; machine
=$with_force_machine;;
6902 # Check whether --with-force_machine_arch was given.
6903 if test ${with_force_machine_arch+y}
6905 withval
=$with_force_machine_arch; case "${withval}" in
6906 yes) force_machine_arch
=FORCE_
;;
6908 *) force_machine_arch
=FORCE_
; machine_arch
=$with_force_machine_arch;;
6913 # Check whether --with-machine_arch was given.
6914 if test ${with_machine_arch+y}
6916 withval
=$with_machine_arch; case "${withval}" in
6917 yes) as_fn_error $?
"bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
6919 *) machine_arch
=$with_machine_arch;;
6923 echo "Using: ${force_machine}MACHINE=$machine, ${force_machine_arch}MACHINE_ARCH=$machine_arch" 1>&6
6924 default_sys_path
=\
${prefix}/share
/mk
6926 # Check whether --with-default-sys-path was given.
6927 if test ${with_default_sys_path+y}
6929 withval
=$with_default_sys_path; case "${withval}" in
6930 yes) as_fn_error $?
"bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
6932 *) default_sys_path
="$with_default_sys_path"
6938 # Check whether --with-path-objdirprefix was given.
6939 if test ${with_path_objdirprefix+y}
6941 withval
=$with_path_objdirprefix; case "${withval}" in
6942 yes) as_fn_error $?
"bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
6943 no
) CPPFLAGS
="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
6944 *) CPPFLAGS
="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
6948 # Check whether --enable-pwd-override was given.
6949 if test ${enable_pwd_override+y}
6951 enableval
=$enable_pwd_override; case "${enableval}" in
6953 no
) CPPFLAGS
="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
6954 *) as_fn_error $?
"bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
6958 # Check whether --enable-check-make-chdir was given.
6959 if test ${enable_check_make_chdir+y}
6961 enableval
=$enable_check_make_chdir; case "${enableval}" in
6963 no
) CPPFLAGS
="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
6964 *) as_fn_error $?
"bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
6969 # Check whether --with-mksrc was given.
6970 if test ${with_mksrc+y}
6972 withval
=$with_mksrc; case "${withval}" in
6974 *) test -s $withval/install-mk
&& mksrc
=$withval ||
6975 as_fn_error $?
"bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
6981 srcdir
=`cd $srcdir && pwd`
6982 for mksrc
in $mksrc $srcdir/mk
$srcdir/..
/mk mk
6984 test -s $mksrc/install-mk ||
continue
6985 mksrc
=`cd $mksrc && pwd`
6988 mksrc
=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
6989 echo "Using: MKSRC=$mksrc" 1>&6
6990 for sh
in /usr
/xpg
4/bin
/sh
$ALT_DEF_SHELLS
6992 test -x $sh ||
continue
6996 case "$defshell_path$DEFSHELL_INDEX" in
6998 *DEFSHELL_INDEX_CUSTOM
)
6999 echo "Using: SHELL=$defshell_path" >&6
7001 printf "%s\n" "#define DEFSHELL_CUSTOM \"$defshell_path\"" >>confdefs.h
7005 echo "Using: SHELL=$DEFSHELL_INDEX ($defshell_path)" |
sed 's,DEFSHELL_INDEX_,,' >&6
7007 printf "%s\n" "#define DEFSHELL_INDEX $DEFSHELL_INDEX" >>confdefs.h
7010 printf "%s\n" "#define DEFSHELL_PATH \"$defshell_path\"" >>confdefs.h
7014 echo "Using: SHELL=$DEFSHELL_INDEX" |
sed 's,DEFSHELL_INDEX_,,' >&6
7016 printf "%s\n" "#define DEFSHELL_INDEX $DEFSHELL_INDEX" >>confdefs.h
7020 case "`echo bmake | egrep 'a|b' 2>&1`" in
7021 bmake
) egrep=egrep;;
7022 *) egrep='grep -E';;
7040 bm_outfiles
="Makefile.config unit-tests/Makefile.config make-bootstrap.sh"
7041 if test $use_makefile = yes; then
7042 bm_outfiles
="makefile $bm_outfiles"
7049 $srcdir/obj
*) # make sure we put unit-tests/Makefile.config in the right place
7050 obj
=`basename $here`
7051 mkdir
-p $srcdir/unit-tests
/$obj
7052 test -d unit-tests ||
ln -s ..
/unit-tests
/$obj unit-tests
7056 ac_config_files
="$ac_config_files $bm_outfiles"
7058 cat >confcache
<<\_ACEOF
7059 # This file is a shell script that caches the results of configure
7060 # tests run on this system so they can be shared between configure
7061 # scripts and configure runs, see configure's option --config-cache.
7062 # It is not useful on other systems. If it contains results you don't
7063 # want to keep, you may remove or edit it.
7065 # config.status only pays attention to the cache file if you give it
7066 # the --recheck option to rerun configure.
7068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7074 # The following way of writing the cache mishandles newlines in values,
7075 # but we know of no workaround that is simple, portable, and efficient.
7076 # So, we kill variables containing newlines.
7077 # Ultrix sh set writes to stderr and can't be redirected directly,
7078 # and sets the high bit in the cache file unless we assign to the vars.
7080 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7081 eval ac_val
=\$
$ac_var
7085 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7086 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7089 _ | IFS | as_nl
) ;; #(
7090 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7091 *) { eval $ac_var=; unset $ac_var;} ;;
7097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7098 *${as_nl}ac_space
=\
*)
7099 # `set' does not quote correctly, so add quotes: double-quote
7100 # substitution turns \\\\ into \\, and sed turns \\ into \.
7103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7106 # `set' quotes correctly as required by POSIX, so do not add quotes.
7107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7116 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7120 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7121 if test -w "$cache_file"; then
7122 if test "x$cache_file" != "x/dev/null"; then
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7124 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7125 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7126 cat confcache
>"$cache_file"
7128 case $cache_file in #(
7130 mv -f confcache
"$cache_file"$$
&&
7131 mv -f "$cache_file"$$
"$cache_file" ;; #(
7133 mv -f confcache
"$cache_file" ;;
7138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7139 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7144 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7145 # Let make expand exec_prefix.
7146 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7148 DEFS
=-DHAVE_CONFIG_H
7153 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7154 # 1. Remove the extension, and $U if already installed.
7155 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7156 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7157 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7158 # will be set to the directory where LIBOBJS objects are built.
7159 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7160 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7164 LTLIBOBJS
=$ac_ltlibobjs
7169 : "${CONFIG_STATUS=./config.status}"
7171 ac_clean_files_save
=$ac_clean_files
7172 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7174 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7176 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7178 # Generated by $as_me.
7179 # Run this file to recreate the current configuration.
7180 # Compiler output produced by configure, useful for debugging
7181 # configure, is in config.log if it exists.
7187 SHELL=\${CONFIG_SHELL-$SHELL}
7190 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7191 ## -------------------- ##
7192 ## M4sh Initialization. ##
7193 ## -------------------- ##
7195 # Be more Bourne compatible
7196 DUALCASE
=1; export DUALCASE
# for MKS sh
7198 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
7202 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7203 # is contrary to our usage. Disable this feature.
7204 alias -g '${1+"$@"}'='"$@"'
7205 setopt NO_GLOB_SUBST
7207 case `(set -o) 2>/dev/null` in #(
7217 # Reset variables that may have inherited troublesome values from
7220 # IFS needs to be set, to space, tab, and newline, in precisely that order.
7221 # (If _AS_PATH_WALK were called with IFS unset, it would have the
7222 # side effect of setting IFS to empty, thus disabling word splitting.)
7223 # Quoting is to prevent editors from complaining about space-tab.
7233 # Ensure predictable behavior from utilities with locale-dependent output.
7239 # We cannot yet rely on "unset" to work, but we need these variables
7240 # to be unset--not just set to an empty or harmless value--now, to
7241 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7242 # also avoids known problems related to "unset" and subshell syntax
7243 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7244 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
7245 do eval test \
${$as_var+y} \
7246 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7249 # Ensure that fds 0, 1, and 2 are open.
7250 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
7251 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
7252 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
7254 # The user is always right.
7255 if ${PATH_SEPARATOR+false} :; then
7257 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
7258 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
7264 # Find who we are. Look in the path if we contain no directory separator.
7267 *[\\/]* ) as_myself
=$0 ;;
7268 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7272 case $as_dir in #(((
7275 *) as_dir
=$as_dir/ ;;
7277 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
7283 # We did not find ourselves, most probably we were run as `sh COMMAND'
7284 # in which case we are not to be found in the path.
7285 if test "x$as_myself" = x
; then
7288 if test ! -f "$as_myself"; then
7289 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7295 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7296 # ----------------------------------------
7297 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7298 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7299 # script with STATUS, using 1 if that was 0.
7302 as_status
=$1; test $as_status -eq 0 && as_status
=1
7304 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7307 printf "%s\n" "$as_me: error: $2" >&2
7308 as_fn_exit
$as_status
7313 # as_fn_set_status STATUS
7314 # -----------------------
7315 # Set $? to STATUS, without forking.
7319 } # as_fn_set_status
7323 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7333 # Portably unset VAR.
7336 { eval $1=; unset $1;}
7338 as_unset
=as_fn_unset
7340 # as_fn_append VAR VALUE
7341 # ----------------------
7342 # Append the text in VALUE to the end of the definition contained in VAR. Take
7343 # advantage of any shell optimizations that allow amortized linear growth over
7344 # repeated appends, instead of the typical quadratic growth present in naive
7346 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
7348 eval 'as_fn_append ()
7359 # as_fn_arith ARG...
7360 # ------------------
7361 # Perform arithmetic evaluation on the ARGs, and store the result in the
7362 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7363 # must be portable across $(()) and expr.
7364 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
7366 eval 'as_fn_arith ()
7373 as_val
=`expr "$@" || test $? -eq 1`
7378 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7379 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7385 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7386 as_basename
=basename
7391 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7397 as_me
=`$as_basename -- "$0" ||
7398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7399 X"$0" : 'X\(//\)$' \| \
7400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7401 printf "%s\n" X/"$0" |
7402 sed '/^.*\/\([^/][^/]*\)\/*$/{
7416 # Avoid depending upon Character Ranges.
7417 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7418 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7419 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7420 as_cr_digits
='0123456789'
7421 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7424 # Determine whether it's possible to make 'echo' print without a newline.
7425 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7426 # for compatibility with existing Makefiles.
7427 ECHO_C
= ECHO_N
= ECHO_T
=
7428 case `echo -n x` in #(((((
7430 case `echo 'xy\c'` in
7431 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7433 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7440 # For backward compatibility with old third-party macros, we provide
7441 # the shell variables $as_echo and $as_echo_n. New code should use
7442 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7443 as_echo
='printf %s\n'
7444 as_echo_n
='printf %s'
7446 rm -f conf$$ conf$$.exe conf$$.
file
7447 if test -d conf$$.dir
; then
7448 rm -f conf$$.dir
/conf$$.
file
7451 mkdir conf$$.dir
2>/dev
/null
7453 if (echo >conf$$.
file) 2>/dev
/null
; then
7454 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7456 # ... but there are two gotchas:
7457 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7458 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7459 # In both cases, we have to default to `cp -pR'.
7460 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7462 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7470 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7471 rmdir conf$$.dir
2>/dev
/null
7476 # Create "$as_dir" as a directory, including parents if necessary.
7481 -*) as_dir
=.
/$as_dir;;
7483 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7487 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7488 *) as_qdir
=$as_dir;;
7490 as_dirs
="'$as_qdir' $as_dirs"
7491 as_dir
=`$as_dirname -- "$as_dir" ||
7492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7493 X"$as_dir" : 'X\(//\)[^/]' \| \
7494 X"$as_dir" : 'X\(//\)$' \| \
7495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7496 printf "%s\n" X"$as_dir" |
7497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7514 test -d "$as_dir" && break
7516 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7517 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7521 if mkdir
-p .
2>/dev
/null
; then
7522 as_mkdir_p
='mkdir -p "$as_dir"'
7524 test -d .
/-p && rmdir .
/-p
7529 # as_fn_executable_p FILE
7530 # -----------------------
7531 # Test if FILE is an executable regular file.
7532 as_fn_executable_p
()
7534 test -f "$1" && test -x "$1"
7535 } # as_fn_executable_p
7537 as_executable_p
=as_fn_executable_p
7539 # Sed expression to map a string onto a valid CPP name.
7540 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7542 # Sed expression to map a string onto a valid variable name.
7543 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7547 ## ----------------------------------- ##
7548 ## Main body of $CONFIG_STATUS script. ##
7549 ## ----------------------------------- ##
7551 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7554 # Save the log message, to keep $0 and so on meaningful, and to
7555 # report actual input values of CONFIG_FILES etc. instead of their
7556 # values after options handling.
7558 This file was extended by bmake $as_me 20220909, which was
7559 generated by GNU Autoconf 2.71. Invocation command line was
7561 CONFIG_FILES = $CONFIG_FILES
7562 CONFIG_HEADERS = $CONFIG_HEADERS
7563 CONFIG_LINKS = $CONFIG_LINKS
7564 CONFIG_COMMANDS = $CONFIG_COMMANDS
7567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7572 case $ac_config_files in *"
7573 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7576 case $ac_config_headers in *"
7577 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7582 # Files that config.status was made for.
7583 config_files="$ac_config_files"
7584 config_headers="$ac_config_headers"
7588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7590 \`$as_me' instantiates files and other configuration actions
7591 from templates according to the current configuration. Unless the files
7592 and actions are specified as TAGs, all are instantiated by default.
7594 Usage: $0 [OPTION]... [TAG]...
7596 -h, --help print this help, then exit
7597 -V, --version print version number and configuration settings, then exit
7598 --config print configuration, then exit
7599 -q, --quiet, --silent
7600 do not print progress messages
7601 -d, --debug don't remove temporary files
7602 --recheck update $as_me by reconfiguring in the same conditions
7603 --file=FILE[:TEMPLATE]
7604 instantiate the configuration file FILE
7605 --header=FILE[:TEMPLATE]
7606 instantiate the configuration header FILE
7608 Configuration files:
7611 Configuration headers:
7614 Report bugs to <sjg@NetBSD.org>."
7617 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7618 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7620 ac_cs_config='$ac_cs_config_escaped'
7622 bmake config.status 20220909
7623 configured by $0, generated by GNU Autoconf 2.71,
7624 with options \\"\$ac_cs_config\\"
7626 Copyright (C) 2021 Free Software Foundation, Inc.
7627 This config.status script is free software; the Free Software Foundation
7628 gives unlimited permission to copy, distribute and modify it."
7633 test -n "\$AWK" || AWK=awk
7636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7637 # The default lists apply if the user does not specify any file.
7643 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7644 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7648 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7660 # Handling of the options.
7661 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7663 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7664 printf "%s\n" "$ac_cs_version"; exit ;;
7665 --config |
--confi |
--conf |
--con |
--co |
--c )
7666 printf "%s\n" "$ac_cs_config"; exit ;;
7667 --debug |
--debu |
--deb |
--de |
--d |
-d )
7669 --file |
--fil |
--fi |
--f )
7672 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7673 '') as_fn_error $?
"missing file argument" ;;
7675 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7676 ac_need_defaults
=false
;;
7677 --header |
--heade |
--head |
--hea )
7680 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7682 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7683 ac_need_defaults
=false
;;
7685 # Conflict between --help and --header
7686 as_fn_error $?
"ambiguous option: \`$1'
7687 Try \`$0 --help' for more information.";;
7688 --help |
--hel |
-h )
7689 printf "%s\n" "$ac_cs_usage"; exit ;;
7690 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7691 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7695 -*) as_fn_error $?
"unrecognized option: \`$1'
7696 Try \`$0 --help' for more information." ;;
7698 *) as_fn_append ac_config_targets
" $1"
7699 ac_need_defaults
=false
;;
7705 ac_configure_extra_args
=
7707 if $ac_cs_silent; then
7709 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7714 if \$ac_cs_recheck; then
7715 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7717 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7718 CONFIG_SHELL='$SHELL'
7724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7728 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7729 ## Running $as_me. ##
7731 printf "%s\n" "$ac_log"
7735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7740 # Handling of arguments.
7741 for ac_config_target
in $ac_config_targets
7743 case $ac_config_target in
7744 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7745 "$bm_outfiles") CONFIG_FILES
="$CONFIG_FILES $bm_outfiles" ;;
7747 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7752 # If the user did not use the arguments to specify the items to instantiate,
7753 # then the envvar interface is used. Set only those that are not.
7754 # We use the long form for the default assignment because of an extremely
7755 # bizarre bug on SunOS 4.1.3.
7756 if $ac_need_defaults; then
7757 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
7758 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
7761 # Have a temporary directory for convenience. Make it in the build tree
7762 # simply because there is no reason against having it here, and in addition,
7763 # creating and moving files from /tmp can sometimes cause problems.
7764 # Hook for its removal unless debugging.
7765 # Note that there is a small window in which the directory will not be cleaned:
7766 # after its creation but before its name has been assigned to `$tmp'.
7770 trap 'exit_status=$?
7772 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7774 trap 'as_fn_exit 1' 1 2 13 15
7776 # Create a (secure) tmp directory for tmp files.
7779 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7783 tmp
=.
/conf$$
-$RANDOM
7784 (umask 077 && mkdir
"$tmp")
7785 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7788 # Set up the scripts for CONFIG_FILES section.
7789 # No need to generate them if there are no CONFIG_FILES.
7790 # This happens for instance with `./config.status config.h'.
7791 if test -n "$CONFIG_FILES"; then
7794 ac_cr
=`echo X | tr X '\015'`
7795 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7796 # But we know of no other shell where ac_cr would be empty at this
7797 # point, so we can use a bashism as a fallback.
7798 if test "x$ac_cr" = x
; then
7799 eval ac_cr
=\$
\'\\r
\'
7801 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7802 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7808 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7813 echo "cat >conf$$subs.awk <<_ACEOF" &&
7814 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7817 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7818 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7820 for ac_last_try in false false false false false :; do
7821 . ./conf$$subs.sh ||
7822 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7824 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7825 if test $ac_delim_n = $ac_delim_num; then
7827 elif $ac_last_try; then
7828 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7830 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7836 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7840 s/^/S["/; s
/!.
*/"]=/
7850 s/\(.\{148\}\)..*/\1/
7852 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7857 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7864 s/\(.\{148\}\)..*/\1/
7866 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7870 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7875 ' <conf$$subs.awk | sed '
7880 ' >>$CONFIG_STATUS || ac_write_fail=1
7881 rm -f conf$$subs.awk
7882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7884 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7885 for (key in S) S_is_set[key] = 1
7891 nfields = split(line, field, "@
")
7893 len = length(field[1])
7894 for (i = 2; i < nfields; i++) {
7896 keylen = length(key)
7897 if (S_is_set[key]) {
7899 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7900 len += length(value) + length(field[++i])
7911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7912 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7913 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7916 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7917 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7920 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7921 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7922 # trailing colons and then remove the whole line if VPATH becomes empty
7923 # (actually we leave an empty line to preserve line numbers).
7924 if test "x
$srcdir" = x.; then
7925 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7944 fi # test -n "$CONFIG_FILES"
7946 # Set up the scripts for CONFIG_HEADERS section.
7947 # No need to generate them if there are no CONFIG_HEADERS.
7948 # This happens for instance with `./config.status Makefile'.
7949 if test -n "$CONFIG_HEADERS"; then
7950 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7954 # Transform confdefs.h into an awk script `defines.awk', embedded as
7955 # here-document in config.status, that substitutes the proper values into
7956 # config.h.in to produce config.h.
7958 # Create a delimiter string that does not exist in confdefs.h, to ease
7959 # handling of long lines.
7961 for ac_last_try in false false :; do
7962 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7963 if test -z "$ac_tt"; then
7965 elif $ac_last_try; then
7966 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7968 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7972 # For the awk script, D is an array of macro values keyed by name,
7973 # likewise P contains macro parameters if any. Preserve backslash
7974 # newline sequences.
7976 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7978 s/.\{148\}/&'"$ac_delim"'/g
7981 s/^[ ]*#[ ]*define[ ][ ]*/ /
7988 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7990 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7995 D["\
1"]=" \
3\\\\\\n
"\\/p
7997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8002 s/.\{148\}/&'"$ac_delim"'/g
8007 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8010 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8012 ' <confdefs.h | sed '
8013 s/'"$ac_delim"'/"\\\
8014 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8017 for (key in D) D_is_set[key] = 1
8020 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8022 split(line, arg, " ")
8023 if (arg[1] == "#") {
8027 defundef
= substr
(arg
[1], 2)
8030 split(mac1
, mac2
, "(") #)
8032 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8033 if (D_is_set
[macro
]) {
8034 # Preserve the white space surrounding the "#".
8035 print prefix
"define", macro P
[macro
] D
[macro
]
8038 # Replace #undef with comments. This is necessary, for example,
8039 # in the case of _POSIX_SOURCE, which is predefined and required
8040 # on some systems where configure will not decide to define it.
8041 if (defundef
== "undef") {
8042 print
"/*", prefix defundef
, macro
, "*/"
8050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8051 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8052 fi # test -n "$CONFIG_HEADERS"
8055 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
8060 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8062 case $ac_mode$ac_tag in
8064 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8065 :[FH
]-) ac_tag
=-:-;;
8066 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8083 -) ac_f
="$ac_tmp/stdin";;
8084 *) # Look for the file first in the build tree, then in the source tree
8085 # (if the path is not absolute). The absolute path cannot be DOS-style,
8086 # because $ac_f cannot contain `:'.
8090 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8092 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8094 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8095 as_fn_append ac_file_inputs
" '$ac_f'"
8098 # Let's still pretend it is `configure' which instantiates (i.e., don't
8099 # use $as_me), people would be surprised to read:
8100 # /* config.h. Generated by config.status. */
8101 configure_input
='Generated from '`
8102 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8104 if test x
"$ac_file" != x-
; then
8105 configure_input
="$ac_file. $configure_input"
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8107 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8109 # Neutralize special characters interpreted by sed in replacement strings.
8110 case $configure_input in #(
8111 *\
&* |
*\|
* |
*\\* )
8112 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
8113 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8114 *) ac_sed_conf_input
=$configure_input;;
8118 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8119 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8124 ac_dir
=`$as_dirname -- "$ac_file" ||
8125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8126 X"$ac_file" : 'X\(//\)[^/]' \| \
8127 X"$ac_file" : 'X\(//\)$' \| \
8128 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8129 printf "%s\n" X"$ac_file" |
8130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8147 as_dir
="$ac_dir"; as_fn_mkdir_p
8151 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8153 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8154 # A ".." for each directory in $ac_dir_suffix.
8155 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8156 case $ac_top_builddir_sub in
8157 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8158 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8161 ac_abs_top_builddir
=$ac_pwd
8162 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8163 # for backward compatibility:
8164 ac_top_builddir
=$ac_top_build_prefix
8167 .
) # We are building in place.
8169 ac_top_srcdir
=$ac_top_builddir_sub
8170 ac_abs_top_srcdir
=$ac_pwd ;;
8171 [\\/]* | ?
:[\\/]* ) # Absolute name.
8172 ac_srcdir
=$srcdir$ac_dir_suffix;
8173 ac_top_srcdir
=$srcdir
8174 ac_abs_top_srcdir
=$srcdir ;;
8176 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8177 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8178 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8180 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8190 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8191 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8196 # If the template does not know about datarootdir, expand it.
8197 # FIXME: This hack should be removed a few years after 2.60.
8198 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8209 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8210 *datarootdir
*) ac_datarootdir_seen
=yes;;
8211 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8213 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8216 ac_datarootdir_hack='
8217 s&@datadir@&$datadir&g
8218 s&@docdir@&$docdir&g
8219 s&@infodir@&$infodir&g
8220 s&@localedir@&$localedir&g
8221 s&@mandir@&$mandir&g
8222 s&\\\${datarootdir}&$datarootdir&g' ;;
8226 # Neutralize VPATH when `$srcdir' = `.'.
8227 # Shell code in configure.ac might set extrasub.
8228 # FIXME: do we really want to maintain this feature?
8229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8230 ac_sed_extra="$ac_vpsub
8233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8235 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8236 s|@configure_input@|
$ac_sed_conf_input|
;t t
8237 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8238 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8239 s
&@srcdir@
&$ac_srcdir&;t t
8240 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8241 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8242 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8243 s
&@builddir@
&$ac_builddir&;t t
8244 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8245 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8246 s
&@INSTALL@
&$ac_INSTALL&;t t
8247 $ac_datarootdir_hack
8249 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8250 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8252 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8253 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8254 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8255 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8256 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8257 which seems to be undefined. Please make sure it is defined" >&5
8258 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8259 which seems to be undefined. Please make sure it is defined" >&2;}
8261 rm -f "$ac_tmp/stdin"
8263 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8264 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8272 if test x"$ac_file" != x-; then
8274 printf "%s\n" "/* $configure_input */" >&1 \
8275 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8276 } >"$ac_tmp/config.h" \
8277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8278 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8280 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
8283 mv "$ac_tmp/config.h" "$ac_file" \
8284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8287 printf "%s\n" "/* $configure_input */" >&1 \
8288 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8289 || as_fn_error $? "could not create -" "$LINENO" 5
8301 ac_clean_files=$ac_clean_files_save
8303 test $ac_write_fail = 0 ||
8304 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8307 # configure is writing to config.log, and then calls config.status.
8308 # config.status does its own redirection, appending to config.log.
8309 # Unfortunately, on DOS this fails, as config.log is still kept open
8310 # by configure, so config.status won't be able to
write to it
; its
8311 # output is simply discarded. So we exec the FD to /dev/null,
8312 # effectively closing config.log, so it can be properly (re)opened and
8313 # appended to by config.status. When coming back to configure, we
8314 # need to make the FD available again.
8315 if test "$no_create" != yes; then
8317 ac_config_status_args
=
8318 test "$silent" = yes &&
8319 ac_config_status_args
="$ac_config_status_args --quiet"
8321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8324 # would make configure fail if this is the last instruction.
8325 $ac_cs_success || as_fn_exit
1
8327 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8329 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8336 sh ./make-bootstrap.sh
8338 to produce a fully functional bmake.