diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index e853e3bf99..9c6505107e 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -511,9 +511,9 @@ AC_DEFUN(LYX_CXX_GLOBAL_CSTD,[ dnl Usage LYX_PATH_XPM: Checks for xpm library and header AC_DEFUN(LYX_PATH_XPM,[ ### Check for Xpm library -AC_CHECK_LIB(Xpm, XpmCreateBufferFromImage,LYX_LIBS="-lXpm $LYX_LIBS", - [LYX_LIB_ERROR(libXpm,Xpm)], $LYX_LIBS) - +AC_CHECK_LIB(Xpm, XpmCreateBufferFromImage,XPM_LIB="-lXpm", + [LYX_LIB_ERROR(libXpm,Xpm)], $XPM_LIB) +AC_SUBST(XPM_LIB) ### Check for Xpm headers lyx_cv_xpm_h_location="" AC_CHECK_HEADER(X11/xpm.h,[ @@ -562,10 +562,10 @@ fi]) dnl Usage LYX_PATH_XFORMS: Checks for xforms library and flags AC_DEFUN(LYX_PATH_XFORMS,[ ### Check for xforms library -AC_CHECK_LIB(forms, fl_initialize, LYX_LIBS="-lforms $LYX_LIBS", - [AC_CHECK_LIB(xforms, fl_initialize, LYX_LIBS="-lxforms $LYX_LIBS", - [LYX_LIB_ERROR(libforms or libxforms,xforms)], $LYX_LIBS)], $LYX_LIBS) - +AC_CHECK_LIB(forms, fl_initialize, XFORMS_LIB="-lforms", + [AC_CHECK_LIB(xforms, fl_initialize, XFORMS_LIB="-lxforms", + [LYX_LIB_ERROR(libforms or libxforms,xforms)], $XFORMS_LIB)], $XFORMS_LIB) +AC_SUBST(XFORMS_LIB) ### Check for xforms headers lyx_cv_forms_h_location="" AC_CHECK_HEADER(X11/forms.h,[ diff --git a/configure.in b/configure.in index fc2111a186..0957b85bcc 100644 --- a/configure.in +++ b/configure.in @@ -186,9 +186,17 @@ 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 - FRONTEND="xforms" - FRONTEND_GUILIB="xforms/*.lo" - FRONTEND_INCLUDES="-I\$(srcdir)/xforms";; + LYX_PATH_XPM + LYX_PATH_XFORMS + FRONTEND="xforms" + FRONTEND_GUILIB="xforms/*.lo" + FRONTEND_INCLUDES="-I\$(srcdir)/xforms" + FRONTEND_LIBS="@XPM_LIB@ @XFORMS_LIB@" + FRONTEND_INFO=`cat <