AC_INIT(src/htparser.c)
-AM_INIT_AUTOMAKE([ashd], [0.1])
+AM_INIT_AUTOMAKE([ashd], [0.3])
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
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=""
AC_OUTPUT([
Makefile
src/Makefile
+src/dirplex/Makefile
lib/Makefile
+doc/Makefile
])