]> Savannah Git Hosting - gnulib.git/commitdiff
selinux-h: Fix compilation error (regression 2023-04-13).
authorBruno Haible <bruno@clisp.org>
Sat, 15 Apr 2023 11:44:34 +0000 (13:44 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 15 Apr 2023 11:44:34 +0000 (13:44 +0200)
* m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Instead of
defining the C macro HAVE_SELINUX_SELINUX_H to 0, set the Autoconf
variable HAVE_SELINUX_SELINUX_H to 0.

ChangeLog
m4/selinux-selinux-h.m4

index 0cc56f0210514c490259b6dd84157aef7ee3d6b4..a6be84b96089da8b6a46bae980aaf48148fed225 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-04-15  Bruno Haible  <bruno@clisp.org>
+
+       selinux-h: Fix compilation error (regression 2023-04-13).
+       * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Instead of
+       defining the C macro HAVE_SELINUX_SELINUX_H to 0, set the Autoconf
+       variable HAVE_SELINUX_SELINUX_H to 0.
+
 2023-04-14  Bruno Haible  <bruno@clisp.org>
 
        year2038: Fix configure failure on 32-bit mingw.
index 7028248c71f9b0368a6cc97310b67f8348ef6fe9..734924cc0d0cf7aabcff8a0226bad88d12cc8309 100644 (file)
@@ -20,7 +20,6 @@ AC_DEFUN([gl_HEADERS_SELINUX_SELINUX_H],
     else
       HAVE_SELINUX_SELINUX_H=0
     fi
-    AC_SUBST([HAVE_SELINUX_SELINUX_H])
 
     if test "$ac_cv_header_selinux_selinux_h" = yes; then
       # We do have <selinux/selinux.h>, so do compile getfilecon.c
@@ -44,8 +43,9 @@ AC_DEFUN([gl_HEADERS_SELINUX_SELINUX_H],
   else
     # Do as if <selinux/selinux.h> does not exist, even if
     # AC_CHECK_HEADERS_ONCE has already determined that it exists.
-    AC_DEFINE([HAVE_SELINUX_SELINUX_H], [0])
+    HAVE_SELINUX_SELINUX_H=0
   fi
+  AC_SUBST([HAVE_SELINUX_SELINUX_H])
 ])
 
 AC_DEFUN([gl_LIBSELINUX],