From ce840af6a157f89eab3d20ace398d364d45d9591 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
Date: Tue, 16 Jun 2009 13:46:50 -0400
Subject: [PATCH 2/4] Add --with-aux-info config option to SSS client

---
 sss_client/Makefile.am  |    5 +++++
 sss_client/configure.ac |    8 ++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/sss_client/Makefile.am b/sss_client/Makefile.am
index eaedc5f..90427b0 100644
--- a/sss_client/Makefile.am
+++ b/sss_client/Makefile.am
@@ -6,6 +6,11 @@ AM_CPPFLAGS = \
     -DLOCALEDIR=\"\$(localedir)\"
 ACLOCAL_AMFLAGS = -I m4
 
+AM_CFLAGS =
+if WANT_AUX_INFO
+    AM_CFLAGS += -aux-info $@.X
+endif
+
 nsslibdir = @nsslibdir@
 pamlibdir = $(nsslibdir)/security
 
diff --git a/sss_client/configure.ac b/sss_client/configure.ac
index f366a3c..be1b4cc 100644
--- a/sss_client/configure.ac
+++ b/sss_client/configure.ac
@@ -28,5 +28,13 @@ AC_ARG_ENABLE([nsslibdir], [AS_HELP_STRING([--enable-nsslibdir],
               [nsslibdir=$enableval],
               [nsslibdir=$libdir])
 AC_SUBST(nsslibdir)
+
+AC_DEFUN([BUILD_WITH_AUX_INFO],
+  [ AC_ARG_WITH([aux-info],
+                [AC_HELP_STRING([--with-aux-info],
+                                [Build with -aux-info output])])
+  ])
+AM_CONDITIONAL([WANT_AUX_INFO], [test x$with_aux_info = xyes])
+
 AC_CONFIG_FILES([Makefile po/Makefile.in])
 AC_OUTPUT
-- 
1.6.2.2

