]> Savannah Git Hosting - gnulib.git/commitdiff
qcopy-acl: Adjust link dependencies.
authorBruno Haible <bruno@clisp.org>
Fri, 13 Jan 2023 08:30:29 +0000 (09:30 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 13 Jan 2023 08:30:29 +0000 (09:30 +0100)
* modules/qcopy-acl (Depends-on): Add condition.
(configure.ac): Set QCOPY_ACL_LIB.
(Link): Add $(QCOPY_ACL_LIB). Remove $(LIB_ACL).
* modules/qacl (Link): Add $(LIB_ACL) and $(QCOPY_ACL_LIB).
* modules/acl (Link): Add $(LIB_ACL) and $(QCOPY_ACL_LIB).
* modules/copy-file (Link): Add $(QCOPY_ACL_LIB).
* modules/supersede (Link): Add $(QCOPY_ACL_LIB).
* modules/acl-tests (Makefile.am): Link test-copy-acl with
$(QCOPY_ACL_LIB).
* modules/copy-file-tests (Makefile.am): Link test-copy-file with
$(QCOPY_ACL_LIB).
* modules/supersede-tests (Makefile.am): Link test-supersede with
$(QCOPY_ACL_LIB).

ChangeLog
modules/acl
modules/acl-tests
modules/copy-file
modules/copy-file-tests
modules/qacl
modules/qcopy-acl
modules/supersede
modules/supersede-tests

index 1ff605c36a2414cfb2000f1da567ff975f9f3671..11334b1afa60a8601087496b610cbadc7f304858 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2023-01-13  Bruno Haible  <bruno@clisp.org>
+
+       qcopy-acl: Adjust link dependencies.
+       * modules/qcopy-acl (Depends-on): Add condition.
+       (configure.ac): Set QCOPY_ACL_LIB.
+       (Link): Add $(QCOPY_ACL_LIB). Remove $(LIB_ACL).
+       * modules/qacl (Link): Add $(LIB_ACL) and $(QCOPY_ACL_LIB).
+       * modules/acl (Link): Add $(LIB_ACL) and $(QCOPY_ACL_LIB).
+       * modules/copy-file (Link): Add $(QCOPY_ACL_LIB).
+       * modules/supersede (Link): Add $(QCOPY_ACL_LIB).
+       * modules/acl-tests (Makefile.am): Link test-copy-acl with
+       $(QCOPY_ACL_LIB).
+       * modules/copy-file-tests (Makefile.am): Link test-copy-file with
+       $(QCOPY_ACL_LIB).
+       * modules/supersede-tests (Makefile.am): Link test-supersede with
+       $(QCOPY_ACL_LIB).
+
 2023-01-13  Bruno Haible  <bruno@clisp.org>
 
        qcopy-acl: Avoid autoconf warning.
index 8bcfd99420745169d1ba85d6e11ed8ee21c14450..bcc1f4906ccaaa40f3d2a570ddc99c6d1c1a9da1 100644 (file)
@@ -22,6 +22,8 @@ Include:
 
 Link:
 $(MBRTOWC_LIB)
+$(LIB_ACL)
+$(QCOPY_ACL_LIB)
 
 License:
 GPL
index 44190b607de78fc621ea284003a37dab61c6ae10..2ee34c652394509b0528296a5e611e37a9330580 100644 (file)
@@ -26,5 +26,5 @@ TESTS += \
 TESTS_ENVIRONMENT += USE_ACL=$(USE_ACL)
 check_PROGRAMS += test-set-mode-acl test-copy-acl test-sameacls
 test_set_mode_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ $(MBRTOWC_LIB)
-test_copy_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ $(MBRTOWC_LIB)
+test_copy_acl_LDADD = $(LDADD) $(LIB_ACL) $(QCOPY_ACL_LIB) @LIBINTL@ $(MBRTOWC_LIB)
 test_sameacls_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ $(MBRTOWC_LIB)
index dac8bd6358d868f78082af506a4d3ab0b97e0f15..a73e2a474cf32901e27b5dd79aaf00a9fef98b5a 100644 (file)
@@ -37,6 +37,7 @@ Include:
 
 Link:
 $(LIB_ACL)
+$(QCOPY_ACL_LIB)
 $(MBRTOWC_LIB)
 
 License:
index 1c554696f9dd36457b12f83536b010dc533eb427..087797c7277323fb5379b0505574be522d1bf92d 100644 (file)
@@ -18,4 +18,4 @@ Makefile.am:
 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) $(CLOCK_TIME_LIB) @LIBINTL@ $(MBRTOWC_LIB)
+test_copy_file_LDADD = $(LDADD) $(LIB_ACL) $(QCOPY_ACL_LIB) $(CLOCK_TIME_LIB) @LIBINTL@ $(MBRTOWC_LIB)
index 45753c76238f0ca687ffeb770457af142cec95a7..445f639f7b065c7c074760fe43b921aefb7d1908 100644 (file)
@@ -15,6 +15,10 @@ Makefile.am:
 
 Include:
 
+Link:
+$(LIB_ACL)
+$(QCOPY_ACL_LIB)
+
 License:
 GPL
 
index e0cd914953ceeadbaa7ec7454331ee8b1b9364ce..8dd147927d4b90e344d40221be8b497054fd3685 100644 (file)
@@ -6,10 +6,16 @@ lib/qcopy-acl.c
 m4/xattr.m4
 
 Depends-on:
-acl-permissions
+acl-permissions [test "$use_xattr" != yes]
 
 configure.ac:
 gl_FUNC_XATTR
+if test "$use_xattr" = yes; then
+  QCOPY_ACL_LIB="$LIB_XATTR"
+else
+  QCOPY_ACL_LIB="$LIB_ACL"
+fi
+AC_SUBST([QCOPY_ACL_LIB])
 
 Makefile.am:
 lib_SOURCES += qcopy-acl.c
@@ -18,7 +24,7 @@ Include:
 "acl.h"
 
 Link:
-$(LIB_ACL)
+$(QCOPY_ACL_LIB)
 
 License:
 GPL
index 3118fad426f317f43e8518879b67e4f6be5d7b8f..1f434fe2212c9cfcd00af69d05cc573e1adc4ec9 100644 (file)
@@ -36,6 +36,7 @@ Include:
 
 Link:
 $(LIB_ACL)
+$(QCOPY_ACL_LIB)
 $(GETRANDOM_LIB)
 $(CLOCK_TIME_LIB)
 $(LIBTHREAD)
index f3a9d777d915c668a66e908ebc651bf25588a5cd..d4b0566b0d133a7cfe058cd73c69bf18b99a69df 100644 (file)
@@ -19,4 +19,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-supersede
 check_PROGRAMS += test-supersede
-test_supersede_LDADD = $(LDADD) $(LIB_ACL) $(CLOCK_TIME_LIB) $(GETRANDOM_LIB) $(LIBINTL) $(LIBTHREAD)
+test_supersede_LDADD = $(LDADD) $(LIB_ACL) $(QCOPY_ACL_LIB) $(CLOCK_TIME_LIB) $(GETRANDOM_LIB) $(LIBINTL) $(LIBTHREAD)