* configure.ac: Add option `--enable-all'.
---
ChangeLog | 6 ++++++
configure.ac | 24 +++++++++++++++++++++++-
2 files changed, 29 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8e123a3..349cdab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2009-05-15 Roland Levillain <roland(a)lrde.epita.fr>
+ Add an ``Enable Everything'' switch to configure.
+
+ * configure.ac: Add option `--enable-all'.
+
+2009-05-15 Roland Levillain <roland(a)lrde.epita.fr>
+
* configure.ac: Reorder the list of Makefiles.
2009-05-14 Roland Levillain <roland(a)lrde.epita.fr>
diff --git a/configure.ac b/configure.ac
index a12d89e..ce31945 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,6 @@ AC_DEFINE_UNQUOTED([OLN_PACKAGE_STRING], ["$PACKAGE_STRING"],
AC_DEFINE_UNQUOTED([OLN_PACKAGE_VERSION], ["$PACKAGE_VERSION"],
[Package Version.])
-
## --------------------- ##
## C++ compiler set up. ##
## --------------------- ##
@@ -88,6 +87,29 @@ if test "$GXX" = yes && test -z
"$TESTS_CXXFLAGS_DEBUG"; then
fi
+## ------------------------------ ##
+## ``Enable Everything'' Switch. ##
+## ------------------------------ ##
+
+# Enable all bundled features (trimesh2, Swilena, apps, tools). This
+# option is useful to maintainers to ensure they do not break optional
+# parts while modifying the core of the project. If both
+# ``--enable-all'' is set and a given feature is disabled (say,
+# ``--disable-apps''), then the disable flag has priority.
+
+# FIXME: Due to with-swilena.m4's limitations, we have to explicitly
+# enable SWIG. Will be repaired when OLN_WITH_SWILENA is revamped.
+
+AC_ARG_ENABLE([all],
+ [AS_HELP_STRING([--enable-all],
+ [enable maintainer mode])],
+ [
+ enable_trimesh=yes
+ with_swig=yes
+ enable_swilena=yes
+ enable_apps=yes
+ enable_tools=yes
+ ])
## ------------------ ##
--
1.6.1.2
Show replies by date