Bugs item #1662003, was opened at 2007-02-16 15:06
Message generated for change (Comment added) made by vectro
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1662003&group_id=976
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compile or build problem
Group: portability problem
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ian Turner (vectro)
Assigned to: Daniel Stenberg (bagder)
Summary: --with-libcurl doesn't work right
Initial Comment:
The sample autoconf macro distributed as docs/libcurl/libcurl.m4 doesn't properly search for check-config when the --with-libcurl commandline is used.
The problem is that AC_PATH_PROG already appends the path, which you should override with the third argument (not the second).
This patch should do the job:
--- broken/libcurl.m4
+++ fixed/libcurl.m4
@@ -1166,7 +1166,7 @@
if test -d "$_libcurl_with" ; then
LIBCURL_CPPFLAGS="-I$withval/include"
_libcurl_ldflags="-L$withval/lib"
- AC_PATH_PROG([_libcurl_config],["$withval/bin/curl-config"])
+ AC_PATH_PROG([_libcurl_config],[curl-config],["$withval/bin"])
else
AC_PATH_PROG([_libcurl_config],[curl-config])
fi
----------------------------------------------------------------------
>Comment By: Ian Turner (vectro)
Date: 2007-02-16 15:21
Message:
Logged In: YES
user_id=4941
Originator: YES
Oops, I got it wrong. The following patch is preferred:
--- broken/libcurl.m4
+++ fixed/libcurl.m4
@@ -1166,7 +1166,7 @@
if test -d "$_libcurl_with" ; then
LIBCURL_CPPFLAGS="-I$withval/include"
_libcurl_ldflags="-L$withval/lib"
- AC_PATH_PROG([_libcurl_config],["$withval/bin/curl-config"])
+
AC_PATH_PROG([_libcurl_config],[curl-config],["$withval/bin"],["$withval/bin"])
else
AC_PATH_PROG([_libcurl_config],[curl-config])
fi
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1662003&group_id=976
Received on 2007-02-17