]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 29 May 1999 22:56:42 +0000 (22:56 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 29 May 1999 22:56:42 +0000 (22:56 +0000)
1999-05-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

* malloc/malloc.h: Properly handle future GCC versions.

1999-05-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

* sysdeps/unix/sysv/linux/configure.in: Change version checks to
use AC_EGREP_CPP.  Change sed pattern to not use alternation.  Fix
text of error message.

* aclocal.m4 (GLIBC_PROVIDES): Define AC_LANG to `C'.

ChangeLog
aclocal.m4
malloc/malloc.h
sysdeps/unix/sysv/linux/configure.in

index b53fdddacbb55585883b499fe270966dd7d8af22..42c69c01ae90e1454ac6e8af38ac9efa1ec041f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+1999-05-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
+
+       * malloc/malloc.h: Properly handle future GCC versions.
+
+1999-05-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
+
+       * sysdeps/unix/sysv/linux/configure.in: Change version checks to
+       use AC_EGREP_CPP.  Change sed pattern to not use alternation.  Fix
+       text of error message.
+
+       * aclocal.m4 (GLIBC_PROVIDES): Define AC_LANG to `C'.
+
 1999-05-29  Ulrich Drepper  <drepper@cygnus.com>
 
        * manual/filesys.texi: Extend (f)truncate documentation.
index 8a1819d6f9e7c209c41864c5bb1f296aef8de400..5affe451c4c495dae7a0ddc6eee3854018d8f835 100644 (file)
@@ -10,6 +10,7 @@ AC_PROVIDE([AC_PROG_INSTALL])dnl
 AC_PROVIDE([AC_PROG_RANLIB])dnl
 AC_PROVIDE([AC_PROG_CC])dnl
 AC_PROVIDE([AC_PROG_CPP])dnl
+define([AC_LANG], [C])dnl
 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
 ])dnl
 dnl
index a93c77a853380490e572152599358a1a5f2bfd1a..eeb33a29492af59cf5bdb2db1072a0b4cedf9c08 100644 (file)
@@ -60,7 +60,7 @@
 /* GCC can always grok prototypes.  For C++ programs we add throw()
    to help it optimize the function calls.  But this works only with
    gcc 2.8.x and egcs.  */
-# if defined __cplusplus && __GNUC_MINOR__ >= 8
+# if defined __cplusplus && (__GNUC__ >= 3 || __GNUC_MINOR__ >= 8)
 #  define __THROW      throw ()
 # else
 #  define __THROW
index 021b4731eb9d0f7072767c43e1bc60fe0d9cde0c..3f3d02131afea13b1d58a2204e2ff41b3ec7d9c2 100644 (file)
@@ -16,14 +16,14 @@ if test -n "$sysheaders"; then
 fi
 define([libc_cv_linuxVER], [libc_cv_linux]patsubst(LIBC_LINUX_VERSION,[\.]))dnl
 AC_CACHE_CHECK(installed Linux kernel header files, libc_cv_linuxVER, [dnl
-AC_TRY_COMPILE([#include <linux/version.h>],
-[#if LINUX_VERSION_CODE < ]dnl
+AC_EGREP_CPP([eat flaming death], [#include <linux/version.h>
+#if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < ]dnl
 patsubst(LIBC_LINUX_VERSION,[^\([^.]*\)\.\([^.]*\)\.\([^.]*\)$],dnl
 [ (\1 *65536+ \2 *256+ \3) /* \1.\2.\3 */])[
 eat flaming death
 #endif],
-              libc_cv_linuxVER='LIBC_LINUX_VERSION or later',
-              libc_cv_linuxVER='TOO OLD!')])
+            libc_cv_linuxVER='TOO OLD!',
+            libc_cv_linuxVER='LIBC_LINUX_VERSION or later')])
 if test "$libc_cv_linuxVER" != 'LIBC_LINUX_VERSION or later'; then
   AC_MSG_ERROR([GNU libc requires kernel header files from
 Linux LIBC_LINUX_VERSION or later to be installed before configuring.
@@ -40,25 +40,19 @@ fi
 if test -n "$minimum_kernel"; then
   AC_MSG_CHECKING(for kernel header at least $minimum_kernel)
 changequote(,)dnl
-  decnum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\(\([0-9]*\)\|\).*/(\1 * 65536 + \2 * 256 + \3)/'`;
+  decnum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/(\1 * 65536 + \2 * 256 + \3)/'`;
 changequote([,])dnl
-  cat > conftest.$ac_ext <<EOF
-#include <linux/version.h>
-int main() {
+  AC_EGREP_CPP([eat flaming death], [#include <linux/version.h>
 #if LINUX_VERSION_CODE < $decnum
 eat flaming death
-#endif
-; return 0; }
-EOF
-  if { (eval echo configure:30: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+#endif], libc_minimum_kernel='too old!', libc_minimum_kernel=ok)
+  AC_MSG_RESULT($libc_minimum_kernel)
+  if test "$libc_minimum_kernel" = ok; then
     AC_DEFINE_UNQUOTED(__LINUX_KERNEL_VERSION, $decnum)
-    AC_MSG_RESULT(ok)
   else
-    AC_MSG_RESULT(too old!)
-    AC_MSG_ERROR([*** The available kernel headers are not at least as old as the requested
+    AC_MSG_ERROR([*** The available kernel headers are older than the requested
 *** compatible kernel version])
   fi
-  rm -f conftest*
 fi
 
 if test -n "$sysheaders"; then