[AC_CHECK_LIB(z, gzopen, [LIBS="$LIBS -lz"], LYX_LIB_ERROR(libz,zlib))],
[LYX_LIB_ERROR(zlib.h,zlib)])
+### check for file magic support (currently optional)
+AC_CHECK_HEADERS(magic.h,
+ [AC_CHECK_LIB(magic, magic_open, [LIBS="$LIBS -lmagic"],
+ LYX_WARNING([Cannot find limagic. Please check that the libmagic library
+ is correctly installed on your system.
+ Falling back to builtin file format detection.]))],
+ [LYX_WARNING([Cannot find magic.h. Please check that the libmagic library
+ is correctly installed on your system.
+ Falling back to builtin file format detection.])])
+
### check which frontend we want to use
FRONTEND_INFO="${FRONTEND_INFO}\
Qt 4 Frontend:\n\
Qt 4 version:\t\t${QT4_VERSION}\n"
-dnl qt 4 build will fail without moc or uic
+dnl qt 4 build will fail without moc, uic, or bc
if test -z "$MOC4"; then
LYX_ERROR([moc 4 binary not found !])
fi
if test -z "$QT4_LIB"; then
LYX_ERROR([qt 4 library not found !])
fi
+ if test "$bc_found" = "no"; then
+ LYX_ERROR([bc binary not found !])
+ fi
;;
*)
LYX_ERROR(Unknown frontend '$frontend');;
development/cygwin/lyxrc.dist \
development/lyx.spec \
intl/Makefile \
+ lib/lyx.desktop-temp:lib/lyx.desktop.in
lib/Makefile \
lib/doc/Makefile \
lib/lyx2lyx/lyx2lyx_version.py \