]> git.lyx.org Git - lyx.git/blobdiff - configure.ac
UserGuide.lyx, Tutorial.lyx: - document the new "copy as reference" feature - final...
[lyx.git] / configure.ac
index dee916e6886d1ecf379e9ef9d282653efccc568a..65052e8a6b7211a545f8a6d9ce5de34439628e55 100644 (file)
@@ -1,7 +1,8 @@
 dnl Process with autoconf to generate configure script   -*- sh -*-
 
 AC_INIT(LyX,2.0.0svn,[lyx-devel@lists.lyx.org],[lyx])
-AC_SUBST(LYX_DATE, ["Sat, Nov 15, 2008"])
+# Use ISO format only. The frontend needs to parse this
+AC_SUBST(LYX_DATE, ["2008-11-15"])
 AC_PREREQ(2.52)
 AC_CONFIG_SRCDIR(src/main.cpp)
 AC_CONFIG_HEADERS([config.h])
@@ -113,6 +114,25 @@ AC_CHECK_LIB(shlwapi, main, [LIBSHLWAPI=-lshlwapi])
 AC_SUBST(LIBSHLWAPI)
 AC_CHECK_LIB(gdi32, main)
 
+AC_ARG_WITH(mythes,
+  [  --without-mythes        do not use the MyThes library],
+  [lyx_use_mythes=$withval])
+if test x$lyx_use_mythes != xno; then
+AC_CHECK_LIB(mythes, main,
+       [AC_DEFINE(HAVE_LIBMYTHES,1,[Define this if you have the MyThes library])
+        MYTHES_LIBS="-lmythes"
+        lyx_flags="mythes $lyx_flags"
+       ])
+AC_CHECK_HEADER(mythes.hxx,[
+  ac_cv_header_mythes_h=yes
+  lyx_cv_mythes_h_location="<mythes.hxx>"])
+AC_CHECK_HEADER(mythes/mythes.hxx,[
+  ac_cv_header_mythes_h=yes
+  lyx_cv_mythes_h_location="<mythes/mythes.hxx>"])
+AC_DEFINE_UNQUOTED(MYTHES_H_LOCATION,$lyx_cv_mythes_h_location,[Location of mythes.hxx])
+fi
+AC_SUBST(MYTHES_LIBS)
+
 AC_ARG_WITH(aiksaurus,
   [  --without-aiksaurus     do not use the Aiksaurus library],
   [lyx_use_aiksaurus=$withval])