From:             [EMAIL PROTECTED]
Operating system: OpenBSD 2.9-current
PHP version:      4.0CVS-2001-08-06
PHP Bug Type:     *Configuration Issues
Bug description:  AC_CHECK_LIB on -curl fails if cURL is elsewhere than /usr or 
/usr/local


AC_CHECK_LIB in ext/curl/config.m4 fails if cURL is
installed elsewhere than /usr/local or /usr, regardless
of --with-curl=[directory] setting. The CHECK_LIB macro
provides an optional fourth argument which should in this
case be set to $CURL_LIBS to make sure the test linking
goes ok.

Patch at:

http://saitti.net/~heko/php/patches/patch-ext_curl_config_m4

Or, inline (let's hope it wraps ok):

Index: ext/curl/config.m4
===================================================================
RCS file: /repository/php4/ext/curl/config.m4,v
retrieving revision 1.7
diff -I'$Id' -u -b -B -p -r1.7 config.m4
--- ext/curl/config.m4  27 May 2001 18:52:33 -0000      1.7
+++ ext/curl/config.m4  6 Aug 2001 13:38:38 -0000
@@ -48,7 +48,7 @@ if test "$PHP_CURL" != "no"; then
     AC_DEFINE(HAVE_CURL,1,[ ])
   ],[
     AC_MSG_ERROR(There is something wrong. Please check config.log for
more information.)
-  ])
+  ], $CURL_LIBS)
 
   PHP_EXTENSION(curl, $ext_shared)
   PHP_SUBST(CURL_SHARED_LIBADD)

-- 
<---------------------------------------------------------------------->
          Heikki Korpela -- [EMAIL PROTECTED] -- http://iki.fi/heko/

-- 
Edit bug report at: http://bugs.php.net/?id=12597&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to