From: foobar Date: Sun, 11 Mar 2001 00:49:16 +0000 (+0000) Subject: If AC_CHECK_LIB fails, assume that --with-openssl is needed X-Git-Tag: php-4.0.5RC1~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=499b63a354762f3cdd34b4baf03048f0fb9d6e43;p=php If AC_CHECK_LIB fails, assume that --with-openssl is needed --- diff --git a/ext/curl/config.m4 b/ext/curl/config.m4 index 4ec6fcef34..aa91c673b8 100644 --- a/ext/curl/config.m4 +++ b/ext/curl/config.m4 @@ -28,7 +28,12 @@ if test "$PHP_CURL" != "no"; then PHP_SUBST(CURL_SHARED_LIBADD) AC_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/lib, CURL_SHARED_LIBADD) - AC_DEFINE(HAVE_CURL,1,[ ]) + AC_CHECK_LIB(curl,curl_easy_perform, + [ + AC_DEFINE(HAVE_CURL,1,[ ]) + ],[ + AC_MSG_ERROR(Try adding --with-openssl[=DIR] into your configure line.) + ]) PHP_EXTENSION(curl, $ext_shared) fi