summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sss_client/Makefile.am5
-rw-r--r--sss_client/configure.ac8
2 files changed, 13 insertions, 0 deletions
diff --git a/sss_client/Makefile.am b/sss_client/Makefile.am
index eaedc5f9..90427b05 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 f366a3ca..be1b4ccb 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