]> Savannah Git Hosting - gnulib.git/commitdiff
nanosleep: Rename LIB_NANOSLEEP to NANOSLEEP_LIB.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Jan 2023 13:25:47 +0000 (14:25 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Jan 2023 17:06:51 +0000 (18:06 +0100)
* m4/nanosleep.m4: Rename LIB_NANOSLEEP to NANOSLEEP_LIB.
All uses changed.
* NEWS: Mention the change.

29 files changed:
ChangeLog
NEWS
m4/nanosleep.m4
modules/chown-tests
modules/dirent-c++-tests
modules/fchownat-tests
modules/fdutimensat-tests
modules/futimens-tests
modules/iconv-h-c++-tests
modules/lchown-tests
modules/nanosleep
modules/nanosleep-tests
modules/nl_langinfo-tests
modules/search-c++-tests
modules/setlocale-null-tests
modules/signal-h-c++-tests
modules/spawn-c++-tests
modules/stat-time-tests
modules/stdio-c++-tests
modules/sys_select-c++-tests
modules/sys_socket-c++-tests
modules/sys_time-c++-tests
modules/time-c++-tests
modules/utime-tests
modules/utimens-tests
modules/utimensat-tests
modules/wchar-c++-tests
modules/wctype-h-c++-tests
modules/xnanosleep

index 93abad736b8fcf23cdd9c63d2a4df1f2249c4aab..521cf5e580188d2a269104934a6dcdac1b02be42 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-01-07  Bruno Haible  <bruno@clisp.org>
+
+       nanosleep: Rename LIB_NANOSLEEP to NANOSLEEP_LIB.
+       * m4/nanosleep.m4: Rename LIB_NANOSLEEP to NANOSLEEP_LIB.
+       All uses changed.
+       * NEWS: Mention the change.
+
 2023-01-07  Bruno Haible  <bruno@clisp.org>
 
        mbrtowc: Rename LIB_MBRTOWC to MBRTOWC_LIB.
diff --git a/NEWS b/NEWS
index 47e30c9bd511725157739730787d378909fb2e5a..7ca0afacf12b5b440f6d095ddde517163b10c71f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -74,6 +74,9 @@ User visible incompatible changes
 
 Date        Modules         Changes
 
+2023-01-07  nanosleep       Link with $(NANOSLEEP_LIB) instead of
+                            $(LIB_NANOSLEEP).
+
 2023-01-07  mbrtowc         Link with $(MBRTOWC_LIB) instead of $(LIB_MBRTOWC).
 
 2023-01-07  hard-locale     Link with $(HARD_LOCALE_LIB) instead of
index 21ee5a21daff75e66764b963922dc9dc6515832c..e21a3e343cbd4b7f797b130f970bb152081a040f 100644 (file)
@@ -1,4 +1,4 @@
-# serial 42
+# serial 43
 
 dnl From Jim Meyering.
 dnl Check for the nanosleep function.
@@ -25,11 +25,11 @@ AC_DEFUN([gl_FUNC_NANOSLEEP],
 
  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
LIB_NANOSLEEP=
- AC_SUBST([LIB_NANOSLEEP])
NANOSLEEP_LIB=
+ AC_SUBST([NANOSLEEP_LIB])
  AC_SEARCH_LIBS([nanosleep], [rt posix4],
                 [test "$ac_cv_search_nanosleep" = "none required" ||
-                 LIB_NANOSLEEP=$ac_cv_search_nanosleep])
+                 NANOSLEEP_LIB=$ac_cv_search_nanosleep])
  if test "x$ac_cv_search_nanosleep" != xno; then
    dnl The system has a nanosleep function.
 
@@ -143,4 +143,8 @@ AC_DEFUN([gl_FUNC_NANOSLEEP],
    HAVE_NANOSLEEP=0
  fi
  LIBS=$nanosleep_save_libs
+
+ # For backward compatibility.
+ LIB_NANOSLEEP="$NANOSLEEP_LIB"
+ AC_SUBST([LIB_NANOSLEEP])
 ])
index 1bd674406756a9b44ee791f29de064b4357c33f7..1fa6e44bc79bdcb21ca7cd6a6876c364fe7ad594 100644 (file)
@@ -21,4 +21,4 @@ AC_CHECK_FUNCS_ONCE([getegid])
 Makefile.am:
 TESTS += test-chown
 check_PROGRAMS += test-chown
-test_chown_LDADD = $(LDADD) $(LIB_NANOSLEEP)
+test_chown_LDADD = $(LDADD) $(NANOSLEEP_LIB)
index 8b60ee93952070f2b9320fc2f82873d947ee75c3..a7778483340ef27fed06cd3fdd2e1336b8c7419a 100644 (file)
@@ -15,5 +15,5 @@ if ANSICXX
 TESTS += test-dirent-c++
 check_PROGRAMS += test-dirent-c++
 test_dirent_c___SOURCES = test-dirent-c++.cc
-test_dirent_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
+test_dirent_c___LDADD = $(LDADD) $(LIBINTL) $(NANOSLEEP_LIB)
 endif
index f0e4cea78cffd36e40d41696a46742ca12811f25..f498efaf667981eeed665fb20491ef14c7c135e5 100644 (file)
@@ -22,4 +22,4 @@ AC_CHECK_FUNCS_ONCE([getegid])
 Makefile.am:
 TESTS += test-fchownat
 check_PROGRAMS += test-fchownat
-test_fchownat_LDADD = $(LDADD) $(LIB_NANOSLEEP) @LIBINTL@
+test_fchownat_LDADD = $(LDADD) $(NANOSLEEP_LIB) @LIBINTL@
index e34ef6233b7374077f6635284feb6d5e4c691431..c2f0d59f3dea289525bc509872592f3eb58cb91f 100644 (file)
@@ -23,4 +23,4 @@ Makefile.am:
 TESTS += test-fdutimensat
 check_PROGRAMS += test-fdutimensat
 test_fdutimensat_LDADD = $(LDADD) $(CLOCK_TIME_LIB) \
-  $(LIB_NANOSLEEP) @LIBINTL@
+  $(NANOSLEEP_LIB) @LIBINTL@
index 9b82da1450bdadd95b9a2dfcaa12f0e775b40890..c6f62d9d3cd02ff073f62ad7728dee44daf51332 100644 (file)
@@ -21,4 +21,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-futimens
 check_PROGRAMS += test-futimens
-test_futimens_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(LIB_NANOSLEEP) @LIBINTL@
+test_futimens_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(NANOSLEEP_LIB) @LIBINTL@
index cc41b11fc44e65652ac719c962a1a2d48e822487..c7827da0c5920d112fd2e32077e0a5c0b5de205e 100644 (file)
@@ -15,5 +15,5 @@ if ANSICXX
 TESTS += test-iconv-h-c++
 check_PROGRAMS += test-iconv-h-c++
 test_iconv_h_c___SOURCES = test-iconv-h-c++.cc
-test_iconv_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIBICONV) $(LIB_NANOSLEEP)
+test_iconv_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIBICONV) $(NANOSLEEP_LIB)
 endif
index edd0cc7c21fc63855d0a81b020e3cdd1f8f5c7ca..10119f22eb1988a2a4392e9f5fc21ed4593b253c 100644 (file)
@@ -21,4 +21,4 @@ AC_CHECK_FUNCS_ONCE([getegid])
 Makefile.am:
 TESTS += test-lchown
 check_PROGRAMS += test-lchown
-test_lchown_LDADD = $(LDADD) $(LIB_NANOSLEEP)
+test_lchown_LDADD = $(LDADD) $(NANOSLEEP_LIB)
index d0855460cd7822f063c1866ec32c44fa7301f008..8fa659b752eae22ecd9527a6b2c7aac72880b663 100644 (file)
@@ -30,7 +30,7 @@ Include:
 <time.h>
 
 Link:
-$(LIB_NANOSLEEP)
+$(NANOSLEEP_LIB)
 
 License:
 LGPLv2+
index c3b5f2f86648a278308ae80fe0772b615bc56475..244dd81ef54a09e3351d71b02fb3578b7bfd9853 100644 (file)
@@ -11,4 +11,4 @@ AC_CHECK_DECLS_ONCE([alarm])
 Makefile.am:
 TESTS += test-nanosleep
 check_PROGRAMS += test-nanosleep
-test_nanosleep_LDADD = $(LDADD) $(LIB_NANOSLEEP)
+test_nanosleep_LDADD = $(LDADD) $(NANOSLEEP_LIB)
index 9bf1510286285ace7c1498615403b67ad1135b34..811112ff0f3d901a29b9b801f23cf1e3aba1d01f 100644 (file)
@@ -21,4 +21,4 @@ TESTS += test-nl_langinfo.sh test-nl_langinfo-mt
 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
 check_PROGRAMS += test-nl_langinfo test-nl_langinfo-mt
 test_nl_langinfo_LDADD = $(LDADD) $(LIB_SETLOCALE)
-test_nl_langinfo_mt_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIBMULTITHREAD) $(LIB_NANOSLEEP)
+test_nl_langinfo_mt_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIBMULTITHREAD) $(NANOSLEEP_LIB)
index f051eaf715fb42e60c722643603a9e7aba116ac5..b1e3f4b2f39953a9227997b5b946fd30d956b21a 100644 (file)
@@ -15,5 +15,5 @@ if ANSICXX
 TESTS += test-search-c++
 check_PROGRAMS += test-search-c++
 test_search_c___SOURCES = test-search-c++.cc
-test_search_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
+test_search_c___LDADD = $(LDADD) $(LIBINTL) $(NANOSLEEP_LIB)
 endif
index f794711e394058232bd393381fd15896140c58dd..8f8b835f5a40a3f65f16eae7368ca27048c0ed82 100644 (file)
@@ -19,5 +19,5 @@ check_PROGRAMS += \
   test-setlocale_null-mt-one \
   test-setlocale_null-mt-all
 test_setlocale_null_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@
-test_setlocale_null_mt_one_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@ $(LIBMULTITHREAD) $(LIB_NANOSLEEP)
-test_setlocale_null_mt_all_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@ $(LIBMULTITHREAD) $(LIB_NANOSLEEP)
+test_setlocale_null_mt_one_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@ $(LIBMULTITHREAD) $(NANOSLEEP_LIB)
+test_setlocale_null_mt_all_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@ $(LIBMULTITHREAD) $(NANOSLEEP_LIB)
index c7b23713c6c002823fd5ede586e9256c8f065b67..a3d9a40076391b4e4d0a35b183c92b98ec57283b 100644 (file)
@@ -16,5 +16,5 @@ if ANSICXX
 TESTS += test-signal-h-c++
 check_PROGRAMS += test-signal-h-c++
 test_signal_h_c___SOURCES = test-signal-h-c++.cc test-signal-h-c++2.cc
-test_signal_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_PTHREAD_SIGMASK)
+test_signal_h_c___LDADD = $(LDADD) $(LIBINTL) $(NANOSLEEP_LIB) $(LIB_PTHREAD_SIGMASK)
 endif
index e685cacf6bfb6a46037108e807fa86b4a84b89fa..1ee64043bbfe5957508ff0d4cc655578766692ad 100644 (file)
@@ -15,5 +15,5 @@ if ANSICXX
 TESTS += test-spawn-c++
 check_PROGRAMS += test-spawn-c++
 test_spawn_c___SOURCES = test-spawn-c++.cc
-test_spawn_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
+test_spawn_c___LDADD = $(LDADD) $(LIBINTL) $(NANOSLEEP_LIB)
 endif
index 9fafb9fb9ab2750820e4b3caabdb67c585f09455..aa4e31c35c4c2b8d8b2bc9418f5fc26e7f7c7b88 100644 (file)
@@ -14,4 +14,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-stat-time
 check_PROGRAMS += test-stat-time
-test_stat_time_LDADD = $(LDADD) $(LIB_NANOSLEEP)
+test_stat_time_LDADD = $(LDADD) $(NANOSLEEP_LIB)
index 450a85c6d0d01570363ebf2b1bb40f05fd169f61..f13f22b8da700a31e040cda6dab8542c37ca06b7 100644 (file)
@@ -16,5 +16,5 @@ if ANSICXX
 TESTS += test-stdio-c++
 check_PROGRAMS += test-stdio-c++
 test_stdio_c___SOURCES = test-stdio-c++.cc test-stdio-c++2.cc
-test_stdio_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(EUIDACCESS_LIBGEN) $(GETRANDOM_LIB)
+test_stdio_c___LDADD = $(LDADD) $(LIBINTL) $(NANOSLEEP_LIB) $(EUIDACCESS_LIBGEN) $(GETRANDOM_LIB)
 endif
index e9f0b25d2803e2b9c30c80c6db082e5e33fc757c..e9d04175776eea23e5cf9e30810297ff54675832 100644 (file)
@@ -15,5 +15,5 @@ if ANSICXX
 TESTS += test-sys_select-c++
 check_PROGRAMS += test-sys_select-c++
 test_sys_select_c___SOURCES = test-sys_select-c++.cc
-test_sys_select_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_SELECT) $(LIB_NANOSLEEP)
+test_sys_select_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_SELECT) $(NANOSLEEP_LIB)
 endif
index d2ecd2e8cb75b1f12f8a83e2c7792ae9dca1cdb7..0d7a63a8ef0a7330c94d7c753d79262f1c49303b 100644 (file)
@@ -15,5 +15,5 @@ if ANSICXX
 TESTS += test-sys_socket-c++
 check_PROGRAMS += test-sys_socket-c++
 test_sys_socket_c___SOURCES = test-sys_socket-c++.cc
-test_sys_socket_c___LDADD = $(LDADD) $(LIBINTL) $(LIBSOCKET) $(LIB_NANOSLEEP)
+test_sys_socket_c___LDADD = $(LDADD) $(LIBINTL) $(LIBSOCKET) $(NANOSLEEP_LIB)
 endif
index 90803efd0890fe8233efed73d8e715327ed5fb99..6cb9df826f4b86a31dcd598f29093cf877cdbc0f 100644 (file)
@@ -15,5 +15,5 @@ if ANSICXX
 TESTS += test-sys_time-c++
 check_PROGRAMS += test-sys_time-c++
 test_sys_time_c___SOURCES = test-sys_time-c++.cc
-test_sys_time_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
+test_sys_time_c___LDADD = $(LDADD) $(LIBINTL) $(NANOSLEEP_LIB)
 endif
index 520e86e5c1f30050edc2ebd21f5f17d93feb47aa..7a22d92cdcae236dd693a49dc97f02cd613a35e2 100644 (file)
@@ -16,5 +16,5 @@ if ANSICXX
 TESTS += test-time-c++
 check_PROGRAMS += test-time-c++
 test_time_c___SOURCES = test-time-c++.cc test-time-c++2.cc
-test_time_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(CLOCK_TIME_LIB)
+test_time_c___LDADD = $(LDADD) $(LIBINTL) $(NANOSLEEP_LIB) $(CLOCK_TIME_LIB)
 endif
index b7464cdb1f10eb37ec3e8210517907b0ad5539d6..146180e04b23e8798b41333eccaac9895034aad1 100644 (file)
@@ -19,4 +19,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-utime
 check_PROGRAMS += test-utime
-test_utime_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(LIB_NANOSLEEP) @LIBINTL@
+test_utime_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(NANOSLEEP_LIB) @LIBINTL@
index 9aee72e517728a4515f8b0cbcdf4421a65404a36..381139c8ddd3c33e6467e4e434b8e78551dee6c7 100644 (file)
@@ -22,4 +22,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-utimens
 check_PROGRAMS += test-utimens
-test_utimens_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(LIB_NANOSLEEP) @LIBINTL@
+test_utimens_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(NANOSLEEP_LIB) @LIBINTL@
index 85d64d640d1b1b887010a211005949752304f8a2..0ba5e09e02389812e1b6fadc7648f5f29005bca3 100644 (file)
@@ -19,4 +19,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-utimensat
 check_PROGRAMS += test-utimensat
-test_utimensat_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(LIB_NANOSLEEP) @LIBINTL@
+test_utimensat_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(NANOSLEEP_LIB) @LIBINTL@
index d0852b42b6e78532bdb56062190990bd3a9c14e2..f355de00be480bed772913119bf0a27fe9d2e6f2 100644 (file)
@@ -17,5 +17,5 @@ if ANSICXX
 TESTS += test-wchar-c++
 check_PROGRAMS += test-wchar-c++
 test_wchar_c___SOURCES = test-wchar-c++.cc test-wchar-c++2.cc test-wchar-c++3.cc
-test_wchar_c___LDADD = $(LDADD) $(LIBUNISTRING) $(LIBINTL) $(LIB_NANOSLEEP) $(EUIDACCESS_LIBGEN) $(LIBTHREAD)
+test_wchar_c___LDADD = $(LDADD) $(LIBUNISTRING) $(LIBINTL) $(NANOSLEEP_LIB) $(EUIDACCESS_LIBGEN) $(LIBTHREAD)
 endif
index ce869becf485526f1bdde7a555c8022e51fdac88..d8ed1caefe2054a549d61c09be053721e357034e 100644 (file)
@@ -16,5 +16,5 @@ if ANSICXX
 TESTS += test-wctype-h-c++
 check_PROGRAMS += test-wctype-h-c++
 test_wctype_h_c___SOURCES = test-wctype-h-c++.cc test-wctype-h-c++2.cc
-test_wctype_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(EUIDACCESS_LIBGEN)
+test_wctype_h_c___LDADD = $(LDADD) $(LIBINTL) $(NANOSLEEP_LIB) $(EUIDACCESS_LIBGEN)
 endif
index 039c6d156dafa8ebb8516d7b4ea2600a36b5ec32..034eab9f2d9fe1e2ad0cd4ce5becec3e2017fc8a 100644 (file)
@@ -24,7 +24,7 @@ Include:
 "xnanosleep.h"
 
 Link:
-$(LIB_NANOSLEEP)
+$(NANOSLEEP_LIB)
 
 License:
 GPL