libcurl.m4: AC_PATH_PROG fixes
authorDan Locks <dwlocks@cs.uchicago.edu>
Thu, 7 Oct 2010 16:05:36 +0000 (18:05 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Oct 2010 16:05:36 +0000 (18:05 +0200)
The invocation of autoconf's AC_PATH_PROG( ) is not quite right for
finding curl-config. This fix corrects the negative case (where
curl-config is not found).

docs/libcurl/libcurl.m4

index c83658d..952b79f 100644 (file)
@@ -75,10 +75,10 @@ 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],[curl-config],["$withval/bin"],
+        AC_PATH_PROG([_libcurl_config],[curl-config],[],
                      ["$withval/bin"])
      else
-        AC_PATH_PROG([_libcurl_config],[curl-config])
+        AC_PATH_PROG([_libcurl_config],[curl-config],[],[$PATH])
      fi
 
      if test x$_libcurl_config != "x" ; then