X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=configure.in;h=3e0788cc2dfd2290ea0d3d52d05f1f9b58a449cc;hb=cbc5f085ef03ebab38b9501acc3ec7aeca10e7d3;hp=ca57d22f02b4c422851c61ee126ea5994bfdb0b2;hpb=c8e280787c6b6d062baeb0b4ba2fe067345610c6;p=ashd.git diff --git a/configure.in b/configure.in index ca57d22..3e0788c 100644 --- a/configure.in +++ b/configure.in @@ -12,6 +12,13 @@ dnl AM_PROG_LIBTOOL AC_HEADER_STDC +HAS_MAGIC=yes +AC_CHECK_LIB(magic, magic_open, [:], [HAS_MAGIC=no]) +AC_CHECK_HEADER(magic.h, [], [HAS_MAGIC=no]) +if test "$HAS_MAGIC" = no; then + AC_MSG_ERROR([*** cannot find libmagic on this system]) +fi + AH_TEMPLATE(HAVE_XATTR, [define to compile support for filesystem extended attributes]) AC_ARG_WITH(xattr, [ --with-xattr Enable XATTR support]) HAS_XATTR=""