From 80b4f108df2c059894bc899b56fef07fec2cf7a4 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Thu, 3 Jan 2013 01:21:20 +0100 Subject: [PATCH] Add a separate configure option for classic mode datafiles Ubuntu wants to install classic mode files but still tweak the set of built extensions. https://bugzilla.gnome.org/show_bug.cgi?id=690799 --- configure.ac | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index c72572ac..8dd8fdd1 100644 --- a/configure.ac +++ b/configure.ac @@ -39,15 +39,24 @@ AC_ARG_ENABLE([extensions], [], [enable_extensions=$DEFAULT_EXTENSIONS] ) -AM_CONDITIONAL([CLASSIC_MODE], [test x"$enable_extensions" = xclassic-mode -o x"$enable_extensions" = xall]) if test x"$enable_extensions" = xall; then enable_extensions="$ALL_EXTENSIONS" -fi -if test x"$enable_extensions" = xclassic-mode; then + enable_classic_mode_default=yes +elif test x"$enable_extensions" = xclassic-mode; then enable_extensions="$CLASSIC_EXTENSIONS" + enable_classic_mode_default=yes +else + enable_classic_mode_default=no fi +AC_ARG_ENABLE([classic-mode], + [AS_HELP_STRING([--enable-classic-mode],[Enable installing data files for classic mode. + Defaults to yes if enabling all or classic-mode extensions, and no otherwise.])], + [], + [enable_classic_mode=$enable_classic_mode_default]) +AM_CONDITIONAL([CLASSIC_MODE], [test x"$enable_classic_mode" != xno]) + ENABLED_EXTENSIONS= for e in $enable_extensions; do case $e in