about summary refs log tree commit diff
path: root/nscd/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-06-14 22:52:30 +0000
committerUlrich Drepper <drepper@redhat.com>2005-06-14 22:52:30 +0000
commitec23b9bece4780a2031eedf23019cbb229e855fb (patch)
treec4a5eb2239fc514124a9ffae30ed7530239d1a5f /nscd/Makefile
parent0e66ade5ada897fe4b8be8d9c05c5519e7be4199 (diff)
downloadglibc-ec23b9bece4780a2031eedf23019cbb229e855fb.tar.gz
glibc-ec23b9bece4780a2031eedf23019cbb229e855fb.tar.xz
glibc-ec23b9bece4780a2031eedf23019cbb229e855fb.zip
* configure.in: Add test for availability of libaudit.
	* config.h.in: Define HAVE_LIBAUDIT.
	* config.make.in: Define have-libaudit.
	* nscd/Makefile: If libaudit is available, link nscd with it.
	* nscd/selinux.c: If HAVE_LIBAUDIT is defined, log using libaudit.
	Patch by Steve Grubb <sgrubb@redhat.com>.
Diffstat (limited to 'nscd/Makefile')
-rw-r--r--nscd/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/nscd/Makefile b/nscd/Makefile
index 7e0c4eb30a..2ebd90b989 100644
--- a/nscd/Makefile
+++ b/nscd/Makefile
@@ -53,8 +53,12 @@ endif
 
 all-nscd-modules := $(nscd-modules) selinux
 ifeq (yes,$(have-selinux))
+ifeq (yes,$(have-libaudit))
+libaudit = -laudit
+endif
+
 nscd-modules += selinux
-selinux-LIBS := -lselinux
+selinux-LIBS := -lselinux $(libaudit)
 endif
 
 LDLIBS-nscd = $(selinux-LIBS)