bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] threadlib: fix case patterns for older Solaris.


From: Nick Bowler
Subject: [PATCH] threadlib: fix case patterns for older Solaris.
Date: Tue, 24 Jan 2023 22:53:45 -0500

The case pattern which matches solaris2.[1-9] etc. is not fully
quoted, so the brackets get eaten by m4 and don't actually make
it into the resulting configure script, giving just:

    case "$host_os" in
      solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)

which is obviously not correct.

* m4/threadlib.m4 (gl_STDTHREADLIB_BODY): Allow case patterns to
survive m4 processing by using changequote.
---
 m4/threadlib.m4 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/m4/threadlib.m4 b/m4/threadlib.m4
index 48ced460b3..49bc99ef3b 100644
--- a/m4/threadlib.m4
+++ b/m4/threadlib.m4
@@ -261,7 +261,9 @@ AC_DEFUN([gl_PTHREADLIB_BODY],
              # On Solaris 10 or newer, this test is no longer needed, because
              # libc contains the fully functional pthread functions.
              case "$host_os" in
+changequote(,)dnl
                solaris | solaris2.[1-9] | solaris2.[1-9].* | hpux*)
+changequote([,])dnl
                  AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], [1],
                    [Define if the pthread_in_use() detection is hard.])
              esac
-- 
2.35.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]