havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
[gnulib.git] / m4 / selinux-label-h.m4
blob340c014c0c602bd84f99615640a81e58825e87b5
1 # Copyright 2020 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.
6 # From Paul Eggert
7 # Provide <selinux/label.h>, if necessary.
9 AC_DEFUN([gl_HEADERS_SELINUX_LABEL_H],
11   AC_REQUIRE([gl_LIBSELINUX])
12   SELINUX_LABEL_H=selinux/label.h
13   if test "$with_selinux" != no; then
14     AC_CHECK_HEADERS([selinux/label.h],
15                      [SELINUX_LABEL_H=])
16   fi
17   AC_SUBST([SELINUX_LABEL_H])
18   AM_CONDITIONAL([GL_GENERATE_SELINUX_LABEL_H], [test -n "$SELINUX_LABEL_H"])