From c7ec45eddd11e05cf0b322f8c65b2069c0612074 Mon Sep 17 00:00:00 2001 From: szaka Date: Sat, 24 Nov 2007 19:58:21 +0000 Subject: [PATCH] stop 'configure' if pkg-config isn't installed (penpen, Szabolcs Szakacsits) --- configure.ac | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e9aa2014..f2552c2f 100644 --- a/configure.ac +++ b/configure.ac @@ -116,9 +116,15 @@ AC_SYS_LARGEFILE case "$target_os" in linux*|darwin*|netbsd*) - PKG_CHECK_MODULES(FUSE_MODULE, fuse >= 2.6.0, [ compile_fuse_module=true ], + if test -z "$PKG_CONFIG"; then + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + fi + if test "x$PKG_CONFIG" = "xno" ; then + AC_MSG_ERROR([pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/]) + fi + PKG_CHECK_MODULES(FUSE_MODULE, fuse >= 2.6.0,, [ - AC_MSG_ERROR([FUSE >= 2.6.0 was not found. Either it's not fully installed (e.g. fuse, fuse-utils, libfuse, libfuse2, libfuse-dev, etc packages) or files from an old version are still present. See FUSE at http://fuse.sf.net/]) + AC_MSG_ERROR([FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net]) ]);; freebsd*) AC_MSG_ERROR([Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs])