]> Savannah Git Hosting - gnulib.git/commitdiff
regex: Avoid dialog while running configure test on Haiku/x86_64.
authorBruno Haible <bruno@clisp.org>
Sat, 26 Oct 2024 19:10:30 +0000 (21:10 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 12 Nov 2024 00:36:54 +0000 (01:36 +0100)
Reported by Alexandru Popa <alpopa@gmail.com> in
<https://sourceforge.net/p/clisp/mailman/message/58831511/>.

* m4/regex.m4 (gl_REGEX): Disable dialog upon abort on Haiku.

ChangeLog
m4/regex.m4

index 3c85ac45bd11234c3140c5df24718ad024c519a0..68af8c364e51a5ec120e22a9190c49f9a77211c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-10-26  Bruno Haible  <bruno@clisp.org>
+
+       regex: Avoid dialog while running configure test on Haiku/x86_64.
+       Reported by Alexandru Popa <alpopa@gmail.com> in
+       <https://sourceforge.net/p/clisp/mailman/message/58831511/>.
+       * m4/regex.m4 (gl_REGEX): Disable dialog upon abort on Haiku.
+
 2024-10-26  Bruno Haible  <bruno@clisp.org>
 
        regex: Make configure test more maintainable.
index debe28a502aeeecce5b6d5165ef67566c695d4d6..aa5e596d55480227898bdff51a9cbd39a13cfd24 100644 (file)
@@ -1,4 +1,4 @@
-# serial 76
+# serial 77
 
 # Copyright (C) 1996-2001, 2003-2024 Free Software Foundation, Inc.
 #
@@ -44,12 +44,12 @@ AC_DEFUN([gl_REGEX],
             # include <malloc.h> /* defines M_CHECK_ACTION on glibc */
             #endif
 
-            #if defined M_CHECK_ACTION || HAVE_DECL_ALARM
+            #if defined __HAIKU__ || defined M_CHECK_ACTION || HAVE_DECL_ALARM
             # include <signal.h>
             # include <unistd.h>
             #endif
 
-            #ifdef M_CHECK_ACTION
+            #if defined __HAIKU__ || defined M_CHECK_ACTION
             /* Exit with distinguishable exit code.  */
             static void sigabrt_no_core (int sig) { raise (SIGTERM); }
             #endif
@@ -68,6 +68,9 @@ AC_DEFUN([gl_REGEX],
             signal (SIGALRM, SIG_DFL);
             alarm (2);
 #endif
+#ifdef __HAIKU__
+            signal (SIGABRT, sigabrt_no_core);
+#endif
 #ifdef M_CHECK_ACTION
             signal (SIGABRT, sigabrt_no_core);
             mallopt (M_CHECK_ACTION, 2);