diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index f50484d9..7eae770f 100644 --- a/configure.ac +++ b/configure.ac @@ -562,13 +562,15 @@ if test -n "$enable_vendordir"; then AC_DEFINE_UNQUOTED([VENDOR_SCONFIGDIR], ["$enable_vendordir/security"], [Directory for PAM modules distribution provided configuration files]) if test "$WITH_ECONF" = "yes" ; then - STRINGPARAM_VENDORDIR="--stringparam vendordir '$enable_vendordir' --stringparam profile.condition 'with_vendordir;with_vendordir_and_with_econf'" + STRINGPARAM_VENDORDIR="--stringparam vendordir '$enable_vendordir'" + profileconditions="with_vendordir;with_vendordir_and_with_econf" else - STRINGPARAM_VENDORDIR="--stringparam vendordir '$enable_vendordir' --stringparam profile.condition 'with_vendordir;with_vendordir_and_without_econf" + STRINGPARAM_VENDORDIR="--stringparam vendordir '$enable_vendordir'" + profileconditions="with_vendordir;with_vendordir_and_without_econf" fi VENDOR_SCONFIGDIR="$enable_vendordir/security" else - STRINGPARAM_VENDORDIR="--stringparam profile.condition 'without_vendordir'" + profileconditions="without_vendordir" fi AC_SUBST([STRINGPARAM_VENDORDIR]) AC_SUBST(VENDOR_SCONFIGDIR) @@ -582,14 +584,16 @@ if test "$OPENSSL_ENABLED" = "yes" ; then [CRYPTO_LIBS="-lcrypto" use_openssl=yes AC_DEFINE([WITH_OPENSSL], 1, [OpenSSL provides crypto algorithm for hmac]) - STRINGPARAM_HMAC="--stringparam profile.condition 'openssl_hmac'"], + profileconditions+=";openssl_hmac"], [CRYPTO_LIBS="" - STRINGPARAM_HMAC="--stringparam profile.condition 'no_openssl_hmac'"]) + profileconditions+=";no_openssl_hmac"]) fi AC_SUBST([CRYPTO_LIBS]) -AC_SUBST([STRINGPARAM_HMAC]) AM_CONDITIONAL([COND_USE_OPENSSL], [test "x$use_openssl" = "xyes"]) +STRINGPARAM_PROFILECONDITIONS="--stringparam profile.condition '$profileconditions'" +AC_SUBST([STRINGPARAM_PROFILECONDITIONS]) + dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC |