Bug #12597: AC_CHECK_LIB on -curl fails if cURL is elsewhere than /usr or /usr/local

From: Date: Mon, 06 Aug 2001 13:58:09 +0000
Subject: Bug #12597: AC_CHECK_LIB on -curl fails if cURL is elsewhere than /usr or /usr/local
Groups: php.dev 
Request: Send a blank email to php-dev+get-62256@lists.php.net to get a copy of this message
From:             heko@iki.fi
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 -- heko@iki.fi -- http://iki.fi/heko/

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



Thread (2 messages)

« previous php.dev (#62256) next »