dnl= ########################################################################## dnl= # abiword-plugins: autogen.sh header dnl= # this file is executed as a shell script dnl= dnl= # 1. abi_plugin_macro is the name of the main macro defined here: dnl= abi_plugin_macro="ABIPGN_LATEX" dnl= abi_plugin_macro_end="ABIPGN_LATEX_END" dnl= dnl= # 2. abi_plugin_files is the list of files that configure must generate: dnl= abi_plugin_files="GNUmakefile xp/GNUmakefile xsltml/GNUmakefile" dnl= dnl= # 3. abi_plugin_desc is a short description of the plugin dnl= abi_plugin_desc="" dnl= dnl= # 4. abi_plugin_enable - whether plugin should be enabled by default dnl= abi_plugin_enable="yes" dnl= dnl= return dnl= ########################################################################## AC_DEFUN([ABIPGN_LATEX],[ ABI_PLUGIN_REPORT([latex: okay]) libxslt_req='libxslt' # use libxslt if detected PKG_CHECK_EXISTS([ $libxslt_req ], [ abi_cv_libxslt="yes" ], [ abi_cv_libxslt="no" ]) if test "$abi_cv_libxslt" == "yes"; then PKG_CHECK_MODULES(LIBXSLT,[$libxslt_req]) LATEX_CFLAGS="$LATEX_CFLAGS "'${LIBXSLT_CFLAGS}'" -DHAVE_LIBXSLT" LATEX_LIBS="$LATEX_LIBS "'${LIBXSLT_LIBS}' ABI_PLUGIN_REPORT([latex: equation export enabled]) else ABI_PLUGIN_REPORT([latex: equation export disabled]) fi LATEX_CFLAGS="$LATEX_CFLAGS "'${PLUGIN_CFLAGS}' LATEX_LIBS="$LATEX_LIBS "'${PLUGIN_LIBS}' if test "$enable_latex_builtin" == "yes"; then LATEX_CFLAGS="$LATEX_CFLAGS -DABI_PLUGIN_BUILTIN" fi AC_SUBST([LATEX_CFLAGS]) AC_SUBST([LATEX_LIBS]) ]) AC_DEFUN([ABIPGN_LATEX_END],[ AM_CONDITIONAL(HAVE_LIBXSLT, test "x$abi_cv_libxslt" = "xyes") ])