]> Savannah Git Hosting - gnulib.git/commitdiff
regex: remove glibc21.m4
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Dec 2020 19:22:11 +0000 (11:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Dec 2020 19:25:04 +0000 (11:25 -0800)
It doesn’t seem to be needed any more; at least, I couldn’t
reproduce the circa-2013 problem.  Perhaps the recent
--conditional-dependencies fixes have removed the need for it.
* m4/glibc21.m4: Remove.  All uses removed.

ChangeLog
m4/glibc21.m4 [deleted file]
m4/regex.m4
modules/regex

index 3f0a51d0e1baf616241570b1cb96a6c86dbf9e66..97966b427f9db06f8a6b983a8cdceeca2d4a540b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-12-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       regex: remove glibc21.m4
+       It doesn’t seem to be needed any more; at least, I couldn’t
+       reproduce the circa-2013 problem.  Perhaps the recent
+       --conditional-dependencies fixes have removed the need for it.
+       * m4/glibc21.m4: Remove.  All uses removed.
+
 2020-12-26  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool: Make --conditional-dependencies work with --with-tests.
diff --git a/m4/glibc21.m4 b/m4/glibc21.m4
deleted file mode 100644 (file)
index ece484b..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-# glibc21.m4 serial 5
-dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2020 Free Software Foundation,
-dnl Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-
-# Test for the GNU C Library, version 2.1 or newer, or uClibc.
-# From Bruno Haible.
-
-AC_DEFUN([gl_GLIBC21],
-  [
-    AC_CACHE_CHECK([whether we are using the GNU C Library >= 2.1 or uClibc],
-      [ac_cv_gnu_library_2_1],
-      [AC_EGREP_CPP([Lucky],
-        [
-#include <features.h>
-#ifdef __GNU_LIBRARY__
- #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
-  Lucky GNU user
- #endif
-#endif
-#ifdef __UCLIBC__
- Lucky user
-#endif
-        ],
-        [ac_cv_gnu_library_2_1=yes],
-        [ac_cv_gnu_library_2_1=no])
-      ]
-    )
-    AC_SUBST([GLIBC21])
-    GLIBC21="$ac_cv_gnu_library_2_1"
-  ]
-)
index e723f591216ba53cdc532639b99b3c90c1eb7242..effe100b3bea6417e4fac4a3dcf16d39aff76895 100644 (file)
@@ -1,4 +1,4 @@
-# serial 70
+# serial 71
 
 # Copyright (C) 1996-2001, 2003-2020 Free Software Foundation, Inc.
 #
@@ -354,7 +354,6 @@ AC_DEFUN([gl_PREREQ_REGEX],
   AC_REQUIRE([AC_C_RESTRICT])
   AC_REQUIRE([AC_TYPE_MBSTATE_T])
   AC_REQUIRE([gl_EEMALLOC])
-  AC_REQUIRE([gl_GLIBC21])
   AC_CHECK_HEADERS([libintl.h])
   AC_CHECK_FUNCS_ONCE([isblank iswctype])
   AC_CHECK_DECLS([isblank], [], [], [[#include <ctype.h>]])
index b987840d82a0659756c292e6881970ac575340fa..570b0bd55307bbb32aef5e1c305de2167822c12f 100644 (file)
@@ -9,7 +9,6 @@ lib/regex_internal.h
 lib/regexec.c
 lib/regcomp.c
 m4/eealloc.m4
-m4/glibc21.m4
 m4/regex.m4
 m4/mbstate_t.m4
 
@@ -23,7 +22,7 @@ builtin-expect  [test $ac_use_included_regex = yes]
 intprops        [test $ac_use_included_regex = yes]
 langinfo        [test $ac_use_included_regex = yes]
 libc-config     [test $ac_use_included_regex = yes]
-lock      [test "$ac_cv_gnu_library_2_1:$ac_use_included_regex" = no:yes]
+lock            [test $ac_use_included_regex = yes]
 memcmp          [test $ac_use_included_regex = yes]
 memmove         [test $ac_use_included_regex = yes]
 mbrtowc         [test $ac_use_included_regex = yes]