1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/security/bjorb/files/patch-ac
Kris Kennaway c20fdcd69f USE_OPENSSL
Assisted by: Jim Bloom <bloom@acm.org>A
2000-02-06 21:38:29 +00:00

46 lines
1.0 KiB
Plaintext

--- configure.in.orig Sun Feb 21 20:40:47 1999
+++ configure.in Sun Dec 26 12:02:27 1999
@@ -16,6 +16,7 @@
prefix=$ac_default_prefix
fi
ssltop=$prefix/ssl
+ssllib=$prefix/ssl
dnl Checks for programs.
AC_PROG_AWK
@@ -86,6 +87,13 @@
AC_SUBST(ssltop)
+# with SSL lib
+AC_ARG_WITH(ssllib,
+[ --with-ssllib=DIR specifies directory to put SSL libbary.],
+ssllib=$with_ssllib)
+
+AC_SUBST(ssllib)
+
dnl Checks for libraries.
# shared option
@@ -100,12 +108,16 @@
# for USA_RESIDENT on FreeBSD
if test X$disable_ssl = X; then
- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$ssltop/lib"
+ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$ssllib"
export LD_LIBRARY_PATH
- AC_CHECK_LIB(RSAglue, ERR_load_RSAREF_strings,,,-lcrypto -lssl)
- AC_CHECK_LIB(rsaref, DES3_CBCInit)
- ssllibs="-lssl -lcrypto"
+ AC_MSG_CHECKING([for RSAref library])
+ saved_LIBS="-L$ssllib -lcrypto -lssl"
+ LIBS="$saved_LIBS -L${LOCALBASE}/lib -lRSAglue -lrsaref"
+ AC_TRY_LINK([], [],
+ [AC_MSG_RESULT(yes); ],
+ [AC_MSG_RESULT(no)]; LIBS="$saved_LIBS")
+ ssllibs="$LIBS"
fi
deflib()