[Nut-upsdev] patch for m4/nut_check_libssl.m4
Tim Rice
tim at multitalents.net
Tue Dec 15 01:39:12 UTC 2009
The SSL test in nut-2.4.1 does not allow for OpenSSL being installed
in alternate locations. Ie. /usr/sfw on Solaris 10.
A developer would normally expect this to work.
CPPFLAGS=-I/opt/include -I/usr/sfw/include \
LDFLAGS=-L/opt/lib -L/usr/sfw/lib -R/usr/sfw/lib \
/opt/src/utils/nut-2.4.1/configure \
--prefix=/some/path
This patch fixes this.
-------------------------
#
# m4/nut_check_libssl.m4
# user may have set CPPFLAGS and LDFLAGS to find OpenSSL
#
--- nut-2.4.1/m4/nut_check_libssl.m4.old 2009-02-17 01:20:40.000000000 -0800
+++ nut-2.4.1/m4/nut_check_libssl.m4 2009-12-14 17:18:10.999844000 -0800
@@ -15,7 +15,7 @@
LDFLAGS_ORIG="${LDFLAGS}"
CFLAGS=""
- LDFLAGS="-lssl -lcrypto"
+ LDFLAGS="${LDFLAGS} -lssl -lcrypto"
AC_TRY_LINK([#include <openssl/ssl.h>], [SSL_library_init()],
nut_have_libssl=yes,
-------------------------
--
Tim Rice Multitalents (707) 887-1469
tim at multitalents.net
More information about the Nut-upsdev
mailing list