diff options
author | Ted Gould <ted@gould.cx> | 2012-08-17 11:27:09 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-08-17 11:27:09 -0500 |
commit | 98fa7d94d0e96788fe7a89766203f31c0bad9fa1 (patch) | |
tree | 052bb27f25aecb33206f5bc42b946e283deef2b0 | |
parent | c647274f18f54356b46f8b6533a0d1ed9ca8eb5a (diff) | |
download | libpam-freerdp2-98fa7d94d0e96788fe7a89766203f31c0bad9fa1.tar.gz libpam-freerdp2-98fa7d94d0e96788fe7a89766203f31c0bad9fa1.tar.bz2 libpam-freerdp2-98fa7d94d0e96788fe7a89766203f31c0bad9fa1.zip |
Adding a local directory option and setting the PAM install directory based on whether we're local or not
-rw-r--r-- | configure.ac | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 05b48d1..1d3a0a1 100644 --- a/configure.ac +++ b/configure.ac @@ -7,12 +7,38 @@ AM_SILENT_RULES([yes]) AC_PROG_CC AC_PROG_LIBTOOL +########################### +# PAM +########################### + have_pam=no AC_CHECK_LIB(pam, pam_getenv, have_pam=yes) if test "x$have_pam" = "xno"; then AC_MSG_ERROR([Required library PAM was not found]) fi +########################### +# Local Install +########################### + +with_localinstall="no" +AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], + [install all files locally (for distcheck)]), + with_localinstall=$enableval, + with_localinstall=no) + +########################### +# PAM Module dir +########################### + +if test "x$with_localinstall" = "xyes"; then + PAMMODULEDIR="${libdir}/security/" +else + PAMMODULEDIR="/lib/security" +fi +AC_SUBST(PAMMODULEDIR) + + AC_CONFIG_FILES([ Makefile src/Makefile |