diff options
author | Assar Westerlund <assar@sics.se> | 2001-08-29 17:02:48 +0000 |
---|---|---|
committer | Assar Westerlund <assar@sics.se> | 2001-08-29 17:02:48 +0000 |
commit | 0ca6c1bba008a62d3bb2dd53909f806e2a0d260d (patch) | |
tree | 84a55db4baf72f68969981ba6e3ba79027bf094c /cf/crypto.m4 | |
parent | 7c651f3267e4d707ac587e84b5e672dab1594f69 (diff) |
use AC_WITH_ALL to allow separate specification of include and lib
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10594 ec53bebd-3082-4978-b11e-865c3cabbd6b
Diffstat (limited to 'cf/crypto.m4')
-rw-r--r-- | cf/crypto.m4 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cf/crypto.m4 b/cf/crypto.m4 index 9cc5bad68..732ab3b61 100644 --- a/cf/crypto.m4 +++ b/cf/crypto.m4 @@ -7,8 +7,7 @@ dnl - own-built libdes AC_DEFUN([KRB_CRYPTO],[ crypto_lib=unknown -AC_ARG_WITH(openssl, -[ --with-openssl=dir if you want to use openssl's libcrypto in dir]) +AC_WITH_ALL([openssl]) DIR_des= @@ -20,11 +19,13 @@ if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then save_LIBS="$LIBS" INCLUDE_des= LIB_des= - if test "$with_openssl" != ""; then + if test "$with_openssl_include" != ""; then INCLUDE_des="-I${with_openssl}/include" - CPPFLAGS="${INCLUDE_des} ${CPPFLAGS}" + fi + if test "$with_openssl_lib" != ""; then LIB_des="-L${with_openssl}/lib" fi + CPPFLAGS="${INCLUDE_des} ${CPPFLAGS}" LIB_des="${LIB_des} -lcrypto" LIB_des_a="$LIB_des" LIB_des_so="$LIB_des" |