From 6a0a141ce38778aa7790a37c8382faeabb0f97ae Mon Sep 17 00:00:00 2001 From: Jia Yuan Lo Date: Sat, 2 May 2020 16:12:03 +0800 Subject: [PATCH] Prefer curl-config from --with-libcurl If "--with-libcurl" is passed, prefer using "curl-config" from directory instead of system provided --- m4/libcurl.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/m4/libcurl.m4 b/m4/libcurl.m4 index f7a6940bf0..6e1010ef03 100644 --- a/m4/libcurl.m4 +++ b/m4/libcurl.m4 @@ -67,6 +67,7 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG], if test -d "$_libcurl_with" ; then CPPFLAGS="${CPPFLAGS} -I$withval/include" LDFLAGS="${LDFLAGS} -L$withval/lib" + PATH="$withval/bin:${PATH}" fi AC_PATH_PROG([_libcurl_config],[curl-config])