aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2012-07-11 21:19:21 +0200
committerSebastien Bacher <seb128@ubuntu.com>2012-07-11 21:19:21 +0200
commit63a49add5aeadd0214546f75da1223e5075ae4b4 (patch)
tree354c56392bed14f2567583cdd26ae1057eb2b4e7 /configure.ac
parentf48015750da9de138ac198e983f8d74a0830b658 (diff)
parentdfefc88e26e184b5ab485585b34a663456930746 (diff)
downloadlibayatana-appindicator-63a49add5aeadd0214546f75da1223e5075ae4b4.tar.gz
libayatana-appindicator-63a49add5aeadd0214546f75da1223e5075ae4b4.tar.bz2
libayatana-appindicator-63a49add5aeadd0214546f75da1223e5075ae4b4.zip
New upstream release.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac46
1 files changed, 34 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac
index bc42585..ee03390 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
AC_INIT([libappindicator],
- [0.4.92],
+ [12.10.0],
[http://bugs.launchpad.net/libappindicator],
[libappindicator],
[http://launchpad.net/libappindicator])
@@ -106,10 +106,11 @@ AM_CONDITIONAL(HAVE_VALAC, [test "x$VALAC" != "x"])
MONO_REQUIRED_VERSION=1.0
PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
+AM_CONDITIONAL(HAS_MONO, [test "x$has_mono" = "xtrue"])
AC_PATH_PROG(AL, al, no)
if test "x$AL" = "xno" ; then
- AC_MSG_ERROR([No al tool found. You need to install Mono.])
+ AC_MSG_NOTICE([No al tool found. You need to install Mono.])
fi
if test "x$has_mono" = "xtrue" ; then
@@ -126,12 +127,12 @@ if test "x$has_mono" = "xtrue" ; then
fi
if test "x$CSC" = "xno" ; then
- AC_MSG_ERROR([No Mono compiler found.])
+ AC_MSG_NOTICE([No Mono compiler found.])
fi
AC_PATH_PROG(GACUTIL, gacutil, no)
if test "x$GACUTIL" = "xno" ; then
- AC_MSG_ERROR([No gacutil tool found])
+ AC_MSG_NOTICE([No gacutil tool found])
fi
AC_SUBST(RUNTIME)
@@ -143,9 +144,9 @@ AC_SUBST(GENERATED_SOURCES)
GLIB_SHARP_REQ_VERSION=2.12.1
GTK_SHARP_REQ_VERSION=2.12
-PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION)
+PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION, has_gtksharp=true, has_gtksharp=false)
-PKG_CHECK_MODULES(GAPI, gapi-2.0 >= $GLIB_SHARP_REQ_VERSION)
+PKG_CHECK_MODULES(GAPI, gapi-2.0 >= $GLIB_SHARP_REQ_VERSION, has_gapi=true, has_gapi=false)
AC_PATH_PROG(GAPI_PARSER, gapi2-parser, no)
AC_SUBST(GAPI_PARSER)
AC_PATH_PROG(GAPI_CODEGEN, gapi2-codegen, no)
@@ -216,6 +217,19 @@ AC_ARG_ENABLE([tests],
AM_CONDITIONAL([WANT_TESTS], [test "x$enable_tests" != "xno"])
###########################
+# gcov coverage reporting
+###########################
+
+m4_include([m4/gcov.m4])
+AC_TDD_GCOV
+AM_CONDITIONAL([HAVE_GCOV], [test "x$ac_cv_check_gcov" = xyes])
+AM_CONDITIONAL([HAVE_LCOV], [test "x$ac_cv_check_lcov" = xyes])
+AM_CONDITIONAL([HAVE_GCOVR], [test "x$ac_cv_check_gcovr" = xyes])
+AC_SUBST(COVERAGE_CFLAGS)
+AC_SUBST(COVERAGE_CXXFLAGS)
+AC_SUBST(COVERAGE_LDFLAGS)
+
+###########################
# Files
###########################
@@ -225,12 +239,6 @@ src/Makefile
src/appindicator-0.1.pc
src/appindicator3-0.1.pc
bindings/Makefile
-bindings/mono/Makefile
-bindings/mono/appindicator-sharp.dll.config
-bindings/mono/appindicator-sharp-0.1.pc
-bindings/mono/app-indicator.sources.xml
-bindings/mono/examples/Makefile
-bindings/mono/examples/indicator-example
bindings/python/Makefile
bindings/python/appindicator.override
bindings/vala/Makefile
@@ -242,6 +250,18 @@ docs/reference/Makefile
docs/reference/version.xml
docs/reference/libappindicator-docs.sgml
])
+
+if test "x$has_mono" = "xtrue" ; then
+ AC_CONFIG_FILES([
+ bindings/mono/Makefile
+ bindings/mono/appindicator-sharp.dll.config
+ bindings/mono/appindicator-sharp-0.1.pc
+ bindings/mono/app-indicator.sources.xml
+ bindings/mono/examples/Makefile
+ bindings/mono/examples/indicator-example
+ ])
+fi
+
AC_OUTPUT
###########################
@@ -254,6 +274,8 @@ Libappindicator Configuration:
Prefix: $prefix
GTK+ Version: $with_gtk
+ Mono: $has_mono
Tests: $enable_tests
Mono tests: $have_nunit
+ gcov: $use_gcov
])