X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=configure.ac;h=6974af93ad2cd01c4c444975b0b61a7b7e71dd41;hp=d4b556238e625f22a6ce346446de0868146a414a;hb=e4f8f47a6383ad086d68edc071bb701cfc5c0b28;hpb=d5e8195b504f9b024d4ffe4047d076633bf4e230 diff --git a/configure.ac b/configure.ac index d4b5562..6974af9 100644 --- a/configure.ac +++ b/configure.ac @@ -47,7 +47,10 @@ AS_IF([test "x$OPENSSL_CFLAGS" != "x" -o "x$OPENSSL_LIBS" != "x" ], [ CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS" LIBS="$OPENSSL_LIBS $LIBS" -AS_IF([test "x$use_openssl" != "xyes"], [ +AC_ARG_ENABLE(enable_tomcrypt, + [ --enable-tomcrypt use libtomcrypt even when openssl present]) + +AS_IF([test "x$use_openssl" != "xyes" -o "x$enable_tomcrypt" = "xyes"], [ PKG_CHECK_MODULES([TOMCRYPT], [libtomcrypt], [], [:]) ]) AC_ARG_WITH(libtomcrypt-include-path, @@ -69,10 +72,10 @@ AS_IF([test "x$use_openssl" != "xyes" -a "x$use_tomcrypt" != "xyes"], [ ]) AS_IF([test "x$use_openssl" = "xyes"], [ - CRYPTO_OBJS+=ossl_crypto.lo + CRYPTO_OBJS+=" ossl_crypto.lo" ]) AS_IF([test "x$use_tomcrypt" = "xyes"], [ - CRYPTO_OBJS+=tom_crypto.lo + CRYPTO_OBJS+=" tom_crypto.lo" ]) AC_SUBST(CRYPTO_OBJS)