path: root/
diff options
authorZhao Lei <>2016-05-13 11:44:52 +0800
committerDavid Sterba <>2016-06-01 14:56:56 +0200
commitf34d10bbe92b52c87a82bd978a15df1532745f9f (patch)
treec3f08d777e5fe02f95a25728241ebb175eba995c /
parent4bf9da999e6118f13b57451b07ff9a1e5c780496 (diff)
btrfs-progs: autogen: Make build success in CentOS 6 and 7
btrfs-progs build failed in CentOS 6 and 7: #./ ... error: possibly undefined macro: PKG_CHECK_VAR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. ... Seems PKG_CHECK_VAR is new in pkgconfig 0.28 (24-Jan-2013): And the max available version for CentOS 7 in yum-repo and is: pkgconfig-0.27.1-4.el7 I updated my pkgconfig to 0.30, but still failed at above error. (Maybe it is my setting problem) To make user in centos 6 and 7 building btrfs-progs without more changes, we can avoid using PKG_CHECK_VAR in following way found in: Signed-off-by: Zhao Lei <> Signed-off-by: David Sterba <>
Diffstat (limited to '')
1 files changed, 2 insertions, 1 deletions
diff --git a/ b/
index 68a37012..6b68c090 100644
--- a/
+++ b/
@@ -124,7 +124,8 @@ PKG_STATIC(UUID_LIBS_STATIC, [uuid])
-PKG_CHECK_VAR([UDEVDIR], [udev], [udevdir])
+UDEVDIR="$(pkg-config udev --variable=udevdir)"
dnl lzo library does not provide pkg-config, let use classic way
AC_CHECK_LIB([lzo2], [lzo_version], [