]> Savannah Git Hosting - gnulib.git/commitdiff
qcopy-acl: Avoid autoconf warning.
authorBruno Haible <bruno@clisp.org>
Fri, 13 Jan 2023 07:51:10 +0000 (08:51 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 13 Jan 2023 07:51:10 +0000 (08:51 +0100)
* m4/xattr.m4 (gl_FUNC_XATTR): Provide a description in AC_DEFINE.
Also, protect against unsafe use of a configure option value.

ChangeLog
m4/xattr.m4

index 5fab6a279cb483428e9faeda8343ee2a7a9f12b1..1ff605c36a2414cfb2000f1da567ff975f9f3671 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-13  Bruno Haible  <bruno@clisp.org>
+
+       qcopy-acl: Avoid autoconf warning.
+       * m4/xattr.m4 (gl_FUNC_XATTR): Provide a description in AC_DEFINE.
+       Also, protect against unsafe use of a configure option value.
+
 2023-01-12  Ondrej Valousek  <ondrej.valousek.xm@renesas.com>
 
        qcopy-acl: Optimize copying of ACLs by directly copying the attributes.
index 6efdfa475abce136ff4c92a7a68550be1efcdba9..5cbfc86002c04de0aa15094e74e96251bd41b9e8 100644 (file)
@@ -1,5 +1,5 @@
 # xattr.m4 - check for Extended Attributes (Linux)
-# serial 4
+# serial 5
 
 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -16,7 +16,7 @@ AC_DEFUN([gl_FUNC_XATTR],
   LIB_XATTR=
   AC_SUBST([LIB_XATTR])
 
-  if test "$use_xattr" = "yes"; then
+  if test "$use_xattr" = yes; then
     AC_CHECK_HEADERS([attr/error_context.h attr/libattr.h])
     use_xattr=no
     if test "$ac_cv_header_attr_libattr_h" = yes \
@@ -36,7 +36,8 @@ AC_DEFUN([gl_FUNC_XATTR],
       AC_MSG_WARN([AC_PACKAGE_NAME will be built without xattr support.])
     fi
   fi
-  if test $use_xattr = yes; then
-    AC_DEFINE_UNQUOTED([USE_XATTR], 1)
+  if test "$use_xattr" = yes; then
+    AC_DEFINE([USE_XATTR], [1],
+      [Define to 1 to use the Linux extended attributes library.])
   fi
 ])