Blob Blame History Raw
dnl
dnl   LSPP code for the Common UNIX Printing System (CUPS).
dnl
dnl   Copyright 2005-2006 by Hewlett-Packard Development Company, L.P.
dnl
dnl   This program is free software; you can redistribute it and/or modify
dnl   it under the terms of the GNU General Public License as published by
dnl   the Free Software Foundation; version 2.
dnl
dnl   This program is distributed in the hope that it will be useful, but
dnl   WITHOUT ANY WARRANTY; without even the implied warranty of
dnl   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
dnl   General Public License for more details.
dnl
dnl   You should have received a copy of the GNU General Public License
dnl   along with this program; if not, write to the Free Software Foundation,
dnl   Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301 USA
dnl

dnl Are we trying to meet LSPP requirements
AC_ARG_ENABLE(lspp, [  --enable-lspp           turn on auditing and label support, default=no])

if test x"$enable_lspp" != xno; then
    case "$uname" in
        Linux)
            AC_CHECK_LIB(audit,audit_log_user_message, [LIBAUDIT="-laudit" AC_SUBST(LIBAUDIT)])
            AC_CHECK_HEADER(libaudit.h)
            AC_CHECK_LIB(selinux,getpeercon, [LIBSELINUX="-lselinux" AC_SUBST(LIBSELINUX)])
            AC_CHECK_HEADER(selinux/selinux.h)
            AC_DEFINE(WITH_LSPP)
            ;;
        *)
            # All others
            ;;
    esac
fi