-dnl Gnumeric and OpenDocument (read) support requires libxml2 and zlib.
-if test $HAVE_LIBXML2 = yes; then
- GNM_READ_SUPPORT=yes
- ODF_READ_SUPPORT=yes
- AC_DEFINE(
- [GNM_READ_SUPPORT], [1],
- [Define to 1 if building in support for reading Gnumeric files.])
- AC_DEFINE(
- [ODF_READ_SUPPORT], [1],
- [Define to 1 if building in support for reading OpenDocument files.])
-else
- GNM_READ_SUPPORT=no
- ODF_READ_SUPPORT=no
-fi
-AC_SUBST([GNM_READ_SUPPORT])
-AC_SUBST([ODF_READ_SUPPORT])
-
-dnl ODF support requires libxml2 (zlib is optional).
-if test $HAVE_LIBXML2 = yes; then
- AC_DEFINE(
- [ODF_WRITE_SUPPORT], [1],
- [Define to 1 if building in support for writing OpenDocument files.])
-fi
-AM_CONDITIONAL([ODF_WRITE_SUPPORT], [test $HAVE_LIBXML2 = yes])
-
-AC_ARG_WITH(
- gui_tools,
- [AS_HELP_STRING([--with-gui-tools], [build the gui developer tools. For DEVELOPERS only! There is no reason why users will need this flag.])])
-if test x"$with_gui_tools" = x"yes" ; then
- PKG_CHECK_MODULES(GLADE_UI, gladeui-2.0)
-fi
-AM_CONDITIONAL(WITH_GUI_TOOLS, test x"$with_gui_tools" = x"yes")
-
-AC_ARG_WITH(
- [perl-module],
- [AS_HELP_STRING([--without-perl-module], [do not build the Perl module])],
- [case $with_perl_module in # (
- yes|no) ;; # (
- *) AC_MSG_FAILURE([--with-perl-module argument must be 'yes' or 'no']) ;;
- esac
- WITH_PERL_MODULE=$with_perl_module],
- [if test x"$cross_compiling" != x"yes"; then
- WITH_PERL_MODULE=yes
- else
- WITH_PERL_MODULE=no
- fi])
-AC_SUBST([WITH_PERL_MODULE])
-AM_CONDITIONAL(WITH_PERL_MODULE, test $WITH_PERL_MODULE = yes)