aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m47
1 files changed, 2 insertions, 5 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index cff4d645c..5a760132e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -3052,12 +3052,9 @@ dnl Optionally PKG_CONFIG_LIBDIR may be given as $pcdir.
dnl
AC_DEFUN([CURL_CHECK_PKGCONFIG], [
-
- if test -z "$PKGCONFIG"; then
+ if test -n "$PKG_CONFIG"; then
PKGCONFIG="$PKG_CONFIG"
- fi
-
- if test -z "$PKGCONFIG"; then
+ else
AC_PATH_TOOL([PKGCONFIG], [pkg-config], [no],
[$PATH:/usr/bin:/usr/local/bin])
fi