From 75de88852acacd665c5b71c19aff67ed7034826b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 15 Sep 2008 14:37:49 +0200 Subject: avoid spurious test failure when library is built without ACL support * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for... * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL. * tests/test-file-has-acl.sh: Skip if USE_ACL == 0. * tests/test-copy-acl.sh: Likewise. --- m4/acl.m4 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'm4/acl.m4') diff --git a/m4/acl.m4 b/m4/acl.m4 index 494ce4bebb..08342d03ca 100644 --- a/m4/acl.m4 +++ b/m4/acl.m4 @@ -121,6 +121,8 @@ int type = ACL_TYPE_EXTENDED;]], AC_SUBST([LIB_ACL]) AC_DEFINE_UNQUOTED([USE_ACL], [$use_acl], [Define to nonzero if you want access control list support.]) + USE_ACL=$use_acl + AC_SUBST([USE_ACL]) ]) # gl_ACL_GET_FILE(IF-WORKS, IF-NOT) -- cgit v1.2.1