Browse Source

Detect and link against libmagic

master
Damien Goutte-Gattat 11 years ago
parent
commit
49666c1598
  1. 6
      configure.ac

6
configure.ac

@ -24,6 +24,12 @@ AM_PATH_GPGME([],
LIBS="$LIBS $GPGME_LIBS"],
[AC_MSG_ERROR([libgpgme not found])])
dnl Check for libmagic
AC_CHECK_HEADERS([magic.h], [],
[AC_MSG_ERROR([magic.h header not found])])
AC_SEARCH_LIBS([magic_open], [magic], [],
[AC_MSG_ERROR([libmagic not found])])
dnl Output files
AC_CONFIG_FILES([Makefile lib/Makefile src/Makefile])
AC_OUTPUT

Loading…
Cancel
Save