X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=configure.in;h=43864ca504e4c7f6f1aa2c2508be8e2da5c936a1;hb=61fc3710932a0ef5f93a0fbefa6c1cfd43654702;hp=e2206cfc070fe50b6d9fc28d36d242cac11853f4;hpb=9ed3420ea10e9e4e82b137d66dc4755be17619a9;p=lyx.git diff --git a/configure.in b/configure.in index e2206cfc07..43864ca504 100644 --- a/configure.in +++ b/configure.in @@ -98,9 +98,6 @@ if test "x$enable_assertions" = xyes ; then [Define if you want assertions to be enabled in the code]) fi -### We need a regex implementation, so we provide our own if none is found. -LYX_REGEX - ### Library Files dnl by testing these we check if it is ok to have dnl -lc and -lm as args to the compiler @@ -123,16 +120,6 @@ LYX_LOOP_DIR($lyx_cv_extra_prefix,[ LYX_ADD_INC_DIR(CPPFLAGS,$dir/include) LYX_ADD_LIB_DIR(LDFLAGS,$dir/lib)]) -### Check for the -liberty library -test "x$GXX" = xyes && lyx_use_liberty=yes -AC_ARG_WITH(liberty, - [ --without-liberty do not try to link against libiberty.a], - [lyx_use_liberty=$withval]) -if test x$lyx_use_liberty = xyes; then - # AC_CHECK_LIB(iberty,main,LIBS="-liberty $LIBS") - AC_CHECK_LIB(iberty,main) -fi - AC_ARG_WITH(aiksaurus, [ --without-aiksaurus do not use the Aiksaurus library], [lyx_use_aiksaurus=$withval]) @@ -143,7 +130,7 @@ AC_CHECK_LIB(Aiksaurus, main, ],,"-lbz2") fi AC_SUBST(AIKSAURUS_LIBS) - + ### Setup libtool AC_DISABLE_SHARED AC_LIBTOOL_WIN32_DLL @@ -171,27 +158,33 @@ CPPFLAGS="$CPPFLAGS $X_CFLAGS" AC_CHECK_FUNCS(XOpenIM) ### check which frontend we want to use +# We have to check for xforms anyway +LYX_PATH_XPM +LYX_PATH_XFORMS + #LYX_USE_FRONTEND dnl The code below is not in a macro, because this would cause big dnl problems with the AC_REQUIRE contained in KDE_DO_IT_ALL. case "$lyx_use_frontend" in xforms) # for now don't set it for xforms as this is always entered - LYX_PATH_XPM - LYX_PATH_XFORMS FRONTEND="xforms" - FRONTEND_GUILIB="xforms/*.lo" + FRONTEND_GUILIB="xforms/*.lo xforms/forms/*.lo" FRONTEND_INCLUDES="-I\$(srcdir)/xforms" - FRONTEND_LIBS="@XFORMS_IMAGE_LIB@ @XFORMS_LIB@ @XPM_LIB@" + case "$host" in + *cygwin) + FRONTEND_LIBS="@XFORMS_LIB@ @XFORMS_IMAGE_LIB@ @XPM_LIB@" + ;; + *) + FRONTEND_LIBS="@XFORMS_IMAGE_LIB@ @XFORMS_LIB@ @XPM_LIB@" + ;; + esac FRONTEND_INFO=`cat <