configure (49caa483b3fafffd9cf5197eb30e8bb235aa7410) configure (ef0b253881c9546ff88d3ed8480df7c791b3ddff)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for bmake 20200418.
3# Generated by GNU Autoconf 2.69 for bmake 20200524.
4#
5# Report bugs to <sjg@NetBSD.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation

--- 563 unchanged lines hidden (view full) ---

575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='bmake'
582PACKAGE_TARNAME='bmake'
4#
5# Report bugs to <sjg@NetBSD.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation

--- 563 unchanged lines hidden (view full) ---

575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='bmake'
582PACKAGE_TARNAME='bmake'
583PACKAGE_VERSION='20200418'
584PACKAGE_STRING='bmake 20200418'
583PACKAGE_VERSION='20200524'
584PACKAGE_STRING='bmake 20200524'
585PACKAGE_BUGREPORT='sjg@NetBSD.org'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>

--- 656 unchanged lines hidden (view full) ---

1249
1250#
1251# Report the --help message.
1252#
1253if test "$ac_init_help" = "long"; then
1254 # Omit some internal or obsolete options to make the list less imposing.
1255 # This message is too long to be a string in the A/UX 3.1 sh.
1256 cat <<_ACEOF
585PACKAGE_BUGREPORT='sjg@NetBSD.org'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>

--- 656 unchanged lines hidden (view full) ---

1249
1250#
1251# Report the --help message.
1252#
1253if test "$ac_init_help" = "long"; then
1254 # Omit some internal or obsolete options to make the list less imposing.
1255 # This message is too long to be a string in the A/UX 3.1 sh.
1256 cat <<_ACEOF
1257\`configure' configures bmake 20200418 to adapt to many kinds of systems.
1257\`configure' configures bmake 20200524 to adapt to many kinds of systems.
1258
1259Usage: $0 [OPTION]... [VAR=VALUE]...
1260
1261To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262VAR=VALUE. See below for descriptions of some of the useful variables.
1263
1264Defaults for the options are specified in brackets.
1265

--- 44 unchanged lines hidden (view full) ---

1310_ACEOF
1311
1312 cat <<\_ACEOF
1313_ACEOF
1314fi
1315
1316if test -n "$ac_init_help"; then
1317 case $ac_init_help in
1258
1259Usage: $0 [OPTION]... [VAR=VALUE]...
1260
1261To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262VAR=VALUE. See below for descriptions of some of the useful variables.
1263
1264Defaults for the options are specified in brackets.
1265

--- 44 unchanged lines hidden (view full) ---

1310_ACEOF
1311
1312 cat <<\_ACEOF
1313_ACEOF
1314fi
1315
1316if test -n "$ac_init_help"; then
1317 case $ac_init_help in
1318 short | recursive ) echo "Configuration of bmake 20200418:";;
1318 short | recursive ) echo "Configuration of bmake 20200524:";;
1319 esac
1320 cat <<\_ACEOF
1321
1322Optional Features:
1323 --disable-option-checking ignore unrecognized --enable/--with options
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --disable-pwd-override disable \$PWD overriding getcwd()

--- 89 unchanged lines hidden (view full) ---

1416 fi || ac_status=$?
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1418 done
1419fi
1420
1421test -n "$ac_init_help" && exit $ac_status
1422if $ac_init_version; then
1423 cat <<\_ACEOF
1319 esac
1320 cat <<\_ACEOF
1321
1322Optional Features:
1323 --disable-option-checking ignore unrecognized --enable/--with options
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --disable-pwd-override disable \$PWD overriding getcwd()

--- 89 unchanged lines hidden (view full) ---

1416 fi || ac_status=$?
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1418 done
1419fi
1420
1421test -n "$ac_init_help" && exit $ac_status
1422if $ac_init_version; then
1423 cat <<\_ACEOF
1424bmake configure 20200418
1424bmake configure 20200524
1425generated by GNU Autoconf 2.69
1426
1427Copyright (C) 2012 Free Software Foundation, Inc.
1428This configure script is free software; the Free Software Foundation
1429gives unlimited permission to copy, distribute and modify it.
1430_ACEOF
1431 exit
1432fi

--- 563 unchanged lines hidden (view full) ---

1996$as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999} # ac_fn_c_check_member
2000cat >config.log <<_ACEOF
2001This file contains any messages produced by compilers while
2002running configure, to aid debugging if configure makes a mistake.
2003
1425generated by GNU Autoconf 2.69
1426
1427Copyright (C) 2012 Free Software Foundation, Inc.
1428This configure script is free software; the Free Software Foundation
1429gives unlimited permission to copy, distribute and modify it.
1430_ACEOF
1431 exit
1432fi

--- 563 unchanged lines hidden (view full) ---

1996$as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999} # ac_fn_c_check_member
2000cat >config.log <<_ACEOF
2001This file contains any messages produced by compilers while
2002running configure, to aid debugging if configure makes a mistake.
2003
2004It was created by bmake $as_me 20200418, which was
2004It was created by bmake $as_me 20200524, which was
2005generated by GNU Autoconf 2.69. Invocation command line was
2006
2007 $ $0 $@
2008
2009_ACEOF
2010exec 5>>config.log
2011{
2012cat <<_ASUNAME

--- 391 unchanged lines hidden (view full) ---

2404if test "${with_filemon+set}" = set; then :
2405 withval=$with_filemon; case "/${withval}" in
2406/no) use_filemon=no;;
2407/*trace) filemon_h=no use_filemon="${withval}";;
2408*/filemon.h) filemon_h="${withval}";;
2409*/filemon*) filemon_h="${withval}/filemon.h";;
2410*) as_fn_error $? "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2411esac
2005generated by GNU Autoconf 2.69. Invocation command line was
2006
2007 $ $0 $@
2008
2009_ACEOF
2010exec 5>>config.log
2011{
2012cat <<_ASUNAME

--- 391 unchanged lines hidden (view full) ---

2404if test "${with_filemon+set}" = set; then :
2405 withval=$with_filemon; case "/${withval}" in
2406/no) use_filemon=no;;
2407/*trace) filemon_h=no use_filemon="${withval}";;
2408*/filemon.h) filemon_h="${withval}";;
2409*/filemon*) filemon_h="${withval}/filemon.h";;
2410*) as_fn_error $? "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2411esac
2412case "$use_filemon,$filemon_h" in
2413,*.h) use_filemon=dev;;
2414esac
2415
2412else
2413
2414case "$OS" in
2415NetBSD) filemon_h=no use_filemon=ktrace;;
2416*)
2417 for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
2418 do
2419 for x in "/$OS" ""

--- 1803 unchanged lines hidden (view full) ---

4223fi
4224
4225ac_ext=c
4226ac_cpp='$CPP $CPPFLAGS'
4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
2416else
2417
2418case "$OS" in
2419NetBSD) filemon_h=no use_filemon=ktrace;;
2420*)
2421 for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
2422 do
2423 for x in "/$OS" ""

--- 1803 unchanged lines hidden (view full) ---

4227fi
4228
4229ac_ext=c
4230ac_cpp='$CPP $CPPFLAGS'
4231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234
4231if test $ac_cv_c_compiler_gnu = yes; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4233$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4234if ${ac_cv_prog_gcc_traditional+:} false; then :
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4236$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4237if ${ac_cv_prog_cc_c99+:} false; then :
4235 $as_echo_n "(cached) " >&6
4236else
4238 $as_echo_n "(cached) " >&6
4239else
4237 ac_pattern="Autoconf.*'x'"
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 ac_cv_prog_cc_c99=no
4241ac_save_CC=$CC
4242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h. */
4243/* end confdefs.h. */
4240#include <sgtty.h>
4241Autoconf TIOCGETP
4242_ACEOF
4243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4245 ac_cv_prog_gcc_traditional=yes
4246else
4247 ac_cv_prog_gcc_traditional=no
4248fi
4249rm -f conftest*
4244#include <stdarg.h>
4245#include <stdbool.h>
4246#include <stdlib.h>
4247#include <wchar.h>
4248#include <stdio.h>
4250
4249
4250// Check varargs macros. These examples are taken from C99 6.10.3.5.
4251#define debug(...) fprintf (stderr, __VA_ARGS__)
4252#define showlist(...) puts (#__VA_ARGS__)
4253#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4254static void
4255test_varargs_macros (void)
4256{
4257 int x = 1234;
4258 int y = 5678;
4259 debug ("Flag");
4260 debug ("X = %d\n", x);
4261 showlist (The first, second, and third items.);
4262 report (x>y, "x is %d but y is %d", x, y);
4263}
4251
4264
4252 if test $ac_cv_prog_gcc_traditional = no; then
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254/* end confdefs.h. */
4255#include <termio.h>
4256Autoconf TCGETA
4265// Check long long types.
4266#define BIG64 18446744073709551615ull
4267#define BIG32 4294967295ul
4268#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4269#if !BIG_OK
4270 your preprocessor is broken;
4271#endif
4272#if BIG_OK
4273#else
4274 your preprocessor is broken;
4275#endif
4276static long long int bignum = -9223372036854775807LL;
4277static unsigned long long int ubignum = BIG64;
4278
4279struct incomplete_array
4280{
4281 int datasize;
4282 double data[];
4283};
4284
4285struct named_init {
4286 int number;
4287 const wchar_t *name;
4288 double average;
4289};
4290
4291typedef const char *ccp;
4292
4293static inline int
4294test_restrict (ccp restrict text)
4295{
4296 // See if C++-style comments work.
4297 // Iterate through items via the restricted pointer.
4298 // Also check for declarations in for loops.
4299 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4300 continue;
4301 return 0;
4302}
4303
4304// Check varargs and va_copy.
4305static void
4306test_varargs (const char *format, ...)
4307{
4308 va_list args;
4309 va_start (args, format);
4310 va_list args_copy;
4311 va_copy (args_copy, args);
4312
4313 const char *str;
4314 int number;
4315 float fnumber;
4316
4317 while (*format)
4318 {
4319 switch (*format++)
4320 {
4321 case 's': // string
4322 str = va_arg (args_copy, const char *);
4323 break;
4324 case 'd': // int
4325 number = va_arg (args_copy, int);
4326 break;
4327 case 'f': // float
4328 fnumber = va_arg (args_copy, double);
4329 break;
4330 default:
4331 break;
4332 }
4333 }
4334 va_end (args_copy);
4335 va_end (args);
4336}
4337
4338int
4339main ()
4340{
4341
4342 // Check bool.
4343 _Bool success = false;
4344
4345 // Check restrict.
4346 if (test_restrict ("String literal") == 0)
4347 success = true;
4348 char *restrict newvar = "Another string";
4349
4350 // Check varargs.
4351 test_varargs ("s, d' f .", "string", 65, 34.234);
4352 test_varargs_macros ();
4353
4354 // Check flexible array members.
4355 struct incomplete_array *ia =
4356 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4357 ia->datasize = 10;
4358 for (int i = 0; i < ia->datasize; ++i)
4359 ia->data[i] = i * 1.234;
4360
4361 // Check named initializers.
4362 struct named_init ni = {
4363 .number = 34,
4364 .name = L"Test wide string",
4365 .average = 543.34343,
4366 };
4367
4368 ni.number = 58;
4369
4370 int dynamic_array[ni.number];
4371 dynamic_array[ni.number - 1] = 543;
4372
4373 // work around unused variable warnings
4374 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4375 || dynamic_array[ni.number - 1] != 543);
4376
4377 ;
4378 return 0;
4379}
4257_ACEOF
4380_ACEOF
4258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4260 ac_cv_prog_gcc_traditional=yes
4381for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4382do
4383 CC="$ac_save_CC $ac_arg"
4384 if ac_fn_c_try_compile "$LINENO"; then :
4385 ac_cv_prog_cc_c99=$ac_arg
4261fi
4386fi
4262rm -f conftest*
4387rm -f core conftest.err conftest.$ac_objext
4388 test "x$ac_cv_prog_cc_c99" != "xno" && break
4389done
4390rm -f conftest.$ac_ext
4391CC=$ac_save_CC
4263
4392
4264 fi
4265fi
4393fi
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4267$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4268 if test $ac_cv_prog_gcc_traditional = yes; then
4269 CC="$CC -traditional"
4270 fi
4394# AC_CACHE_VAL
4395case "x$ac_cv_prog_cc_c99" in
4396 x)
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4398$as_echo "none needed" >&6; } ;;
4399 xno)
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4401$as_echo "unsupported" >&6; } ;;
4402 *)
4403 CC="$CC $ac_cv_prog_cc_c99"
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4405$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4406esac
4407if test "x$ac_cv_prog_cc_c99" != xno; then :
4408
4271fi
4272
4409fi
4410
4411
4273ac_aux_dir=
4274for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4275 if test -f "$ac_dir/install-sh"; then
4276 ac_aux_dir=$ac_dir
4277 ac_install_sh="$ac_aux_dir/install-sh -c"
4278 break
4279 elif test -f "$ac_dir/install.sh"; then
4280 ac_aux_dir=$ac_dir

--- 2353 unchanged lines hidden (view full) ---

6634_ASEOF
6635test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6636
6637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6638# Save the log message, to keep $0 and so on meaningful, and to
6639# report actual input values of CONFIG_FILES etc. instead of their
6640# values after options handling.
6641ac_log="
4412ac_aux_dir=
4413for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4414 if test -f "$ac_dir/install-sh"; then
4415 ac_aux_dir=$ac_dir
4416 ac_install_sh="$ac_aux_dir/install-sh -c"
4417 break
4418 elif test -f "$ac_dir/install.sh"; then
4419 ac_aux_dir=$ac_dir

--- 2353 unchanged lines hidden (view full) ---

6773_ASEOF
6774test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6775
6776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6777# Save the log message, to keep $0 and so on meaningful, and to
6778# report actual input values of CONFIG_FILES etc. instead of their
6779# values after options handling.
6780ac_log="
6642This file was extended by bmake $as_me 20200418, which was
6781This file was extended by bmake $as_me 20200524, which was
6643generated by GNU Autoconf 2.69. Invocation command line was
6644
6645 CONFIG_FILES = $CONFIG_FILES
6646 CONFIG_HEADERS = $CONFIG_HEADERS
6647 CONFIG_LINKS = $CONFIG_LINKS
6648 CONFIG_COMMANDS = $CONFIG_COMMANDS
6649 $ $0 $@
6650

--- 45 unchanged lines hidden (view full) ---

6696$config_headers
6697
6698Report bugs to <sjg@NetBSD.org>."
6699
6700_ACEOF
6701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6702ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6703ac_cs_version="\\
6782generated by GNU Autoconf 2.69. Invocation command line was
6783
6784 CONFIG_FILES = $CONFIG_FILES
6785 CONFIG_HEADERS = $CONFIG_HEADERS
6786 CONFIG_LINKS = $CONFIG_LINKS
6787 CONFIG_COMMANDS = $CONFIG_COMMANDS
6788 $ $0 $@
6789

--- 45 unchanged lines hidden (view full) ---

6835$config_headers
6836
6837Report bugs to <sjg@NetBSD.org>."
6838
6839_ACEOF
6840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6841ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6842ac_cs_version="\\
6704bmake config.status 20200418
6843bmake config.status 20200524
6705configured by $0, generated by GNU Autoconf 2.69,
6706 with options \\"\$ac_cs_config\\"
6707
6708Copyright (C) 2012 Free Software Foundation, Inc.
6709This config.status script is free software; the Free Software Foundation
6710gives unlimited permission to copy, distribute and modify it."
6711
6712ac_pwd='$ac_pwd'

--- 710 unchanged lines hidden ---
6844configured by $0, generated by GNU Autoconf 2.69,
6845 with options \\"\$ac_cs_config\\"
6846
6847Copyright (C) 2012 Free Software Foundation, Inc.
6848This config.status script is free software; the Free Software Foundation
6849gives unlimited permission to copy, distribute and modify it."
6850
6851ac_pwd='$ac_pwd'

--- 710 unchanged lines hidden ---