AC_CHECK_LIB should put -lcrypto in PKINIT_CRYPTO_IMPL_LIBS not LIBS
authorSam Hartman <hartmans@mit.edu>
Tue, 29 Nov 2011 21:22:21 +0000 (21:22 +0000)
committerSam Hartman <hartmans@mit.edu>
Tue, 29 Nov 2011 21:22:21 +0000 (21:22 +0000)
for pkinit.  A similar problem exists for crypto_impl and is not
addressed by this patch.

ticket: new Subject: LIBS should not include PKINIT_CRYPTO_IMPL_LIBS tags: pullup target_version: 1.10

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25491 dc483132-0cff-0310-8789-dd5450dbe970

src/configure.in

index 6aae2f5d69d2c6fef6c89cdfe8d0e7ee9033ca69..953d5767d1fa4072b8183d555c62c23affd34217 100644 (file)
@@ -202,7 +202,7 @@ AC_MSG_RESULT("pkinit will use \'$withval\'")
 ], withval=$PKINIT_CRYPTO_IMPL)
 case "$withval" in
 builtin|openssl)
-  AC_CHECK_LIB(crypto, PKCS7_get_signer_info)
+  AC_CHECK_LIB(crypto, PKCS7_get_signer_info, PKINIT_CRYPTO_IMPL_LIBS=-lcrypto)
   PKINIT_CRYPTO_IMPL=openssl
   ;;
 nss)