summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-03-15 10:04:54 +1100
committerDamien Miller <djm@mindrot.org>2000-03-15 10:04:54 +1100
commita1ad4802fff669b20c49cbd9b682460085b2d50a (patch)
treedcf620373df89d9cfaf81dc7b14c64a5b72b40b2
parent086b1717307dadd32cc60a2558c669399642802d (diff)
- Fix broken CFLAGS handling during search for OpenSSL. Fixes va_list
problems with gcc/Solaris.
-rw-r--r--ChangeLog4
-rw-r--r--configure.in32
2 files changed, 22 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 1aa939282..0fbe54738 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
120000315
2 - Fix broken CFLAGS handling during search for OpenSSL. Fixes va_list
3 problems with gcc/Solaris.
4
120000314 520000314
2 - Include macro for IN6_IS_ADDR_V4MAPPED. Report from 6 - Include macro for IN6_IS_ADDR_V4MAPPED. Report from
3 peter@frontierflying.com 7 peter@frontierflying.com
diff --git a/configure.in b/configure.in
index 8f1eb973b..c643d9e54 100644
--- a/configure.in
+++ b/configure.in
@@ -158,6 +158,7 @@ AC_ARG_WITH(ssl-dir,
158) 158)
159 159
160saved_LIBS="$LIBS" 160saved_LIBS="$LIBS"
161saved_LDFLAGS="$LDFLAGS"
161saved_CFLAGS="$CFLAGS" 162saved_CFLAGS="$CFLAGS"
162if test "x$prefix" != "xNONE" ; then 163if test "x$prefix" != "xNONE" ; then
163 tryssldir="$tryssldir $prefix" 164 tryssldir="$tryssldir $prefix"
@@ -165,19 +166,21 @@ fi
165AC_MSG_CHECKING([for OpenSSL/SSLeay directory]) 166AC_MSG_CHECKING([for OpenSSL/SSLeay directory])
166for ssldir in "" $tryssldir /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do 167for ssldir in "" $tryssldir /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do
167 if test ! -z "$ssldir" ; then 168 if test ! -z "$ssldir" ; then
168 LIBS="$saved_LIBS -L$ssldir/lib -L$ssldir -lcrypto" 169 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
169 CFLAGS="$CFLAGS -I$ssldir/include" 170 CFLAGS="$saved_CFLAGS -I$ssldir/include"
170 if test "x$need_dash_r" = "x1" ; then 171 if test ! -z "$need_dash_r" ; then
171 LIBS="$LIBS -R$ssldir/lib -L$ssldir" 172 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
172 fi 173 fi
173 else 174 else
174 LIBS="$saved_LIBS -lcrypto" 175 LDFLAGS="$saved_LDFLAGS"
175 fi 176 fi
176 177
177 for WANTS_RSAREF in "" 1 ; do 178 for WANTS_RSAREF in "" 1 ; do
178 179
179 if test ! -z "$WANTS_RSAREF" ; then 180 if test -z "$WANTS_RSAREF" ; then
180 LIBS="$LIBS -lRSAglue -lrsaref" 181 LIBS="$saved_LIBS -lcrypto"
182 else
183 LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
181 fi 184 fi
182 185
183 AC_TRY_RUN( 186 AC_TRY_RUN(
@@ -225,15 +228,16 @@ fi
225if test -z "$ssldir" ; then 228if test -z "$ssldir" ; then
226 ssldir="(system)" 229 ssldir="(system)"
227else 230else
228 CFLAGS="$CFLAGS -I$ssldir/include" 231 CFLAGS="$saved_CFLAGS -I$ssldir/include"
229 LDFLAGS="$LDFLAGS -L$ssldir/lib" 232 LDFLAGS="$saved_LDFLAGS -L$ssldir/lib -L$ssldir"
230 if test "x$need_dash_r" = "x1" ; then 233 if test ! -z "$need_dash_r" ; then
231 LDFLAGS="$LDFLAGS -R$ssldir" 234 LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
232 fi 235 fi
233fi 236fi
234LIBS="$saved_LIBS -lcrypto" 237if test -z "$WANTS_RSAREF" ; then
235if test ! -z "$WANTS_RSAREF" ; then 238 LIBS="$saved_LIBS -lcrypto"
236 LIBS="$LIBS -lRSAglue -lrsaref" 239else
240 LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref"
237fi 241fi
238AC_MSG_RESULT($ssldir) 242AC_MSG_RESULT($ssldir)
239 243