| 1 |
# Copyright 2020-2023 Free Software Foundation, Inc. |
| 2 |
# This file is free software; the Free Software Foundation |
| 3 |
# gives unlimited permission to copy and/or distribute it, |
| 4 |
# with or without modifications, as long as this notice is preserved. |
| 5 |
|
| 6 |
# From Paul Eggert |
| 7 |
# Provide <selinux/label.h>, if necessary. |
| 8 |
|
| 9 |
AC_DEFUN([gl_HEADERS_SELINUX_LABEL_H], |
| 10 |
[ |
| 11 |
AC_REQUIRE([gl_LIBSELINUX]) |
| 12 |
GL_GENERATE_SELINUX_LABEL_H=true |
| 13 |
if test "$with_selinux" != no; then |
| 14 |
AC_CHECK_HEADERS([selinux/label.h], |
| 15 |
[GL_GENERATE_SELINUX_LABEL_H=false]) |
| 16 |
fi |
| 17 |
]) |