]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
threadlib: Remove support for IRIX.
authorBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 21:18:04 +0000 (23:18 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 21:18:13 +0000 (23:18 +0200)
* m4/threadlib.m4 (gl_PTHREADLIB_BODY): Assume that
pthread_mutexattr_init and pthread_mutex_lock are defined in the same
library.

ChangeLog
m4/threadlib.m4

index 99f1d3b6f724ccf5a368dca820570e5d68821b8b..33aef6fcdc8c8cc72b41a8b226a6292026912c2f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2025-09-10  Bruno Haible  <bruno@clisp.org>
 
+       threadlib: Remove support for IRIX.
+       * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Assume that
+       pthread_mutexattr_init and pthread_mutex_lock are defined in the same
+       library.
+
        sys_select-h: Remove support for IRIX.
        * lib/sys_select.in.h: Remove code for IRIX.
 
index fef2fe2ecbd2b468d7a94af559366bcc1e51e012..c12729a9489886fc61a26cdfac1a3e8fca855285 100644 (file)
@@ -1,5 +1,5 @@
 # threadlib.m4
-# serial 46
+# serial 47
 dnl Copyright (C) 2005-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,
@@ -186,9 +186,7 @@ AC_DEFUN([gl_PTHREADLIB_BODY],
       # Other possible tests:
       #   -lpthreads (FSU threads, PCthreads)
       #   -lgthreads
-      # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
-      # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
-      # the second one only in libpthread, and lock.c needs it.
+      # Test whether both pthread_mutex_lock exists in libc.
       #
       # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
       # needs -pthread for some reason.  See:
@@ -200,10 +198,8 @@ AC_DEFUN([gl_PTHREADLIB_BODY],
           [AC_LANG_PROGRAM(
              [[#include <pthread.h>
                pthread_mutex_t m;
-               pthread_mutexattr_t ma;
              ]],
-             [[pthread_mutex_lock (&m);
-               pthread_mutexattr_init (&ma);]])],
+             [[pthread_mutex_lock (&m);]])],
           [gl_pthread_api=yes
            LIBPTHREAD=$gl_pthread
            LIBPMULTITHREAD=$gl_pthread])
@@ -648,8 +644,6 @@ dnl
 dnl HP-UX 11           posix      -lpthread       N (cc) OK
 dnl                                               Y (gcc)
 dnl
-dnl IRIX 6.5           posix      -lpthread       Y      0.5
-dnl
 dnl AIX 4.3,5.1        posix      -lpthread       N      AIX 4: 0.5; AIX 5: OK
 dnl
 dnl Cygwin             posix      -lpthread       Y      OK