]> Savannah Git Hosting - gnulib.git/commitdiff
regex: don’t assume RE_SYNTAX_* work in #if
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Apr 2025 01:53:17 +0000 (18:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Apr 2025 01:53:17 +0000 (18:53 -0700)
* m4/regex.m4 (gl_REGEX): Fix thinko that would have
prevented future glibc versions from passing the test.

m4/regex.m4

index 1b2012fe004d411cc208ae95d81e45ead59b82f3..52ce5c3b3713b08137e5ce77d527268ce15bb9c5 100644 (file)
@@ -1,5 +1,5 @@
 # regex.m4
-# serial 79
+# serial 80
 dnl Copyright (C) 1996-2001, 2003-2025 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -54,7 +54,7 @@ AC_DEFUN([gl_REGEX],
             static void sigabrt_no_core (int sig) { raise (SIGTERM); }
             #endif
 
-            #if RE_SYNTAX_EMACS != (RE_CHAR_CLASSES | RE_INTERVALS)
+            #if !RE_SYNTAX_EMACS
             # error "RE_SYNTAX_EMACS does not match Emacs behavior"
             #endif
           ]],