summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorEike Rathke <erack@apache.org>2011-08-28 14:46:31 +0000
committerEike Rathke <erack@apache.org>2011-08-28 14:46:31 +0000
commitcc756d24d3f34c4ac402ee88ed3e25e3934ec8bc (patch)
treeb5ca7212727b21e999c0a54352b69487da3d2702 /configure.in
parent1a5baf5ce78676385d35209eb311ed2a35cdf063 (diff)
make copylefts an option
Based on original work by Mathias Bauer <mbauer@apache.org>
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in51
1 files changed, 51 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 444ce8710fdc..fc1857f26c81 100644
--- a/configure.in
+++ b/configure.in
@@ -842,6 +842,9 @@ AC_ARG_ENABLE(verbose,
AC_ARG_ENABLE(dependency-tracking,
[ --disable-dependency-tracking Disables generation of dependency information.
],,)
+AC_ARG_ENABLE(copyleft,
+[ --enable-copyleft Whether to use copyleft components.
+],,)
BUILD_TYPE="OOo"
@@ -1227,6 +1230,45 @@ AC_SUBST(DISABLE_STRIP)
dnl ===================================================================
dnl Build options
dnl ===================================================================
+
+AC_MSG_CHECKING([whether to enable copyleft components])
+if test "$enable_copyleft" != "yes"; then
+
+ enable_mozilla="no"
+ enable_nss_module="no"
+ enable_gstreamer="no"
+ enable_epm="no"
+ with_myspell_dicts="no"
+ enable_neon="no"
+
+ DISABLE_HUNSPELL="TRUE"
+ DISABLE_HYPHEN="TRUE"
+ DISABLE_LIBWPD="TRUE"
+ DISABLE_SAXON="TRUE"
+ DISABLE_NEON="TRUE"
+ BUILD_EPM="NO"
+
+ AC_MSG_RESULT([yes])
+
+else
+
+ DISABLE_HUNSPELL=
+ DISABLE_HYPHEN=
+ DISABLE_LIBWPD=
+ DISABLE_SAXON=
+ DISABLE_NEON=
+
+ AC_MSG_RESULT([no])
+
+fi
+AC_SUBST(DISABLE_HUNSPELL)
+AC_SUBST(DISABLE_HYPHEN)
+AC_SUBST(DISABLE_LIBWPD)
+AC_SUBST(DISABLE_SAXON)
+AC_SUBST(DISABLE_NEON)
+AC_SUBST(BUILD_EPM)
+
+
AC_MSG_CHECKING([whether to enable native CUPS support])
if test "$test_cups" = "yes" -a \( "$enable_cups" = "yes" -o "$enable_cups" = "TRUE" \) ; then
ENABLE_CUPS="TRUE"
@@ -3622,6 +3664,7 @@ AC_SUBST(SYSTEM_EXPAT)
dnl ===================================================================
dnl Check for system libwpd
dnl ===================================================================
+if test -n "$enable_copyleft" -a "$enable_copyleft" != "no"; then
AC_MSG_CHECKING([which libwpd to use])
if test -n "$with_system_libwpd" -o -n "$with_system_libs" && \
test "$with_system_libwpd" != "no"; then
@@ -3636,6 +3679,7 @@ fi
AC_SUBST(SYSTEM_LIBWPD)
AC_SUBST(LIBWPD_CFLAGS)
AC_SUBST(LIBWPD_LIBS)
+fi
dnl ===================================================================
dnl Check for system cppunit
@@ -4093,6 +4137,7 @@ AC_SUBST(BSH_JAR)
dnl ===================================================================
dnl Check for system saxon
dnl ===================================================================
+if test -n "$enable_copyleft" -a "$enable_copyleft" != "no"; then
AC_MSG_CHECKING([which saxon to use])
if test -n "$with_system_saxon" -o -n "$with_system_libs" && \
test "$with_system_saxon" != "no" && test "$with_system_jars" != "no"; then
@@ -4196,6 +4241,7 @@ AC_SUBST(SAXON_JAR)
if test -n "$NEED_SAXON"; then
BUILD_TYPE="$BUILD_TYPE SAXON"
fi
+fi
dnl ===================================================================
dnl Check for system curl
@@ -5094,6 +5140,9 @@ AC_SUBST(REDLAND_LIBS)
dnl ===================================================================
dnl Check for system hunspell
dnl ===================================================================
+
+if test -n "$enable_copyleft" -a "$enable_copyleft" != "no"; then
+
AC_MSG_CHECKING([which libhunspell to use])
if test -n "$with_system_hunspell" -o -n "$with_system_libs" && \
test "$with_system_hunspell" != "no"; then
@@ -5184,6 +5233,8 @@ AC_SUBST(SYSTEM_MYTHES)
AC_SUBST(MYTHES_CFLAGS)
AC_SUBST(MYTHES_LIBS)
+fi
+
dnl ===================================================================
dnl Checking for lpsolve
dnl ===================================================================