]> granicus.if.org Git - php/commitdiff
Fixed bug #26461 (-lssl missing from LIBS)
authorfoobar <sniper@php.net>
Fri, 12 Dec 2003 05:19:30 +0000 (05:19 +0000)
committerfoobar <sniper@php.net>
Fri, 12 Dec 2003 05:19:30 +0000 (05:19 +0000)
acinclude.m4

index 29bd492f609e6d567b816d86e6f27f6809f3caff..19961397fcb8d1202a2ee01f169206f9af0002be 100644 (file)
@@ -1663,7 +1663,6 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
     old_LIBS=$LIBS
     LIBS="$LIBS -lcrypto"
     PHP_CHECK_LIBRARY(ssl, SSL_CTX_set_ssl_version, [
-      PHP_ADD_LIBRARY(ssl,,$1)
       found_openssl=yes
     ],[
       AC_MSG_ERROR([libssl not found!])
@@ -1671,6 +1670,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
       -L$OPENSSL_LIBDIR
     ])
     LIBS=$old_LIBS
+    PHP_ADD_LIBRARY(ssl,,$1)
   fi
 
   dnl For apache 1.3.x static build