summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2022-08-05 16:24:51 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2022-08-05 16:24:51 +0200
commit3c4e4bb7264afeab0704df287343d4c77ca8f8a1 (patch)
treeacacbb61cd2ad2b976f39ade79a59486cee4d26d
parente986d09cf531e77a9ab46af2d1a219072f310190 (diff)
downloadlibxml2-3c4e4bb7264afeab0704df287343d4c77ca8f8a1.tar.gz
Fix build with older pkg-config versions
The PKG_CHECK_VAR macro was introduced in pkg-config 0.28. Guard the invocation with m4_ifdef. Fixes #374.
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b4564d71..1a684642 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1226,7 +1226,8 @@ else
[have_libicu=no])
if test "x$have_libicu" = "xyes"; then
- PKG_CHECK_VAR([ICU_DEFS], [icu-i18n], [DEFS])
+ m4_ifdef([PKG_CHECK_VAR],
+ [PKG_CHECK_VAR([ICU_DEFS], [icu-i18n], [DEFS])])
if test "x$ICU_DEFS" != "x"; then
CPPFLAGS="$CPPFLAGS $ICU_DEFS"
fi