public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Michael Frysinger <vapier@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib: libc: move configure into top-level Date: Sat, 26 Feb 2022 04:06:58 +0000 (GMT) [thread overview] Message-ID: <20220226040658.A6DE73858D28@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8343db918f7609c49b6f5eb432a82a5a12ab1dd2 commit 8343db918f7609c49b6f5eb432a82a5a12ab1dd2 Author: Mike Frysinger <vapier@gentoo.org> Date: Sat Feb 12 19:49:23 2022 -0500 newlib: libc: move configure into top-level This kills off the last configure script under libc/ and folds it into the top newlib configure script. The a lot of the logic was already in the top configure script, so move what's left into a libc/acinclude.m4 file. Diff: --- newlib/Makefile.in | 21 +- newlib/configure | 954 +++- newlib/configure.ac | 7 +- newlib/libc/Makefile.am | 3 - newlib/libc/Makefile.in | 110 +- newlib/libc/acinclude.m4 | 182 + newlib/libc/aclocal.m4 | 937 ---- newlib/libc/argz/Makefile.in | 43 +- newlib/libc/configure | 6333 ----------------------- newlib/libc/configure.ac | 237 - newlib/libc/ctype/Makefile.in | 43 +- newlib/libc/errno/Makefile.in | 43 +- newlib/libc/iconv/Makefile.in | 41 +- newlib/libc/iconv/ccs/Makefile.in | 43 +- newlib/libc/iconv/ccs/binary/Makefile.in | 41 +- newlib/libc/iconv/ces/Makefile.in | 43 +- newlib/libc/iconv/lib/Makefile.in | 43 +- newlib/libc/locale/Makefile.in | 43 +- newlib/libc/machine/a29k/Makefile.in | 43 +- newlib/libc/machine/aarch64/Makefile.in | 43 +- newlib/libc/machine/amdgcn/Makefile.in | 43 +- newlib/libc/machine/arc/Makefile.in | 43 +- newlib/libc/machine/arm/Makefile.in | 43 +- newlib/libc/machine/bfin/Makefile.in | 43 +- newlib/libc/machine/cr16/Makefile.in | 43 +- newlib/libc/machine/cris/Makefile.in | 43 +- newlib/libc/machine/crx/Makefile.in | 43 +- newlib/libc/machine/csky/Makefile.in | 43 +- newlib/libc/machine/d10v/Makefile.in | 43 +- newlib/libc/machine/d30v/Makefile.in | 43 +- newlib/libc/machine/epiphany/Makefile.in | 43 +- newlib/libc/machine/fr30/Makefile.in | 43 +- newlib/libc/machine/frv/Makefile.in | 43 +- newlib/libc/machine/ft32/Makefile.in | 43 +- newlib/libc/machine/h8300/Makefile.in | 43 +- newlib/libc/machine/h8500/Makefile.in | 43 +- newlib/libc/machine/hppa/Makefile.in | 43 +- newlib/libc/machine/i386/Makefile.in | 43 +- newlib/libc/machine/i960/Makefile.in | 43 +- newlib/libc/machine/iq2000/Makefile.in | 43 +- newlib/libc/machine/lm32/Makefile.in | 43 +- newlib/libc/machine/m32c/Makefile.in | 43 +- newlib/libc/machine/m32r/Makefile.in | 43 +- newlib/libc/machine/m68hc11/Makefile.in | 43 +- newlib/libc/machine/m68k/Makefile.in | 43 +- newlib/libc/machine/m88k/Makefile.in | 43 +- newlib/libc/machine/mep/Makefile.in | 43 +- newlib/libc/machine/microblaze/Makefile.in | 43 +- newlib/libc/machine/mips/Makefile.in | 43 +- newlib/libc/machine/mn10200/Makefile.in | 43 +- newlib/libc/machine/mn10300/Makefile.in | 43 +- newlib/libc/machine/moxie/Makefile.in | 43 +- newlib/libc/machine/msp430/Makefile.in | 43 +- newlib/libc/machine/mt/Makefile.in | 43 +- newlib/libc/machine/nds32/Makefile.in | 43 +- newlib/libc/machine/necv70/Makefile.in | 43 +- newlib/libc/machine/nios2/Makefile.in | 43 +- newlib/libc/machine/nvptx/Makefile.in | 43 +- newlib/libc/machine/or1k/Makefile.in | 43 +- newlib/libc/machine/powerpc/Makefile.in | 43 +- newlib/libc/machine/pru/Makefile.in | 43 +- newlib/libc/machine/riscv/Makefile.in | 43 +- newlib/libc/machine/rl78/Makefile.in | 43 +- newlib/libc/machine/rx/Makefile.in | 43 +- newlib/libc/machine/sh/Makefile.in | 43 +- newlib/libc/machine/sparc/Makefile.in | 43 +- newlib/libc/machine/spu/Makefile.in | 43 +- newlib/libc/machine/tic4x/Makefile.in | 43 +- newlib/libc/machine/tic6x/Makefile.in | 43 +- newlib/libc/machine/tic80/Makefile.in | 43 +- newlib/libc/machine/v850/Makefile.in | 43 +- newlib/libc/machine/visium/Makefile.in | 43 +- newlib/libc/machine/w65/Makefile.in | 43 +- newlib/libc/machine/x86_64/Makefile.in | 43 +- newlib/libc/machine/xc16x/Makefile.in | 43 +- newlib/libc/machine/xstormy16/Makefile.in | 43 +- newlib/libc/machine/z8k/Makefile.in | 43 +- newlib/libc/misc/Makefile.in | 43 +- newlib/libc/posix/Makefile.in | 43 +- newlib/libc/reent/Makefile.in | 43 +- newlib/libc/search/Makefile.in | 43 +- newlib/libc/signal/Makefile.in | 43 +- newlib/libc/ssp/Makefile.in | 43 +- newlib/libc/stdio/Makefile.in | 43 +- newlib/libc/stdio64/Makefile.in | 43 +- newlib/libc/stdlib/Makefile.in | 43 +- newlib/libc/string/Makefile.in | 43 +- newlib/libc/sys/a29khif/Makefile.in | 43 +- newlib/libc/sys/amdgcn/Makefile.in | 43 +- newlib/libc/sys/arm/Makefile.in | 43 +- newlib/libc/sys/d10v/Makefile.in | 43 +- newlib/libc/sys/epiphany/Makefile.in | 43 +- newlib/libc/sys/h8300hms/Makefile.in | 43 +- newlib/libc/sys/h8500hms/Makefile.in | 43 +- newlib/libc/sys/m88kbug/Makefile.in | 43 +- newlib/libc/sys/mmixware/Makefile.in | 43 +- newlib/libc/sys/netware/Makefile.in | 43 +- newlib/libc/sys/or1k/Makefile.in | 43 +- newlib/libc/sys/phoenix/Makefile.in | 43 +- newlib/libc/sys/phoenix/acinclude.m4 | 2 +- newlib/libc/sys/phoenix/machine/arm/Makefile.in | 43 +- newlib/libc/sys/rdos/Makefile.in | 43 +- newlib/libc/sys/rtems/Makefile.in | 43 +- newlib/libc/sys/sh/Makefile.in | 43 +- newlib/libc/sys/sysmec/Makefile.in | 43 +- newlib/libc/sys/sysnec810/Makefile.in | 43 +- newlib/libc/sys/sysnecv850/Makefile.in | 43 +- newlib/libc/sys/sysvi386/Makefile.in | 43 +- newlib/libc/sys/sysvnecv70/Makefile.in | 43 +- newlib/libc/sys/tic80/Makefile.in | 43 +- newlib/libc/sys/tirtos/Makefile.in | 43 +- newlib/libc/sys/w65/Makefile.in | 43 +- newlib/libc/sys/z8ksim/Makefile.in | 43 +- newlib/libc/syscalls/Makefile.in | 43 +- newlib/libc/time/Makefile.in | 43 +- newlib/libc/unix/Makefile.in | 43 +- newlib/libc/xdr/Makefile.in | 43 +- 117 files changed, 4268 insertions(+), 9115 deletions(-) diff --git a/newlib/Makefile.in b/newlib/Makefile.in index 1734b5de2..1491aa1c3 100644 --- a/newlib/Makefile.in +++ b/newlib/Makefile.in @@ -163,7 +163,13 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/../config/lead-dot.m4 \ $(top_srcdir)/../config/multi.m4 \ $(top_srcdir)/../config/override.m4 $(top_srcdir)/iconv.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/libm/acinclude.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/libc/acinclude.m4 \ + $(top_srcdir)/libc/machine/nds32/acinclude.m4 \ + $(top_srcdir)/libc/machine/powerpc/acinclude.m4 \ + $(top_srcdir)/libc/machine/sh/acinclude.m4 \ + $(top_srcdir)/libc/machine/spu/acinclude.m4 \ + $(top_srcdir)/libc/sys/phoenix/acinclude.m4 \ + $(top_srcdir)/libm/acinclude.m4 \ $(top_srcdir)/libm/machine/nds32/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ @@ -1204,6 +1210,16 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ +LIBC_MACHINE_DIR = @LIBC_MACHINE_DIR@ +LIBC_MACHINE_LIB = @LIBC_MACHINE_LIB@ +LIBC_POSIX_LIB = @LIBC_POSIX_LIB@ +LIBC_SIGNAL_LIB = @LIBC_SIGNAL_LIB@ +LIBC_STDIO64_LIB = @LIBC_STDIO64_LIB@ +LIBC_STDIO_LIB = @LIBC_STDIO_LIB@ +LIBC_SYSCALL_LIB = @LIBC_SYSCALL_LIB@ +LIBC_SYS_LIB = @LIBC_SYS_LIB@ +LIBC_UNIX_LIB = @LIBC_UNIX_LIB@ +LIBC_XDR_LIB = @LIBC_XDR_LIB@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ @@ -1225,11 +1241,13 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PHOENIX_MACHINE_DIR = @PHOENIX_MACHINE_DIR@ RANLIB = @RANLIB@ READELF = @READELF@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ +SYS_DIR = @SYS_DIR@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_newlib_basedir = @abs_newlib_basedir@ @@ -1282,7 +1300,6 @@ sbindir = @sbindir@ shared_machine_dir = @shared_machine_dir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ -subdirs = @subdirs@ sys_dir = @sys_dir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ diff --git a/newlib/configure b/newlib/configure index 998104ad7..4a145c8ba 100755 --- a/newlib/configure +++ b/newlib/configure @@ -583,13 +583,10 @@ PACKAGE_URL='' ac_unique_file="libc" ac_no_link=no -enable_option_checking=no ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS -HAVE_LONG_DOUBLE_FALSE -HAVE_LONG_DOUBLE_TRUE NEWLIB_PATCHLEVEL_VERSION NEWLIB_MINOR_VERSION NEWLIB_MAJOR_VERSION @@ -632,7 +629,52 @@ HAS_NDS32_FPU_DP_FALSE HAS_NDS32_FPU_DP_TRUE HAS_NDS32_FPU_SP_FALSE HAS_NDS32_FPU_SP_TRUE -subdirs +MACH_ADD_SETJMP_FALSE +MACH_ADD_SETJMP_TRUE +LIBC_MACHINE_LIB +LIBC_MACHINE_DIR +HAVE_LIBC_MACHINE_DIR_FALSE +HAVE_LIBC_MACHINE_DIR_TRUE +PHOENIX_MACHINE_DIR +HAVE_SPU_EA_FALSE +HAVE_SPU_EA_TRUE +SH64_FALSE +SH64_TRUE +HAVE_POWERPC_SPE_FALSE +HAVE_POWERPC_SPE_TRUE +HAVE_POWERPC_ALTIVEC_FALSE +HAVE_POWERPC_ALTIVEC_TRUE +IS_NDS32_ISA_V3M_FALSE +IS_NDS32_ISA_V3M_TRUE +ENABLE_NEWLIB_ICONV_FALSE +ENABLE_NEWLIB_ICONV_TRUE +HAVE_LONG_DOUBLE_FALSE +HAVE_LONG_DOUBLE_TRUE +LIBC_SYS_LIB +HAVE_SYS_DIR_FALSE +HAVE_SYS_DIR_TRUE +SYS_DIR +HAVE_UNIX_DIR_FALSE +HAVE_UNIX_DIR_TRUE +LIBC_UNIX_LIB +HAVE_SYSCALL_DIR_FALSE +HAVE_SYSCALL_DIR_TRUE +LIBC_SYSCALL_LIB +HAVE_XDR_DIR_FALSE +HAVE_XDR_DIR_TRUE +LIBC_XDR_LIB +HAVE_POSIX_DIR_FALSE +HAVE_POSIX_DIR_TRUE +LIBC_POSIX_LIB +HAVE_STDIO64_DIR_FALSE +HAVE_STDIO64_DIR_TRUE +LIBC_STDIO64_LIB +HAVE_STDIO_DIR_FALSE +HAVE_STDIO_DIR_TRUE +LIBC_STDIO_LIB +HAVE_SIGNAL_DIR_FALSE +HAVE_SIGNAL_DIR_TRUE +LIBC_SIGNAL_LIB CC_FOR_NEWLIB NEWLIB_HW_FP_FALSE NEWLIB_HW_FP_TRUE @@ -710,6 +752,12 @@ newlib_basedir MAY_SUPPLY_SYSCALLS_FALSE MAY_SUPPLY_SYSCALLS_TRUE multi_basedir +NEWLIB_RETARGETABLE_LOCKING_FALSE +NEWLIB_RETARGETABLE_LOCKING_TRUE +NEWLIB_NANO_FORMATTED_IO_FALSE +NEWLIB_NANO_FORMATTED_IO_TRUE +NEWLIB_NANO_MALLOC_FALSE +NEWLIB_NANO_MALLOC_TRUE target_alias host_alias build_alias @@ -799,7 +847,7 @@ CPPFLAGS CPP CCAS CCASFLAGS' -ac_subdirs_all='libc' + # Initialize some variables set by options. ac_init_help= @@ -1438,7 +1486,7 @@ Optional Features: --enable-newlib-nano-malloc use small-footprint nano-malloc implementation --disable-newlib-unbuf-stream-opt disable unbuffered stream optimization in streamio --enable-lite-exit enable light weight exit - --enable-newlib-nano-formatted-io Use nano version formatted IO + --enable-newlib-nano-formatted-io Use small-footprint nano-formatted-IO implementation --enable-newlib-retargetable-locking Allow locking routines to be retargeted at link time --enable-newlib-long-time_t define time_t to long --enable-newlib-use-gdtoa Use gdtoa rather than legacy ldtoa @@ -2239,6 +2287,14 @@ if test "${enable_newlib_nano_malloc+set}" = set; then : else newlib_nano_malloc= fi + if test x$newlib_nano_malloc = xyes; then + NEWLIB_NANO_MALLOC_TRUE= + NEWLIB_NANO_MALLOC_FALSE='#' +else + NEWLIB_NANO_MALLOC_TRUE='#' + NEWLIB_NANO_MALLOC_FALSE= +fi + # Check whether --enable-newlib-unbuf-stream-opt was given. if test "${enable_newlib_unbuf_stream_opt+set}" = set; then : @@ -2277,6 +2333,14 @@ else newlib_nano_formatted_io=no fi + if test x$newlib_nano_formatted_io = xyes; then + NEWLIB_NANO_FORMATTED_IO_TRUE= + NEWLIB_NANO_FORMATTED_IO_FALSE='#' +else + NEWLIB_NANO_FORMATTED_IO_TRUE='#' + NEWLIB_NANO_FORMATTED_IO_FALSE= +fi + # Check whether --enable-newlib-retargetable-locking was given. if test "${enable_newlib_retargetable_locking+set}" = set; then : @@ -2289,6 +2353,14 @@ else newlib_retargetable_locking=no fi + if test x$newlib_retargetable_locking = xyes; then + NEWLIB_RETARGETABLE_LOCKING_TRUE= + NEWLIB_RETARGETABLE_LOCKING_FALSE='#' +else + NEWLIB_RETARGETABLE_LOCKING_TRUE='#' + NEWLIB_RETARGETABLE_LOCKING_FALSE= +fi + # Check whether --enable-newlib-long-time_t was given. if test "${enable_newlib_long_time_t+set}" = set; then : @@ -4730,12 +4802,543 @@ fi +LIBC_SIGNAL_LIB= +if test -n "${signal_dir}"; then + LIBC_SIGNAL_LIB=${signal_dir}/lib.a +fi -subdirs="$subdirs libc" + if test x${signal_dir} != x; then + HAVE_SIGNAL_DIR_TRUE= + HAVE_SIGNAL_DIR_FALSE='#' +else + HAVE_SIGNAL_DIR_TRUE='#' + HAVE_SIGNAL_DIR_FALSE= +fi + + +LIBC_STDIO_LIB= +if test -n "${stdio_dir}"; then + LIBC_STDIO_LIB=${stdio_dir}/lib.a +fi + + if test x${stdio_dir} != x; then + HAVE_STDIO_DIR_TRUE= + HAVE_STDIO_DIR_FALSE='#' +else + HAVE_STDIO_DIR_TRUE='#' + HAVE_STDIO_DIR_FALSE= +fi + + +LIBC_STDIO64_LIB= +if test -n "${stdio64_dir}"; then + LIBC_STDIO64_LIB=${stdio64_dir}/lib.a +fi + + if test x${stdio64_dir} != x; then + HAVE_STDIO64_DIR_TRUE= + HAVE_STDIO64_DIR_FALSE='#' +else + HAVE_STDIO64_DIR_TRUE='#' + HAVE_STDIO64_DIR_FALSE= +fi + + +LIBC_POSIX_LIB= +if test -n "${posix_dir}"; then + LIBC_POSIX_LIB=${posix_dir}/lib.a +fi + + if test x${posix_dir} != x; then + HAVE_POSIX_DIR_TRUE= + HAVE_POSIX_DIR_FALSE='#' +else + HAVE_POSIX_DIR_TRUE='#' + HAVE_POSIX_DIR_FALSE= +fi + + +LIBC_XDR_LIB= +if test -n "${xdr_dir}"; then + LIBC_XDR_LIB=${xdr_dir}/lib.a +fi + + if test x${xdr_dir} != x; then + HAVE_XDR_DIR_TRUE= + HAVE_XDR_DIR_FALSE='#' +else + HAVE_XDR_DIR_TRUE='#' + HAVE_XDR_DIR_FALSE= +fi + + +LIBC_SYSCALL_LIB= +if test -n "${syscall_dir}"; then + LIBC_SYSCALL_LIB=${syscall_dir}/lib.a +fi + + if test x${syscall_dir} != x; then + HAVE_SYSCALL_DIR_TRUE= + HAVE_SYSCALL_DIR_FALSE='#' +else + HAVE_SYSCALL_DIR_TRUE='#' + HAVE_SYSCALL_DIR_FALSE= +fi + + +LIBC_UNIX_LIB= +if test -n "${unix_dir}"; then + LIBC_UNIX_LIB=${unix_dir}/lib.a +fi + + if test x${unix_dir} != x; then + HAVE_UNIX_DIR_TRUE= + HAVE_UNIX_DIR_FALSE='#' +else + HAVE_UNIX_DIR_TRUE='#' + HAVE_UNIX_DIR_FALSE= +fi + + + +LIBC_SYS_LIB= +if test -n "${sys_dir}"; then + case ${sys_dir} in + a29khif) ac_config_files="$ac_config_files libc/sys/a29khif/Makefile" + ;; + amdgcn) ac_config_files="$ac_config_files libc/sys/amdgcn/Makefile" + ;; + arm) ac_config_files="$ac_config_files libc/sys/arm/Makefile" + ;; + d10v) ac_config_files="$ac_config_files libc/sys/d10v/Makefile" + ;; + epiphany) ac_config_files="$ac_config_files libc/sys/epiphany/Makefile" + ;; + h8300hms) ac_config_files="$ac_config_files libc/sys/h8300hms/Makefile" + ;; + h8500hms) ac_config_files="$ac_config_files libc/sys/h8500hms/Makefile" + ;; + m88kbug) ac_config_files="$ac_config_files libc/sys/m88kbug/Makefile" + ;; + mmixware) ac_config_files="$ac_config_files libc/sys/mmixware/Makefile" + ;; + netware) ac_config_files="$ac_config_files libc/sys/netware/Makefile" + ;; + or1k) ac_config_files="$ac_config_files libc/sys/or1k/Makefile" + ;; + phoenix) ac_config_files="$ac_config_files libc/sys/phoenix/Makefile" + ;; + rdos) ac_config_files="$ac_config_files libc/sys/rdos/Makefile" + ;; + rtems) ac_config_files="$ac_config_files libc/sys/rtems/Makefile" + ;; + sh) ac_config_files="$ac_config_files libc/sys/sh/Makefile" + ;; + sysmec) ac_config_files="$ac_config_files libc/sys/sysmec/Makefile" + ;; + sysnec810) ac_config_files="$ac_config_files libc/sys/sysnec810/Makefile" + ;; + sysnecv850) ac_config_files="$ac_config_files libc/sys/sysnecv850/Makefile" + ;; + sysvi386) ac_config_files="$ac_config_files libc/sys/sysvi386/Makefile" + ;; + sysvnecv70) ac_config_files="$ac_config_files libc/sys/sysvnecv70/Makefile" + ;; + tic80) ac_config_files="$ac_config_files libc/sys/tic80/Makefile" + ;; + tirtos) ac_config_files="$ac_config_files libc/sys/tirtos/Makefile" + ;; + w65) ac_config_files="$ac_config_files libc/sys/w65/Makefile" + ;; + z8ksim) ac_config_files="$ac_config_files libc/sys/z8ksim/Makefile" + ;; + *) as_fn_error $? "unsupported sys_dir \"${sys_dir}\"" "$LINENO" 5 ;; + esac + + SYS_DIR=sys/${sys_dir} + LIBC_SYS_LIB=${SYS_DIR}/lib.a +fi + + if test x${sys_dir} != x; then + HAVE_SYS_DIR_TRUE= + HAVE_SYS_DIR_FALSE='#' +else + HAVE_SYS_DIR_TRUE='#' + HAVE_SYS_DIR_FALSE= +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 +$as_echo_n "checking for long double... " >&6; } +if ${ac_cv_type_long_double+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$GCC" = yes; then + ac_cv_type_long_double=yes + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* The Stardent Vistra knows sizeof (long double), but does + not support it. */ + long double foo = 0.0L; +int +main () +{ +static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ + sizeof (double) <= sizeof (long double))]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_type_long_double=yes +else + ac_cv_type_long_double=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 +$as_echo "$ac_cv_type_long_double" >&6; } + if test $ac_cv_type_long_double = yes; then + +$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h + + fi + + if test x"$ac_cv_type_long_double" = x"yes"; then + HAVE_LONG_DOUBLE_TRUE= + HAVE_LONG_DOUBLE_FALSE='#' +else + HAVE_LONG_DOUBLE_TRUE='#' + HAVE_LONG_DOUBLE_FALSE= +fi + + + if test x${newlib_iconv} != x; then + ENABLE_NEWLIB_ICONV_TRUE= + ENABLE_NEWLIB_ICONV_FALSE='#' +else + ENABLE_NEWLIB_ICONV_TRUE='#' + ENABLE_NEWLIB_ICONV_FALSE= +fi -if test "${libm_machine_dir}" = "nds32"; then -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nds32 FPU SP extension" >&5 +if test "${machine_dir}" = "nds32"; then + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nds32 V3M ISA" >&5 +$as_echo_n "checking for nds32 V3M ISA... " >&6; } +if ${newlib_cv_nds32_isa_v3m+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __NDS32_ISA_V3M__ +# error "This is nds32_isa_v3m." +#endif + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + newlib_cv_nds32_isa_v3m="no" +else + newlib_cv_nds32_isa_v3m="yes" +fi +rm -f conftest.err conftest.i conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $newlib_cv_nds32_isa_v3m" >&5 +$as_echo "$newlib_cv_nds32_isa_v3m" >&6; } +fi + + if test "$newlib_cv_nds32_isa_v3m" = "yes"; then + IS_NDS32_ISA_V3M_TRUE= + IS_NDS32_ISA_V3M_FALSE='#' +else + IS_NDS32_ISA_V3M_TRUE='#' + IS_NDS32_ISA_V3M_FALSE= +fi + + +HAVE_POWERPC_ALTIVEC=no +HAVE_POWERPC_SPE=no +if test "${machine_dir}" = "powerpc"; then + case $host in + powerpc*-*altivec*) HAVE_POWERPC_ALTIVEC=yes ;; + powerpc*-*spe*) HAVE_POWERPC_SPE=yes ;; + esac +fi + if test "$HAVE_POWERPC_ALTIVEC" = yes; then + HAVE_POWERPC_ALTIVEC_TRUE= + HAVE_POWERPC_ALTIVEC_FALSE='#' +else + HAVE_POWERPC_ALTIVEC_TRUE='#' + HAVE_POWERPC_ALTIVEC_FALSE= +fi + + if test "$HAVE_POWERPC_SPE" = yes; then + HAVE_POWERPC_SPE_TRUE= + HAVE_POWERPC_SPE_FALSE='#' +else + HAVE_POWERPC_SPE_TRUE='#' + HAVE_POWERPC_SPE_FALSE= +fi + + +if test "${machine_dir}" = "sh"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH5 (64-bit)" >&5 +$as_echo_n "checking for SH5 (64-bit)... " >&6; } +if ${newlib_cv_sh64+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if !defined(__SH5__) +# error "not SH5" +#endif + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + newlib_cv_sh64=yes +else + newlib_cv_sh64=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $newlib_cv_sh64" >&5 +$as_echo "$newlib_cv_sh64" >&6; } +fi + + if test "$newlib_cv_sh64" = yes; then + SH64_TRUE= + SH64_FALSE='#' +else + SH64_TRUE='#' + SH64_FALSE= +fi + + +if test "${machine_dir}" = "spu"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __ea" >&5 +$as_echo_n "checking whether the compiler supports __ea... " >&6; } +if ${newlib_cv_spu_compiler_has_ea+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if !defined (__EA32__) && !defined (__EA64__) +# error "__ea not supported" +#endif + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + newlib_cv_spu_compiler_has_ea=yes +else + newlib_cv_spu_compiler_has_ea=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $newlib_cv_spu_compiler_has_ea" >&5 +$as_echo "$newlib_cv_spu_compiler_has_ea" >&6; } +fi + if test "$newlib_cv_spu_compiler_has_ea" = yes; then + HAVE_SPU_EA_TRUE= + HAVE_SPU_EA_FALSE='#' +else + HAVE_SPU_EA_TRUE='#' + HAVE_SPU_EA_FALSE= +fi + + +if test "$sys_dir" = "phoenix"; then : + if test "${machine_dir}" = arm; then : + ac_config_files="$ac_config_files libc/sys/phoenix/machine/arm/Makefile" + +fi + + + PHOENIX_MACHINE_DIR=machine/${machine_dir} + +fi + + + +LIBC_MACHINE_LIB= +if test -n "${machine_dir}"; then + case ${machine_dir} in + a29k) ac_config_files="$ac_config_files libc/machine/a29k/Makefile" + ;; + aarch64) ac_config_files="$ac_config_files libc/machine/aarch64/Makefile" + ;; + amdgcn) ac_config_files="$ac_config_files libc/machine/amdgcn/Makefile" + ;; + arc) ac_config_files="$ac_config_files libc/machine/arc/Makefile" + ;; + arm) ac_config_files="$ac_config_files libc/machine/arm/Makefile" + ;; + bfin) ac_config_files="$ac_config_files libc/machine/bfin/Makefile" + ;; + cr16) ac_config_files="$ac_config_files libc/machine/cr16/Makefile" + ;; + cris) ac_config_files="$ac_config_files libc/machine/cris/Makefile" + ;; + crx) ac_config_files="$ac_config_files libc/machine/crx/Makefile" + ;; + csky) ac_config_files="$ac_config_files libc/machine/csky/Makefile" + ;; + d10v) ac_config_files="$ac_config_files libc/machine/d10v/Makefile" + ;; + d30v) ac_config_files="$ac_config_files libc/machine/d30v/Makefile" + ;; + epiphany) ac_config_files="$ac_config_files libc/machine/epiphany/Makefile" + ;; + fr30) ac_config_files="$ac_config_files libc/machine/fr30/Makefile" + ;; + frv) ac_config_files="$ac_config_files libc/machine/frv/Makefile" + ;; + ft32) ac_config_files="$ac_config_files libc/machine/ft32/Makefile" + ;; + h8300) ac_config_files="$ac_config_files libc/machine/h8300/Makefile" + ;; + h8500) ac_config_files="$ac_config_files libc/machine/h8500/Makefile" + ;; + hppa) ac_config_files="$ac_config_files libc/machine/hppa/Makefile" + ;; + i386) ac_config_files="$ac_config_files libc/machine/i386/Makefile" + ;; + i960) ac_config_files="$ac_config_files libc/machine/i960/Makefile" + ;; + iq2000) ac_config_files="$ac_config_files libc/machine/iq2000/Makefile" + ;; + lm32) ac_config_files="$ac_config_files libc/machine/lm32/Makefile" + ;; + m32c) ac_config_files="$ac_config_files libc/machine/m32c/Makefile" + ;; + m32r) ac_config_files="$ac_config_files libc/machine/m32r/Makefile" + ;; + m68hc11) ac_config_files="$ac_config_files libc/machine/m68hc11/Makefile" + ;; + m68k) ac_config_files="$ac_config_files libc/machine/m68k/Makefile" + ;; + m88k) ac_config_files="$ac_config_files libc/machine/m88k/Makefile" + ;; + mep) ac_config_files="$ac_config_files libc/machine/mep/Makefile" + ;; + microblaze) ac_config_files="$ac_config_files libc/machine/microblaze/Makefile" + ;; + mips) ac_config_files="$ac_config_files libc/machine/mips/Makefile" + ;; + riscv) ac_config_files="$ac_config_files libc/machine/riscv/Makefile" + ;; + mn10200) ac_config_files="$ac_config_files libc/machine/mn10200/Makefile" + ;; + mn10300) ac_config_files="$ac_config_files libc/machine/mn10300/Makefile" + ;; + moxie) ac_config_files="$ac_config_files libc/machine/moxie/Makefile" + ;; + msp430) ac_config_files="$ac_config_files libc/machine/msp430/Makefile" + ;; + mt) ac_config_files="$ac_config_files libc/machine/mt/Makefile" + ;; + nds32) ac_config_files="$ac_config_files libc/machine/nds32/Makefile" + ;; + necv70) ac_config_files="$ac_config_files libc/machine/necv70/Makefile" + ;; + nios2) ac_config_files="$ac_config_files libc/machine/nios2/Makefile" + ;; + nvptx) ac_config_files="$ac_config_files libc/machine/nvptx/Makefile" + ;; + or1k) ac_config_files="$ac_config_files libc/machine/or1k/Makefile" + ;; + powerpc) ac_config_files="$ac_config_files libc/machine/powerpc/Makefile" + ;; + pru) ac_config_files="$ac_config_files libc/machine/pru/Makefile" + ;; + rl78) ac_config_files="$ac_config_files libc/machine/rl78/Makefile" + ;; + rx) ac_config_files="$ac_config_files libc/machine/rx/Makefile" + ;; + sh) ac_config_files="$ac_config_files libc/machine/sh/Makefile" + ;; + sparc) ac_config_files="$ac_config_files libc/machine/sparc/Makefile" + ;; + spu) ac_config_files="$ac_config_files libc/machine/spu/Makefile" + ;; + tic4x) ac_config_files="$ac_config_files libc/machine/tic4x/Makefile" + ;; + tic6x) ac_config_files="$ac_config_files libc/machine/tic6x/Makefile" + ;; + tic80) ac_config_files="$ac_config_files libc/machine/tic80/Makefile" + ;; + v850) ac_config_files="$ac_config_files libc/machine/v850/Makefile" + ;; + visium) ac_config_files="$ac_config_files libc/machine/visium/Makefile" + ;; + w65) ac_config_files="$ac_config_files libc/machine/w65/Makefile" + ;; + x86_64) ac_config_files="$ac_config_files libc/machine/x86_64/Makefile" + ;; + xc16x) ac_config_files="$ac_config_files libc/machine/xc16x/Makefile" + ;; + xstormy16) ac_config_files="$ac_config_files libc/machine/xstormy16/Makefile" + ;; + z8k) ac_config_files="$ac_config_files libc/machine/z8k/Makefile" + ;; + *) as_fn_error $? "unsupported machine_dir \"${machine_dir}\"" "$LINENO" 5 ;; + esac + + LIBC_MACHINE_DIR=machine/${machine_dir} + LIBC_MACHINE_LIB=${LIBC_MACHINE_DIR}/lib.a +fi + if test "x${LIBC_MACHINE_DIR}" != x; then + HAVE_LIBC_MACHINE_DIR_TRUE= + HAVE_LIBC_MACHINE_DIR_FALSE='#' +else + HAVE_LIBC_MACHINE_DIR_TRUE='#' + HAVE_LIBC_MACHINE_DIR_FALSE= +fi + + + + + if test "x$mach_add_setjmp" = "xtrue"; then + MACH_ADD_SETJMP_TRUE= + MACH_ADD_SETJMP_FALSE='#' +else + MACH_ADD_SETJMP_TRUE='#' + MACH_ADD_SETJMP_FALSE= +fi + + +ac_config_files="$ac_config_files libc/Makefile libc/argz/Makefile libc/ctype/Makefile libc/errno/Makefile libc/locale/Makefile libc/misc/Makefile libc/reent/Makefile libc/search/Makefile libc/stdio/Makefile libc/stdio64/Makefile libc/stdlib/Makefile libc/string/Makefile libc/time/Makefile libc/posix/Makefile libc/signal/Makefile libc/syscalls/Makefile libc/unix/Makefile libc/iconv/Makefile libc/iconv/ces/Makefile libc/iconv/ccs/Makefile libc/iconv/ccs/binary/Makefile libc/iconv/lib/Makefile libc/ssp/Makefile libc/xdr/Makefile" + + +if test "${libm_machine_dir}" = "nds32"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nds32 FPU SP extension" >&5 $as_echo_n "checking for nds32 FPU SP extension... " >&6; } if ${newlib_cv_nds32_fpu_sp+:} false; then : $as_echo_n "(cached) " >&6 @@ -5998,6 +6601,18 @@ LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs +if test -z "${NEWLIB_NANO_MALLOC_TRUE}" && test -z "${NEWLIB_NANO_MALLOC_FALSE}"; then + as_fn_error $? "conditional \"NEWLIB_NANO_MALLOC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${NEWLIB_NANO_FORMATTED_IO_TRUE}" && test -z "${NEWLIB_NANO_FORMATTED_IO_FALSE}"; then + as_fn_error $? "conditional \"NEWLIB_NANO_FORMATTED_IO\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${NEWLIB_RETARGETABLE_LOCKING_TRUE}" && test -z "${NEWLIB_RETARGETABLE_LOCKING_FALSE}"; then + as_fn_error $? "conditional \"NEWLIB_RETARGETABLE_LOCKING\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then as_fn_error $? "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -6050,6 +6665,74 @@ if test -z "${NEWLIB_HW_FP_TRUE}" && test -z "${NEWLIB_HW_FP_FALSE}"; then as_fn_error $? "conditional \"NEWLIB_HW_FP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_SIGNAL_DIR_TRUE}" && test -z "${HAVE_SIGNAL_DIR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SIGNAL_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_STDIO_DIR_TRUE}" && test -z "${HAVE_STDIO_DIR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_STDIO_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_STDIO64_DIR_TRUE}" && test -z "${HAVE_STDIO64_DIR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_STDIO64_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_POSIX_DIR_TRUE}" && test -z "${HAVE_POSIX_DIR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_POSIX_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_XDR_DIR_TRUE}" && test -z "${HAVE_XDR_DIR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_XDR_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_SYSCALL_DIR_TRUE}" && test -z "${HAVE_SYSCALL_DIR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SYSCALL_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_UNIX_DIR_TRUE}" && test -z "${HAVE_UNIX_DIR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_UNIX_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_SYS_DIR_TRUE}" && test -z "${HAVE_SYS_DIR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SYS_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LONG_DOUBLE_TRUE}" && test -z "${HAVE_LONG_DOUBLE_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LONG_DOUBLE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${ENABLE_NEWLIB_ICONV_TRUE}" && test -z "${ENABLE_NEWLIB_ICONV_FALSE}"; then + as_fn_error $? "conditional \"ENABLE_NEWLIB_ICONV\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${IS_NDS32_ISA_V3M_TRUE}" && test -z "${IS_NDS32_ISA_V3M_FALSE}"; then + as_fn_error $? "conditional \"IS_NDS32_ISA_V3M\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_POWERPC_ALTIVEC_TRUE}" && test -z "${HAVE_POWERPC_ALTIVEC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_POWERPC_ALTIVEC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_POWERPC_SPE_TRUE}" && test -z "${HAVE_POWERPC_SPE_FALSE}"; then + as_fn_error $? "conditional \"HAVE_POWERPC_SPE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then + as_fn_error $? "conditional \"SH64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_SPU_EA_TRUE}" && test -z "${HAVE_SPU_EA_FALSE}"; then + as_fn_error $? "conditional \"HAVE_SPU_EA\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_LIBC_MACHINE_DIR_TRUE}" && test -z "${HAVE_LIBC_MACHINE_DIR_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIBC_MACHINE_DIR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${MACH_ADD_SETJMP_TRUE}" && test -z "${MACH_ADD_SETJMP_FALSE}"; then + as_fn_error $? "conditional \"MACH_ADD_SETJMP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAS_NDS32_FPU_SP_TRUE}" && test -z "${HAS_NDS32_FPU_SP_FALSE}"; then as_fn_error $? "conditional \"HAS_NDS32_FPU_SP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -6726,6 +7409,114 @@ do "newlib.h") CONFIG_HEADERS="$CONFIG_HEADERS newlib.h:newlib.hin" ;; "_newlib_version.h") CONFIG_HEADERS="$CONFIG_HEADERS _newlib_version.h:_newlib_version.hin" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "libc/sys/a29khif/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/a29khif/Makefile" ;; + "libc/sys/amdgcn/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/amdgcn/Makefile" ;; + "libc/sys/arm/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/arm/Makefile" ;; + "libc/sys/d10v/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/d10v/Makefile" ;; + "libc/sys/epiphany/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/epiphany/Makefile" ;; + "libc/sys/h8300hms/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/h8300hms/Makefile" ;; + "libc/sys/h8500hms/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/h8500hms/Makefile" ;; + "libc/sys/m88kbug/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/m88kbug/Makefile" ;; + "libc/sys/mmixware/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/mmixware/Makefile" ;; + "libc/sys/netware/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/netware/Makefile" ;; + "libc/sys/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/or1k/Makefile" ;; + "libc/sys/phoenix/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/phoenix/Makefile" ;; + "libc/sys/rdos/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/rdos/Makefile" ;; + "libc/sys/rtems/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/rtems/Makefile" ;; + "libc/sys/sh/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/sh/Makefile" ;; + "libc/sys/sysmec/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/sysmec/Makefile" ;; + "libc/sys/sysnec810/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/sysnec810/Makefile" ;; + "libc/sys/sysnecv850/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/sysnecv850/Makefile" ;; + "libc/sys/sysvi386/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/sysvi386/Makefile" ;; + "libc/sys/sysvnecv70/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/sysvnecv70/Makefile" ;; + "libc/sys/tic80/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/tic80/Makefile" ;; + "libc/sys/tirtos/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/tirtos/Makefile" ;; + "libc/sys/w65/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/w65/Makefile" ;; + "libc/sys/z8ksim/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/z8ksim/Makefile" ;; + "libc/sys/phoenix/machine/arm/Makefile") CONFIG_FILES="$CONFIG_FILES libc/sys/phoenix/machine/arm/Makefile" ;; + "libc/machine/a29k/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/a29k/Makefile" ;; + "libc/machine/aarch64/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/aarch64/Makefile" ;; + "libc/machine/amdgcn/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/amdgcn/Makefile" ;; + "libc/machine/arc/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/arc/Makefile" ;; + "libc/machine/arm/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/arm/Makefile" ;; + "libc/machine/bfin/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/bfin/Makefile" ;; + "libc/machine/cr16/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/cr16/Makefile" ;; + "libc/machine/cris/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/cris/Makefile" ;; + "libc/machine/crx/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/crx/Makefile" ;; + "libc/machine/csky/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/csky/Makefile" ;; + "libc/machine/d10v/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/d10v/Makefile" ;; + "libc/machine/d30v/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/d30v/Makefile" ;; + "libc/machine/epiphany/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/epiphany/Makefile" ;; + "libc/machine/fr30/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/fr30/Makefile" ;; + "libc/machine/frv/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/frv/Makefile" ;; + "libc/machine/ft32/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/ft32/Makefile" ;; + "libc/machine/h8300/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/h8300/Makefile" ;; + "libc/machine/h8500/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/h8500/Makefile" ;; + "libc/machine/hppa/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/hppa/Makefile" ;; + "libc/machine/i386/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/i386/Makefile" ;; + "libc/machine/i960/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/i960/Makefile" ;; + "libc/machine/iq2000/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/iq2000/Makefile" ;; + "libc/machine/lm32/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/lm32/Makefile" ;; + "libc/machine/m32c/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/m32c/Makefile" ;; + "libc/machine/m32r/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/m32r/Makefile" ;; + "libc/machine/m68hc11/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/m68hc11/Makefile" ;; + "libc/machine/m68k/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/m68k/Makefile" ;; + "libc/machine/m88k/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/m88k/Makefile" ;; + "libc/machine/mep/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/mep/Makefile" ;; + "libc/machine/microblaze/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/microblaze/Makefile" ;; + "libc/machine/mips/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/mips/Makefile" ;; + "libc/machine/riscv/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/riscv/Makefile" ;; + "libc/machine/mn10200/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/mn10200/Makefile" ;; + "libc/machine/mn10300/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/mn10300/Makefile" ;; + "libc/machine/moxie/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/moxie/Makefile" ;; + "libc/machine/msp430/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/msp430/Makefile" ;; + "libc/machine/mt/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/mt/Makefile" ;; + "libc/machine/nds32/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/nds32/Makefile" ;; + "libc/machine/necv70/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/necv70/Makefile" ;; + "libc/machine/nios2/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/nios2/Makefile" ;; + "libc/machine/nvptx/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/nvptx/Makefile" ;; + "libc/machine/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/or1k/Makefile" ;; + "libc/machine/powerpc/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/powerpc/Makefile" ;; + "libc/machine/pru/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/pru/Makefile" ;; + "libc/machine/rl78/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/rl78/Makefile" ;; + "libc/machine/rx/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/rx/Makefile" ;; + "libc/machine/sh/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/sh/Makefile" ;; + "libc/machine/sparc/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/sparc/Makefile" ;; + "libc/machine/spu/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/spu/Makefile" ;; + "libc/machine/tic4x/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/tic4x/Makefile" ;; + "libc/machine/tic6x/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/tic6x/Makefile" ;; + "libc/machine/tic80/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/tic80/Makefile" ;; + "libc/machine/v850/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/v850/Makefile" ;; + "libc/machine/visium/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/visium/Makefile" ;; + "libc/machine/w65/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/w65/Makefile" ;; + "libc/machine/x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/x86_64/Makefile" ;; + "libc/machine/xc16x/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/xc16x/Makefile" ;; + "libc/machine/xstormy16/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/xstormy16/Makefile" ;; + "libc/machine/z8k/Makefile") CONFIG_FILES="$CONFIG_FILES libc/machine/z8k/Makefile" ;; + "libc/Makefile") CONFIG_FILES="$CONFIG_FILES libc/Makefile" ;; + "libc/argz/Makefile") CONFIG_FILES="$CONFIG_FILES libc/argz/Makefile" ;; + "libc/ctype/Makefile") CONFIG_FILES="$CONFIG_FILES libc/ctype/Makefile" ;; + "libc/errno/Makefile") CONFIG_FILES="$CONFIG_FILES libc/errno/Makefile" ;; + "libc/locale/Makefile") CONFIG_FILES="$CONFIG_FILES libc/locale/Makefile" ;; + "libc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES libc/misc/Makefile" ;; + "libc/reent/Makefile") CONFIG_FILES="$CONFIG_FILES libc/reent/Makefile" ;; + "libc/search/Makefile") CONFIG_FILES="$CONFIG_FILES libc/search/Makefile" ;; + "libc/stdio/Makefile") CONFIG_FILES="$CONFIG_FILES libc/stdio/Makefile" ;; + "libc/stdio64/Makefile") CONFIG_FILES="$CONFIG_FILES libc/stdio64/Makefile" ;; + "libc/stdlib/Makefile") CONFIG_FILES="$CONFIG_FILES libc/stdlib/Makefile" ;; + "libc/string/Makefile") CONFIG_FILES="$CONFIG_FILES libc/string/Makefile" ;; + "libc/time/Makefile") CONFIG_FILES="$CONFIG_FILES libc/time/Makefile" ;; + "libc/posix/Makefile") CONFIG_FILES="$CONFIG_FILES libc/posix/Makefile" ;; + "libc/signal/Makefile") CONFIG_FILES="$CONFIG_FILES libc/signal/Makefile" ;; + "libc/syscalls/Makefile") CONFIG_FILES="$CONFIG_FILES libc/syscalls/Makefile" ;; + "libc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES libc/unix/Makefile" ;; + "libc/iconv/Makefile") CONFIG_FILES="$CONFIG_FILES libc/iconv/Makefile" ;; + "libc/iconv/ces/Makefile") CONFIG_FILES="$CONFIG_FILES libc/iconv/ces/Makefile" ;; + "libc/iconv/ccs/Makefile") CONFIG_FILES="$CONFIG_FILES libc/iconv/ccs/Makefile" ;; + "libc/iconv/ccs/binary/Makefile") CONFIG_FILES="$CONFIG_FILES libc/iconv/ccs/binary/Makefile" ;; + "libc/iconv/lib/Makefile") CONFIG_FILES="$CONFIG_FILES libc/iconv/lib/Makefile" ;; + "libc/ssp/Makefile") CONFIG_FILES="$CONFIG_FILES libc/ssp/Makefile" ;; + "libc/xdr/Makefile") CONFIG_FILES="$CONFIG_FILES libc/xdr/Makefile" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; @@ -7364,151 +8155,6 @@ if test "$no_create" != yes; then # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi - -# -# CONFIG_SUBDIRS section. -# -if test "$no_recursion" != yes; then - - # Remove --cache-file, --srcdir, and --disable-option-checking arguments - # so they do not pile up. - ac_sub_configure_args= - ac_prev= - eval "set x $ac_configure_args" - shift - for ac_arg - do - if test -n "$ac_prev"; then - ac_prev= - continue - fi - case $ac_arg in - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ - | --c=*) - ;; - --config-cache | -C) - ;; - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - ;; - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - ;; - --disable-option-checking) - ;; - *) - case $ac_arg in - *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - as_fn_append ac_sub_configure_args " '$ac_arg'" ;; - esac - done - - # Always prepend --prefix to ensure using the same prefix - # in subdir configurations. - ac_arg="--prefix=$prefix" - case $ac_arg in - *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" - - # Pass --silent - if test "$silent" = yes; then - ac_sub_configure_args="--silent $ac_sub_configure_args" - fi - - # Always prepend --disable-option-checking to silence warnings, since - # different subdirs can have different --enable and --with options. - ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" - - ac_popdir=`pwd` - for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue - - # Do not complain, so a configure script can configure whichever - # parts of a large source tree are present. - test -d "$srcdir/$ac_dir" || continue - - ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" - $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 - $as_echo "$ac_msg" >&6 - as_dir="$ac_dir"; as_fn_mkdir_p - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - cd "$ac_dir" - - # Check for guested configure; otherwise get Cygnus style configure. - if test -f "$ac_srcdir/configure.gnu"; then - ac_sub_configure=$ac_srcdir/configure.gnu - elif test -f "$ac_srcdir/configure"; then - ac_sub_configure=$ac_srcdir/configure - elif test -f "$ac_srcdir/configure.in"; then - # This should be Cygnus configure. - ac_sub_configure=$ac_aux_dir/configure - else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 -$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} - ac_sub_configure= - fi - - # The recursion is here. - if test -n "$ac_sub_configure"; then - # Make the cache file name correct relative to the subdirectory. - case $cache_file in - [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; - *) # Relative name. - ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; - esac - - { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 -$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} - # The eval makes quoting arguments work. - eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ - --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || - as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 - fi - - cd "$ac_popdir" - done -fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} diff --git a/newlib/configure.ac b/newlib/configure.ac index b97d7a600..195d336f2 100644 --- a/newlib/configure.ac +++ b/newlib/configure.ac @@ -216,6 +216,7 @@ AC_ARG_ENABLE(newlib-nano-malloc, *) AC_MSG_ERROR(bad value ${enableval} for newlib-nano-malloc option) ;; esac fi], [newlib_nano_malloc=])dnl +AM_CONDITIONAL(NEWLIB_NANO_MALLOC, test x$newlib_nano_malloc = xyes) dnl Support --disable-newlib-unbuf-stream-opt AC_ARG_ENABLE(newlib-unbuf-stream-opt, @@ -245,12 +246,13 @@ dnl Support --enable-newlib-nano-formatted-io dnl This option is also read in libc/configure.in. It is repeated dnl here so that it shows up in the help text. AC_ARG_ENABLE(newlib_nano_formatted_io, -[ --enable-newlib-nano-formatted-io Use nano version formatted IO], +[ --enable-newlib-nano-formatted-io Use small-footprint nano-formatted-IO implementation], [case "${enableval}" in yes) newlib_nano_formatted_io=yes ;; no) newlib_nano_formatted_io=no ;; *) AC_MSG_ERROR(bad value ${enableval} for newlib-nano-formatted-io) ;; esac],[newlib_nano_formatted_io=no]) +AM_CONDITIONAL(NEWLIB_NANO_FORMATTED_IO, test x$newlib_nano_formatted_io = xyes) dnl Support --enable-retargetable-locking dnl This option is also read in libc/configure.in. It is repeated @@ -262,6 +264,7 @@ AC_ARG_ENABLE(newlib-retargetable-locking, no) newlib_retargetable_locking=no ;; *) AC_MSG_ERROR(bad value ${enableval} for newlib-retargetable-locking) ;; esac],[newlib_retargetable_locking=no]) +AM_CONDITIONAL(NEWLIB_RETARGETABLE_LOCKING, test x$newlib_retargetable_locking = xyes) dnl Support --enable-newlib-long-time_t AC_ARG_ENABLE(newlib-long-time_t, @@ -313,7 +316,7 @@ else fi AC_SUBST(CC_FOR_NEWLIB) -AC_CONFIG_SUBDIRS(libc) +m4_include([libc/acinclude.m4]) m4_include([libm/acinclude.m4]) if test -z "${with_multisubdir}"; then diff --git a/newlib/libc/Makefile.am b/newlib/libc/Makefile.am index b3ea976fa..f4cdcf1b6 100644 --- a/newlib/libc/Makefile.am +++ b/newlib/libc/Makefile.am @@ -88,6 +88,3 @@ libc.a: $(SUBLIBS) rm -rf tmp $(SUBLIBS): ; @true - -ACLOCAL_AMFLAGS = -I .. -I ../.. -I ../../config -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host diff --git a/newlib/libc/Makefile.in b/newlib/libc/Makefile.in index 64f305aa1..50c5d26f1 100644 --- a/newlib/libc/Makefile.in +++ b/newlib/libc/Makefile.in @@ -92,24 +92,26 @@ host_triplet = @host@ # NB: Machine dir must come last so it can override common objects when creating # libc.a below. @HAVE_LIBC_MACHINE_DIR_TRUE@am__append_2 = $(LIBC_MACHINE_DIR) -subdir = . +subdir = libc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/../../config/lead-dot.m4 \ - $(top_srcdir)/../../config/override.m4 \ - $(top_srcdir)/../acinclude.m4 \ - $(top_srcdir)/machine/nds32/acinclude.m4 \ - $(top_srcdir)/machine/powerpc/acinclude.m4 \ - $(top_srcdir)/machine/sh/acinclude.m4 \ - $(top_srcdir)/machine/spu/acinclude.m4 \ - $(top_srcdir)/sys/phoenix/acinclude.m4 \ +am__aclocal_m4_deps = $(top_srcdir)/../config/lead-dot.m4 \ + $(top_srcdir)/../config/multi.m4 \ + $(top_srcdir)/../config/override.m4 $(top_srcdir)/iconv.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/libc/acinclude.m4 \ + $(top_srcdir)/libc/machine/nds32/acinclude.m4 \ + $(top_srcdir)/libc/machine/powerpc/acinclude.m4 \ + $(top_srcdir)/libc/machine/sh/acinclude.m4 \ + $(top_srcdir)/libc/machine/spu/acinclude.m4 \ + $(top_srcdir)/libc/sys/phoenix/acinclude.m4 \ + $(top_srcdir)/libm/acinclude.m4 \ + $(top_srcdir)/libm/machine/nds32/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ - $(am__configure_deps) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs +DIST_COMMON = $(srcdir)/Makefile.am +mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs +CONFIG_HEADER = $(top_builddir)/newlib.h \ + $(top_builddir)/_newlib_version.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) @@ -134,7 +136,7 @@ AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = -DEFAULT_INCLUDES = -I.@am__isrc@ +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ @@ -169,8 +171,7 @@ am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) -AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ - cscope +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is @@ -190,7 +191,6 @@ am__define_uniq_tagged_files = \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags -CSCOPE = cscope DIST_SUBDIRS = argz stdlib ctype search stdio stdio64 string signal \ time locale reent errno misc unix posix syscalls iconv xdr ssp \ @SYS_DIR@ @LIBC_MACHINE_DIR@ . @@ -205,15 +205,22 @@ AWK = @AWK@ CC = @CC@ CCAS = @CCAS@ CCASFLAGS = @CCASFLAGS@ +CC_FOR_BUILD = @CC_FOR_BUILD@ +CC_FOR_NEWLIB = @CC_FOR_NEWLIB@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CRT0 = @CRT0@ +CRT0_DIR = @CRT0_DIR@ +CRT1 = @CRT1@ +CRT1_DIR = @CRT1_DIR@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EXEEXT = @EXEEXT@ +EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -237,6 +244,10 @@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ +NEWLIB_MAJOR_VERSION = @NEWLIB_MAJOR_VERSION@ +NEWLIB_MINOR_VERSION = @NEWLIB_MINOR_VERSION@ +NEWLIB_PATCHLEVEL_VERSION = @NEWLIB_PATCHLEVEL_VERSION@ +NEWLIB_VERSION = @NEWLIB_VERSION@ NO_INCLUDE_LIST = @NO_INCLUDE_LIST@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ @@ -295,6 +306,7 @@ lpfx = @lpfx@ machine_dir = @machine_dir@ mandir = @mandir@ mkdir_p = @mkdir_p@ +multi_basedir = @multi_basedir@ newlib_basedir = @newlib_basedir@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ @@ -353,44 +365,38 @@ SUBLIBS = \ $(LIBC_MACHINE_LIB) \ $(LIBC_SYS_LIB) -ACLOCAL_AMFLAGS = -I .. -I ../.. -I ../../config -CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host all: all-recursive .SUFFIXES: .SUFFIXES: .c .o .obj -am--refresh: Makefile - @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps'; \ - $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps Makefile'; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps libc/Makefile'; \ $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign --ignore-deps Makefile + $(AUTOMAKE) --foreign --ignore-deps libc/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - $(am__cd) $(srcdir) && $(AUTOCONF) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: @@ -488,12 +494,6 @@ GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" -cscope: cscope.files - test ! -s cscope.files \ - || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) -clean-cscope: - -rm -f cscope.files -cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) @@ -512,7 +512,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -rm -f cscope.out cscope.in.out cscope.po.out cscope.files check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) @@ -553,7 +552,6 @@ clean: clean-recursive clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags @@ -599,8 +597,6 @@ install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic @@ -620,19 +616,19 @@ uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ - am--refresh check check-am clean clean-cscope clean-generic \ - clean-noinstLIBRARIES cscope cscopelist-am ctags ctags-am \ - distclean distclean-compile distclean-generic distclean-tags \ - dvi dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs installdirs-am \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am +.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ + check-am clean clean-generic clean-noinstLIBRARIES \ + cscopelist-am ctags ctags-am distclean distclean-compile \ + distclean-generic distclean-tags dvi dvi-am html html-am info \ + info-am install install-am install-data install-data-am \ + install-dvi install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-man install-pdf install-pdf-am install-ps \ + install-ps-am install-strip installcheck installcheck-am \ + installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ + uninstall-am .PRECIOUS: Makefile diff --git a/newlib/libc/acinclude.m4 b/newlib/libc/acinclude.m4 new file mode 100644 index 000000000..69c956cb4 --- /dev/null +++ b/newlib/libc/acinclude.m4 @@ -0,0 +1,182 @@ +dnl For each directory which we may or may not want, we define a name +dnl for the library and an automake conditional for whether we should +dnl build the library. + +LIBC_SIGNAL_LIB= +if test -n "${signal_dir}"; then + LIBC_SIGNAL_LIB=${signal_dir}/lib.a +fi +AC_SUBST(LIBC_SIGNAL_LIB) +AM_CONDITIONAL(HAVE_SIGNAL_DIR, test x${signal_dir} != x) + +LIBC_STDIO_LIB= +if test -n "${stdio_dir}"; then + LIBC_STDIO_LIB=${stdio_dir}/lib.a +fi +AC_SUBST(LIBC_STDIO_LIB) +AM_CONDITIONAL(HAVE_STDIO_DIR, test x${stdio_dir} != x) + +LIBC_STDIO64_LIB= +if test -n "${stdio64_dir}"; then + LIBC_STDIO64_LIB=${stdio64_dir}/lib.a +fi +AC_SUBST(LIBC_STDIO64_LIB) +AM_CONDITIONAL(HAVE_STDIO64_DIR, test x${stdio64_dir} != x) + +LIBC_POSIX_LIB= +if test -n "${posix_dir}"; then + LIBC_POSIX_LIB=${posix_dir}/lib.a +fi +AC_SUBST(LIBC_POSIX_LIB) +AM_CONDITIONAL(HAVE_POSIX_DIR, test x${posix_dir} != x) + +LIBC_XDR_LIB= +if test -n "${xdr_dir}"; then + LIBC_XDR_LIB=${xdr_dir}/lib.a +fi +AC_SUBST(LIBC_XDR_LIB) +AM_CONDITIONAL(HAVE_XDR_DIR, test x${xdr_dir} != x) + +LIBC_SYSCALL_LIB= +if test -n "${syscall_dir}"; then + LIBC_SYSCALL_LIB=${syscall_dir}/lib.a +fi +AC_SUBST(LIBC_SYSCALL_LIB) +AM_CONDITIONAL(HAVE_SYSCALL_DIR, test x${syscall_dir} != x) + +LIBC_UNIX_LIB= +if test -n "${unix_dir}"; then + LIBC_UNIX_LIB=${unix_dir}/lib.a +fi +AC_SUBST(LIBC_UNIX_LIB) +AM_CONDITIONAL(HAVE_UNIX_DIR, test x${unix_dir} != x) + +dnl We always recur into sys and machine, and let them decide what to +dnl do. However, we do need to know whether they will produce a library. + +LIBC_SYS_LIB= +if test -n "${sys_dir}"; then + case ${sys_dir} in + a29khif) AC_CONFIG_FILES([libc/sys/a29khif/Makefile]) ;; + amdgcn) AC_CONFIG_FILES([libc/sys/amdgcn/Makefile]) ;; + arm) AC_CONFIG_FILES([libc/sys/arm/Makefile]) ;; + d10v) AC_CONFIG_FILES([libc/sys/d10v/Makefile]) ;; + epiphany) AC_CONFIG_FILES([libc/sys/epiphany/Makefile]) ;; + h8300hms) AC_CONFIG_FILES([libc/sys/h8300hms/Makefile]) ;; + h8500hms) AC_CONFIG_FILES([libc/sys/h8500hms/Makefile]) ;; + m88kbug) AC_CONFIG_FILES([libc/sys/m88kbug/Makefile]) ;; + mmixware) AC_CONFIG_FILES([libc/sys/mmixware/Makefile]) ;; + netware) AC_CONFIG_FILES([libc/sys/netware/Makefile]) ;; + or1k) AC_CONFIG_FILES([libc/sys/or1k/Makefile]) ;; + phoenix) AC_CONFIG_FILES([libc/sys/phoenix/Makefile]) ;; + rdos) AC_CONFIG_FILES([libc/sys/rdos/Makefile]) ;; + rtems) AC_CONFIG_FILES([libc/sys/rtems/Makefile]) ;; + sh) AC_CONFIG_FILES([libc/sys/sh/Makefile]) ;; + sysmec) AC_CONFIG_FILES([libc/sys/sysmec/Makefile]) ;; + sysnec810) AC_CONFIG_FILES([libc/sys/sysnec810/Makefile]) ;; + sysnecv850) AC_CONFIG_FILES([libc/sys/sysnecv850/Makefile]) ;; + sysvi386) AC_CONFIG_FILES([libc/sys/sysvi386/Makefile]) ;; + sysvnecv70) AC_CONFIG_FILES([libc/sys/sysvnecv70/Makefile]) ;; + tic80) AC_CONFIG_FILES([libc/sys/tic80/Makefile]) ;; + tirtos) AC_CONFIG_FILES([libc/sys/tirtos/Makefile]) ;; + w65) AC_CONFIG_FILES([libc/sys/w65/Makefile]) ;; + z8ksim) AC_CONFIG_FILES([libc/sys/z8ksim/Makefile]) ;; + *) AC_MSG_ERROR([unsupported sys_dir "${sys_dir}"]) ;; + esac + + SYS_DIR=sys/${sys_dir} + LIBC_SYS_LIB=${SYS_DIR}/lib.a +fi +AC_SUBST(SYS_DIR) +AM_CONDITIONAL(HAVE_SYS_DIR, test x${sys_dir} != x) +AC_SUBST(LIBC_SYS_LIB) + +AC_TYPE_LONG_DOUBLE +AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$ac_cv_type_long_double" = x"yes") + +dnl iconv library will be compiled if --enable-newlib-iconv option is enabled +AM_CONDITIONAL(ENABLE_NEWLIB_ICONV, test x${newlib_iconv} != x) + +dnl We have to include these unconditionally since machines might want to use +dnl AM_CONDITIONAL in their subdirs. +m4_include([libc/machine/nds32/acinclude.m4]) +m4_include([libc/machine/powerpc/acinclude.m4]) +m4_include([libc/machine/sh/acinclude.m4]) +m4_include([libc/machine/spu/acinclude.m4]) +m4_include([libc/sys/phoenix/acinclude.m4]) + +LIBC_MACHINE_LIB= +if test -n "${machine_dir}"; then + case ${machine_dir} in + a29k) AC_CONFIG_FILES([libc/machine/a29k/Makefile]) ;; + aarch64) AC_CONFIG_FILES([libc/machine/aarch64/Makefile]) ;; + amdgcn) AC_CONFIG_FILES([libc/machine/amdgcn/Makefile]) ;; + arc) AC_CONFIG_FILES([libc/machine/arc/Makefile]) ;; + arm) AC_CONFIG_FILES([libc/machine/arm/Makefile]) ;; + bfin) AC_CONFIG_FILES([libc/machine/bfin/Makefile]) ;; + cr16) AC_CONFIG_FILES([libc/machine/cr16/Makefile]) ;; + cris) AC_CONFIG_FILES([libc/machine/cris/Makefile]) ;; + crx) AC_CONFIG_FILES([libc/machine/crx/Makefile]) ;; + csky) AC_CONFIG_FILES([libc/machine/csky/Makefile]) ;; + d10v) AC_CONFIG_FILES([libc/machine/d10v/Makefile]) ;; + d30v) AC_CONFIG_FILES([libc/machine/d30v/Makefile]) ;; + epiphany) AC_CONFIG_FILES([libc/machine/epiphany/Makefile]) ;; + fr30) AC_CONFIG_FILES([libc/machine/fr30/Makefile]) ;; + frv) AC_CONFIG_FILES([libc/machine/frv/Makefile]) ;; + ft32) AC_CONFIG_FILES([libc/machine/ft32/Makefile]) ;; + h8300) AC_CONFIG_FILES([libc/machine/h8300/Makefile]) ;; + h8500) AC_CONFIG_FILES([libc/machine/h8500/Makefile]) ;; + hppa) AC_CONFIG_FILES([libc/machine/hppa/Makefile]) ;; + i386) AC_CONFIG_FILES([libc/machine/i386/Makefile]) ;; + i960) AC_CONFIG_FILES([libc/machine/i960/Makefile]) ;; + iq2000) AC_CONFIG_FILES([libc/machine/iq2000/Makefile]) ;; + lm32) AC_CONFIG_FILES([libc/machine/lm32/Makefile]) ;; + m32c) AC_CONFIG_FILES([libc/machine/m32c/Makefile]) ;; + m32r) AC_CONFIG_FILES([libc/machine/m32r/Makefile]) ;; + m68hc11) AC_CONFIG_FILES([libc/machine/m68hc11/Makefile]) ;; + m68k) AC_CONFIG_FILES([libc/machine/m68k/Makefile]) ;; + m88k) AC_CONFIG_FILES([libc/machine/m88k/Makefile]) ;; + mep) AC_CONFIG_FILES([libc/machine/mep/Makefile]) ;; + microblaze) AC_CONFIG_FILES([libc/machine/microblaze/Makefile]) ;; + mips) AC_CONFIG_FILES([libc/machine/mips/Makefile]) ;; + riscv) AC_CONFIG_FILES([libc/machine/riscv/Makefile]) ;; + mn10200) AC_CONFIG_FILES([libc/machine/mn10200/Makefile]) ;; + mn10300) AC_CONFIG_FILES([libc/machine/mn10300/Makefile]) ;; + moxie) AC_CONFIG_FILES([libc/machine/moxie/Makefile]) ;; + msp430) AC_CONFIG_FILES([libc/machine/msp430/Makefile]) ;; + mt) AC_CONFIG_FILES([libc/machine/mt/Makefile]) ;; + nds32) AC_CONFIG_FILES([libc/machine/nds32/Makefile]) ;; + necv70) AC_CONFIG_FILES([libc/machine/necv70/Makefile]) ;; + nios2) AC_CONFIG_FILES([libc/machine/nios2/Makefile]) ;; + nvptx) AC_CONFIG_FILES([libc/machine/nvptx/Makefile]) ;; + or1k) AC_CONFIG_FILES([libc/machine/or1k/Makefile]) ;; + powerpc) AC_CONFIG_FILES([libc/machine/powerpc/Makefile]) ;; + pru) AC_CONFIG_FILES([libc/machine/pru/Makefile]) ;; + rl78) AC_CONFIG_FILES([libc/machine/rl78/Makefile]) ;; + rx) AC_CONFIG_FILES([libc/machine/rx/Makefile]) ;; + sh) AC_CONFIG_FILES([libc/machine/sh/Makefile]) ;; + sparc) AC_CONFIG_FILES([libc/machine/sparc/Makefile]) ;; + spu) AC_CONFIG_FILES([libc/machine/spu/Makefile]) ;; + tic4x) AC_CONFIG_FILES([libc/machine/tic4x/Makefile]) ;; + tic6x) AC_CONFIG_FILES([libc/machine/tic6x/Makefile]) ;; + tic80) AC_CONFIG_FILES([libc/machine/tic80/Makefile]) ;; + v850) AC_CONFIG_FILES([libc/machine/v850/Makefile]) ;; + visium) AC_CONFIG_FILES([libc/machine/visium/Makefile]) ;; + w65) AC_CONFIG_FILES([libc/machine/w65/Makefile]) ;; + x86_64) AC_CONFIG_FILES([libc/machine/x86_64/Makefile]) ;; + xc16x) AC_CONFIG_FILES([libc/machine/xc16x/Makefile]) ;; + xstormy16) AC_CONFIG_FILES([libc/machine/xstormy16/Makefile]) ;; + z8k) AC_CONFIG_FILES([libc/machine/z8k/Makefile]) ;; + *) AC_MSG_ERROR([unsupported machine_dir "${machine_dir}"]) ;; + esac + + LIBC_MACHINE_DIR=machine/${machine_dir} + LIBC_MACHINE_LIB=${LIBC_MACHINE_DIR}/lib.a +fi +AM_CONDITIONAL(HAVE_LIBC_MACHINE_DIR, test "x${LIBC_MACHINE_DIR}" != x) +AC_SUBST(LIBC_MACHINE_DIR) +AC_SUBST(LIBC_MACHINE_LIB) + +AM_CONDITIONAL(MACH_ADD_SETJMP, test "x$mach_add_setjmp" = "xtrue") + +AC_CONFIG_FILES([libc/Makefile libc/argz/Makefile libc/ctype/Makefile libc/errno/Makefile libc/locale/Makefile libc/misc/Makefile libc/reent/Makefile libc/search/Makefile libc/stdio/Makefile libc/stdio64/Makefile libc/stdlib/Makefile libc/string/Makefile libc/time/Makefile libc/posix/Makefile libc/signal/Makefile libc/syscalls/Makefile libc/unix/Makefile libc/iconv/Makefile libc/iconv/ces/Makefile libc/iconv/ccs/Makefile libc/iconv/ccs/binary/Makefile libc/iconv/lib/Makefile libc/ssp/Makefile libc/xdr/Makefile]) diff --git a/newlib/libc/aclocal.m4 b/newlib/libc/aclocal.m4 deleted file mode 100644 index 9f8ed8209..000000000 --- a/newlib/libc/aclocal.m4 +++ /dev/null @@ -1,937 +0,0 @@ -# generated automatically by aclocal 1.15.1 -*- Autoconf -*- - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. - -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, -[m4_warning([this file was generated for autoconf 2.69. -You have another version of autoconf. It may work, but is not guaranteed to. -If you have problems, you may need to regenerate the build system entirely. -To do so, use the procedure documented by the package, typically 'autoreconf'.])]) - -# Copyright (C) 2002-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.15' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.15.1], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.15.1])dnl -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) - -# Copyright (C) 2011-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_AR([ACT-IF-FAIL]) -# ------------------------- -# Try to determine the archiver interface, and trigger the ar-lib wrapper -# if it is needed. If the detection of archiver interface fails, run -# ACT-IF-FAIL (default is to abort configure with a proper error message). -AC_DEFUN([AM_PROG_AR], -[AC_BEFORE([$0], [LT_INIT])dnl -AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl -AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([ar-lib])dnl -AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) -: ${AR=ar} - -AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface], - [AC_LANG_PUSH([C]) - am_cv_ar_interface=ar - AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])], - [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD' - AC_TRY_EVAL([am_ar_try]) - if test "$ac_status" -eq 0; then - am_cv_ar_interface=ar - else - am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD' - AC_TRY_EVAL([am_ar_try]) - if test "$ac_status" -eq 0; then - am_cv_ar_interface=lib - else - am_cv_ar_interface=unknown - fi - fi - rm -f conftest.lib libconftest.a - ]) - AC_LANG_POP([C])]) - -case $am_cv_ar_interface in -ar) - ;; -lib) - # Microsoft lib, so override with the ar-lib wrapper script. - # FIXME: It is wrong to rewrite AR. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__AR in this case, - # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something - # similar. - AR="$am_aux_dir/ar-lib $AR" - ;; -unknown) - m4_default([$1], - [AC_MSG_ERROR([could not determine $AR interface])]) - ;; -esac -AC_SUBST([AR])dnl -]) - -# Figure out how to run the assembler. -*- Autoconf -*- - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_AS -# ---------- -AC_DEFUN([AM_PROG_AS], -[# By default we simply use the C compiler to build assembly code. -AC_REQUIRE([AC_PROG_CC]) -test "${CCAS+set}" = set || CCAS=$CC -test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS -AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) -AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) -_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl -]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to -# '$srcdir', '$srcdir/..', or '$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is '.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ([2.52])dnl - m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -m4_define([_AM_COND_VALUE_$1], [$2])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. -m4_define([AC_PROG_CC], -m4_defn([AC_PROG_CC]) -[_AM_PROG_CC_C_O -]) - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.65])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[AC_DIAGNOSE([obsolete], - [$0: two- and three-arguments forms are deprecated.]) -m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if( - m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), - [ok:ok],, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) - AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) -AM_MISSING_PROG([AUTOCONF], [autoconf]) -AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) -AM_MISSING_PROG([AUTOHEADER], [autoheader]) -AM_MISSING_PROG([MAKEINFO], [makeinfo]) -AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> -# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> -AC_SUBST([mkdir_p], ['$(MKDIR_P)']) -# We need awk for the "check" target (and possibly the TAP driver). The -# system "awk" is bad on some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES([CC])], - [m4_define([AC_PROG_CC], - m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES([CXX])], - [m4_define([AC_PROG_CXX], - m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES([OBJC])], - [m4_define([AC_PROG_OBJC], - m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], - [_AM_DEPENDENCIES([OBJCXX])], - [m4_define([AC_PROG_OBJCXX], - m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl -]) -AC_REQUIRE([AM_SILENT_RULES])dnl -dnl The testsuite driver may need to know about EXEEXT, so add the -dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This -dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. -AC_CONFIG_COMMANDS_PRE(dnl -[m4_provide_if([_AM_COMPILER_EXEEXT], - [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: <http://www.gnu.org/software/coreutils/>. - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) - fi -fi -dnl The trailing newline in this macro's definition is deliberate, for -dnl backward compatibility and to allow trailing 'dnl'-style comments -dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. -]) - -dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not -dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further -dnl mangled by Autoconf and run in a shell conditional statement. -m4_define([_AC_COMPILER_EXEEXT], -m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_arg=$1 -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $_am_arg | $_am_arg:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -if test x"${install_sh+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi -AC_SUBST([install_sh])]) - -# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- -# From Jim Meyering - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MAINTAINER_MODE([DEFAULT-MODE]) -# ---------------------------------- -# Control maintainer-specific portions of Makefiles. -# Default is to disable them, unless 'enable' is passed literally. -# For symmetry, 'disable' may be passed as well. Anyway, the user -# can override the default with the --enable/--disable switch. -AC_DEFUN([AM_MAINTAINER_MODE], -[m4_case(m4_default([$1], [disable]), - [enable], [m4_define([am_maintainer_other], [disable])], - [disable], [m4_define([am_maintainer_other], [enable])], - [m4_define([am_maintainer_other], [enable]) - m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) -AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode's default is 'disable' unless 'enable' is passed - AC_ARG_ENABLE([maintainer-mode], - [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], - am_maintainer_other[ make rules and dependencies not useful - (and sometimes confusing) to the casual installer])], - [USE_MAINTAINER_MODE=$enableval], - [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) - AC_MSG_RESULT([$USE_MAINTAINER_MODE]) - AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) - MAINT=$MAINTAINER_MODE_TRUE - AC_SUBST([MAINT])dnl -] -) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it is modern enough. -# If it is, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - AC_MSG_WARN(['missing' script is too old or missing]) -fi -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# -------------------- -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) - -# _AM_SET_OPTIONS(OPTIONS) -# ------------------------ -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Copyright (C) 1999-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_PROG_CC_C_O -# --------------- -# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC -# to automatically call this. -AC_DEFUN([_AM_PROG_CC_C_O], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([compile])dnl -AC_LANG_PUSH([C])dnl -AC_CACHE_CHECK( - [whether $CC understands -c and -o together], - [am_cv_prog_cc_c_o], - [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i]) -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -AC_LANG_POP([C])]) - -# For backward compatibility. -AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_RUN_LOG(COMMAND) -# ------------------- -# Run COMMAND, save the exit status in ac_status, and log it. -# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) -AC_DEFUN([AM_RUN_LOG], -[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD - ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - (exit $ac_status); }]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[[\\\"\#\$\&\'\`$am_lf]]*) - AC_MSG_ERROR([unsafe absolute working directory name]);; -esac -case $srcdir in - *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) - AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; -esac - -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken - alias in your environment]) - fi - if test "$[2]" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT([yes]) -# If we didn't sleep, we still need to ensure time stamps of config.status and -# generated files are strictly newer. -am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=$! -fi -AC_CONFIG_COMMANDS_PRE( - [AC_MSG_CHECKING([that generated files are newer than configure]) - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - AC_MSG_RESULT([done])]) -rm -f conftest.file -]) - -# Copyright (C) 2009-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_SILENT_RULES([DEFAULT]) -# -------------------------- -# Enable less verbose build rules; with the default set to DEFAULT -# ("yes" being less verbose, "no" or empty being verbose). -AC_DEFUN([AM_SILENT_RULES], -[AC_ARG_ENABLE([silent-rules], [dnl -AS_HELP_STRING( - [--enable-silent-rules], - [less verbose build output (undo: "make V=1")]) -AS_HELP_STRING( - [--disable-silent-rules], - [verbose build output (undo: "make V=0")])dnl -]) -case $enable_silent_rules in @%:@ ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; -esac -dnl -dnl A few 'make' implementations (e.g., NonStop OS and NextStep) -dnl do not support nested variable expansions. -dnl See automake bug#9928 and bug#10237. -am_make=${MAKE-make} -AC_CACHE_CHECK([whether $am_make supports nested variables], - [am_cv_make_support_nested_variables], - [if AS_ECHO([['TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi]) -if test $am_cv_make_support_nested_variables = yes; then - dnl Using '$V' instead of '$(V)' breaks IRIX make. - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AC_SUBST([AM_V])dnl -AM_SUBST_NOTMAKE([AM_V])dnl -AC_SUBST([AM_DEFAULT_V])dnl -AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl -AC_SUBST([AM_DEFAULT_VERBOSITY])dnl -AM_BACKSLASH='\' -AC_SUBST([AM_BACKSLASH])dnl -_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl -]) - -# Copyright (C) 2001-2017 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor 'install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in "make install-strip", and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using 'strip' when the user -# run "make install-strip". However 'strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the 'STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_P[...] [diff truncated at 100000 bytes]
reply other threads:[~2022-02-26 4:06 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220226040658.A6DE73858D28@sourceware.org \ --to=vapier@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).