]> Savannah Git Hosting - gnulib.git/commitdiff
Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
authorBruno Haible <bruno@clisp.org>
Tue, 3 Dec 2019 03:54:53 +0000 (04:54 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 3 Dec 2019 03:55:39 +0000 (04:55 +0100)
* m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
LIBMULTITHREAD.
* m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
* m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
* m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
gl_THREADLIB.
* modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.

ChangeLog
m4/pthread-mutex.m4
m4/pthread-rwlock.m4
m4/pthread-thread.m4
m4/timer_time.m4
modules/timer-time

index 7fc89a62d138d1150ce6f1263dd1d962a1c1d846..b441ffd1c40ef82f0367070b9e8726bf18f7af71 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2019-12-02  Bruno Haible  <bruno@clisp.org>
+
+       Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
+       * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
+       LIBMULTITHREAD.
+       * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
+       * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
+       * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
+       gl_THREADLIB.
+       * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
+
 2019-12-02  Bruno Haible  <bruno@clisp.org>
 
        Fix some more link errors with --enable-threads=isoc.
index abe5f2ffd8448cffefc29b764ec1995c8efee79e..044fa68594719486d2fb41e1a6b7865d589828a0 100644 (file)
@@ -1,4 +1,4 @@
-# pthread-mutex.m4 serial 2
+# pthread-mutex.m4 serial 3
 dnl Copyright (C) 2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -43,7 +43,7 @@ AC_DEFUN([gl_PTHREAD_MUTEX],
       AC_CACHE_CHECK([for pthread_mutexattr_getrobust],
         [gl_cv_func_pthread_mutexattr_getrobust],
         [saved_LIBS="$LIBS"
-         LIBS="$LIBS $LIBMULTITHREAD"
+         LIBS="$LIBS $LIBPMULTITHREAD"
          AC_LINK_IFELSE(
            [AC_LANG_SOURCE(
               [[extern
index ee5953c74b7a233a74dcc0a14c83333e607c2787..32bca6a5943b5861ca46c31514fff0a0b4d0beea 100644 (file)
@@ -1,4 +1,4 @@
-# pthread-rwlock.m4 serial 1
+# pthread-rwlock.m4 serial 2
 dnl Copyright (C) 2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -43,7 +43,7 @@ AC_DEFUN([gl_PTHREAD_RWLOCK],
       AC_CACHE_CHECK([for pthread_rwlock_init],
         [gl_cv_func_pthread_rwlock_init],
         [saved_LIBS="$LIBS"
-         LIBS="$LIBS $LIBMULTITHREAD"
+         LIBS="$LIBS $LIBPMULTITHREAD"
          AC_LINK_IFELSE(
            [AC_LANG_SOURCE(
               [[extern
index eef29c99337901f7324b45568f51158ff4a3d25a..e274d11481901c9f679e16495f1da1c68947e20b 100644 (file)
@@ -1,4 +1,4 @@
-# pthread-thread.m4 serial 1
+# pthread-thread.m4 serial 2
 dnl Copyright (C) 2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -41,7 +41,7 @@ AC_DEFUN([gl_PTHREAD_THREAD],
       AC_CACHE_CHECK([whether pthread_create exists as a global function],
         [gl_cv_func_pthread_create],
         [saved_LIBS="$LIBS"
-         LIBS="$LIBS $LIBMULTITHREAD"
+         LIBS="$LIBS $LIBPMULTITHREAD"
          AC_LINK_IFELSE(
            [AC_LANG_SOURCE(
               [[extern
index 2c9b93c63b814068c0b0bf5ffa16ab095977a91b..347d04dbe45e547e9f147fca6915b3c1038657ab 100644 (file)
@@ -1,4 +1,4 @@
-# timer_time.m4 serial 3
+# timer_time.m4 serial 4
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -16,7 +16,7 @@ AC_DEFUN([gl_TIMER_TIME],
   dnl Some packages like Emacs use --avoid=threadlib.
   dnl Write the symbol in such a way that it does not cause 'aclocal' to pick
   dnl the threadlib.m4 file that is installed in $PREFIX/share/aclocal/.
-  m4_ifdef([gl_][THREADLIB], [AC_REQUIRE([gl_][THREADLIB])])
+  m4_ifdef([gl_][PTHREADLIB], [AC_REQUIRE([gl_][PTHREADLIB])])
 
   LIB_TIMER_TIME=
   AC_SUBST([LIB_TIMER_TIME])
@@ -24,7 +24,7 @@ AC_DEFUN([gl_TIMER_TIME],
     AC_SEARCH_LIBS([timer_settime], [rt posix4],
                    [test "$ac_cv_search_timer_settime" = "none required" ||
                     LIB_TIMER_TIME=$ac_cv_search_timer_settime])
-    m4_ifdef([gl_][THREADLIB],
+    m4_ifdef([gl_][PTHREADLIB],
       [dnl GLIBC uses threads to emulate posix timers when kernel support
        dnl is not available (like Linux < 2.6 or when used with kFreeBSD)
        dnl Now the pthread lib is linked automatically in the normal case,
@@ -38,7 +38,7 @@ AC_DEFUN([gl_TIMER_TIME],
            #endif
           #endif
          ],
-         [LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"])])
+         [LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBPMULTITHREAD"])])
     AC_CHECK_FUNCS([timer_settime])
   LIBS=$gl_saved_libs
 ])
index e3668c86a5bcdc98e6d7ebc6142a2730292e34ac..7f496d78d79e57a5e4885732ccd53659552d1255 100644 (file)
@@ -7,7 +7,7 @@ m4/timer_time.m4
 
 Depends-on:
 extensions
-threadlib
+pthread-h
 
 configure.ac:
 gl_TIMER_TIME