configure: use PKG_CHECK_MODULES to check fuse

fuse has fuse.pc file for pkg-config. this is more reliable.
This commit is contained in:
Koichiro IWAO 2015-03-18 02:40:15 +00:00
parent 9c2951fa6c
commit 67cad0d374

View File

@ -129,9 +129,8 @@ fi
# checking for fuse
if test "x$enable_fuse" = "xyes"
then
AC_CHECK_HEADER([fuse.h], [],
[AC_MSG_ERROR([please install libfuse-dev or fuse-devel])],
[#define _FILE_OFFSET_BITS 64])
PKG_CHECK_MODULES([FUSE], [fuse >= 2.6], [],
[AC_MSG_ERROR([please install libfuse-dev or fuse-devel])])
fi
# checking for opus