summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIago Toral <itoral@igalia.com>2010-01-29 15:15:44 +0100
committerJuan A. Suarez Romero <jasuarez@igalia.com>2010-02-09 00:27:36 +0100
commit13238b900e34ac8fb37a921a1047435e178faf27 (patch)
treef83ba0f6594b54341e37095dd3e3514ddb0f05b8
parent9201f88cdeb125863c816e87f8c9788760516eaa (diff)
Added configuration summary output report
-rwxr-xr-xautogen.sh1
-rw-r--r--configure.ac41
-rw-r--r--m4/media-store.m418
3 files changed, 60 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 101287a..4d25c0e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -5,6 +5,7 @@ srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
REQUIRED_AUTOMAKE_VERSION=1.8
+ACLOCAL_FLAGS="-I m4"
PKG_NAME="media-store"
(test -f $srcdir/configure.ac) || {
diff --git a/configure.ac b/configure.ac
index 1381341..ba29e9e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,10 @@ AC_HEADER_STDC
AM_MAINTAINER_MODE
+# ----------------------------------------------------------
+# ENVIRONMENT CONFIGURATION
+# ----------------------------------------------------------
+
CFLAGS="$CFLAGS -Wall -Werror -Wmissing-prototypes -Wmissing-declarations -std=c99"
# ----------------------------------------------------------
@@ -143,6 +147,11 @@ AC_ARG_ENABLE(fakemetadata,
[enable_fakemetadata=yes])
AM_CONDITIONAL([FAKEMETADATA_PLUGIN], [test "x$enable_fakemetadata" = "xyes"])
+MS_PLUGINS_ALL="$MS_PLUGINS_ALL fakemetadata"
+if test "x$enable_fakemetadata" = "xyes"
+then
+ MS_PLUGINS_ENABLED="$MS_PLUGINS_ENABLED fakemetadata"
+fi
# ----------------------------------------------------------
# BUILD FILE SYSTEM PLUGIN
@@ -154,6 +163,11 @@ AC_ARG_ENABLE(filesystem,
[enable_filesystem=yes])
AM_CONDITIONAL([FILESYSTEM_PLUGIN], [test "x$enable_filesystem" = "xyes"])
+MS_PLUGINS_ALL="$MS_PLUGINS_ALL filesystem"
+if test "x$enable_filesystem" = "xyes"
+then
+ MS_PLUGINS_ENABLED="$MS_PLUGINS_ENABLED filesystem"
+fi
# ----------------------------------------------------------
# BUILD JAMENDO PLUGIN
@@ -183,6 +197,11 @@ AC_ARG_ENABLE(jamendo,
])
AM_CONDITIONAL([JAMENDO_PLUGIN], [test "x$enable_jamendo" = "xyes"])
+MS_PLUGINS_ALL="$MS_PLUGINS_ALL jamendo"
+if test "x$enable_jamendo" = "xyes"
+then
+ MS_PLUGINS_ENABLED="$MS_PLUGINS_ENABLED jamendo"
+fi
# ----------------------------------------------------------
# BUILD LASTFM ALBUM ART PLUGIN
@@ -212,6 +231,11 @@ AC_ARG_ENABLE(lastfm_albumart,
])
AM_CONDITIONAL([LASTFM_ALBUMART_PLUGIN], [test "x$enable_lastfm_albumart" = "xyes"])
+MS_PLUGINS_ALL="$MS_PLUGINS_ALL lastfm-albumart"
+if test "x$enable_lastfm_albumart" = "xyes"
+then
+ MS_PLUGINS_ENABLED="$MS_PLUGINS_ENABLED lastfm-albumart"
+fi
# ----------------------------------------------------------
# BUILD UPNP PLUGIN
@@ -241,6 +265,11 @@ AC_ARG_ENABLE(upnp,
])
AM_CONDITIONAL([UPNP_PLUGIN], [test "x$enable_upnp" = "xyes"])
+MS_PLUGINS_ALL="$MS_PLUGINS_ALL upnp"
+if test "x$enable_upnp" = "xyes"
+then
+ MS_PLUGINS_ENABLED="$MS_PLUGINS_ENABLED upnp"
+fi
# ----------------------------------------------------------
# BUILD YOUTUBE PLUGIN
@@ -270,6 +299,11 @@ AC_ARG_ENABLE(youtube,
])
AM_CONDITIONAL([YOUTUBE_PLUGIN], [test "x$enable_youtube" = "xyes"])
+MS_PLUGINS_ALL="$MS_PLUGINS_ALL youtube"
+if test "x$enable_youtube" = "xyes"
+then
+ MS_PLUGINS_ENABLED="$MS_PLUGINS_ENABLED youtube"
+fi
# ----------------------------------------------------------
# BUILD FLICKR PLUGIN
@@ -302,6 +336,11 @@ AC_ARG_ENABLE(flickr,
])
AM_CONDITIONAL([FLICKR_PLUGIN], [test "x$enable_flickr" = "xyes"])
+MS_PLUGINS_ALL="$MS_PLUGINS_ALL flickr"
+if test "x$enable_flickr" = "xyes"
+then
+ MS_PLUGINS_ENABLED="$MS_PLUGINS_ENABLED flickr"
+fi
# ----------------------------------------------------------
# GETTEXT
@@ -422,3 +461,5 @@ AC_CONFIG_FILES([
])
AC_OUTPUT
+
+AG_MS_OUTPUT_PLUGINS
diff --git a/m4/media-store.m4 b/m4/media-store.m4
new file mode 100644
index 0000000..050a003
--- /dev/null
+++ b/m4/media-store.m4
@@ -0,0 +1,18 @@
+dnl Outputs configuration summary
+AC_DEFUN([AG_MS_OUTPUT_PLUGINS], [
+
+printf "\n"
+printf -- "----------------- Configuration summary -----------------\n\n"
+( for i in $MS_PLUGINS_ALL; do
+ case " $MS_PLUGINS_ENABLED " in
+ *\ $i\ *)
+ printf '\t'$i': yes\n'
+ ;;
+ *)
+ printf '\t'$i': no\n'
+ ;;
+ esac
+ done ) | sort
+printf -- "\n---------------------------------------------------------\n"
+printf "\n"
+])