]> Savannah Git Hosting - gnulib.git/commitdiff
threadlib: Fix support for Solaris 9 and older.
authorNick Bowler <nbowler@draconx.ca>
Wed, 25 Jan 2023 08:38:00 +0000 (09:38 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 25 Jan 2023 14:17:45 +0000 (15:17 +0100)
* m4/threadlib.m4 (gl_PTHREADLIB_BODY): Allow case patterns to survive
m4 processing by using changequote.

ChangeLog
m4/threadlib.m4

index bd7fd9ab5d0ead5efad5f121fb26d71c3f29645d..917bb85017b8916b572c6aa349fe5cf28f9b8905 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-25  Nick Bowler  <nbowler@draconx.ca>  (tiny change)
+
+       threadlib: Fix support for Solaris 9 and older.
+       * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Allow case patterns to survive
+       m4 processing by using changequote.
+
 2023-01-24  Bruno Haible  <bruno@clisp.org>
 
        stdalign: Fix a compilation error on FreeBSD 12.0.
index ff959346c046e96e81698dd7915525ba344a0780..b536b04750574542c045a1e818e750efeac56d3c 100644 (file)
@@ -1,4 +1,4 @@
-# threadlib.m4 serial 32
+# threadlib.m4 serial 32a
 dnl Copyright (C) 2005-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -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