From b8dc6a10ee55180805ea956ec5be3d001169c4ba Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 27 Jul 1995 09:00:07 +0000 Subject: * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes. [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff. [start-installed-name-rule]: If this is defined, elide rule for $(objpfx)$(start-installed-name). * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu] (start-installed-rule, start-installed-name-rule): New variables; specify crt1.o, created by our own rule. ($(objpfx)crt1.o): New rule. * configure.in: Require autoconf 2.4.2 or later. Change all AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead; prettify some messages. [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini' sections. * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in this case rather than #ifdef HAVE_ELF. * config.h.in (HAVE_INITFINI): New macro. --- configure.in | 47 ++++++++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 25 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index a35378a..319513b 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. AC_REVISION([$CVSid$]) -AC_PREREQ(2.2)dnl dnl Minimum Autoconf version required. +AC_PREREQ(2.4.2)dnl dnl Minimum Autoconf version required. AC_INIT(features.h) AC_CONFIG_HEADER(config.h) @@ -72,8 +72,7 @@ esac # Compute the list of sysdep directories for this configuration. sysdep_dir=$srcdir/sysdeps -AC_MSG_CHECKING(sysdep dirs) -AC_CACHE_VAL(libc_cv_sysdirs, [dnl +AC_CACHE_CHECK(sysdep dirs, libc_cv_sysdirs, [dnl machine=$config_machine vendor=$config_vendor os=$config_os @@ -267,7 +266,6 @@ $name" done libc_cv_sysdirs="$sysnames"]) AC_SUBST(sysnames) sysnames="$libc_cv_sysdirs" -AC_MSG_RESULT(${sysnames}) AC_PROG_INSTALL if test "$INSTALL" = "${srcdir}/install-sh"; then @@ -280,8 +278,7 @@ AC_CHECK_TOOL(AR, ar) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_PROG_CPP -AC_MSG_CHECKING(signed size_t type) -AC_CACHE_VAL(libc_cv_signed_size_t, [dnl +AC_CACHE_CHECK(for signed size_t type, libc_cv_signed_size_t, [dnl echo '#include FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c if eval "$ac_cpp conftest.c 2>/dev/null" \ @@ -291,7 +288,6 @@ else libc_cv_signed_size_t=yes fi rm -f conftest*]) -AC_MSG_RESULT($libc_cv_signed_size_t) if test $libc_cv_signed_size_t = yes; then dnl Do this by hand instead of AC_DEFINE so can add #undef to avoid warnings. cat >> confdefs.h <<\EOF @@ -300,8 +296,7 @@ if test $libc_cv_signed_size_t = yes; then EOF fi -AC_MSG_CHECKING(libc-friendly stddef.h) -AC_CACHE_VAL(libc_cv_friendly_stddef, [dnl +AC_CACHE_CHECK(for libc-friendly stddef.h, libc_cv_friendly_stddef, [dnl AC_TRY_COMPILE(dnl [#define __need_size_t #define __need_wchar_t @@ -314,14 +309,13 @@ AC_TRY_COMPILE(dnl if (&size == NULL || &wchar == NULL) abort ();], libc_cv_friendly_stddef=yes, libc_cv_friendly_stddef=no)]) -AC_MSG_RESULT($libc_cv_friendly_stddef) if test $libc_cv_friendly_stddef = yes; then config_vars="$config_vars override stddef.h = # The installed seems to be libc-friendly." fi -AC_MSG_CHECKING(whether we need to use -P to assemble .S files) -AC_CACHE_VAL(libc_cv_need_minus_P, [dnl +AC_CACHE_CHECK(whether we need to use -P to assemble .S files, + libc_cv_need_minus_P, [dnl cat > conftest.S < conftest.s < conftest.s <