diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-08-19 16:51:38 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-08-19 16:51:38 +0000 |
commit | 8adc1d9acb001ea99937d2b8cbccb2fc4adf1ed2 (patch) | |
tree | 2d325350e2a5510a9075d207d69dc8b2f25c43d9 /configure.ac | |
parent | 97d88bc9bc34f0bf654281d32c3e0aab85fa0f4d (diff) | |
parent | 41bd58d41cd15a8ca8e4499b2abe945a4fe1667d (diff) | |
download | ayatana-indicator-messages-8adc1d9acb001ea99937d2b8cbccb2fc4adf1ed2.tar.gz ayatana-indicator-messages-8adc1d9acb001ea99937d2b8cbccb2fc4adf1ed2.tar.bz2 ayatana-indicator-messages-8adc1d9acb001ea99937d2b8cbccb2fc4adf1ed2.zip |
Merge in phablet branch.
Approved by PS Jenkins bot, Pete Woods.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 43 |
1 files changed, 19 insertions, 24 deletions
diff --git a/configure.ac b/configure.ac index 08ac680..e67b66a 100644 --- a/configure.ac +++ b/configure.ac @@ -61,6 +61,12 @@ GTK_DOC_CHECK([1.18], [--flavour no-tmpl]) GOBJECT_INTROSPECTION_CHECK([$INTROSPECTION_REQUIRED_VERSION]) +AC_ARG_WITH([indicator-dir], + [AS_HELP_STRING([--with-indicator-dir=DIR], [Indicator directory [default=$datadir/unity/indicators]])], + [], + [with_indicator_dir=$datadir/unity/indicators]) +AC_SUBST([INDICATOR_DIR], [$with_indicator_dir]) + ########################### # gcov coverage reporting ########################### @@ -100,33 +106,20 @@ fi AM_CONDITIONAL([BUILD_TESTS],[test "x$enable_tests" = "xyes"]) ########################### -# Check to see if we're local -########################### - -with_localinstall="no" -AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all of the files localy instead of system directories (for distcheck)]), with_localinstall=$enableval, with_localinstall=no) - -########################### -# Indicator Info +# Vala API Generation ########################### -if test "x$with_localinstall" = "xyes"; then - INDICATORDIR="${libdir}/indicators/2/" -else - INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator3-0.4` -fi -AC_SUBST(INDICATORDIR) +AC_ARG_ENABLE([vala], + AC_HELP_STRING([--disable-vala], [Disable vala]), + [enable_vala=$enableval], [enable_vala=yes]) -########################### -# DBus Service Info -########################### - -if test "x$with_localinstall" = "xyes"; then - DBUSSERVICEDIR="${datadir}/dbus-1/services/" -else - DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1` -fi -AC_SUBST(DBUSSERVICEDIR) +AS_IF([test "x$enable_vala" != "xno"],[ + AM_COND_IF([HAVE_INTROSPECTION],,[ + AC_MSG_ERROR([Vala bindings require introspection support, please --enable-introspection]) + ]) +AC_PATH_PROG([VALA_API_GEN], [vapigen]) +]) +AM_CONDITIONAL([HAVE_VALA], [test -n "$VALA_API_GEN"]) ############################## # Custom Junk @@ -162,6 +155,7 @@ AM_GLIB_GNU_GETTEXT AC_OUTPUT([ Makefile src/Makefile +common/Makefile data/Makefile data/icons/Makefile data/icons/16x16/Makefile @@ -202,5 +196,6 @@ Messaging Indicator Configuration: tests: $enable_tests gcov: $use_gcov introspecion: $enable_introspection + Vala bindings: $enable_vala documentation: $enable_gtk_doc ]) |