2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for bmake 20230723.
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='20230723'
614 PACKAGE_STRING='bmake 20230723'
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 20230723 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 20230723:";;
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=[name=]SHELL use SHELL by default
1371 optional 'name' can be 'sh' to indicate SHELL is sh compatible
1372 eg. --with-defshell=sh=/bin/bsh
1373 use just 'sh' or 'ksh' to pick the internal definitions
1374 --without-makefile disable use of generated makefile
1375 --without-meta disable use of meta-mode
1376 --with-filemon={no,dev,ktrace,path/filemon.h} indicate filemon method for meta-mode. Path to filemon.h implies dev
1377 --with-machine=MACHINE explicitly set MACHINE
1378 --with-force-machine=MACHINE set FORCE_MACHINE
1379 --with-force-machine-arch=MACHINE set FORCE_MACHINE_ARCH
1380 --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH
1381 --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH
1382 MAKESYSPATH is a ':' separated list of directories
1383 that bmake will search for system .mk files.
1384 _PATH_DEFSYSPATH is its default value.
1385 --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX
1386 --with-mksrc=PATH tell makefile.boot where to find mk src
1388 Some influential environment variables:
1389 CC C compiler command
1390 CFLAGS C compiler flags
1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392 nonstandard directory <lib dir>
1393 LIBS libraries to pass to the linker, e.g. -l<library>
1394 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1395 you have headers in a nonstandard directory <include dir>
1397 Use these variables to override the choices made by `configure' or to help
1398 it to find libraries and programs with nonstandard names/locations.
1400 Report bugs to <sjg@NetBSD.org>.
1405 if test "$ac_init_help" = "recursive"; then
1406 # If there are subdirs, report their specific --help.
1407 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408 test -d "$ac_dir" ||
1409 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1417 # A ".." for each directory in $ac_dir_suffix.
1418 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419 case $ac_top_builddir_sub in
1420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 ac_abs_top_builddir=$ac_pwd
1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426 # for backward compatibility:
1427 ac_top_builddir=$ac_top_build_prefix
1430 .) # We are building in place.
1432 ac_top_srcdir=$ac_top_builddir_sub
1433 ac_abs_top_srcdir=$ac_pwd ;;
1434 [\\/]* | ?:[\\/]* ) # Absolute name.
1435 ac_srcdir=$srcdir$ac_dir_suffix;
1436 ac_top_srcdir=$srcdir
1437 ac_abs_top_srcdir=$srcdir ;;
1439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440 ac_top_srcdir=$ac_top_build_prefix$srcdir
1441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445 cd "$ac_dir" || { ac_status=$?; continue; }
1446 # Check for configure.gnu first; this name is used for a wrapper for
1447 # Metaconfig's "Configure" on case-insensitive file systems.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1455 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 cd "$ac_pwd" || { ac_status=$?; break; }
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1464 bmake configure 20230723
1465 generated by GNU Autoconf 2.71
1467 Copyright (C) 2021 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1474 ## ------------------------ ##
1475 ## Autoconf initialization. ##
1476 ## ------------------------ ##
1478 # ac_fn_c_try_compile LINENO
1479 # --------------------------
1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1481 ac_fn_c_try_compile ()
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 rm -f conftest.$ac_objext conftest.beam
1485 if { { ac_try="$ac_compile"
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 printf "%s\n" "$ac_try_echo"; } >&5
1492 (eval "$ac_compile") 2>conftest.err
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && {
1501 test -z "$ac_c_werror_flag" ||
1502 test ! -s conftest.err
1503 } && test -s conftest.$ac_objext
1507 printf "%s\n" "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1513 as_fn_set_status $ac_retval
1515 } # ac_fn_c_try_compile
1517 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1518 # -------------------------------------------------------
1519 # Tests whether HEADER exists and can be compiled using the include files in
1520 # INCLUDES, setting the cache variable VAR accordingly.
1521 ac_fn_c_check_header_compile ()
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1525 printf %s "checking for $2... " >&6; }
1526 if eval test \${$3+y}
1528 printf %s "(cached) " >&6
1530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1531 /* end confdefs.h. */
1535 if ac_fn_c_try_compile "$LINENO"
1541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1545 printf "%s\n" "$ac_res" >&6; }
1546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 } # ac_fn_c_check_header_compile
1550 # ac_fn_c_try_link LINENO
1551 # -----------------------
1552 # Try to link conftest.$ac_ext, and return whether this succeeded.
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1557 if { { ac_try="$ac_link"
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 printf "%s\n" "$ac_try_echo"; } >&5
1564 (eval "$ac_link") 2>conftest.err
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest$ac_exeext && {
1576 test "$cross_compiling" = yes ||
1577 test -x conftest$ac_exeext
1582 printf "%s\n" "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1589 # interfere with the next link command; also delete a directory that is
1590 # left behind by Apple's compiler. We do this before executing the actions.
1591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1595 } # ac_fn_c_try_link
1597 # ac_fn_c_try_run LINENO
1598 # ----------------------
1599 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1600 # executables *can* be run.
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_link"
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 printf "%s\n" "$ac_try_echo"; } >&5
1611 (eval "$ac_link") 2>&5
1613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1615 { { case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 printf "%s\n" "$ac_try_echo"; } >&5
1621 (eval "$ac_try") 2>&5
1623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; }; }
1628 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1629 printf "%s\n" "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=$ac_status
1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1640 # ac_fn_c_find_intX_t LINENO BITS VAR
1641 # -----------------------------------
1642 # Finds a signed integer type with width BITS, setting cache variable VAR
1644 ac_fn_c_find_intX_t ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1648 printf %s "checking for int$2_t... " >&6; }
1649 if eval test \${$3+y}
1651 printf %s "(cached) " >&6
1654 # Order is important - never check a type that is potentially smaller
1655 # than half of the expected target width.
1656 for ac_type in int$2_t 'int' 'long int' \
1657 'long long int' 'short int' 'signed char'; do
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1660 $ac_includes_default
1661 enum { N = $2 / 2 - 1 };
1665 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1667 return test_array [0];
1673 if ac_fn_c_try_compile "$LINENO"
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1677 $ac_includes_default
1678 enum { N = $2 / 2 - 1 };
1682 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1683 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1685 return test_array [0];
1691 if ac_fn_c_try_compile "$LINENO"
1699 eval "$3=\$ac_type" ;;
1702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1705 if eval test \"x\$"$3"\" = x"no"
1714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 printf "%s\n" "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 } # ac_fn_c_find_intX_t
1720 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1721 # -------------------------------------------
1722 # Tests whether TYPE exists after having included INCLUDES, setting cache
1723 # variable VAR accordingly.
1724 ac_fn_c_check_type ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 printf %s "checking for $2... " >&6; }
1729 if eval test \${$3+y}
1731 printf %s "(cached) " >&6
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1746 if ac_fn_c_try_compile "$LINENO"
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1760 if ac_fn_c_try_compile "$LINENO"
1766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 printf "%s\n" "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 } # ac_fn_c_check_type
1777 # ac_fn_c_find_uintX_t LINENO BITS VAR
1778 # ------------------------------------
1779 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1781 ac_fn_c_find_uintX_t ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1785 printf %s "checking for uint$2_t... " >&6; }
1786 if eval test \${$3+y}
1788 printf %s "(cached) " >&6
1791 # Order is important - never check a type that is potentially smaller
1792 # than half of the expected target width.
1793 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1794 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 $ac_includes_default
1801 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1803 return test_array [0];
1809 if ac_fn_c_try_compile "$LINENO"
1815 eval "$3=\$ac_type" ;;
1818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1819 if eval test \"x\$"$3"\" = x"no"
1828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 printf "%s\n" "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 } # ac_fn_c_find_uintX_t
1834 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1835 # ------------------------------------------------------------------
1836 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1837 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 as_decl_name=`echo $2|sed 's/ *(.*//'`
1842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1843 printf %s "checking whether $as_decl_name is declared... " >&6; }
1844 if eval test \${$3+y}
1846 printf %s "(cached) " >&6
1848 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1849 eval ac_save_FLAGS=\$$6
1850 as_fn_append $6 " $5"
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1857 #ifndef $as_decl_name
1859 (void) $as_decl_use;
1861 (void) $as_decl_name;
1869 if ac_fn_c_try_compile "$LINENO"
1875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1876 eval $6=\$ac_save_FLAGS
1880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 printf "%s\n" "$ac_res" >&6; }
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 } # ac_fn_check_decl
1886 # ac_fn_c_check_func LINENO FUNC VAR
1887 # ----------------------------------
1888 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1889 ac_fn_c_check_func ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 printf %s "checking for $2... " >&6; }
1894 if eval test \${$3+y}
1896 printf %s "(cached) " >&6
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1902 #define $2 innocuous_$2
1904 /* System header to define __stub macros and hopefully few prototypes,
1905 which can conflict with char $2 (); below. */
1910 /* Override any GCC internal prototype to avoid an error.
1911 Use char because int might match the return type of a GCC
1912 builtin and then its argument prototype would still apply. */
1917 /* The GNU C library defines this for functions which it implements
1918 to always fail with ENOSYS. Some functions are actually named
1919 something starting with __ and the normal name is an alias. */
1920 #if defined __stub_$2 || defined __stub___$2
1932 if ac_fn_c_try_link "$LINENO"
1938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1939 conftest$ac_exeext conftest.$ac_ext
1942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 printf "%s\n" "$ac_res" >&6; }
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 } # ac_fn_c_check_func
1947 ac_configure_args_raw=
1952 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 as_fn_append ac_configure_args_raw " '$ac_arg'"
1957 case $ac_configure_args_raw in
1961 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1962 ac_unsafe_a="$ac_unsafe_z#~"
1963 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1964 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1967 cat >config.log <<_ACEOF
1968 This file contains any messages produced by compilers while
1969 running configure, to aid debugging if configure makes a mistake.
1971 It was created by bmake $as_me 20230723, which was
1972 generated by GNU Autoconf 2.71. Invocation command line was
1974 $ $0$ac_configure_args_raw
1984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1996 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 case $as_dir in #(((
2010 *) as_dir=$as_dir/ ;;
2012 printf "%s\n" "PATH: $as_dir"
2028 # Keep a trace of the command line.
2029 # Strip out --no-create and --no-recursion so they do not pile up.
2030 # Strip out --silent because we don't want to record it for future runs.
2031 # Also quote any args containing shell meta-characters.
2032 # Make two passes to allow for proper duplicate-argument suppression.
2036 ac_must_keep_next=false
2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2044 | -silent | --silent | --silen | --sile | --sil)
2047 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052 as_fn_append ac_configure_args1 " '$ac_arg'"
2053 if test $ac_must_keep_next = true; then
2054 ac_must_keep_next=false # Got value, back to normal.
2057 *=* | --config-cache | -C | -disable-* | --disable-* \
2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2060 | -with-* | --with-* | -without-* | --without-* | --x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065 -* ) ac_must_keep_next=true ;;
2068 as_fn_append ac_configure_args " '$ac_arg'"
2073 { ac_configure_args0=; unset ac_configure_args0;}
2074 { ac_configure_args1=; unset ac_configure_args1;}
2076 # When interrupted or exit'd, cleanup temporary files, and complete
2077 # config.log. We remove comments because anyway the quotes in there
2078 # would cause problems or look ugly.
2079 # WARNING: Use '\'' to represent an apostrophe within the trap.
2080 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081 trap 'exit_status=$?
2084 # Save into config.log some information that might help in debugging.
2088 printf "%s\n" "## ---------------- ##
2089 ## Cache variables. ##
2090 ## ---------------- ##"
2092 # The following way of writing the cache mishandles newlines in values,
2094 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2095 eval ac_val=\$$ac_var
2099 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2100 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2103 _ | IFS | as_nl) ;; #(
2104 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2105 *) { eval $ac_var=; unset $ac_var;} ;;
2110 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2111 *${as_nl}ac_space=\ *)
2113 "s/'\''/'\''\\\\'\'''\''/g;
2114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2124 printf "%s\n" "## ----------------- ##
2125 ## Output variables. ##
2126 ## ----------------- ##"
2128 for ac_var in $ac_subst_vars
2130 eval ac_val=\$$ac_var
2132 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 printf "%s\n" "$ac_var='\''$ac_val'\''"
2138 if test -n "$ac_subst_files"; then
2139 printf "%s\n" "## ------------------- ##
2140 ## File substitutions. ##
2141 ## ------------------- ##"
2143 for ac_var in $ac_subst_files
2145 eval ac_val=\$$ac_var
2147 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149 printf "%s\n" "$ac_var='\''$ac_val'\''"
2154 if test -s confdefs.h; then
2155 printf "%s\n" "## ----------- ##
2162 test "$ac_signal" != 0 &&
2163 printf "%s\n" "$as_me: caught signal $ac_signal"
2164 printf "%s\n" "$as_me: exit $exit_status"
2166 rm -f core *.core core.conftest.* &&
2167 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2170 for ac_signal in 1 2 13 15; do
2171 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2176 rm -f -r conftest* confdefs.h
2178 printf "%s\n" "/* confdefs.h */" > confdefs.h
2180 # Predefined preprocessor variables.
2182 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2184 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2186 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2188 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2190 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2192 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2195 # Let the site file select an alternate cache file if it wants to.
2196 # Prefer an explicitly selected file to automatically selected ones.
2197 if test -n "$CONFIG_SITE"; then
2198 ac_site_files="$CONFIG_SITE"
2199 elif test "x$prefix" != xNONE; then
2200 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2202 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2205 for ac_site_file in $ac_site_files
2207 case $ac_site_file in #(
2211 ac_site_file=./$ac_site_file ;;
2213 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2215 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2216 sed 's/^/| /' "$ac_site_file" >&5
2218 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2220 as_fn_error $? "failed to load site script $ac_site_file
2221 See \`config.log' for more details" "$LINENO" 5; }
2225 if test -r "$cache_file"; then
2226 # Some versions of bash will fail to source /dev/null (special files
2227 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2228 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2232 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233 *) . "./$cache_file";;
2237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2242 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2243 # Test code for whether the C compiler supports C89 (global declarations)
2244 ac_c_conftest_c89_globals='
2245 /* Does the compiler advertise C89 conformance?
2246 Do not test the value of __STDC__, because some compilers set it to 0
2247 while being otherwise adequately conformant. */
2248 #if !defined __STDC__
2249 # error "Compiler does not advertise C89 conformance"
2255 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2256 struct buf { int x; };
2257 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2258 static char *e (p, i)
2264 static char *f (char * (*g) (char **, int), char **p, ...)
2269 s = g (p, va_arg (v,int));
2274 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2275 function prototypes and stuff, but not \xHH hex character constants.
2276 These do not provoke an error unfortunately, instead are silently treated
2277 as an "x". The following induces an error, until -std is added to get
2278 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2279 array size at least. It is necessary to write \x00 == 0 to get something
2280 that is true only with -std. */
2281 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2283 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2284 inside strings and character constants. */
2285 #define FOO(x) '\''x'\''
2286 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2288 int test (int i, double x);
2289 struct s1 {int (*f) (int a);};
2290 struct s2 {int (*f) (double a);};
2291 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2294 # Test code for whether the C compiler supports C89 (body of main).
2295 ac_c_conftest_c89_main='
2296 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2299 # Test code for whether the C compiler supports C99 (global declarations)
2300 ac_c_conftest_c99_globals='
2301 // Does the compiler advertise C99 conformance?
2302 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2303 # error "Compiler does not advertise C99 conformance"
2306 #include <stdbool.h>
2307 extern int puts (const char *);
2308 extern int printf (const char *, ...);
2309 extern int dprintf (int, const char *, ...);
2310 extern void *malloc (size_t);
2312 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2313 // dprintf is used instead of fprintf to avoid needing to declare
2315 #define debug(...) dprintf (2, __VA_ARGS__)
2316 #define showlist(...) puts (#__VA_ARGS__)
2317 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2319 test_varargs_macros (void)
2324 debug ("X = %d\n", x);
2325 showlist (The first, second, and third items.);
2326 report (x>y, "x is %d but y is %d", x, y);
2329 // Check long long types.
2330 #define BIG64 18446744073709551615ull
2331 #define BIG32 4294967295ul
2332 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2334 #error "your preprocessor is broken"
2338 #error "your preprocessor is broken"
2340 static long long int bignum = -9223372036854775807LL;
2341 static unsigned long long int ubignum = BIG64;
2343 struct incomplete_array
2351 const wchar_t *name;
2355 typedef const char *ccp;
2358 test_restrict (ccp restrict text)
2360 // See if C++-style comments work.
2361 // Iterate through items via the restricted pointer.
2362 // Also check for declarations in for loops.
2363 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2368 // Check varargs and va_copy.
2370 test_varargs (const char *format, ...)
2373 va_start (args, format);
2375 va_copy (args_copy, args);
2377 const char *str = "";
2385 case '\''s'\'': // string
2386 str = va_arg (args_copy, const char *);
2388 case '\''d'\'': // int
2389 number = va_arg (args_copy, int);
2391 case '\''f'\'': // float
2392 fnumber = va_arg (args_copy, double);
2401 return *str && number && fnumber;
2405 # Test code for whether the C compiler supports C99 (body of main).
2406 ac_c_conftest_c99_main='
2408 _Bool success = false;
2409 success |= (argc != 0);
2412 if (test_restrict ("String literal") == 0)
2414 char *restrict newvar = "Another string";
2417 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2418 test_varargs_macros ();
2420 // Check flexible array members.
2421 struct incomplete_array *ia =
2422 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2424 for (int i = 0; i < ia->datasize; ++i)
2425 ia->data[i] = i * 1.234;
2427 // Check named initializers.
2428 struct named_init ni = {
2430 .name = L"Test wide string",
2431 .average = 543.34343,
2436 int dynamic_array[ni.number];
2437 dynamic_array[0] = argv[0][0];
2438 dynamic_array[ni.number - 1] = 543;
2440 // work around unused variable warnings
2441 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2442 || dynamic_array[ni.number - 1] != 543);
2445 # Test code for whether the C compiler supports C11 (global declarations)
2446 ac_c_conftest_c11_globals='
2447 // Does the compiler advertise C11 conformance?
2448 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2449 # error "Compiler does not advertise C11 conformance"
2453 char _Alignas (double) aligned_as_double;
2454 char _Alignas (0) no_special_alignment;
2455 extern char aligned_as_int;
2456 char _Alignas (0) _Alignas (int) aligned_as_int;
2461 int_alignment = _Alignof (int),
2462 int_array_alignment = _Alignof (int[100]),
2463 char_alignment = _Alignof (char)
2465 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2468 int _Noreturn does_not_return (void) { for (;;) continue; }
2470 // Check _Static_assert.
2471 struct test_static_assert
2474 _Static_assert (sizeof (int) <= sizeof (long int),
2475 "_Static_assert does not work in struct");
2479 // Check UTF-8 literals.
2480 #define u8 syntax error!
2481 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2483 // Check duplicate typedefs.
2484 typedef long *long_ptr;
2485 typedef long int *long_ptr;
2486 typedef long_ptr long_ptr;
2488 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2492 struct { int i; int j; };
2493 struct { int k; long int l; } w;
2499 # Test code for whether the C compiler supports C11 (body of main).
2500 ac_c_conftest_c11_main='
2501 _Static_assert ((offsetof (struct anonymous, i)
2502 == offsetof (struct anonymous, w.k)),
2503 "Anonymous union alignment botch");
2509 # Test code for whether the C compiler supports C11 (complete).
2510 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2511 ${ac_c_conftest_c99_globals}
2512 ${ac_c_conftest_c11_globals}
2515 main (int argc, char **argv)
2518 ${ac_c_conftest_c89_main}
2519 ${ac_c_conftest_c99_main}
2520 ${ac_c_conftest_c11_main}
2525 # Test code for whether the C compiler supports C99 (complete).
2526 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2527 ${ac_c_conftest_c99_globals}
2530 main (int argc, char **argv)
2533 ${ac_c_conftest_c89_main}
2534 ${ac_c_conftest_c99_main}
2539 # Test code for whether the C compiler supports C89 (complete).
2540 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2543 main (int argc, char **argv)
2546 ${ac_c_conftest_c89_main}
2551 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2552 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2553 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2554 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2555 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2556 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2557 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2558 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2559 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2560 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2561 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2562 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2563 as_fn_append ac_func_c_list " fork HAVE_FORK"
2564 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2565 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2567 # Auxiliary files required by this configure script.
2568 ac_aux_files="install-sh"
2570 # Locations in which to look for auxiliary files.
2571 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2573 # Search for a directory containing all of the required auxiliary files,
2574 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2575 # If we don't find one directory that contains all the files we need,
2576 # we report the set of missing files from the *first* directory in
2577 # $ac_aux_dir_candidates and give up.
2578 ac_missing_aux_files=""
2579 ac_first_candidate=:
2580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $ac_aux_dir_candidates
2586 case $as_dir in #(((
2589 *) as_dir=$as_dir/ ;;
2593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2594 ac_aux_dir_found=yes
2596 for ac_aux in $ac_aux_files
2598 # As a special case, if "install-sh" is required, that requirement
2599 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2600 # and $ac_install_sh is set appropriately for whichever one is found.
2601 if test x"$ac_aux" = x"install-sh"
2603 if 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}install.sh"; then
2607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2608 ac_install_sh="${as_dir}install.sh -c"
2609 elif test -f "${as_dir}shtool"; then
2610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2611 ac_install_sh="${as_dir}shtool install -c"
2614 if $ac_first_candidate; then
2615 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2621 if test -f "${as_dir}${ac_aux}"; then
2622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2625 if $ac_first_candidate; then
2626 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2633 if test "$ac_aux_dir_found" = yes; then
2634 ac_aux_dir="$as_dir"
2637 ac_first_candidate=false
2646 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2650 # These three variables are undocumented and unsupported,
2651 # and are intended to be withdrawn in a future Autoconf release.
2652 # They can cause serious problems if a builder's source tree is in a directory
2653 # whose full name contains unusual characters.
2654 if test -f "${ac_aux_dir}config.guess"; then
2655 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2657 if test -f "${ac_aux_dir}config.sub"; then
2658 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2660 if test -f "$ac_aux_dir/configure"; then
2661 ac_configure="$SHELL ${ac_aux_dir}configure"
2664 # Check that the precious variables saved in the cache have kept the same
2666 ac_cache_corrupted=false
2667 for ac_var in $ac_precious_vars; do
2668 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2669 eval ac_new_set=\$ac_env_${ac_var}_set
2670 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2671 eval ac_new_val=\$ac_env_${ac_var}_value
2672 case $ac_old_set,$ac_new_set in
2674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2675 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2676 ac_cache_corrupted=: ;;
2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2679 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2680 ac_cache_corrupted=: ;;
2683 if test "x$ac_old_val" != "x$ac_new_val"; then
2684 # differences in whitespace do not lead to failure.
2685 ac_old_val_w=`echo x $ac_old_val`
2686 ac_new_val_w=`echo x $ac_new_val`
2687 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2689 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2690 ac_cache_corrupted=:
2692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2693 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2694 eval $ac_var=\$ac_old_val
2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2697 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2699 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2702 # Pass precious variables to config.status.
2703 if test "$ac_new_set" = set; then
2705 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2706 *) ac_arg=$ac_var=$ac_new_val ;;
2708 case " $ac_configure_args " in
2709 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2710 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2714 if $ac_cache_corrupted; then
2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2718 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2719 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2720 and start over" "$LINENO" 5
2722 ## -------------------- ##
2723 ## Main body of script. ##
2724 ## -------------------- ##
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733 ac_config_headers="$ac_config_headers config.h"
2738 *) srcdir=`cd $srcdir && 'pwd'`;;
2745 case "$defshell_path$DEFSHELL_INDEX" in
2750 *csh) # we must be desperate
2751 DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;;
2753 DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
2755 DEFSHELL_INDEX=DEFSHELL_INDEX_SH;;
2756 *=*) # eg. sh=/bin/bsh
2757 eval `IFS="="; set -- $1; echo name=$1 defshell_path=$2`
2759 csh) DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;;
2760 ksh) DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
2761 sh) DEFSHELL_INDEX=DEFSHELL_INDEX_SH;;
2762 *) DEFSHELL_INDEX=DEFSHELL_INDEX_CUSTOM;;
2765 *) DEFSHELL_INDEX=DEFSHELL_INDEX_CUSTOM
2769 case "$defshell_path,$1" in
2771 ,*/*) defshell_path=$1;;
2775 # Check whether --with-defshell was given.
2776 if test ${with_defshell+y}
2778 withval=$with_defshell; case "${withval}" in
2779 yes) as_fn_error $? "bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;;
2781 *) use_defshell $with_defshell;;
2786 CYGWIN*|MINGW*) use_makefile=no;;
2787 *) use_makefile=yes;;
2790 # Check whether --with-makefile was given.
2791 if test ${with_makefile+y}
2793 withval=$with_makefile; case "${withval}" in
2794 yes|no) use_makefile=${withval};;
2795 *) as_fn_error $? "bad value ${withval} given for makefile" "$LINENO" 5 ;;
2801 # Check whether --with-meta was given.
2802 if test ${with_meta+y}
2804 withval=$with_meta; case "${withval}" in
2805 yes|no) use_meta=${withval};;
2806 *) as_fn_error $? "bad value ${withval} given for meta" "$LINENO" 5 ;;
2811 # Check whether --with-filemon was given.
2812 if test ${with_filemon+y}
2814 withval=$with_filemon; case "/${withval}" in
2815 /no) use_filemon=no;;
2816 /*trace) filemon_h=no use_filemon="${withval}";;
2817 */filemon.h) filemon_h="${withval}";;
2818 */filemon*) filemon_h="${withval}/filemon.h";;
2819 *) as_fn_error $? "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2821 case "$use_filemon,$filemon_h" in
2822 ,*.h) use_filemon=dev;;
2828 NetBSD) filemon_h=no use_filemon=ktrace;;
2830 for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
2834 filemon_h="$d$x/filemon.h"
2835 test -s "$filemon_h" && break
2837 test -s "$filemon_h" && { use_filemon=dev; break; }
2841 use_filemon=${use_filemon:-no}
2842 case "$use_filemon" in
2851 case "$use_filemon" in
2853 *) echo "Using: filemon_${use_filemon}.c" >&6;;
2858 Minix) CPPFLAGS="${CPPFLAGS} -D_NETBSD_SOURCE"
2859 test -x /usr/pkg/bin/clang && CC=${CC:-clang}
2861 SCO_SV) # /bin/sh is not usable
2862 ALT_DEF_SHELLS="/bin/lsh /usr/bin/bash /bin/ksh"
2863 CPPFLAGS="${CPPFLAGS} -DFORCE_USE_SHELL"
2866 # Not everyone groks TZ=Europe/Berlin
2867 # which is used by the localtime tests
2868 echo $ECHO_N "checking whether system has timezone Europe/Berlin... $ECHO_C" >&6
2869 eval `TZ=UTC date '+utc_H=%H utc_d=%d' 2> /dev/null`
2870 eval `TZ=Europe/Berlin date '+utc1_H=%H utc1_d=%d' 2> /dev/null`
2871 if test ${utc_d-0} -lt ${utc1_d-0} -o ${utc_H-0} -lt ${utc1_H-0}; then
2875 eval `TZ=UTC-1 date '+utc1_H=%H utc1_d=%d' 2> /dev/null`
2876 if test ${utc_d-0} -lt ${utc1_d-0} -o ${utc_H-0} -lt ${utc1_H-0}; then
2878 echo no, using UTC-1 >&6
2881 test "x$UTC_1" = x && echo no >&6
2883 for d in /usr/gnu/bin
2885 test -d $d || continue
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 if test -n "$ac_tool_prefix"; then
2904 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2905 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 printf %s "checking for $ac_word... " >&6; }
2908 if test ${ac_cv_prog_CC+y}
2910 printf %s "(cached) " >&6
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC="$CC" # Let the user override the test.
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 case $as_dir in #(((
2922 *) as_dir=$as_dir/ ;;
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2937 if test -n "$CC"; then
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 printf "%s\n" "$CC" >&6; }
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 printf "%s\n" "no" >&6; }
2947 if test -z "$ac_cv_prog_CC"; then
2949 # Extract the first word of "gcc", so it can be a program name with args.
2950 set dummy gcc; ac_word=$2
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 printf %s "checking for $ac_word... " >&6; }
2953 if test ${ac_cv_prog_ac_ct_CC+y}
2955 printf %s "(cached) " >&6
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 case $as_dir in #(((
2967 *) as_dir=$as_dir/ ;;
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2971 ac_cv_prog_ac_ct_CC="gcc"
2972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982 if test -n "$ac_ct_CC"; then
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984 printf "%s\n" "$ac_ct_CC" >&6; }
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 printf "%s\n" "no" >&6; }
2990 if test "x$ac_ct_CC" = x; then
2993 case $cross_compiling:$ac_tool_warned in
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2996 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997 ac_tool_warned=yes ;;
3005 if test -z "$CC"; then
3006 if test -n "$ac_tool_prefix"; then
3007 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3008 set dummy ${ac_tool_prefix}cc; ac_word=$2
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 printf %s "checking for $ac_word... " >&6; }
3011 if test ${ac_cv_prog_CC+y}
3013 printf %s "(cached) " >&6
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 case $as_dir in #(((
3025 *) as_dir=$as_dir/ ;;
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3029 ac_cv_prog_CC="${ac_tool_prefix}cc"
3030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3040 if test -n "$CC"; then
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042 printf "%s\n" "$CC" >&6; }
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 printf "%s\n" "no" >&6; }
3051 if test -z "$CC"; then
3052 # Extract the first word of "cc", so it can be a program name with args.
3053 set dummy cc; ac_word=$2
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 printf %s "checking for $ac_word... " >&6; }
3056 if test ${ac_cv_prog_CC+y}
3058 printf %s "(cached) " >&6
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 case $as_dir in #(((
3071 *) as_dir=$as_dir/ ;;
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3075 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3076 ac_prog_rejected=yes
3080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3087 if test $ac_prog_rejected = yes; then
3088 # We found a bogon in the path, so make sure we never use it.
3089 set dummy $ac_cv_prog_CC
3091 if test $# != 0; then
3092 # We chose a different compiler from the bogus one.
3093 # However, it has the same basename, so the bogon will be chosen
3094 # first if we set CC to just the basename; use the full file name.
3096 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3102 if test -n "$CC"; then
3103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 printf "%s\n" "$CC" >&6; }
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 printf "%s\n" "no" >&6; }
3112 if test -z "$CC"; then
3113 if test -n "$ac_tool_prefix"; then
3114 for ac_prog in cl.exe
3116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 printf %s "checking for $ac_word... " >&6; }
3120 if test ${ac_cv_prog_CC+y}
3122 printf %s "(cached) " >&6
3124 if test -n "$CC"; then
3125 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 case $as_dir in #(((
3134 *) as_dir=$as_dir/ ;;
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3149 if test -n "$CC"; then
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 printf "%s\n" "$CC" >&6; }
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 printf "%s\n" "no" >&6; }
3158 test -n "$CC" && break
3161 if test -z "$CC"; then
3163 for ac_prog in cl.exe
3165 # Extract the first word of "$ac_prog", so it can be a program name with args.
3166 set dummy $ac_prog; ac_word=$2
3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 printf %s "checking for $ac_word... " >&6; }
3169 if test ${ac_cv_prog_ac_ct_CC+y}
3171 printf %s "(cached) " >&6
3173 if test -n "$ac_ct_CC"; then
3174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 case $as_dir in #(((
3183 *) as_dir=$as_dir/ ;;
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_ac_ct_CC="$ac_prog"
3188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3198 if test -n "$ac_ct_CC"; then
3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3200 printf "%s\n" "$ac_ct_CC" >&6; }
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 printf "%s\n" "no" >&6; }
3207 test -n "$ac_ct_CC" && break
3210 if test "x$ac_ct_CC" = x; then
3213 case $cross_compiling:$ac_tool_warned in
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3216 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3217 ac_tool_warned=yes ;;
3224 if test -z "$CC"; then
3225 if test -n "$ac_tool_prefix"; then
3226 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3227 set dummy ${ac_tool_prefix}clang; ac_word=$2
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 printf %s "checking for $ac_word... " >&6; }
3230 if test ${ac_cv_prog_CC+y}
3232 printf %s "(cached) " >&6
3234 if test -n "$CC"; then
3235 ac_cv_prog_CC="$CC" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 case $as_dir in #(((
3244 *) as_dir=$as_dir/ ;;
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_CC="${ac_tool_prefix}clang"
3249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3259 if test -n "$CC"; then
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 printf "%s\n" "$CC" >&6; }
3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 printf "%s\n" "no" >&6; }
3269 if test -z "$ac_cv_prog_CC"; then
3271 # Extract the first word of "clang", so it can be a program name with args.
3272 set dummy clang; ac_word=$2
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 printf %s "checking for $ac_word... " >&6; }
3275 if test ${ac_cv_prog_ac_ct_CC+y}
3277 printf %s "(cached) " >&6
3279 if test -n "$ac_ct_CC"; then
3280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 case $as_dir in #(((
3289 *) as_dir=$as_dir/ ;;
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_ac_ct_CC="clang"
3294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3304 if test -n "$ac_ct_CC"; then
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3306 printf "%s\n" "$ac_ct_CC" >&6; }
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 printf "%s\n" "no" >&6; }
3312 if test "x$ac_ct_CC" = x; then
3315 case $cross_compiling:$ac_tool_warned in
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319 ac_tool_warned=yes ;;
3330 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error $? "no acceptable C compiler found in \$PATH
3333 See \`config.log' for more details" "$LINENO" 5; }
3335 # Provide some information about the compiler.
3336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3339 for ac_option in --version -v -V -qversion -version; do
3340 { { ac_try="$ac_compiler $ac_option >&5"
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 printf "%s\n" "$ac_try_echo"; } >&5
3347 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3349 if test -s conftest.err; then
3351 ... rest of stderr output deleted ...
3352 10q' conftest.err >conftest.er1
3353 cat conftest.er1 >&5
3355 rm -f conftest.er1 conftest.err
3356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3371 ac_clean_files_save=$ac_clean_files
3372 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3373 # Try to create an executable without -o first, disregard a.out.
3374 # It will help us diagnose broken compilers, and finding out an intuition
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3377 printf %s "checking whether the C compiler works... " >&6; }
3378 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3380 # The possible output files:
3381 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3384 for ac_file in $ac_files
3387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3388 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3393 if { { ac_try="$ac_link_default"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 printf "%s\n" "$ac_try_echo"; } >&5
3400 (eval "$ac_link_default") 2>&5
3402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }
3405 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3406 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3407 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3408 # so that the user can short-circuit this test for compilers unknown to
3410 for ac_file in $ac_files ''
3412 test -f "$ac_file" || continue
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3417 # We found the default executable, but exeext='' is most
3421 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3423 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3425 # We set ac_cv_exeext here because the later test for it is not
3426 # safe: cross compilers may not add the suffix if given an `-o'
3427 # argument, so we may need to know it at that point already.
3428 # Even if this section looks crufty: it has the advantage of
3435 test "$ac_cv_exeext" = no && ac_cv_exeext=
3440 if test -z "$ac_file"
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 printf "%s\n" "no" >&6; }
3444 printf "%s\n" "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error 77 "C compiler cannot create executables
3450 See \`config.log' for more details" "$LINENO" 5; }
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3453 printf "%s\n" "yes" >&6; }
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3456 printf %s "checking for C compiler default output file name... " >&6; }
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3458 printf "%s\n" "$ac_file" >&6; }
3459 ac_exeext=$ac_cv_exeext
3461 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3462 ac_clean_files=$ac_clean_files_save
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3464 printf %s "checking for suffix of executables... " >&6; }
3465 if { { ac_try="$ac_link"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 printf "%s\n" "$ac_try_echo"; } >&5
3472 (eval "$ac_link") 2>&5
3474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }
3477 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3478 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3479 # work properly (i.e., refer to `conftest.exe'), while it won't with
3481 for ac_file in conftest.exe conftest conftest.*; do
3482 test -f "$ac_file" || continue
3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3491 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3494 See \`config.log' for more details" "$LINENO" 5; }
3496 rm -f conftest conftest$ac_cv_exeext
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3498 printf "%s\n" "$ac_cv_exeext" >&6; }
3500 rm -f conftest.$ac_ext
3501 EXEEXT=$ac_cv_exeext
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3509 FILE *f = fopen ("conftest.out", "w");
3510 return ferror (f) || fclose (f) != 0;
3516 ac_clean_files="$ac_clean_files conftest.out"
3517 # Check that the compiler produces executables we can run. If not, either
3518 # the compiler is broken, or we cross compile.
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3520 printf %s "checking whether we are cross compiling... " >&6; }
3521 if test "$cross_compiling" != yes; then
3522 { { ac_try="$ac_link"
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 printf "%s\n" "$ac_try_echo"; } >&5
3529 (eval "$ac_link") 2>&5
3531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }
3533 if { ac_try='./conftest$ac_cv_exeext'
3534 { { case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 printf "%s\n" "$ac_try_echo"; } >&5
3540 (eval "$ac_try") 2>&5
3542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; }; then
3546 if test "$cross_compiling" = maybe; then
3549 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error 77 "cannot run C compiled programs.
3552 If you meant to cross compile, use \`--host'.
3553 See \`config.log' for more details" "$LINENO" 5; }
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3558 printf "%s\n" "$cross_compiling" >&6; }
3560 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3561 ac_clean_files=$ac_clean_files_save
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3563 printf %s "checking for suffix of object files... " >&6; }
3564 if test ${ac_cv_objext+y}
3566 printf %s "(cached) " >&6
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3579 rm -f conftest.o conftest.obj
3580 if { { ac_try="$ac_compile"
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 printf "%s\n" "$ac_try_echo"; } >&5
3587 (eval "$ac_compile") 2>&5
3589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }
3592 for ac_file in conftest.o conftest.obj conftest.*; do
3593 test -f "$ac_file" || continue;
3595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3601 printf "%s\n" "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3606 as_fn_error $? "cannot compute suffix of object files: cannot compile
3607 See \`config.log' for more details" "$LINENO" 5; }
3609 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3612 printf "%s\n" "$ac_cv_objext" >&6; }
3613 OBJEXT=$ac_cv_objext
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3616 printf %s "checking whether the compiler supports GNU C... " >&6; }
3617 if test ${ac_cv_c_compiler_gnu+y}
3619 printf %s "(cached) " >&6
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3635 if ac_fn_c_try_compile "$LINENO"
3641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3646 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649 if test $ac_compiler_gnu = yes; then
3654 ac_test_CFLAGS=${CFLAGS+y}
3655 ac_save_CFLAGS=$CFLAGS
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3657 printf %s "checking whether $CC accepts -g... " >&6; }
3658 if test ${ac_cv_prog_cc_g+y}
3660 printf %s "(cached) " >&6
3662 ac_save_c_werror_flag=$ac_c_werror_flag
3663 ac_c_werror_flag=yes
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3677 if ac_fn_c_try_compile "$LINENO"
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3693 if ac_fn_c_try_compile "$LINENO"
3697 ac_c_werror_flag=$ac_save_c_werror_flag
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3710 if ac_fn_c_try_compile "$LINENO"
3714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3719 ac_c_werror_flag=$ac_save_c_werror_flag
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3722 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3723 if test $ac_test_CFLAGS; then
3724 CFLAGS=$ac_save_CFLAGS
3725 elif test $ac_cv_prog_cc_g = yes; then
3726 if test "$GCC" = yes; then
3732 if test "$GCC" = yes; then
3739 if test x$ac_prog_cc_stdc = xno
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3742 printf %s "checking for $CC option to enable C11 features... " >&6; }
3743 if test ${ac_cv_prog_cc_c11+y}
3745 printf %s "(cached) " >&6
3747 ac_cv_prog_cc_c11=no
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 $ac_c_conftest_c11_program
3753 for ac_arg in '' -std=gnu11
3755 CC="$ac_save_CC $ac_arg"
3756 if ac_fn_c_try_compile "$LINENO"
3758 ac_cv_prog_cc_c11=$ac_arg
3760 rm -f core conftest.err conftest.$ac_objext conftest.beam
3761 test "x$ac_cv_prog_cc_c11" != "xno" && break
3763 rm -f conftest.$ac_ext
3767 if test "x$ac_cv_prog_cc_c11" = xno
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3770 printf "%s\n" "unsupported" >&6; }
3772 if test "x$ac_cv_prog_cc_c11" = x
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3775 printf "%s\n" "none needed" >&6; }
3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3778 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3779 CC="$CC $ac_cv_prog_cc_c11"
3781 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3785 if test x$ac_prog_cc_stdc = xno
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3788 printf %s "checking for $CC option to enable C99 features... " >&6; }
3789 if test ${ac_cv_prog_cc_c99+y}
3791 printf %s "(cached) " >&6
3793 ac_cv_prog_cc_c99=no
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797 $ac_c_conftest_c99_program
3799 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3801 CC="$ac_save_CC $ac_arg"
3802 if ac_fn_c_try_compile "$LINENO"
3804 ac_cv_prog_cc_c99=$ac_arg
3806 rm -f core conftest.err conftest.$ac_objext conftest.beam
3807 test "x$ac_cv_prog_cc_c99" != "xno" && break
3809 rm -f conftest.$ac_ext
3813 if test "x$ac_cv_prog_cc_c99" = xno
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3816 printf "%s\n" "unsupported" >&6; }
3818 if test "x$ac_cv_prog_cc_c99" = x
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3821 printf "%s\n" "none needed" >&6; }
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3824 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3825 CC="$CC $ac_cv_prog_cc_c99"
3827 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3831 if test x$ac_prog_cc_stdc = xno
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3834 printf %s "checking for $CC option to enable C89 features... " >&6; }
3835 if test ${ac_cv_prog_cc_c89+y}
3837 printf %s "(cached) " >&6
3839 ac_cv_prog_cc_c89=no
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843 $ac_c_conftest_c89_program
3845 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3847 CC="$ac_save_CC $ac_arg"
3848 if ac_fn_c_try_compile "$LINENO"
3850 ac_cv_prog_cc_c89=$ac_arg
3852 rm -f core conftest.err conftest.$ac_objext conftest.beam
3853 test "x$ac_cv_prog_cc_c89" != "xno" && break
3855 rm -f conftest.$ac_ext
3859 if test "x$ac_cv_prog_cc_c89" = xno
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3862 printf "%s\n" "unsupported" >&6; }
3864 if test "x$ac_cv_prog_cc_c89" = x
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3867 printf "%s\n" "none needed" >&6; }
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3870 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3871 CC="$CC $ac_cv_prog_cc_c89"
3873 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885 ac_header= ac_cache=
3886 for ac_item in $ac_header_c_list
3888 if test $ac_cache; then
3889 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3890 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3891 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3893 ac_header= ac_cache=
3894 elif test $ac_header; then
3908 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3911 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3921 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3922 if test ${ac_cv_safe_to_define___extensions__+y}
3924 printf %s "(cached) " >&6
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3929 # define __EXTENSIONS__ 1
3930 $ac_includes_default
3939 if ac_fn_c_try_compile "$LINENO"
3941 ac_cv_safe_to_define___extensions__=yes
3943 ac_cv_safe_to_define___extensions__=no
3945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3948 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3951 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3952 if test ${ac_cv_should_define__xopen_source+y}
3954 printf %s "(cached) " >&6
3956 ac_cv_should_define__xopen_source=no
3957 if test $ac_cv_header_wchar_h = yes
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3972 if ac_fn_c_try_compile "$LINENO"
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3979 #define _XOPEN_SOURCE 500
3990 if ac_fn_c_try_compile "$LINENO"
3992 ac_cv_should_define__xopen_source=yes
3994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4000 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4002 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4004 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4006 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4008 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4010 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4012 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4014 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4016 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4018 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4020 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4022 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4024 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4026 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4028 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4030 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4032 if test $ac_cv_header_minix_config_h = yes
4035 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4037 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4039 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4044 if test $ac_cv_safe_to_define___extensions__ = yes
4046 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4049 if test $ac_cv_should_define__xopen_source = yes
4051 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060 if test -n "$ac_tool_prefix"; then
4061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4062 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064 printf %s "checking for $ac_word... " >&6; }
4065 if test ${ac_cv_prog_CC+y}
4067 printf %s "(cached) " >&6
4069 if test -n "$CC"; then
4070 ac_cv_prog_CC="$CC" # Let the user override the test.
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 case $as_dir in #(((
4079 *) as_dir=$as_dir/ ;;
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4094 if test -n "$CC"; then
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4096 printf "%s\n" "$CC" >&6; }
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 printf "%s\n" "no" >&6; }
4104 if test -z "$ac_cv_prog_CC"; then
4106 # Extract the first word of "gcc", so it can be a program name with args.
4107 set dummy gcc; ac_word=$2
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 printf %s "checking for $ac_word... " >&6; }
4110 if test ${ac_cv_prog_ac_ct_CC+y}
4112 printf %s "(cached) " >&6
4114 if test -n "$ac_ct_CC"; then
4115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 case $as_dir in #(((
4124 *) as_dir=$as_dir/ ;;
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4128 ac_cv_prog_ac_ct_CC="gcc"
4129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4139 if test -n "$ac_ct_CC"; then
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4141 printf "%s\n" "$ac_ct_CC" >&6; }
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 printf "%s\n" "no" >&6; }
4147 if test "x$ac_ct_CC" = x; then
4150 case $cross_compiling:$ac_tool_warned in
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4153 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154 ac_tool_warned=yes ;;
4162 if test -z "$CC"; then
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4165 set dummy ${ac_tool_prefix}cc; ac_word=$2
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 printf %s "checking for $ac_word... " >&6; }
4168 if test ${ac_cv_prog_CC+y}
4170 printf %s "(cached) " >&6
4172 if test -n "$CC"; then
4173 ac_cv_prog_CC="$CC" # Let the user override the test.
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 case $as_dir in #(((
4182 *) as_dir=$as_dir/ ;;
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4186 ac_cv_prog_CC="${ac_tool_prefix}cc"
4187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4197 if test -n "$CC"; then
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199 printf "%s\n" "$CC" >&6; }
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 printf "%s\n" "no" >&6; }
4208 if test -z "$CC"; then
4209 # Extract the first word of "cc", so it can be a program name with args.
4210 set dummy cc; ac_word=$2
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 printf %s "checking for $ac_word... " >&6; }
4213 if test ${ac_cv_prog_CC+y}
4215 printf %s "(cached) " >&6
4217 if test -n "$CC"; then
4218 ac_cv_prog_CC="$CC" # Let the user override the test.
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 case $as_dir in #(((
4228 *) as_dir=$as_dir/ ;;
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4232 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4233 ac_prog_rejected=yes
4237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4244 if test $ac_prog_rejected = yes; then
4245 # We found a bogon in the path, so make sure we never use it.
4246 set dummy $ac_cv_prog_CC
4248 if test $# != 0; then
4249 # We chose a different compiler from the bogus one.
4250 # However, it has the same basename, so the bogon will be chosen
4251 # first if we set CC to just the basename; use the full file name.
4253 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4259 if test -n "$CC"; then
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4261 printf "%s\n" "$CC" >&6; }
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 printf "%s\n" "no" >&6; }
4269 if test -z "$CC"; then
4270 if test -n "$ac_tool_prefix"; then
4271 for ac_prog in cl.exe
4273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 printf %s "checking for $ac_word... " >&6; }
4277 if test ${ac_cv_prog_CC+y}
4279 printf %s "(cached) " >&6
4281 if test -n "$CC"; then
4282 ac_cv_prog_CC="$CC" # Let the user override the test.
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 case $as_dir in #(((
4291 *) as_dir=$as_dir/ ;;
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4306 if test -n "$CC"; then
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4308 printf "%s\n" "$CC" >&6; }
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 printf "%s\n" "no" >&6; }
4315 test -n "$CC" && break
4318 if test -z "$CC"; then
4320 for ac_prog in cl.exe
4322 # Extract the first word of "$ac_prog", so it can be a program name with args.
4323 set dummy $ac_prog; ac_word=$2
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 printf %s "checking for $ac_word... " >&6; }
4326 if test ${ac_cv_prog_ac_ct_CC+y}
4328 printf %s "(cached) " >&6
4330 if test -n "$ac_ct_CC"; then
4331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 case $as_dir in #(((
4340 *) as_dir=$as_dir/ ;;
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4344 ac_cv_prog_ac_ct_CC="$ac_prog"
4345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4354 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4355 if test -n "$ac_ct_CC"; then
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4357 printf "%s\n" "$ac_ct_CC" >&6; }
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 printf "%s\n" "no" >&6; }
4364 test -n "$ac_ct_CC" && break
4367 if test "x$ac_ct_CC" = x; then
4370 case $cross_compiling:$ac_tool_warned in
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4373 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4374 ac_tool_warned=yes ;;
4381 if test -z "$CC"; then
4382 if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4384 set dummy ${ac_tool_prefix}clang; ac_word=$2
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 printf %s "checking for $ac_word... " >&6; }
4387 if test ${ac_cv_prog_CC+y}
4389 printf %s "(cached) " >&6
4391 if test -n "$CC"; then
4392 ac_cv_prog_CC="$CC" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 case $as_dir in #(((
4401 *) as_dir=$as_dir/ ;;
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4405 ac_cv_prog_CC="${ac_tool_prefix}clang"
4406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4416 if test -n "$CC"; then
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4418 printf "%s\n" "$CC" >&6; }
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 printf "%s\n" "no" >&6; }
4426 if test -z "$ac_cv_prog_CC"; then
4428 # Extract the first word of "clang", so it can be a program name with args.
4429 set dummy clang; ac_word=$2
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431 printf %s "checking for $ac_word... " >&6; }
4432 if test ${ac_cv_prog_ac_ct_CC+y}
4434 printf %s "(cached) " >&6
4436 if test -n "$ac_ct_CC"; then
4437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 case $as_dir in #(((
4446 *) as_dir=$as_dir/ ;;
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4450 ac_cv_prog_ac_ct_CC="clang"
4451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4461 if test -n "$ac_ct_CC"; then
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4463 printf "%s\n" "$ac_ct_CC" >&6; }
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 printf "%s\n" "no" >&6; }
4469 if test "x$ac_ct_CC" = x; then
4472 case $cross_compiling:$ac_tool_warned in
4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4475 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4476 ac_tool_warned=yes ;;
4487 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4489 as_fn_error $? "no acceptable C compiler found in \$PATH
4490 See \`config.log' for more details" "$LINENO" 5; }
4492 # Provide some information about the compiler.
4493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4496 for ac_option in --version -v -V -qversion -version; do
4497 { { ac_try="$ac_compiler $ac_option >&5"
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 printf "%s\n" "$ac_try_echo"; } >&5
4504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506 if test -s conftest.err; then
4508 ... rest of stderr output deleted ...
4509 10q' conftest.err >conftest.er1
4510 cat conftest.er1 >&5
4512 rm -f conftest.er1 conftest.err
4513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4518 printf %s "checking whether the compiler supports GNU C... " >&6; }
4519 if test ${ac_cv_c_compiler_gnu+y}
4521 printf %s "(cached) " >&6
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4537 if ac_fn_c_try_compile "$LINENO"
4543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4548 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551 if test $ac_compiler_gnu = yes; then
4556 ac_test_CFLAGS=${CFLAGS+y}
4557 ac_save_CFLAGS=$CFLAGS
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4559 printf %s "checking whether $CC accepts -g... " >&6; }
4560 if test ${ac_cv_prog_cc_g+y}
4562 printf %s "(cached) " >&6
4564 ac_save_c_werror_flag=$ac_c_werror_flag
4565 ac_c_werror_flag=yes
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4579 if ac_fn_c_try_compile "$LINENO"
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4595 if ac_fn_c_try_compile "$LINENO"
4599 ac_c_werror_flag=$ac_save_c_werror_flag
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4612 if ac_fn_c_try_compile "$LINENO"
4616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4621 ac_c_werror_flag=$ac_save_c_werror_flag
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4624 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4625 if test $ac_test_CFLAGS; then
4626 CFLAGS=$ac_save_CFLAGS
4627 elif test $ac_cv_prog_cc_g = yes; then
4628 if test "$GCC" = yes; then
4634 if test "$GCC" = yes; then
4641 if test x$ac_prog_cc_stdc = xno
4643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4644 printf %s "checking for $CC option to enable C11 features... " >&6; }
4645 if test ${ac_cv_prog_cc_c11+y}
4647 printf %s "(cached) " >&6
4649 ac_cv_prog_cc_c11=no
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4653 $ac_c_conftest_c11_program
4655 for ac_arg in '' -std=gnu11
4657 CC="$ac_save_CC $ac_arg"
4658 if ac_fn_c_try_compile "$LINENO"
4660 ac_cv_prog_cc_c11=$ac_arg
4662 rm -f core conftest.err conftest.$ac_objext conftest.beam
4663 test "x$ac_cv_prog_cc_c11" != "xno" && break
4665 rm -f conftest.$ac_ext
4669 if test "x$ac_cv_prog_cc_c11" = xno
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4672 printf "%s\n" "unsupported" >&6; }
4674 if test "x$ac_cv_prog_cc_c11" = x
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4677 printf "%s\n" "none needed" >&6; }
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4680 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4681 CC="$CC $ac_cv_prog_cc_c11"
4683 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4687 if test x$ac_prog_cc_stdc = xno
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4690 printf %s "checking for $CC option to enable C99 features... " >&6; }
4691 if test ${ac_cv_prog_cc_c99+y}
4693 printf %s "(cached) " >&6
4695 ac_cv_prog_cc_c99=no
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 $ac_c_conftest_c99_program
4701 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4703 CC="$ac_save_CC $ac_arg"
4704 if ac_fn_c_try_compile "$LINENO"
4706 ac_cv_prog_cc_c99=$ac_arg
4708 rm -f core conftest.err conftest.$ac_objext conftest.beam
4709 test "x$ac_cv_prog_cc_c99" != "xno" && break
4711 rm -f conftest.$ac_ext
4715 if test "x$ac_cv_prog_cc_c99" = xno
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4718 printf "%s\n" "unsupported" >&6; }
4720 if test "x$ac_cv_prog_cc_c99" = x
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4723 printf "%s\n" "none needed" >&6; }
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4726 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4727 CC="$CC $ac_cv_prog_cc_c99"
4729 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4733 if test x$ac_prog_cc_stdc = xno
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4736 printf %s "checking for $CC option to enable C89 features... " >&6; }
4737 if test ${ac_cv_prog_cc_c89+y}
4739 printf %s "(cached) " >&6
4741 ac_cv_prog_cc_c89=no
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 $ac_c_conftest_c89_program
4747 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4749 CC="$ac_save_CC $ac_arg"
4750 if ac_fn_c_try_compile "$LINENO"
4752 ac_cv_prog_cc_c89=$ac_arg
4754 rm -f core conftest.err conftest.$ac_objext conftest.beam
4755 test "x$ac_cv_prog_cc_c89" != "xno" && break
4757 rm -f conftest.$ac_ext
4761 if test "x$ac_cv_prog_cc_c89" = xno
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4764 printf "%s\n" "unsupported" >&6; }
4766 if test "x$ac_cv_prog_cc_c89" = x
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4769 printf "%s\n" "none needed" >&6; }
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4772 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4773 CC="$CC $ac_cv_prog_cc_c89"
4775 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4781 ac_cpp='$CPP $CPPFLAGS'
4782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788 # Find a good install program. We prefer a C program (faster),
4789 # so one script is as good as another. But avoid the broken or
4790 # incompatible versions:
4791 # SysV /etc/install, /usr/sbin/install
4792 # SunOS /usr/etc/install
4793 # IRIX /sbin/install
4795 # AmigaOS /C/install, which installs bootblocks on floppy discs
4796 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4797 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4798 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4799 # OS/2's system install, which has a completely different semantic
4800 # ./install, which can be erroneously created by make from ./install.sh.
4801 # Reject install programs that cannot install multiple files.
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4803 printf %s "checking for a BSD-compatible install... " >&6; }
4804 if test -z "$INSTALL"; then
4805 if test ${ac_cv_path_install+y}
4807 printf %s "(cached) " >&6
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 case $as_dir in #(((
4816 *) as_dir=$as_dir/ ;;
4818 # Account for fact that we put trailing slashes in our PATH walk.
4821 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4822 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4825 # OSF1 and SCO ODT 3.0 have their own names for install.
4826 # Don't use installbsd from OSF since it installs stuff as root
4828 for ac_prog in ginstall scoinst install; do
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4831 if test $ac_prog = install &&
4832 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4833 # AIX install. It has an incompatible calling convention.
4835 elif test $ac_prog = install &&
4836 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4837 # program-specific install script used by HP pwplus--don't use.
4840 rm -rf conftest.one conftest.two conftest.dir
4841 echo one > conftest.one
4842 echo two > conftest.two
4844 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4845 test -s conftest.one && test -s conftest.two &&
4846 test -s conftest.dir/conftest.one &&
4847 test -s conftest.dir/conftest.two
4849 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4862 rm -rf conftest.one conftest.two conftest.dir
4865 if test ${ac_cv_path_install+y}; then
4866 INSTALL=$ac_cv_path_install
4868 # As a last resort, use the slow shell script. Don't cache a
4869 # value for INSTALL within a source directory, because that will
4870 # break other packages using the cache if that directory is
4871 # removed, or if the value is a relative name.
4872 INSTALL=$ac_install_sh
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4876 printf "%s\n" "$INSTALL" >&6; }
4878 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4879 # It thinks the first close brace ends the variable substitution.
4880 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4882 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4884 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4886 # We have to override that on some systems
4888 IRIX*) ac_INSTALL=$srcdir/install-sh;;
4890 if test -x /usr/bin/getconf; then
4891 bmake_path_max=`getconf PATH_MAX / 2> /dev/null`
4892 # only a numeric response is useful
4893 test ${bmake_path_max:-0} -gt 0 2> /dev/null || bmake_path_max=
4895 bmake_path_max=${bmake_path_max:-1024}
4896 if test $bmake_path_max -gt 1024; then
4897 # this is all we expect
4900 echo "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6
4901 # if type does not work which(1) had better!
4902 # note we cannot rely on type returning non-zero on failure
4903 if (type cat) > /dev/null 2>&1; then
4906 type "$@" | sed 's,[()],,g;s,^[^/][^/]*,,;q'
4917 if test -x ${_cc:-/dev/null}; then
4918 _cc_dir=`dirname $_cc`
4919 case ":$oldPATH:" in
4921 *) CC=$_cc_dir/$CC;;
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4927 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4928 if test ${ac_cv_header_sys_wait_h+y}
4930 printf %s "(cached) " >&6
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 #include <sys/types.h>
4935 #include <sys/wait.h>
4937 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4940 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4948 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4953 if ac_fn_c_try_compile "$LINENO"
4955 ac_cv_header_sys_wait_h=yes
4957 ac_cv_header_sys_wait_h=no
4959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4962 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
4963 if test $ac_cv_header_sys_wait_h = yes; then
4965 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4970 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4971 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4973 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
4974 if eval test \${$as_ac_Header+y}
4976 printf %s "(cached) " >&6
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980 #include <sys/types.h>
4992 if ac_fn_c_try_compile "$LINENO"
4994 eval "$as_ac_Header=yes"
4996 eval "$as_ac_Header=no"
4998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5000 eval ac_res=\$$as_ac_Header
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5002 printf "%s\n" "$ac_res" >&6; }
5003 if eval test \"x\$"$as_ac_Header"\" = x"yes"
5005 cat >>confdefs.h <<_ACEOF
5006 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
5009 ac_header_dirent=$ac_hdr; break
5013 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5014 if test $ac_header_dirent = dirent.h; then
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5016 printf %s "checking for library containing opendir... " >&6; }
5017 if test ${ac_cv_search_opendir+y}
5019 printf %s "(cached) " >&6
5021 ac_func_search_save_LIBS=$LIBS
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5025 /* Override any GCC internal prototype to avoid an error.
5026 Use char because int might match the return type of a GCC
5027 builtin and then its argument prototype would still apply. */
5037 for ac_lib in '' dir
5039 if test -z "$ac_lib"; then
5040 ac_res="none required"
5043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5045 if ac_fn_c_try_link "$LINENO"
5047 ac_cv_search_opendir=$ac_res
5049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5051 if test ${ac_cv_search_opendir+y}
5056 if test ${ac_cv_search_opendir+y}
5060 ac_cv_search_opendir=no
5063 LIBS=$ac_func_search_save_LIBS
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5066 printf "%s\n" "$ac_cv_search_opendir" >&6; }
5067 ac_res=$ac_cv_search_opendir
5068 if test "$ac_res" != no
5070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5076 printf %s "checking for library containing opendir... " >&6; }
5077 if test ${ac_cv_search_opendir+y}
5079 printf %s "(cached) " >&6
5081 ac_func_search_save_LIBS=$LIBS
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5085 /* Override any GCC internal prototype to avoid an error.
5086 Use char because int might match the return type of a GCC
5087 builtin and then its argument prototype would still apply. */
5099 if test -z "$ac_lib"; then
5100 ac_res="none required"
5103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5105 if ac_fn_c_try_link "$LINENO"
5107 ac_cv_search_opendir=$ac_res
5109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5111 if test ${ac_cv_search_opendir+y}
5116 if test ${ac_cv_search_opendir+y}
5120 ac_cv_search_opendir=no
5123 LIBS=$ac_func_search_save_LIBS
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5126 printf "%s\n" "$ac_cv_search_opendir" >&6; }
5127 ac_res=$ac_cv_search_opendir
5128 if test "$ac_res" != no
5130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5136 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5137 if test "x$ac_cv_header_sys_param_h" = xyes
5139 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5143 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#ifdef HAVE_SYS_PARAM_H
5144 # include <sys/param.h>
5148 if test "x$ac_cv_header_sys_sysctl_h" = xyes
5150 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
5155 ac_fn_c_check_header_compile "$LINENO" "ar.h" "ac_cv_header_ar_h" "$ac_includes_default"
5156 if test "x$ac_cv_header_ar_h" = xyes
5158 printf "%s\n" "#define HAVE_AR_H 1" >>confdefs.h
5161 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
5162 if test "x$ac_cv_header_err_h" = xyes
5164 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
5167 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
5168 if test "x$ac_cv_header_fcntl_h" = xyes
5170 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
5173 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
5174 if test "x$ac_cv_header_libgen_h" = xyes
5176 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
5179 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5180 if test "x$ac_cv_header_limits_h" = xyes
5182 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
5185 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
5186 if test "x$ac_cv_header_paths_h" = xyes
5188 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
5191 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
5192 if test "x$ac_cv_header_poll_h" = xyes
5194 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
5197 ac_fn_c_check_header_compile "$LINENO" "ranlib.h" "ac_cv_header_ranlib_h" "$ac_includes_default"
5198 if test "x$ac_cv_header_ranlib_h" = xyes
5200 printf "%s\n" "#define HAVE_RANLIB_H 1" >>confdefs.h
5203 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
5204 if test "x$ac_cv_header_sys_mman_h" = xyes
5206 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
5209 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5210 if test "x$ac_cv_header_sys_select_h" = xyes
5212 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
5215 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
5216 if test "x$ac_cv_header_sys_socket_h" = xyes
5218 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
5221 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5222 if test "x$ac_cv_header_sys_time_h" = xyes
5224 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
5227 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
5228 if test "x$ac_cv_header_sys_uio_h" = xyes
5230 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
5233 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
5234 if test "x$ac_cv_header_utime_h" = xyes
5236 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
5241 ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
5242 if test "x$ac_cv_header_sys_cdefs_h" = xyes
5246 CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`"
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
5252 printf %s "checking for __attribute__... " >&6; }
5253 if test ${ac_cv___attribute__+y}
5255 printf %s "(cached) " >&6
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5263 static void foo(void) __attribute__ ((noreturn));
5272 main(int argc, char **argv)
5278 if ac_fn_c_try_link "$LINENO"
5280 ac_cv___attribute__=yes
5282 ac_cv___attribute__=no
5284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5285 conftest$ac_exeext conftest.$ac_ext
5288 if test "$ac_cv___attribute__" = "yes"; then
5290 printf "%s\n" "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
5294 printf "%s\n" "$ac_cv___attribute__" >&6; }
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5297 printf %s "checking whether byte ordering is bigendian... " >&6; }
5298 if test ${ac_cv_c_bigendian+y}
5300 printf %s "(cached) " >&6
5302 ac_cv_c_bigendian=unknown
5303 # See if we're dealing with a universal compiler.
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #ifndef __APPLE_CC__
5307 not a universal capable compiler
5312 if ac_fn_c_try_compile "$LINENO"
5315 # Check for potential -arch flags. It is not universal unless
5316 # there are at least two -arch flags with different values.
5319 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5320 if test -n "$ac_prev"; then
5322 i?86 | x86_64 | ppc | ppc64)
5323 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5326 ac_cv_c_bigendian=universal
5332 elif test "x$ac_word" = "x-arch"; then
5337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5338 if test $ac_cv_c_bigendian = unknown; then
5339 # See if sys/param.h defines the BYTE_ORDER macro.
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342 #include <sys/types.h>
5343 #include <sys/param.h>
5348 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5349 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5358 if ac_fn_c_try_compile "$LINENO"
5360 # It does; now see whether it defined to BIG_ENDIAN or not.
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 #include <sys/types.h>
5364 #include <sys/param.h>
5369 #if BYTE_ORDER != BIG_ENDIAN
5377 if ac_fn_c_try_compile "$LINENO"
5379 ac_cv_c_bigendian=yes
5381 ac_cv_c_bigendian=no
5383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5387 if test $ac_cv_c_bigendian = unknown; then
5388 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5396 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5404 if ac_fn_c_try_compile "$LINENO"
5406 # It does; now see whether it defined to _BIG_ENDIAN or not.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5422 if ac_fn_c_try_compile "$LINENO"
5424 ac_cv_c_bigendian=yes
5426 ac_cv_c_bigendian=no
5428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5432 if test $ac_cv_c_bigendian = unknown; then
5433 # Compile a test program.
5434 if test "$cross_compiling" = yes
5436 # Try to guess by grepping values from an object file.
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 unsigned short int ascii_mm[] =
5440 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5441 unsigned short int ascii_ii[] =
5442 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5443 int use_ascii (int i) {
5444 return ascii_mm[i] + ascii_ii[i];
5446 unsigned short int ebcdic_ii[] =
5447 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5448 unsigned short int ebcdic_mm[] =
5449 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5450 int use_ebcdic (int i) {
5451 return ebcdic_mm[i] + ebcdic_ii[i];
5458 return use_ascii (foo) == use_ebcdic (foo);
5463 if ac_fn_c_try_compile "$LINENO"
5465 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5466 ac_cv_c_bigendian=yes
5468 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5469 if test "$ac_cv_c_bigendian" = unknown; then
5470 ac_cv_c_bigendian=no
5472 # finding both strings is unlikely to happen, but who knows?
5473 ac_cv_c_bigendian=unknown
5477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 $ac_includes_default
5486 /* Are we little or big endian? From Harbison&Steele. */
5490 char c[sizeof (long int)];
5493 return u.c[sizeof (long int) - 1] == 1;
5499 if ac_fn_c_try_run "$LINENO"
5501 ac_cv_c_bigendian=no
5503 ac_cv_c_bigendian=yes
5505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5506 conftest.$ac_objext conftest.beam conftest.$ac_ext
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5512 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5513 case $ac_cv_c_bigendian in #(
5515 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5521 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5525 as_fn_error $? "unknown endianness
5526 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5530 printf %s "checking for an ANSI C-conforming const... " >&6; }
5531 if test ${ac_cv_c_const+y}
5533 printf %s "(cached) " >&6
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5543 /* Ultrix mips cc rejects this sort of thing. */
5544 typedef int charset[2];
5545 const charset cs = { 0, 0 };
5546 /* SunOS 4.1.1 cc rejects this. */
5547 char const *const *pcpcc;
5549 /* NEC SVR4.0.2 mips cc rejects this. */
5550 struct point {int x, y;};
5551 static struct point const zero = {0,0};
5552 /* IBM XL C 1.02.0.0 rejects this.
5553 It does not let you subtract one const X* pointer from another in
5554 an arm of an if-expression whose if-part is not a constant
5556 const char *g = "string";
5557 pcpcc = &g + (g ? g-g : 0);
5558 /* HPUX 7.0 cc rejects these. */
5560 ppc = (char**) pcpcc;
5561 pcpcc = (char const *const *) ppc;
5562 { /* SCO 3.2v4 cc rejects this sort of thing. */
5565 char const *s = 0 ? (char *) 0 : (char const *) 0;
5570 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5572 const int *foo = &x[0];
5575 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5576 typedef const int *iptr;
5580 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5581 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5582 struct s { int j; const int *ap[3]; } bx;
5583 struct s *b = &bx; b->j = 5;
5585 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5589 return !cs[0] && !zero.x;
5596 if ac_fn_c_try_compile "$LINENO"
5602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5605 printf "%s\n" "$ac_cv_c_const" >&6; }
5606 if test $ac_cv_c_const = no; then
5608 printf "%s\n" "#define const /**/" >>confdefs.h
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5613 printf %s "checking for inline... " >&6; }
5614 if test ${ac_cv_c_inline+y}
5616 printf %s "(cached) " >&6
5619 for ac_kw in inline __inline__ __inline; do
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5624 static $ac_kw foo_t static_foo (void) {return 0; }
5625 $ac_kw foo_t foo (void) {return 0; }
5629 if ac_fn_c_try_compile "$LINENO"
5631 ac_cv_c_inline=$ac_kw
5633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5634 test "$ac_cv_c_inline" != no && break
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5639 printf "%s\n" "$ac_cv_c_inline" >&6; }
5641 case $ac_cv_c_inline in
5644 case $ac_cv_c_inline in
5646 *) ac_val=$ac_cv_c_inline;;
5648 cat >>confdefs.h <<_ACEOF
5650 #define inline $ac_val
5656 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5657 case $ac_cv_c_int64_t in #(
5661 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5667 printf %s "checking for unsigned long long int... " >&6; }
5668 if test ${ac_cv_type_unsigned_long_long_int+y}
5670 printf %s "(cached) " >&6
5672 ac_cv_type_unsigned_long_long_int=yes
5673 case $ac_prog_cc_stdc in
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5679 /* For now, do not test the preprocessor; as of 2007 there are too many
5680 implementations with broken preprocessors. Perhaps this can
5681 be revisited in 2012. In the meantime, code should not expect
5682 #if to work with literals wider than 32 bits. */
5683 /* Test literals. */
5684 long long int ll = 9223372036854775807ll;
5685 long long int nll = -9223372036854775807LL;
5686 unsigned long long int ull = 18446744073709551615ULL;
5687 /* Test constant expressions. */
5688 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5690 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5696 /* Test availability of runtime routines for shift and division. */
5697 long long int llmax = 9223372036854775807ll;
5698 unsigned long long int ullmax = 18446744073709551615ull;
5699 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5700 | (llmax / ll) | (llmax % ll)
5701 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5702 | (ullmax / ull) | (ullmax % ull));
5708 if ac_fn_c_try_link "$LINENO"
5712 ac_cv_type_unsigned_long_long_int=no
5714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5715 conftest$ac_exeext conftest.$ac_ext;;
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5719 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
5720 if test $ac_cv_type_unsigned_long_long_int = yes; then
5722 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5729 printf %s "checking for long long int... " >&6; }
5730 if test ${ac_cv_type_long_long_int+y}
5732 printf %s "(cached) " >&6
5734 ac_cv_type_long_long_int=yes
5735 case $ac_prog_cc_stdc in
5738 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5739 if test $ac_cv_type_long_long_int = yes; then
5740 if test "$cross_compiling" = yes
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5749 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5750 # define LLONG_MAX (HALF - 1 + HALF)
5755 long long int n = 1;
5759 long long int m = n << i;
5762 if (LLONG_MAX / 2 < m)
5770 if ac_fn_c_try_run "$LINENO"
5774 ac_cv_type_long_long_int=no
5776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5777 conftest.$ac_objext conftest.beam conftest.$ac_ext
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5784 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
5785 if test $ac_cv_type_long_long_int = yes; then
5787 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5791 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5792 if test "x$ac_cv_type_mode_t" = xyes
5797 printf "%s\n" "#define mode_t int" >>confdefs.h
5801 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5802 if test "x$ac_cv_type_off_t" = xyes
5807 printf "%s\n" "#define off_t long int" >>confdefs.h
5812 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
5814 if test "x$ac_cv_type_pid_t" = xyes
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5821 #if defined _WIN64 && !defined __CYGWIN__
5834 if ac_fn_c_try_compile "$LINENO"
5838 ac_pid_type='__int64'
5840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5842 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
5848 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5849 if test "x$ac_cv_type_size_t" = xyes
5854 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5858 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5859 case $ac_cv_c_uint32_t in #(
5863 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
5866 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5871 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5872 if test ${ac_cv_c_undeclared_builtin_options+y}
5874 printf %s "(cached) " >&6
5876 ac_save_CFLAGS=$CFLAGS
5877 ac_cv_c_undeclared_builtin_options='cannot detect'
5878 for ac_arg in '' -fno-builtin; do
5879 CFLAGS="$ac_save_CFLAGS $ac_arg"
5880 # This test program should *not* compile successfully.
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5892 if ac_fn_c_try_compile "$LINENO"
5896 # This test program should compile successfully.
5897 # No library function is consistently available on
5898 # freestanding implementations, so test against a dummy
5899 # declaration. Include always-available headers on the
5900 # off chance that they somehow elicit warnings.
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5907 extern void ac_decl (int, char *);
5912 (void) ac_decl (0, (char *) 0);
5919 if ac_fn_c_try_compile "$LINENO"
5921 if test x"$ac_arg" = x
5923 ac_cv_c_undeclared_builtin_options='none needed'
5925 ac_cv_c_undeclared_builtin_options=$ac_arg
5929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5933 CFLAGS=$ac_save_CFLAGS
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5937 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5938 case $ac_cv_c_undeclared_builtin_options in #(
5940 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5941 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5942 as_fn_error $? "cannot make $CC report undeclared builtins
5943 See \`config.log' for more details" "$LINENO" 5; } ;; #(
5945 ac_c_undeclared_builtin_options='' ;; #(
5947 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5950 ac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
5951 /* NetBSD declares sys_siglist in unistd.h. */
5952 #ifdef HAVE_UNISTD_H
5953 # include <unistd.h>
5956 " "$ac_c_undeclared_builtin_options" "CFLAGS"
5957 if test "x$ac_cv_have_decl_sys_siglist" = xyes
5963 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5970 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5971 if test ${ac_cv_struct_tm+y}
5973 printf %s "(cached) " >&6
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5977 #include <sys/types.h>
5984 int *p = &tm.tm_sec;
5990 if ac_fn_c_try_compile "$LINENO"
5992 ac_cv_struct_tm=time.h
5994 ac_cv_struct_tm=sys/time.h
5996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5999 printf "%s\n" "$ac_cv_struct_tm" >&6; }
6000 if test $ac_cv_struct_tm = sys/time.h; then
6002 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
6008 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
6009 #ifdef HAVE_SYS_TYPES_H
6010 #include <sys/types.h>
6015 if test "x$ac_cv_type_sig_atomic_t" = xyes
6018 printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
6026 for ac_item in $ac_func_c_list
6028 if test $ac_func; then
6029 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
6030 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
6031 echo "#define $ac_item 1" >> confdefs.h
6041 if test "x$ac_cv_func_fork" = xyes; then
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6043 printf %s "checking for working fork... " >&6; }
6044 if test ${ac_cv_func_fork_works+y}
6046 printf %s "(cached) " >&6
6048 if test "$cross_compiling" = yes
6050 ac_cv_func_fork_works=cross
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 $ac_includes_default
6059 /* By Ruediger Kuhlmann. */
6066 if ac_fn_c_try_run "$LINENO"
6068 ac_cv_func_fork_works=yes
6070 ac_cv_func_fork_works=no
6072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6073 conftest.$ac_objext conftest.beam conftest.$ac_ext
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6078 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
6081 ac_cv_func_fork_works=$ac_cv_func_fork
6083 if test "x$ac_cv_func_fork_works" = xcross; then
6085 *-*-amigaos* | *-*-msdosdjgpp*)
6086 # Override, as these systems have only a dummy fork() stub
6087 ac_cv_func_fork_works=no
6090 ac_cv_func_fork_works=yes
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6094 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6096 ac_cv_func_vfork_works=$ac_cv_func_vfork
6097 if test "x$ac_cv_func_vfork" = xyes; then
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6099 printf %s "checking for working vfork... " >&6; }
6100 if test ${ac_cv_func_vfork_works+y}
6102 printf %s "(cached) " >&6
6104 if test "$cross_compiling" = yes
6106 ac_cv_func_vfork_works=cross
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 /* Thanks to Paul Eggert for this test. */
6111 $ac_includes_default
6113 #include <sys/wait.h>
6119 do_nothing (int sig)
6124 /* On some sparc systems, changes by the child to local and incoming
6125 argument registers are propagated back to the parent. The compiler
6126 is told about this with #include <vfork.h>, but some compilers
6127 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6128 static variable whose address is put into a register that is
6129 clobbered by the vfork. */
6131 sparc_address_test (int arg)
6151 pid_t parent = getpid ();
6154 sparc_address_test (0);
6156 /* On Solaris 2.4, changes by the child to the signal handler
6157 also munge signal handlers in the parent. To detect this,
6158 start by putting the parent's handler in a known state. */
6159 signal (SIGTERM, SIG_DFL);
6164 /* Here is another test for sparc vfork register problems. This
6165 test uses lots of local variables, at least as many local
6166 variables as main has allocated so far including compiler
6167 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6168 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6169 reuse the register of parent for one of the local variables,
6170 since it will think that parent can't possibly be used any more
6171 in this routine. Assigning to the local variable will thus
6172 munge parent in the parent process. */
6174 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6175 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6176 /* Convince the compiler that p..p7 are live; otherwise, it might
6177 use the same hardware register for all 8 local variables. */
6178 if (p != p1 || p != p2 || p != p3 || p != p4
6179 || p != p5 || p != p6 || p != p7)
6182 /* Alter the child's signal handler. */
6183 if (signal (SIGTERM, do_nothing) != SIG_DFL)
6186 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6187 from child file descriptors. If the child closes a descriptor
6188 before it execs or exits, this munges the parent's descriptor
6189 as well. Test for this by closing stdout in the child. */
6190 _exit(close(fileno(stdout)) != 0);
6195 while (wait(&status) != child)
6198 /* Was there some problem with vforking? */
6201 /* Did the child munge the parent's signal handler? */
6202 || signal (SIGTERM, SIG_DFL) != SIG_DFL
6204 /* Did the child fail? (This shouldn't happen.) */
6207 /* Did the vfork/compiler bug occur? */
6208 || parent != getpid()
6210 /* Did the file descriptor bug occur? */
6211 || fstat(fileno(stdout), &st) != 0
6216 if ac_fn_c_try_run "$LINENO"
6218 ac_cv_func_vfork_works=yes
6220 ac_cv_func_vfork_works=no
6222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6223 conftest.$ac_objext conftest.beam conftest.$ac_ext
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6228 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
6231 if test "x$ac_cv_func_fork_works" = xcross; then
6232 ac_cv_func_vfork_works=$ac_cv_func_vfork
6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6234 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6237 if test "x$ac_cv_func_vfork_works" = xyes; then
6239 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6243 printf "%s\n" "#define vfork fork" >>confdefs.h
6246 if test "x$ac_cv_func_fork_works" = xyes; then
6248 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
6254 if test "x$ac_cv_func_vprintf" = xno
6256 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6257 if test "x$ac_cv_func__doprnt" = xyes
6260 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
6266 printf %s "checking for wait3 that fills in rusage... " >&6; }
6267 if test ${ac_cv_func_wait3_rusage+y}
6269 printf %s "(cached) " >&6
6271 if test "$cross_compiling" = yes
6273 ac_cv_func_wait3_rusage=no
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 $ac_includes_default
6278 #include <sys/time.h>
6279 #include <sys/resource.h>
6280 #include <sys/wait.h>
6281 /* HP-UX has wait3 but does not fill in rusage at all. */
6287 /* Use a field that we can force nonzero --
6288 voluntary context switches.
6289 For systems like NeXT and OSF/1 that don't set it,
6290 also use the system CPU time. And page faults (I/O) for Linux. */
6292 r.ru_stime.tv_sec = 0;
6293 r.ru_stime.tv_usec = 0;
6294 r.ru_majflt = r.ru_minflt = 0;
6297 case 0: /* Child. */
6298 sleep(1); /* Give up the CPU. */
6301 case -1: /* What can we do? */
6304 default: /* Parent. */
6306 /* Avoid "text file busy" from rm on fast HP-UX machines. */
6308 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
6309 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
6313 if ac_fn_c_try_run "$LINENO"
6315 ac_cv_func_wait3_rusage=yes
6317 ac_cv_func_wait3_rusage=no
6319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6320 conftest.$ac_objext conftest.beam conftest.$ac_ext
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
6325 printf "%s\n" "$ac_cv_func_wait3_rusage" >&6; }
6326 if test $ac_cv_func_wait3_rusage = yes; then
6328 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
6332 ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
6333 if test "x$ac_cv_func_err" = xyes
6335 printf "%s\n" "#define HAVE_ERR 1" >>confdefs.h
6338 ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx"
6339 if test "x$ac_cv_func_errx" = xyes
6341 printf "%s\n" "#define HAVE_ERRX 1" >>confdefs.h
6344 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
6345 if test "x$ac_cv_func_getcwd" = xyes
6347 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
6350 ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
6351 if test "x$ac_cv_func_getenv" = xyes
6353 printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
6356 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
6357 if test "x$ac_cv_func_getwd" = xyes
6359 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
6362 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
6363 if test "x$ac_cv_func_killpg" = xyes
6365 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
6368 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
6369 if test "x$ac_cv_func_mmap" = xyes
6371 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
6374 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
6375 if test "x$ac_cv_func_putenv" = xyes
6377 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
6380 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
6381 if test "x$ac_cv_func_select" = xyes
6383 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
6386 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
6387 if test "x$ac_cv_func_setenv" = xyes
6389 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
6392 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
6393 if test "x$ac_cv_func_setpgid" = xyes
6395 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
6398 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
6399 if test "x$ac_cv_func_setrlimit" = xyes
6401 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
6404 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
6405 if test "x$ac_cv_func_setsid" = xyes
6407 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
6410 ac_fn_c_check_func "$LINENO" "sigaddset" "ac_cv_func_sigaddset"
6411 if test "x$ac_cv_func_sigaddset" = xyes
6413 printf "%s\n" "#define HAVE_SIGADDSET 1" >>confdefs.h
6416 ac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending"
6417 if test "x$ac_cv_func_sigpending" = xyes
6419 printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h
6422 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
6423 if test "x$ac_cv_func_sigprocmask" = xyes
6425 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
6428 ac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask"
6429 if test "x$ac_cv_func_sigsetmask" = xyes
6431 printf "%s\n" "#define HAVE_SIGSETMASK 1" >>confdefs.h
6434 ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
6435 if test "x$ac_cv_func_sigsuspend" = xyes
6437 printf "%s\n" "#define HAVE_SIGSUSPEND 1" >>confdefs.h
6440 ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
6441 if test "x$ac_cv_func_sigvec" = xyes
6443 printf "%s\n" "#define HAVE_SIGVEC 1" >>confdefs.h
6446 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
6447 if test "x$ac_cv_func_snprintf" = xyes
6449 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
6452 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
6453 if test "x$ac_cv_func_strerror" = xyes
6455 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
6458 ac_fn_c_check_func "$LINENO" "stresep" "ac_cv_func_stresep"
6459 if test "x$ac_cv_func_stresep" = xyes
6461 printf "%s\n" "#define HAVE_STRESEP 1" >>confdefs.h
6464 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
6465 if test "x$ac_cv_func_strftime" = xyes
6467 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
6470 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
6471 if test "x$ac_cv_func_strsep" = xyes
6473 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
6476 ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
6477 if test "x$ac_cv_func_strtod" = xyes
6479 printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
6482 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
6483 if test "x$ac_cv_func_strtol" = xyes
6485 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
6488 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
6489 if test "x$ac_cv_func_strtoll" = xyes
6491 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
6494 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
6495 if test "x$ac_cv_func_strtoul" = xyes
6497 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
6500 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
6501 if test "x$ac_cv_func_sysctl" = xyes
6503 printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h
6506 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6507 if test "x$ac_cv_func_unsetenv" = xyes
6509 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
6512 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6513 if test "x$ac_cv_func_vsnprintf" = xyes
6515 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
6518 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
6519 if test "x$ac_cv_func_wait3" = xyes
6521 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
6524 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
6525 if test "x$ac_cv_func_wait4" = xyes
6527 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
6530 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
6531 if test "x$ac_cv_func_waitpid" = xyes
6533 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
6536 ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
6537 if test "x$ac_cv_func_warn" = xyes
6539 printf "%s\n" "#define HAVE_WARN 1" >>confdefs.h
6542 ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx"
6543 if test "x$ac_cv_func_warnx" = xyes
6545 printf "%s\n" "#define HAVE_WARNX 1" >>confdefs.h
6550 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6551 if test "x$ac_cv_func_getopt" = xyes
6553 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
6556 case " $LIBOBJS " in
6557 *" getopt.$ac_objext "* ) ;;
6558 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
6563 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
6564 if test "x$ac_cv_func_realpath" = xyes
6566 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
6569 case " $LIBOBJS " in
6570 *" realpath.$ac_objext "* ) ;;
6571 *) LIBOBJS="$LIBOBJS realpath.$ac_objext"
6576 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
6577 if test "x$ac_cv_func_dirname" = xyes
6579 printf "%s\n" "#define HAVE_DIRNAME 1" >>confdefs.h
6582 case " $LIBOBJS " in
6583 *" dirname.$ac_objext "* ) ;;
6584 *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
6589 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
6590 if test "x$ac_cv_func_sigaction" = xyes
6592 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
6595 case " $LIBOBJS " in
6596 *" sigaction.$ac_objext "* ) ;;
6597 *) LIBOBJS="$LIBOBJS sigaction.$ac_objext"
6602 ac_fn_c_check_func "$LINENO" "stresep" "ac_cv_func_stresep"
6603 if test "x$ac_cv_func_stresep" = xyes
6605 printf "%s\n" "#define HAVE_STRESEP 1" >>confdefs.h
6608 case " $LIBOBJS " in
6609 *" stresep.$ac_objext "* ) ;;
6610 *) LIBOBJS="$LIBOBJS stresep.$ac_objext"
6615 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6616 if test "x$ac_cv_func_strlcpy" = xyes
6618 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
6621 case " $LIBOBJS " in
6622 *" strlcpy.$ac_objext "* ) ;;
6623 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
6631 printf %s "checking for emalloc in -lutil... " >&6; }
6632 if test ${ac_cv_lib_util_emalloc+y}
6634 printf %s "(cached) " >&6
6636 ac_check_lib_save_LIBS=$LIBS
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6641 /* Override any GCC internal prototype to avoid an error.
6642 Use char because int might match the return type of a GCC
6643 builtin and then its argument prototype would still apply. */
6653 if ac_fn_c_try_link "$LINENO"
6655 ac_cv_lib_util_emalloc=yes
6657 ac_cv_lib_util_emalloc=no
6659 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6660 conftest$ac_exeext conftest.$ac_ext
6661 LIBS=$ac_check_lib_save_LIBS
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
6664 printf "%s\n" "$ac_cv_lib_util_emalloc" >&6; }
6665 if test "x$ac_cv_lib_util_emalloc" = xyes
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
6668 printf %s "checking for erealloc in -lutil... " >&6; }
6669 if test ${ac_cv_lib_util_erealloc+y}
6671 printf %s "(cached) " >&6
6673 ac_check_lib_save_LIBS=$LIBS
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6678 /* Override any GCC internal prototype to avoid an error.
6679 Use char because int might match the return type of a GCC
6680 builtin and then its argument prototype would still apply. */
6690 if ac_fn_c_try_link "$LINENO"
6692 ac_cv_lib_util_erealloc=yes
6694 ac_cv_lib_util_erealloc=no
6696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6697 conftest$ac_exeext conftest.$ac_ext
6698 LIBS=$ac_check_lib_save_LIBS
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
6701 printf "%s\n" "$ac_cv_lib_util_erealloc" >&6; }
6702 if test "x$ac_cv_lib_util_erealloc" = xyes
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
6705 printf %s "checking for estrdup in -lutil... " >&6; }
6706 if test ${ac_cv_lib_util_estrdup+y}
6708 printf %s "(cached) " >&6
6710 ac_check_lib_save_LIBS=$LIBS
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6715 /* Override any GCC internal prototype to avoid an error.
6716 Use char because int might match the return type of a GCC
6717 builtin and then its argument prototype would still apply. */
6727 if ac_fn_c_try_link "$LINENO"
6729 ac_cv_lib_util_estrdup=yes
6731 ac_cv_lib_util_estrdup=no
6733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6734 conftest$ac_exeext conftest.$ac_ext
6735 LIBS=$ac_check_lib_save_LIBS
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
6738 printf "%s\n" "$ac_cv_lib_util_estrdup" >&6; }
6739 if test "x$ac_cv_lib_util_estrdup" = xyes
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
6742 printf %s "checking for estrndup in -lutil... " >&6; }
6743 if test ${ac_cv_lib_util_estrndup+y}
6745 printf %s "(cached) " >&6
6747 ac_check_lib_save_LIBS=$LIBS
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6752 /* Override any GCC internal prototype to avoid an error.
6753 Use char because int might match the return type of a GCC
6754 builtin and then its argument prototype would still apply. */
6764 if ac_fn_c_try_link "$LINENO"
6766 ac_cv_lib_util_estrndup=yes
6768 ac_cv_lib_util_estrndup=no
6770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6771 conftest$ac_exeext conftest.$ac_ext
6772 LIBS=$ac_check_lib_save_LIBS
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
6775 printf "%s\n" "$ac_cv_lib_util_estrndup" >&6; }
6776 if test "x$ac_cv_lib_util_estrndup" = xyes
6779 CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC"
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6790 printf %s "checking whether stat file-mode macros are broken... " >&6; }
6791 if test ${ac_cv_header_stat_broken+y}
6793 printf %s "(cached) " >&6
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 #include <sys/types.h>
6798 #include <sys/stat.h>
6800 #if defined S_ISBLK && defined S_IFDIR
6801 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6804 #if defined S_ISBLK && defined S_IFCHR
6805 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6808 #if defined S_ISLNK && defined S_IFREG
6809 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6812 #if defined S_ISSOCK && defined S_IFREG
6813 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6817 if ac_fn_c_try_compile "$LINENO"
6819 ac_cv_header_stat_broken=no
6821 ac_cv_header_stat_broken=yes
6823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6826 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
6827 if test $ac_cv_header_stat_broken = yes; then
6829 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6833 echo "checking if compiler supports __func__" >&6
6835 ac_cpp='$CPP $CPPFLAGS'
6836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6846 const char *func = __func__;
6851 if ac_fn_c_try_compile "$LINENO"
6856 printf "%s\n" "#define __func__ __FUNCTION__" >>confdefs.h
6859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6860 if test -x /usr/gnu/bin/diff; then
6861 diff=/usr/gnu/bin/diff
6865 echo $ECHO_N "checking if $diff -u works... $ECHO_C" >&6
6866 if $diff -u /dev/null /dev/null > /dev/null 2>&1; then
6874 echo "checking for MACHINE & MACHINE_ARCH..." >&6
6875 cat > conftest.$ac_ext <<EOF
6876 #include "confdefs.h"
6877 #include <sys/param.h>
6882 machine_arch=MACHINE_ARCH
6886 default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6887 grep machine= | tr -d ' "'`
6889 if test "$default_machine"; then
6890 eval "$default_machine"
6892 machine=${machine:-`$srcdir/machine.sh`}
6893 machine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
6894 echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
6896 # Check whether --with-machine was given.
6897 if test ${with_machine+y}
6899 withval=$with_machine; case "${withval}" in
6900 yes) as_fn_error $? "bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
6902 generic) machine=`$srcdir/machine.sh`;;
6903 *) machine=$with_machine;;
6909 # Check whether --with-force_machine was given.
6910 if test ${with_force_machine+y}
6912 withval=$with_force_machine; case "${withval}" in
6913 yes) force_machine=FORCE_;;
6915 *) force_machine=FORCE_; machine=$with_force_machine;;
6921 # Check whether --with-force_machine_arch was given.
6922 if test ${with_force_machine_arch+y}
6924 withval=$with_force_machine_arch; case "${withval}" in
6925 yes) force_machine_arch=FORCE_;;
6927 *) force_machine_arch=FORCE_; machine_arch=$with_force_machine_arch;;
6932 # Check whether --with-machine_arch was given.
6933 if test ${with_machine_arch+y}
6935 withval=$with_machine_arch; case "${withval}" in
6936 yes) as_fn_error $? "bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
6938 *) machine_arch=$with_machine_arch;;
6942 echo "Using: ${force_machine}MACHINE=$machine, ${force_machine_arch}MACHINE_ARCH=$machine_arch" 1>&6
6943 default_sys_path=\${prefix}/share/mk
6945 # Check whether --with-default-sys-path was given.
6946 if test ${with_default_sys_path+y}
6948 withval=$with_default_sys_path; case "${withval}" in
6949 yes) as_fn_error $? "bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
6951 *) default_sys_path="$with_default_sys_path"
6957 # Check whether --with-path-objdirprefix was given.
6958 if test ${with_path_objdirprefix+y}
6960 withval=$with_path_objdirprefix; case "${withval}" in
6961 yes) as_fn_error $? "bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
6962 no) CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
6963 *) CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
6967 # Check whether --enable-pwd-override was given.
6968 if test ${enable_pwd_override+y}
6970 enableval=$enable_pwd_override; case "${enableval}" in
6972 no) CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
6973 *) as_fn_error $? "bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
6977 # Check whether --enable-check-make-chdir was given.
6978 if test ${enable_check_make_chdir+y}
6980 enableval=$enable_check_make_chdir; case "${enableval}" in
6982 no) CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
6983 *) as_fn_error $? "bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
6988 # Check whether --with-mksrc was given.
6989 if test ${with_mksrc+y}
6991 withval=$with_mksrc; case "${withval}" in
6993 *) test -s $withval/install-mk && mksrc=$withval ||
6994 as_fn_error $? "bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
7000 srcdir=`cd $srcdir && pwd`
7001 for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
7003 test -s $mksrc/install-mk || continue
7004 mksrc=`cd $mksrc && pwd`
7007 mksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
7008 echo "Using: MKSRC=$mksrc" 1>&6
7009 for sh in /usr/xpg4/bin/sh $ALT_DEF_SHELLS
7011 test -x $sh || continue
7015 case "$defshell_path$DEFSHELL_INDEX" in
7017 *DEFSHELL_INDEX_CUSTOM)
7018 echo "Using: SHELL=$defshell_path" >&6
7020 printf "%s\n" "#define DEFSHELL_CUSTOM \"$defshell_path\"" >>confdefs.h
7024 echo "Using: SHELL=$DEFSHELL_INDEX ($defshell_path)" | sed 's,DEFSHELL_INDEX_,,' >&6
7026 printf "%s\n" "#define DEFSHELL_INDEX $DEFSHELL_INDEX" >>confdefs.h
7029 printf "%s\n" "#define DEFSHELL_PATH \"$defshell_path\"" >>confdefs.h
7033 echo "Using: SHELL=$DEFSHELL_INDEX" | sed 's,DEFSHELL_INDEX_,,' >&6
7035 printf "%s\n" "#define DEFSHELL_INDEX $DEFSHELL_INDEX" >>confdefs.h
7039 case "`echo bmake | egrep 'a|b' 2>&1`" in
7040 bmake) egrep=egrep;;
7041 *) egrep='grep -E';;
7059 bm_outfiles="Makefile.config unit-tests/Makefile.config make-bootstrap.sh"
7060 if test $use_makefile = yes; then
7061 bm_outfiles="makefile $bm_outfiles"
7068 $srcdir/obj*) # make sure we put unit-tests/Makefile.config in the right place
7069 obj=`basename $here`
7070 mkdir -p $srcdir/unit-tests/$obj
7071 test -d unit-tests || ln -s ../unit-tests/$obj unit-tests
7075 ac_config_files="$ac_config_files $bm_outfiles"
7077 cat >confcache <<\_ACEOF
7078 # This file is a shell script that caches the results of configure
7079 # tests run on this system so they can be shared between configure
7080 # scripts and configure runs, see configure's option --config-cache.
7081 # It is not useful on other systems. If it contains results you don't
7082 # want to keep, you may remove or edit it.
7084 # config.status only pays attention to the cache file if you give it
7085 # the --recheck option to rerun configure.
7087 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7088 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7093 # The following way of writing the cache mishandles newlines in values,
7094 # but we know of no workaround that is simple, portable, and efficient.
7095 # So, we kill variables containing newlines.
7096 # Ultrix sh set writes to stderr and can't be redirected directly,
7097 # and sets the high bit in the cache file unless we assign to the vars.
7099 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7100 eval ac_val=\$$ac_var
7104 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7105 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7108 _ | IFS | as_nl) ;; #(
7109 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7110 *) { eval $ac_var=; unset $ac_var;} ;;
7116 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7117 *${as_nl}ac_space=\ *)
7118 # `set' does not quote correctly, so add quotes: double-quote
7119 # substitution turns \\\\ into \\, and sed turns \\ into \.
7122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7125 # `set' quotes correctly as required by POSIX, so do not add quotes.
7126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7135 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7137 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7139 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7140 if test -w "$cache_file"; then
7141 if test "x$cache_file" != "x/dev/null"; then
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7143 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7144 if test ! -f "$cache_file" || test -h "$cache_file"; then
7145 cat confcache >"$cache_file"
7147 case $cache_file in #(
7149 mv -f confcache "$cache_file"$$ &&
7150 mv -f "$cache_file"$$ "$cache_file" ;; #(
7152 mv -f confcache "$cache_file" ;;
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7158 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7163 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7164 # Let make expand exec_prefix.
7165 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7167 DEFS=-DHAVE_CONFIG_H
7172 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7173 # 1. Remove the extension, and $U if already installed.
7174 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7175 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7176 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7177 # will be set to the directory where LIBOBJS objects are built.
7178 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7179 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7183 LTLIBOBJS=$ac_ltlibobjs
7188 : "${CONFIG_STATUS=./config.status}"
7190 ac_clean_files_save=$ac_clean_files
7191 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7193 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7195 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7197 # Generated by $as_me.
7198 # Run this file to recreate the current configuration.
7199 # Compiler output produced by configure, useful for debugging
7200 # configure, is in config.log if it exists.
7206 SHELL=\${CONFIG_SHELL-$SHELL}
7209 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7210 ## -------------------- ##
7211 ## M4sh Initialization. ##
7212 ## -------------------- ##
7214 # Be more Bourne compatible
7215 DUALCASE=1; export DUALCASE # for MKS sh
7217 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
7221 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7222 # is contrary to our usage. Disable this feature.
7223 alias -g '${1+"$@"}'='"$@"'
7224 setopt NO_GLOB_SUBST
7226 case `(set -o) 2>/dev/null` in #(
7236 # Reset variables that may have inherited troublesome values from
7239 # IFS needs to be set, to space, tab, and newline, in precisely that order.
7240 # (If _AS_PATH_WALK were called with IFS unset, it would have the
7241 # side effect of setting IFS to empty, thus disabling word splitting.)
7242 # Quoting is to prevent editors from complaining about space-tab.
7252 # Ensure predictable behavior from utilities with locale-dependent output.
7258 # We cannot yet rely on "unset" to work, but we need these variables
7259 # to be unset--not just set to an empty or harmless value--now, to
7260 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7261 # also avoids known problems related to "unset" and subshell syntax
7262 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7263 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7264 do eval test \${$as_var+y} \
7265 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7268 # Ensure that fds 0, 1, and 2 are open.
7269 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7270 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7271 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7273 # The user is always right.
7274 if ${PATH_SEPARATOR+false} :; then
7276 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7277 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7283 # Find who we are. Look in the path if we contain no directory separator.
7286 *[\\/]* ) as_myself=$0 ;;
7287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 case $as_dir in #(((
7294 *) as_dir=$as_dir/ ;;
7296 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7302 # We did not find ourselves, most probably we were run as `sh COMMAND'
7303 # in which case we are not to be found in the path.
7304 if test "x$as_myself" = x; then
7307 if test ! -f "$as_myself"; then
7308 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7314 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7315 # ----------------------------------------
7316 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7317 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7318 # script with STATUS, using 1 if that was 0.
7321 as_status=$1; test $as_status -eq 0 && as_status=1
7323 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7326 printf "%s\n" "$as_me: error: $2" >&2
7327 as_fn_exit $as_status
7332 # as_fn_set_status STATUS
7333 # -----------------------
7334 # Set $? to STATUS, without forking.
7338 } # as_fn_set_status
7342 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7352 # Portably unset VAR.
7355 { eval $1=; unset $1;}
7357 as_unset=as_fn_unset
7359 # as_fn_append VAR VALUE
7360 # ----------------------
7361 # Append the text in VALUE to the end of the definition contained in VAR. Take
7362 # advantage of any shell optimizations that allow amortized linear growth over
7363 # repeated appends, instead of the typical quadratic growth present in naive
7365 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7367 eval 'as_fn_append ()
7378 # as_fn_arith ARG...
7379 # ------------------
7380 # Perform arithmetic evaluation on the ARGs, and store the result in the
7381 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7382 # must be portable across $(()) and expr.
7383 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7385 eval 'as_fn_arith ()
7392 as_val=`expr "$@" || test $? -eq 1`
7397 if expr a : '\(a\)' >/dev/null 2>&1 &&
7398 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7404 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7405 as_basename=basename
7410 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7416 as_me=`$as_basename -- "$0" ||
7417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7418 X"$0" : 'X\(//\)$' \| \
7419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7420 printf "%s\n" X/"$0" |
7421 sed '/^.*\/\([^/][^/]*\)\/*$/{
7435 # Avoid depending upon Character Ranges.
7436 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7437 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7438 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7439 as_cr_digits='0123456789'
7440 as_cr_alnum=$as_cr_Letters$as_cr_digits
7443 # Determine whether it's possible to make 'echo' print without a newline.
7444 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7445 # for compatibility with existing Makefiles.
7446 ECHO_C= ECHO_N= ECHO_T=
7447 case `echo -n x` in #(((((
7449 case `echo 'xy\c'` in
7450 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7452 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7459 # For backward compatibility with old third-party macros, we provide
7460 # the shell variables $as_echo and $as_echo_n. New code should use
7461 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7462 as_echo='printf %s\n'
7463 as_echo_n='printf %s'
7465 rm -f conf$$ conf$$.exe conf$$.file
7466 if test -d conf$$.dir; then
7467 rm -f conf$$.dir/conf$$.file
7470 mkdir conf$$.dir 2>/dev/null
7472 if (echo >conf$$.file) 2>/dev/null; then
7473 if ln -s conf$$.file conf$$ 2>/dev/null; then
7475 # ... but there are two gotchas:
7476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7478 # In both cases, we have to default to `cp -pR'.
7479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7481 elif ln conf$$.file conf$$ 2>/dev/null; then
7489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7490 rmdir conf$$.dir 2>/dev/null
7495 # Create "$as_dir" as a directory, including parents if necessary.
7500 -*) as_dir=./$as_dir;;
7502 test -d "$as_dir" || eval $as_mkdir_p || {
7506 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7507 *) as_qdir=$as_dir;;
7509 as_dirs="'$as_qdir' $as_dirs"
7510 as_dir=`$as_dirname -- "$as_dir" ||
7511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7512 X"$as_dir" : 'X\(//\)[^/]' \| \
7513 X"$as_dir" : 'X\(//\)$' \| \
7514 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7515 printf "%s\n" X"$as_dir" |
7516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7533 test -d "$as_dir" && break
7535 test -z "$as_dirs" || eval "mkdir $as_dirs"
7536 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7540 if mkdir -p . 2>/dev/null; then
7541 as_mkdir_p='mkdir -p "$as_dir"'
7543 test -d ./-p && rmdir ./-p
7548 # as_fn_executable_p FILE
7549 # -----------------------
7550 # Test if FILE is an executable regular file.
7551 as_fn_executable_p ()
7553 test -f "$1" && test -x "$1"
7554 } # as_fn_executable_p
7556 as_executable_p=as_fn_executable_p
7558 # Sed expression to map a string onto a valid CPP name.
7559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7561 # Sed expression to map a string onto a valid variable name.
7562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7566 ## ----------------------------------- ##
7567 ## Main body of $CONFIG_STATUS script. ##
7568 ## ----------------------------------- ##
7570 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7573 # Save the log message, to keep $0 and so on meaningful, and to
7574 # report actual input values of CONFIG_FILES etc. instead of their
7575 # values after options handling.
7577 This file was extended by bmake $as_me 20230723, which was
7578 generated by GNU Autoconf 2.71. Invocation command line was
7580 CONFIG_FILES = $CONFIG_FILES
7581 CONFIG_HEADERS = $CONFIG_HEADERS
7582 CONFIG_LINKS = $CONFIG_LINKS
7583 CONFIG_COMMANDS = $CONFIG_COMMANDS
7586 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7591 case $ac_config_files in *"
7592 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7595 case $ac_config_headers in *"
7596 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7601 # Files that config.status was made for.
7602 config_files="$ac_config_files"
7603 config_headers="$ac_config_headers"
7607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7609 \`$as_me' instantiates files and other configuration actions
7610 from templates according to the current configuration. Unless the files
7611 and actions are specified as TAGs, all are instantiated by default.
7613 Usage: $0 [OPTION]... [TAG]...
7615 -h, --help print this help, then exit
7616 -V, --version print version number and configuration settings, then exit
7617 --config print configuration, then exit
7618 -q, --quiet, --silent
7619 do not print progress messages
7620 -d, --debug don't remove temporary files
7621 --recheck update $as_me by reconfiguring in the same conditions
7622 --file=FILE[:TEMPLATE]
7623 instantiate the configuration file FILE
7624 --header=FILE[:TEMPLATE]
7625 instantiate the configuration header FILE
7627 Configuration files:
7630 Configuration headers:
7633 Report bugs to <sjg@NetBSD.org>."
7636 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7637 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7639 ac_cs_config='$ac_cs_config_escaped'
7641 bmake config.status 20230723
7642 configured by $0, generated by GNU Autoconf 2.71,
7643 with options \\"\$ac_cs_config\\"
7645 Copyright (C) 2021 Free Software Foundation, Inc.
7646 This config.status script is free software; the Free Software Foundation
7647 gives unlimited permission to copy, distribute and modify it."
7652 test -n "\$AWK" || AWK=awk
7655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7656 # The default lists apply if the user does not specify any file.
7662 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7663 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7667 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7679 # Handling of the options.
7680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7682 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7683 printf "%s\n" "$ac_cs_version"; exit ;;
7684 --config | --confi | --conf | --con | --co | --c )
7685 printf "%s\n" "$ac_cs_config"; exit ;;
7686 --debug | --debu | --deb | --de | --d | -d )
7688 --file | --fil | --fi | --f )
7691 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7692 '') as_fn_error $? "missing file argument" ;;
7694 as_fn_append CONFIG_FILES " '$ac_optarg'"
7695 ac_need_defaults=false;;
7696 --header | --heade | --head | --hea )
7699 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7701 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7702 ac_need_defaults=false;;
7704 # Conflict between --help and --header
7705 as_fn_error $? "ambiguous option: \`$1'
7706 Try \`$0 --help' for more information.";;
7707 --help | --hel | -h )
7708 printf "%s\n" "$ac_cs_usage"; exit ;;
7709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7710 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7714 -*) as_fn_error $? "unrecognized option: \`$1'
7715 Try \`$0 --help' for more information." ;;
7717 *) as_fn_append ac_config_targets " $1"
7718 ac_need_defaults=false ;;
7724 ac_configure_extra_args=
7726 if $ac_cs_silent; then
7728 ac_configure_extra_args="$ac_configure_extra_args --silent"
7732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7733 if \$ac_cs_recheck; then
7734 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7736 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7737 CONFIG_SHELL='$SHELL'
7743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7748 ## Running $as_me. ##
7750 printf "%s\n" "$ac_log"
7754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7759 # Handling of arguments.
7760 for ac_config_target in $ac_config_targets
7762 case $ac_config_target in
7763 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7764 "$bm_outfiles") CONFIG_FILES="$CONFIG_FILES $bm_outfiles" ;;
7766 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7771 # If the user did not use the arguments to specify the items to instantiate,
7772 # then the envvar interface is used. Set only those that are not.
7773 # We use the long form for the default assignment because of an extremely
7774 # bizarre bug on SunOS 4.1.3.
7775 if $ac_need_defaults; then
7776 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7777 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
7780 # Have a temporary directory for convenience. Make it in the build tree
7781 # simply because there is no reason against having it here, and in addition,
7782 # creating and moving files from /tmp can sometimes cause problems.
7783 # Hook for its removal unless debugging.
7784 # Note that there is a small window in which the directory will not be cleaned:
7785 # after its creation but before its name has been assigned to `$tmp'.
7789 trap 'exit_status=$?
7791 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7793 trap 'as_fn_exit 1' 1 2 13 15
7795 # Create a (secure) tmp directory for tmp files.
7798 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7802 tmp=./conf$$-$RANDOM
7803 (umask 077 && mkdir "$tmp")
7804 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7807 # Set up the scripts for CONFIG_FILES section.
7808 # No need to generate them if there are no CONFIG_FILES.
7809 # This happens for instance with `./config.status config.h'.
7810 if test -n "$CONFIG_FILES"; then
7813 ac_cr=`echo X | tr X '\015'`
7814 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7815 # But we know of no other shell where ac_cr would be empty at this
7816 # point, so we can use a bashism as a fallback.
7817 if test "x$ac_cr" = x; then
7818 eval ac_cr=\$\'\\r\'
7820 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7821 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7827 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7832 echo "cat >conf$$subs.awk <<_ACEOF" &&
7833 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7836 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7837 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7839 for ac_last_try in false false false false false :; do
7840 . ./conf$$subs.sh ||
7841 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7843 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7844 if test $ac_delim_n = $ac_delim_num; then
7846 elif $ac_last_try; then
7847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7855 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7859 s/^/S["/; s/!.*/"]=/
7869 s/\(.\{148\}\)..*/\1/
7871 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7883 s/\(.\{148\}\)..*/\1/
7885 s/["\\]/\\&/g; s/^/"/; s/$/"/
7889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7894 ' <conf$$subs.awk | sed '
7899 ' >>$CONFIG_STATUS || ac_write_fail=1
7900 rm -f conf$$subs.awk
7901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7903 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7904 for (key in S) S_is_set[key] = 1
7910 nfields = split(line, field, "@")
7912 len = length(field[1])
7913 for (i = 2; i < nfields; i++) {
7915 keylen = length(key)
7916 if (S_is_set[key]) {
7918 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7919 len += length(value) + length(field[++i])
7930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7931 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7932 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7935 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7936 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7939 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7940 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7941 # trailing colons and then remove the whole line if VPATH becomes empty
7942 # (actually we leave an empty line to preserve line numbers).
7943 if test "x$srcdir" = x.; then
7944 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7963 fi # test -n "$CONFIG_FILES"
7965 # Set up the scripts for CONFIG_HEADERS section.
7966 # No need to generate them if there are no CONFIG_HEADERS.
7967 # This happens for instance with `./config.status Makefile'.
7968 if test -n "$CONFIG_HEADERS"; then
7969 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7973 # Transform confdefs.h into an awk script `defines.awk', embedded as
7974 # here-document in config.status, that substitutes the proper values into
7975 # config.h.in to produce config.h.
7977 # Create a delimiter string that does not exist in confdefs.h, to ease
7978 # handling of long lines.
7980 for ac_last_try in false false :; do
7981 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7982 if test -z "$ac_tt"; then
7984 elif $ac_last_try; then
7985 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7991 # For the awk script, D is an array of macro values keyed by name,
7992 # likewise P contains macro parameters if any. Preserve backslash
7993 # newline sequences.
7995 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7997 s/.\{148\}/&'"$ac_delim"'/g
8000 s/^[ ]*#[ ]*define[ ][ ]*/ /
8007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8013 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8014 D["\1"]=" \3\\\\\\n"\\/p
8016 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8021 s/.\{148\}/&'"$ac_delim"'/g
8026 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8029 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8031 ' <confdefs.h | sed '
8032 s/'"$ac_delim"'/"\\\
8033 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8036 for (key in D) D_is_set[key] = 1
8039 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8041 split(line, arg, " ")
8042 if (arg[1] == "#") {
8046 defundef = substr(arg[1], 2)
8049 split(mac1, mac2, "(") #)
8051 prefix = substr(line, 1, index(line, defundef) - 1)
8052 if (D_is_set[macro]) {
8053 # Preserve the white space surrounding the "#".
8054 print prefix "define", macro P[macro] D[macro]
8057 # Replace #undef with comments. This is necessary, for example,
8058 # in the case of _POSIX_SOURCE, which is predefined and required
8059 # on some systems where configure will not decide to define it.
8060 if (defundef == "undef") {
8061 print "/*", prefix defundef, macro, "*/"
8069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8070 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8071 fi # test -n "$CONFIG_HEADERS"
8074 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8079 :[FHLC]) ac_mode=$ac_tag; continue;;
8081 case $ac_mode$ac_tag in
8083 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8084 :[FH]-) ac_tag=-:-;;
8085 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8102 -) ac_f="$ac_tmp/stdin";;
8103 *) # Look for the file first in the build tree, then in the source tree
8104 # (if the path is not absolute). The absolute path cannot be DOS-style,
8105 # because $ac_f cannot contain `:'.
8109 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8111 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8113 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8114 as_fn_append ac_file_inputs " '$ac_f'"
8117 # Let's still pretend it is `configure' which instantiates (i.e., don't
8118 # use $as_me), people would be surprised to read:
8119 # /* config.h. Generated by config.status. */
8120 configure_input='Generated from '`
8121 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8123 if test x"$ac_file" != x-; then
8124 configure_input="$ac_file. $configure_input"
8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8126 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8128 # Neutralize special characters interpreted by sed in replacement strings.
8129 case $configure_input in #(
8130 *\&* | *\|* | *\\* )
8131 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8132 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8133 *) ac_sed_conf_input=$configure_input;;
8137 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8143 ac_dir=`$as_dirname -- "$ac_file" ||
8144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8145 X"$ac_file" : 'X\(//\)[^/]' \| \
8146 X"$ac_file" : 'X\(//\)$' \| \
8147 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8148 printf "%s\n" X"$ac_file" |
8149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8166 as_dir="$ac_dir"; as_fn_mkdir_p
8170 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8172 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8173 # A ".." for each directory in $ac_dir_suffix.
8174 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8175 case $ac_top_builddir_sub in
8176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8180 ac_abs_top_builddir=$ac_pwd
8181 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8182 # for backward compatibility:
8183 ac_top_builddir=$ac_top_build_prefix
8186 .) # We are building in place.
8188 ac_top_srcdir=$ac_top_builddir_sub
8189 ac_abs_top_srcdir=$ac_pwd ;;
8190 [\\/]* | ?:[\\/]* ) # Absolute name.
8191 ac_srcdir=$srcdir$ac_dir_suffix;
8192 ac_top_srcdir=$srcdir
8193 ac_abs_top_srcdir=$srcdir ;;
8195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8196 ac_top_srcdir=$ac_top_build_prefix$srcdir
8197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8199 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8209 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8210 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8215 # If the template does not know about datarootdir, expand it.
8216 # FIXME: This hack should be removed a few years after 2.60.
8217 ac_datarootdir_hack=; ac_datarootdir_seen=
8228 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8229 *datarootdir*) ac_datarootdir_seen=yes;;
8230 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8232 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8235 ac_datarootdir_hack='
8236 s&@datadir@&$datadir&g
8237 s&@docdir@&$docdir&g
8238 s&@infodir@&$infodir&g
8239 s&@localedir@&$localedir&g
8240 s&@mandir@&$mandir&g
8241 s&\\\${datarootdir}&$datarootdir&g' ;;
8245 # Neutralize VPATH when `$srcdir' = `.'.
8246 # Shell code in configure.ac might set extrasub.
8247 # FIXME: do we really want to maintain this feature?
8248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8249 ac_sed_extra="$ac_vpsub
8252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8255 s|@configure_input@|$ac_sed_conf_input|;t t
8256 s&@top_builddir@&$ac_top_builddir_sub&;t t
8257 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8258 s&@srcdir@&$ac_srcdir&;t t
8259 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8260 s&@top_srcdir@&$ac_top_srcdir&;t t
8261 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8262 s&@builddir@&$ac_builddir&;t t
8263 s&@abs_builddir@&$ac_abs_builddir&;t t
8264 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8265 s&@INSTALL@&$ac_INSTALL&;t t
8266 $ac_datarootdir_hack
8268 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8269 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8271 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8272 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8274 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8276 which seems to be undefined. Please make sure it is defined" >&5
8277 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8278 which seems to be undefined. Please make sure it is defined" >&2;}
8280 rm -f "$ac_tmp/stdin"
8282 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8283 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8291 if test x"$ac_file" != x-; then
8293 printf "%s\n" "/* $configure_input */" >&1 \
8294 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8295 } >"$ac_tmp/config.h" \
8296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8297 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8299 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
8302 mv "$ac_tmp/config.h" "$ac_file" \
8303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8306 printf "%s\n" "/* $configure_input */" >&1 \
8307 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8308 || as_fn_error $? "could not create -" "$LINENO" 5
8320 ac_clean_files=$ac_clean_files_save
8322 test $ac_write_fail = 0 ||
8323 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8326 # configure is writing to config.log, and then calls config.status.
8327 # config.status does its own redirection, appending to config.log.
8328 # Unfortunately, on DOS this fails, as config.log is still kept open
8329 # by configure, so config.status won't be able to write to it; its
8330 # output is simply discarded. So we exec the FD to /dev/null,
8331 # effectively closing config.log, so it can be properly (re)opened and
8332 # appended to by config.status. When coming back to configure, we
8333 # need to make the FD available again.
8334 if test "$no_create" != yes; then
8336 ac_config_status_args=
8337 test "$silent" = yes &&
8338 ac_config_status_args="$ac_config_status_args --quiet"
8340 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8342 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8343 # would make configure fail if this is the last instruction.
8344 $ac_cs_success || as_fn_exit 1
8346 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8348 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8355 sh ./make-bootstrap.sh
8357 to produce a fully functional bmake.