Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd73543
)
build: Assert libmagic presence.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 23 Sep 2010 00:41:59 +0000
(
02:41
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 23 Sep 2010 00:41:59 +0000
(
02:41
+0200)
configure.in
patch
|
blob
|
blame
|
history
diff --git
a/configure.in
b/configure.in
index
ca57d22
..
3e0788c
100644
(file)
--- 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=""