From 81a0a8017200b645bd4441c3d22f386062f62719 Mon Sep 17 00:00:00 2001 From: David MacKenzie Date: Thu, 14 Nov 1996 18:03:47 +0000 Subject: [PATCH] more tweaks --- ChangeLog | 15 +++++++++++++++ NEWS | 1 - acspecific.m4 | 22 ++++++++++++++-------- autoheader.in | 7 ------- autoheader.sh | 7 ------- bin/autoheader.in | 7 ------- lib/autoconf/specific.m4 | 22 ++++++++++++++-------- 7 files changed, 43 insertions(+), 38 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2556827e..ace43d56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +Thu Nov 14 11:15:27 1996 David J MacKenzie + + * autoheader.sh: Take the multiple-include protection back out. + It's not needed for a file that just #defines stuff, and, as Ken + Raeburn pointed out in Apr 1994: + Since you don't make it optional, and you don't give the writer of + configure.in much control over the name of the symbol, it also would + prevent one "config.h" file in a subdirectory from including + "../config.h" as a way to avoid duplicating some common tests. + + * acspecific.m4 (AC_PROG_CC_WORKS, AC_PROG_CXX_WORKS): Don't try + running a program, just try linking. + Wed Nov 13 10:07:14 1996 David J MacKenzie * acspecific.m4 (AC_PROG_CC, AC_PROG_CXX): Check whether the @@ -7,6 +20,8 @@ Wed Nov 13 10:07:14 1996 David J MacKenzie of CC doesn't get eval'd correctly to actually work. Directly test whether a space is needed after -R. Don't add "-L" to LDFLAGS if $x_libraries is empty. + (AC_FUNC_STRFTIME): Check for it in -lintl only if it's not in the + normal libraries. * Test release 2.10.3. diff --git a/NEWS b/NEWS index 0c74043c..59480c39 100644 --- a/NEWS +++ b/NEWS @@ -9,7 +9,6 @@ Major changes in release 2.11: fail are saved in config.log. * Another workaround has been added for seds with small command length limits. * config.sub and config.guess recognize more system types. -* autoheader.sh adds multiple-inclusion protection for config.h. * Bug fixes. Major changes in release 2.10: diff --git a/acspecific.m4 b/acspecific.m4 index 5e98312f..5383478d 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -174,9 +174,11 @@ AC_DEFUN(AC_PROG_CC_WORKS, [AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works]) AC_LANG_SAVE AC_LANG_C -AC_TRY_RUN_NATIVE([main() { exit(0); }], - ac_cv_prog_cc_works=yes, ac_cv_prog_cc_works=no, - AC_TRY_LINK(, , ac_cv_prog_cc_works=yes, ac_cv_prog_cc_works=no)) +dnl We can't try running a program here because we don't know yet if +dnl we're cross-compiling. And we can't check for that first, because the +dnl cross-compiling test being fooled by non-working compiler installations +dnl is the reason we're doing this in the first place. +AC_TRY_LINK(, , ac_cv_prog_cc_works=yes, ac_cv_prog_cc_works=no) AC_LANG_RESTORE AC_MSG_RESULT($ac_cv_prog_cc_works) if test $ac_cv_prog_cc_works = no; then @@ -188,9 +190,11 @@ AC_DEFUN(AC_PROG_CXX_WORKS, [AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works]) AC_LANG_SAVE AC_LANG_CPLUSPLUS -AC_TRY_RUN_NATIVE([main() { exit(0); }], - ac_cv_prog_cxx_works=yes, ac_cv_prog_cxx_works=no, - AC_TRY_LINK(, , ac_cv_prog_cxx_works=yes, ac_cv_prog_cxx_works=no)) +dnl We can't try running a program here because we don't know yet if +dnl we're cross-compiling. And we can't check for that first, because the +dnl cross-compiling test being fooled by non-working compiler installations +dnl is the reason we're doing this in the first place. +AC_TRY_LINK(, , ac_cv_prog_cxx_works=yes, ac_cv_prog_cxx_works=no) AC_LANG_RESTORE AC_MSG_RESULT($ac_cv_prog_cxx_works) if test $ac_cv_prog_cxx_works = no; then @@ -1419,9 +1423,11 @@ AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS", AC_CHECK_FUNC(getmntent, [AC_DEFINE(HAVE_GETMNTENT)])]) AC_DEFUN(AC_FUNC_STRFTIME, +[AC_CHECK_FUNC(strftime, [AC_DEFINE(HAVE_STRFTIME)], [# strftime is in -lintl on SCO UNIX. -AC_CHECK_LIB(intl, strftime, LIBS="-lintl $LIBS") -AC_CHECK_FUNC(strftime, [AC_DEFINE(HAVE_STRFTIME)])]) +AC_CHECK_LIB(intl, strftime, +[AC_DEFINE(HAVE_STRFTIME) +LIBS="-lintl $LIBS"])])]) AC_DEFUN(AC_FUNC_MEMCMP, [AC_CACHE_CHECK(for 8-bit clean memcmp, ac_cv_func_memcmp_clean, diff --git a/autoheader.in b/autoheader.in index 03ca1f2b..e47ef202 100644 --- a/autoheader.in +++ b/autoheader.in @@ -154,8 +154,6 @@ esac cat <