acl-permissions: Improve autoconf macro.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Mar 2020 12:08:53 +0000 (13:08 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Mar 2020 12:08:53 +0000 (13:08 +0100)
* m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
more reliably.

ChangeLog
m4/acl.m4

index 7fd77212616012d9431f3a8cb73c1ee8227fe8f2..d21c51a50e79fe78260ef237997018b39d7fb34e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-03-22  Bruno Haible  <bruno@clisp.org>
+
+       acl-permissions: Improve autoconf macro.
+       * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
+       more reliably.
+
 2020-03-22  Bruno Haible  <bruno@clisp.org>
 
        file-has-acl: Fix module description.
index e459451ae310600a08d4783a83751b12917ab3f9..a3dcf9357b9b323adefbfe82dd0ae3e5bb3849a1 100644 (file)
--- a/m4/acl.m4
+++ b/m4/acl.m4
@@ -1,5 +1,5 @@
 # acl.m4 - check for access control list (ACL) primitives
-# serial 23
+# serial 24
 
 # Copyright (C) 2002, 2004-2020 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -139,7 +139,7 @@ int type = ACL_TYPE_EXTENDED;]])],
       AC_MSG_WARN([AC_PACKAGE_NAME will be built without ACL support.])
     fi
   fi
-  test $gl_need_lib_has_acl && LIB_HAS_ACL=$LIB_ACL
+  test -n "$gl_need_lib_has_acl" && LIB_HAS_ACL=$LIB_ACL
   AC_SUBST([LIB_ACL])
   AC_DEFINE_UNQUOTED([USE_ACL], [$use_acl],
     [Define to nonzero if you want access control list support.])