1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-20 12:10:31 -04:00
ports/www/libwww/files/patch-configure
Danilo G. Baio a3a9287337 www/libwww: Fix build with OpenSSL 1.1.x
PR:		228943
Submitted by:	Nathan <ndowens@yahoo.com> (based on)
Reported by:	brnrd
Obtained from:	NetBSD pkgsrc
2018-10-13 19:37:00 +00:00

27 lines
696 B
Text

--- configure.orig 2017-06-24 06:11:34 UTC
+++ configure
@@ -15439,7 +15439,7 @@ if test "x$ac_cv_func_remove" = xyes; then :
fi
- if test "$ac_cv_func_remove" == yes ; then
+ if test "$ac_cv_func_remove" = yes ; then
$as_echo "#define unlink remove" >>confdefs.h
@@ -16416,10 +16416,14 @@ $as_echo "no" >&6; }
if test "x$withval" = "xyes"; then
withval=$ssllib
SSLINC=$sslinc
+ LIBS="$LIBS $withval"
+ else
+ SSLINC="-I$withval/include/openssl"
+ LIBS="$LIBS -L$withval/lib -lssl -lcrypto"
fi
- LIBS="$LIBS $withval"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+#include <openssl/ssl.h>
int
main ()