summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--m4/libcurl.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/m4/libcurl.m4 b/m4/libcurl.m4
index 7d1dbd302..f6a631bc2 100644
--- a/m4/libcurl.m4
+++ b/m4/libcurl.m4
@@ -71,7 +71,11 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
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"])
+ if test -x "$withval/bin/curl-config" ; then
+ _libcurl_config="$withval/bin/curl-config"
+ else
+ _libcurl_config=
+ fi
else
AC_PATH_PROG([_libcurl_config],[curl-config])
fi