|
|
|
@ -165,3 +165,25 @@ if test "x$kde_enable_inotify" = "xyes"; then
|
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
dnl Try to find if libmagic is installed and contains magic_getpath
|
|
|
|
|
dnl ------------------------------------------------------------------------
|
|
|
|
|
dnl
|
|
|
|
|
AC_MSG_CHECKING([for libmagic])
|
|
|
|
|
KDE_CHECK_LIB(magic, magic_load, kde_have_libmagic=yes, kde_have_libmagic=no)
|
|
|
|
|
if test $kde_have_libmagic = yes; then
|
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
|
AC_MSG_CHECKING([for libmagic - magic_getpath])
|
|
|
|
|
KDE_CHECK_LIB(magic, magic_getpath, kde_have_libmagic_getpath=yes, kde_have_libmagic_getpath=no)
|
|
|
|
|
if test $kde_have_libmagic_getpath = yes; then
|
|
|
|
|
AC_DEFINE_UNQUOTED(HAVE_LIBMAGIC_GETPATH, 1, [Defined if libmagic contain magic_getpath function])
|
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
|
else
|
|
|
|
|
libmagic_path=`file --version 2>&1 | sed -n "s/^magic file from //p"`
|
|
|
|
|
AC_DEFINE_UNQUOTED(LIBMAGIC_PATH, $libmagic_path, [Define default path for libmagic files])
|
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
|
fi
|
|
|
|
|