From: Bruno Haible Date: Sat, 26 Oct 2024 18:58:05 +0000 (+0200) Subject: regex: Make configure test more maintainable. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d26238fc92d3fe5a4d0a9e5c23d98f31358f3345;p=gnulib.git regex: Make configure test more maintainable. * m4/regex.m4 (gl_REGEX): Include before testing for M_CHECK_ACTION. --- diff --git a/ChangeLog b/ChangeLog index fb09c3b0b2..3c85ac45bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-10-26 Bruno Haible + + regex: Make configure test more maintainable. + * m4/regex.m4 (gl_REGEX): Include before testing for + M_CHECK_ACTION. + 2024-10-26 Bruno Haible pipe-filter-gi: Correct documentation. diff --git a/m4/regex.m4 b/m4/regex.m4 index 3dfeabea05..debe28a502 100644 --- a/m4/regex.m4 +++ b/m4/regex.m4 @@ -1,4 +1,4 @@ -# serial 75 +# serial 76 # Copyright (C) 1996-2001, 2003-2024 Free Software Foundation, Inc. # @@ -40,15 +40,15 @@ AC_DEFUN([gl_REGEX], #include #include + #if HAVE_MALLOC_H + # include /* defines M_CHECK_ACTION on glibc */ + #endif + #if defined M_CHECK_ACTION || HAVE_DECL_ALARM # include # include #endif - #if HAVE_MALLOC_H - # include - #endif - #ifdef M_CHECK_ACTION /* Exit with distinguishable exit code. */ static void sigabrt_no_core (int sig) { raise (SIGTERM); }