* m4/clock_time.m4: Rename LIB_CLOCK_GETTIME to CLOCK_TIME_LIB.
All uses changed.
* NEWS: Mention the change.
+2023-01-07 Bruno Haible <bruno@clisp.org>
+
+ clock_time: Rename LIB_CLOCK_GETTIME to CLOCK_TIME_LIB.
+ * m4/clock_time.m4: Rename LIB_CLOCK_GETTIME to CLOCK_TIME_LIB.
+ All uses changed.
+ * NEWS: Mention the change.
+
2023-01-06 Paul Eggert <eggert@cs.ucla.edu>
file-has-acl: don’t bother setting LIB_HAS_ACL
Date Modules Changes
+2023-01-07 clock_time Link with $(CLOCK_TIME_LIB) instead of
+ $(LIB_CLOCK_GETTIME).
+
2023-01-06 file-has-acl Link with $(FILE_HAS_ACL_LIB), not $(LIB_HAS_ACL).
2022-12-25 largefile configure no longer enables year-2038 support,
-# clock_time.m4 serial 11
+# clock_time.m4 serial 12
dnl Copyright (C) 2002-2006, 2009-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 clock_getres, clock_gettime and clock_settime,
-# and set LIB_CLOCK_GETTIME.
+# and set CLOCK_TIME_LIB.
# For a program named, say foo, you should add a line like the following
# in the corresponding Makefile.am file:
-# foo_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
+# foo_LDADD = $(LDADD) $(CLOCK_TIME_LIB)
AC_DEFUN([gl_CLOCK_TIME],
[
# Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
# programs in the package would end up linked with that potentially-shared
# library, inducing unnecessary run-time overhead.
- LIB_CLOCK_GETTIME=
- AC_SUBST([LIB_CLOCK_GETTIME])
+ CLOCK_TIME_LIB=
+ AC_SUBST([CLOCK_TIME_LIB])
gl_saved_libs=$LIBS
AC_SEARCH_LIBS([clock_gettime], [rt posix4],
[test "$ac_cv_search_clock_gettime" = "none required" ||
- LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime])
+ CLOCK_TIME_LIB=$ac_cv_search_clock_gettime])
AC_CHECK_FUNCS([clock_getres clock_gettime clock_settime])
LIBS=$gl_saved_libs
+ # For backward compatibility.
+ LIB_CLOCK_GETTIME="$CLOCK_TIME_LIB"
+ AC_SUBST([LIB_CLOCK_GETTIME])
])
-# gethrxtime.m4 serial 13
+# gethrxtime.m4 serial 14
dnl Copyright (C) 2005-2006, 2008-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,
[gl_cv_have_clock_gettime_macro=yes],
[gl_cv_have_clock_gettime_macro=no])])
if test $gl_cv_have_clock_gettime_macro = yes; then
- LIB_GETHRXTIME=$LIB_CLOCK_GETTIME
+ LIB_GETHRXTIME=$CLOCK_TIME_LIB
fi
fi
fi
Include:
Link:
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPLv2+
TESTS += test-copy-file.sh test-copy-file-1.sh test-copy-file-2.sh
TESTS_ENVIRONMENT += USE_ACL=$(USE_ACL)
check_PROGRAMS += test-copy-file
-test_copy_file_LDADD = $(LDADD) $(LIB_ACL) $(LIB_CLOCK_GETTIME) @LIBINTL@ $(LIB_MBRTOWC)
+test_copy_file_LDADD = $(LDADD) $(LIB_ACL) $(CLOCK_TIME_LIB) @LIBINTL@ $(LIB_MBRTOWC)
TESTS += test-fcntl-h-c++
check_PROGRAMS += test-fcntl-h-c++
test_fcntl_h_c___SOURCES = test-fcntl-h-c++.cc
-test_fcntl_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIBSOCKET)
+test_fcntl_h_c___LDADD = $(LDADD) $(LIBINTL) $(CLOCK_TIME_LIB) $(LIB_EACCESS) $(LIBSOCKET)
endif
Makefile.am:
TESTS += test-fdutimensat
check_PROGRAMS += test-fdutimensat
-test_fdutimensat_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) \
+test_fdutimensat_LDADD = $(LDADD) $(CLOCK_TIME_LIB) \
$(LIB_NANOSLEEP) @LIBINTL@
<sys/stat.h>
Link:
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPL
Makefile.am:
TESTS += test-futimens
check_PROGRAMS += test-futimens
-test_futimens_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) $(LIB_NANOSLEEP) @LIBINTL@
+test_futimens_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(LIB_NANOSLEEP) @LIBINTL@
"timespec.h"
Link:
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPL
"timespec.h"
Link:
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPL
Makefile.am:
TESTS += test-gettime-res
check_PROGRAMS += test-gettime-res
-test_gettime_res_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
+test_gettime_res_LDADD = $(LDADD) $(CLOCK_TIME_LIB)
Link:
$(LIB_GETRANDOM)
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
$(LIBTHREAD)
License:
Makefile.am:
TESTS += test-getumask
check_PROGRAMS += test-getumask
-test_getumask_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) $(LIB_GETRANDOM) $(LIBINTL) $(LIBTHREAD)
+test_getumask_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(LIB_GETRANDOM) $(LIBINTL) $(LIBTHREAD)
TESTS += test-glob-h-c++
check_PROGRAMS += test-glob-h-c++
test_glob_h_c___SOURCES = test-glob-h-c++.cc
-test_glob_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_MBRTOWC)
+test_glob_h_c___LDADD = $(LDADD) $(LIBINTL) $(CLOCK_TIME_LIB) $(LIB_MBRTOWC)
endif
Link:
$(LIB_GETRANDOM)
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPLv2+
Link:
$(LIB_GETRANDOM)
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPLv2+
Link:
$(LIB_GETRANDOM)
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPLv2+
Link:
$(LIB_GETRANDOM)
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPLv2+
Link:
$(LIB_GETRANDOM)
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPLv2+
Makefile.am:
TESTS += test-parse-datetime
check_PROGRAMS += test-parse-datetime
-test_parse_datetime_LDADD = $(LDADD) @LIBINTL@ $(LIB_CLOCK_GETTIME)
+test_parse_datetime_LDADD = $(LDADD) @LIBINTL@ $(CLOCK_TIME_LIB)
"timespec.h"
Link:
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
GPL
TESTS += test-stdlib-c++
check_PROGRAMS += test-stdlib-c++
test_stdlib_c___SOURCES = test-stdlib-c++.cc test-stdlib-c++2.cc
-test_stdlib_c___LDADD = $(LDADD) $(LIBINTL) $(GETLOADAVG_LIBS) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIB_GETRANDOM)
+test_stdlib_c___LDADD = $(LDADD) $(LIBINTL) $(GETLOADAVG_LIBS) $(CLOCK_TIME_LIB) $(LIB_EACCESS) $(LIB_GETRANDOM)
endif
Link:
$(LIB_ACL)
$(LIB_GETRANDOM)
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
$(LIBTHREAD)
License:
Makefile.am:
TESTS += test-supersede
check_PROGRAMS += test-supersede
-test_supersede_LDADD = $(LDADD) $(LIB_ACL) $(LIB_CLOCK_GETTIME) $(LIB_GETRANDOM) $(LIBINTL) $(LIBTHREAD)
+test_supersede_LDADD = $(LDADD) $(LIB_ACL) $(CLOCK_TIME_LIB) $(LIB_GETRANDOM) $(LIBINTL) $(LIBTHREAD)
TESTS += test-sys_ioctl-c++
check_PROGRAMS += test-sys_ioctl-c++
test_sys_ioctl_c___SOURCES = test-sys_ioctl-c++.cc
-test_sys_ioctl_c___LDADD = $(LDADD) $(LIBINTL) $(LIBSOCKET) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)
+test_sys_ioctl_c___LDADD = $(LDADD) $(LIBINTL) $(LIBSOCKET) $(CLOCK_TIME_LIB) $(LIB_EACCESS)
endif
TESTS += test-sys_stat-c++
check_PROGRAMS += test-sys_stat-c++
test_sys_stat_c___SOURCES = test-sys_stat-c++.cc
-test_sys_stat_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_MBRTOWC) $(LIB_GETRANDOM)
+test_sys_stat_c___LDADD = $(LDADD) $(LIBINTL) $(CLOCK_TIME_LIB) $(LIB_MBRTOWC) $(LIB_GETRANDOM)
endif
Link:
$(LIB_GETRANDOM)
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPLv2+
Makefile.am:
TESTS += test-tempname
check_PROGRAMS += test-tempname
-test_tempname_LDADD = $(LDADD) $(LIB_GETRANDOM) $(LIB_CLOCK_GETTIME)
+test_tempname_LDADD = $(LDADD) $(LIB_GETRANDOM) $(CLOCK_TIME_LIB)
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) $(LIB_CLOCK_GETTIME)
+test_time_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(CLOCK_TIME_LIB)
endif
<time.h>
Link:
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPL
Makefile.am:
TESTS += test-timespec_get
check_PROGRAMS += test-timespec_get
-test_timespec_get_LDADD = $(LDADD) @LIB_CLOCK_GETTIME@
+test_timespec_get_LDADD = $(LDADD) @CLOCK_TIME_LIB@
<time.h>
Link:
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPL
Makefile.am:
TESTS += test-timespec_getres
check_PROGRAMS += test-timespec_getres
-test_timespec_getres_LDADD = $(LDADD) @LIB_CLOCK_GETTIME@
+test_timespec_getres_LDADD = $(LDADD) @CLOCK_TIME_LIB@
Link:
$(LIB_GETRANDOM)
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPL
Link:
$(LIB_GETRANDOM)
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
GPL
TESTS += test-unistd-c++
check_PROGRAMS += test-unistd-c++
test_unistd_c___SOURCES = test-unistd-c++.cc
-test_unistd_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIBSOCKET) $(LIB_GETLOGIN) $(LIB_GETRANDOM)
+test_unistd_c___LDADD = $(LDADD) $(LIBINTL) $(CLOCK_TIME_LIB) $(LIB_EACCESS) $(LIBSOCKET) $(LIB_GETLOGIN) $(LIB_GETRANDOM)
endif
Makefile.am:
TESTS += test-utime
check_PROGRAMS += test-utime
-test_utime_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) $(LIB_NANOSLEEP) @LIBINTL@
+test_utime_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(LIB_NANOSLEEP) @LIBINTL@
"utimens.h"
Link:
-$(LIB_CLOCK_GETTIME)
+$(CLOCK_TIME_LIB)
License:
LGPL
Makefile.am:
TESTS += test-utimens
check_PROGRAMS += test-utimens
-test_utimens_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) $(LIB_NANOSLEEP) @LIBINTL@
+test_utimens_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(LIB_NANOSLEEP) @LIBINTL@
Makefile.am:
TESTS += test-utimensat
check_PROGRAMS += test-utimensat
-test_utimensat_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) $(LIB_NANOSLEEP) @LIBINTL@
+test_utimensat_LDADD = $(LDADD) $(CLOCK_TIME_LIB) $(LIB_NANOSLEEP) @LIBINTL@