1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-17 00:00:40 +00:00
freebsd-ports/security/cyrus-sasl2/files/patch-ab

36 lines
1.1 KiB
Plaintext
Raw Normal View History

--- configure.in.orig Thu Dec 2 14:10:30 1999
+++ configure.in Sat Dec 4 17:59:13 1999
@@ -213,6 +213,7 @@
AC_CHECK_LIB(crypt, crypt,
LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes,
cmu_have_crypt=no))
+AC_SUBST(LIB_CRYPT)
CMU_SOCKETS
@@ -503,15 +504,22 @@
with_rc4=no)
if test "$with_rc4" = no; then
+
+ dnl if openssl has been compiled with the rsaref2 libraries,
+ dnl we need to include the rsaref libraries in the crypto check
+ LIB_RSAREF=""
+ AC_CHECK_LIB(rsaref, RSAPublicEncrypt,
+ LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes,
+ cmu_have_rsaref=no)
+
AC_CHECK_LIB(crypto, RC4_set_key,
AC_CHECK_HEADER(openssl/rc4.h, [AC_DEFINE(WITH_SSL_RC4)
LIB_RC4="-lcrypto";
with_rc4="openssl"],
AC_WARN([SSL: Disabling rc4 support]);
with_rc4=no),
- AC_WARN([SSL2: Disabling rc4 support]); with_rc4=no)
+ AC_WARN([SSL2: Disabling rc4 support]); with_rc4=no, $LIB_RSAREF)
fi
-
LIBS="$cmu_save_LIBS"
fi