]> Savannah Git Hosting - gnulib.git/commitdiff
timer_time: Rename LIB_TIMER_TIME to TIMER_TIME_LIB.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Jan 2023 14:17:30 +0000 (15:17 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Jan 2023 17:06:52 +0000 (18:06 +0100)
* m4/timer_time.m4: Rename LIB_TIMER_TIME to TIMER_TIME_LIB.
All uses changed.
* NEWS: Mention the change

ChangeLog
NEWS
m4/timer_time.m4
modules/timer-time

index bd0f9bbfe5d712a73fcdf3e9ab7bf3e960df5d27..eeeefeca27ca3855b226f4357e09f9745116a1a0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-01-07  Bruno Haible  <bruno@clisp.org>
+
+       timer_time: Rename LIB_TIMER_TIME to TIMER_TIME_LIB.
+       * m4/timer_time.m4: Rename LIB_TIMER_TIME to TIMER_TIME_LIB.
+       All uses changed.
+       * NEWS: Mention the change
+
 2023-01-07  Bruno Haible  <bruno@clisp.org>
 
        setlocale-null: Rename LIB_SETLOCALE_NULL to SETLOCALE_NULL_LIB.
diff --git a/NEWS b/NEWS
index ee439a078465d9a27591f4578756b1c59ca85a3d..f960dd978f894c44dcb32e89fe8f351d59cbc376 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,9 @@ User visible incompatible changes
 
 Date        Modules         Changes
 
+2023-01-07  timer_time      Link with $(TIMER_TIME_LIB) instead of
+                            $(LIB_TIMER_TIME).
+
 2023-01-07  setlocale-null  Link with $(SETLOCALE_NULL_LIB) instead of
                             $(LIB_SETLOCALE_NULL).
 
index 4c2608b58e8bff09d6e358af8755393ff86c53dd..437d1dc5428b3eb38904347511ebb8138e9afb17 100644 (file)
@@ -1,10 +1,10 @@
-# timer_time.m4 serial 5
+# timer_time.m4 serial 6
 dnl Copyright (C) 2011-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,
 dnl with or without modifications, as long as this notice is preserved.
 
-# Check for timer_settime, and set LIB_TIMER_TIME.
+# Check for timer_settime, and set TIMER_TIME_LIB.
 
 AC_DEFUN([gl_TIMER_TIME],
 [
@@ -21,13 +21,13 @@ AC_DEFUN([gl_TIMER_TIME],
   AC_CHECK_DECL([timer_settime], [], [],
                 [[#include <time.h>
                 ]])
-  LIB_TIMER_TIME=
-  AC_SUBST([LIB_TIMER_TIME])
+  TIMER_TIME_LIB=
+  AC_SUBST([TIMER_TIME_LIB])
   AS_IF([test "$ac_cv_have_decl_timer_settime" = yes], [
     gl_saved_libs=$LIBS
     AC_SEARCH_LIBS([timer_settime], [rt posix4],
                    [test "$ac_cv_search_timer_settime" = "none required" ||
-                    LIB_TIMER_TIME=$ac_cv_search_timer_settime])
+                    TIMER_TIME_LIB=$ac_cv_search_timer_settime])
     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)
@@ -42,8 +42,11 @@ AC_DEFUN([gl_TIMER_TIME],
            #endif
           #endif
          ],
-         [LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBPMULTITHREAD"])])
+         [TIMER_TIME_LIB="$TIMER_TIME_LIB $LIBPMULTITHREAD"])])
     AC_CHECK_FUNCS([timer_settime])
     LIBS=$gl_saved_libs
   ])
+  dnl For backward compatibility.
+  LIB_TIMER_TIME="$TIMER_TIME_LIB"
+  AC_SUBST([LIB_TIMER_TIME])
 ])
index 7f496d78d79e57a5e4885732ccd53659552d1255..11ac61ce4a8d2e2a200e860cfcd1f4ed4d8e3fbf 100644 (file)
@@ -18,7 +18,7 @@ Include:
 <time.h>
 
 Link:
-$(LIB_TIMER_TIME)
+$(TIMER_TIME_LIB)
 
 License:
 LGPLv2+