18d9847
diff -up sudo-1.7.2p2/configure.in.libaudit sudo-1.7.2p2/configure.in
18d9847
--- sudo-1.7.2p2/configure.in.libaudit	2010-02-10 16:21:26.000000000 +0100
18d9847
+++ sudo-1.7.2p2/configure.in	2010-02-10 16:21:26.000000000 +0100
18d9847
@@ -1752,7 +1752,6 @@ dnl
18d9847
 : ${mansectsu='8'}
18d9847
 : ${mansectform='5'}
18d9847
 
18d9847
-AC_SUBST(LIBAUDIT)
18d9847
 if test "$with_audit" = "yes"; then
18d9847
 	# See if we have the audit library
18d9847
         AC_CHECK_HEADER(libaudit.h, [audit_header="yes"], [audit_header="no"])
18d9847
@@ -1770,6 +1769,8 @@ if test "$with_audit" = "yes"; then
18d9847
 	fi
18d9847
 fi
18d9847
 
18d9847
+AC_SUBST(LIBAUDIT)
18d9847
+
18d9847
 dnl
18d9847
 dnl Add in any libpaths or libraries specified via configure
18d9847
 dnl
18d9847
diff -up sudo-1.7.2p2/Makefile.in.libaudit sudo-1.7.2p2/Makefile.in
18d9847
--- sudo-1.7.2p2/Makefile.in.libaudit	2010-02-10 16:26:06.000000000 +0100
18d9847
+++ sudo-1.7.2p2/Makefile.in	2010-02-10 16:26:40.000000000 +0100
18d9847
@@ -44,7 +44,7 @@ INSTALL = $(SHELL) $(srcdir)/install-sh 
18d9847
 # Libraries
18d9847
 LIBS = @LIBS@
18d9847
 NET_LIBS = @NET_LIBS@
18d9847
-SUDO_LIBS = @SUDO_LIBS@ @AFS_LIBS@ @GETGROUPS_LIB@ $(LIBS) $(NET_LIBS)
18d9847
+SUDO_LIBS = @SUDO_LIBS@ @AFS_LIBS@ @GETGROUPS_LIB@ @LIBAUDIT@ $(LIBS) $(NET_LIBS)
18d9847
 
18d9847
 # C preprocessor flags
18d9847
 CPPFLAGS = -I. -I$(srcdir) @CPPFLAGS@