2 Include and determine the availability of smack routines
10 # Check whether libsmack is available
12 AC_ARG_ENABLE([libsmack],
13 AS_HELP_STRING([--disable-libsmack], [disable libsmack support]))
14 if test "X$enable_libsmack" != "Xno"; then
15 AC_CHECK_LIB([smack], [smack_new_label_from_self],
16 [AC_CHECK_LIB([smack], [smack_new_label_from_path],
17 [AC_CHECK_HEADER([sys/smack.h],
19 AC_DEFINE([HAVE_SMACK], [1], [libsmack usability])]
21 if test "X$LIB_SMACK" = "X"; then
22 if test "X$enable_libsmack" = "Xyes"; then
23 AC_MSG_ERROR([libsmack library was not found or not usable])
27 AC_MSG_WARN([libsmack support disabled by user])
33 lib_SOURCES += smack.h