aboutsummaryrefslogtreecommitdiffstats
path: root/macros
diff options
context:
space:
mode:
authorMartin Baulig <baulig@suse.de>2000-06-13 23:09:48 +0800
committerMartin Baulig <martin@src.gnome.org>2000-06-13 23:09:48 +0800
commiteaa86c334aa83a35019bc3447d43575ea4662170 (patch)
tree93301126122ccd16d678f4b14bf44595041b044d /macros
parent6b9eb3dbe7fb37acb324d8fe6c03daf3382d8317 (diff)
downloadgsoc2013-evolution-eaa86c334aa83a35019bc3447d43575ea4662170.tar
gsoc2013-evolution-eaa86c334aa83a35019bc3447d43575ea4662170.tar.gz
gsoc2013-evolution-eaa86c334aa83a35019bc3447d43575ea4662170.tar.bz2
gsoc2013-evolution-eaa86c334aa83a35019bc3447d43575ea4662170.tar.lz
gsoc2013-evolution-eaa86c334aa83a35019bc3447d43575ea4662170.tar.xz
gsoc2013-evolution-eaa86c334aa83a35019bc3447d43575ea4662170.tar.zst
gsoc2013-evolution-eaa86c334aa83a35019bc3447d43575ea4662170.zip
New macro. Checks whether Bonobo uses OAF and defines `BONOBO_USES_OAF' if
2000-06-13 Martin Baulig <baulig@suse.de> * gnome-bonobo-check.am (AM_BONOBO_USES_OAF): New macro. Checks whether Bonobo uses OAF and defines `BONOBO_USES_OAF' if appropriate. Also provides `BONOBO_USES_OAF' automake conditional. svn path=/trunk/; revision=3553
Diffstat (limited to 'macros')
-rw-r--r--macros/ChangeLog7
-rw-r--r--macros/gnome-bonobo-check.m416
2 files changed, 23 insertions, 0 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index 3336d6c2a5..ac39413dfb 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -1,5 +1,12 @@
2000-06-13 Martin Baulig <baulig@suse.de>
+ * gnome-bonobo-check.am (AM_BONOBO_USES_OAF): New macro.
+ Checks whether Bonobo uses OAF and defines `BONOBO_USES_OAF'
+ if appropriate. Also provides `BONOBO_USES_OAF' automake
+ conditional.
+
+2000-06-13 Martin Baulig <baulig@suse.de>
+
* Makefile.am (EXTRA_DIST): Added `gnome-gettext.m4'.
(gnome_aclocal_DATA): Added `gnome-gettext.m4'.
diff --git a/macros/gnome-bonobo-check.m4 b/macros/gnome-bonobo-check.m4
index 7eb2b2653d..95949cc2db 100644
--- a/macros/gnome-bonobo-check.m4
+++ b/macros/gnome-bonobo-check.m4
@@ -148,3 +148,19 @@ AC_DEFUN([BONOBO_CHECK], [
AM_PATH_BONOBO(0.1.0,,[AC_MSG_ERROR(BONOBO not found)])
])
+AC_DEFUN([AM_BONOBO_USES_OAF],
+[
+ AC_REQUIRE([AM_PATH_BONOBO])
+
+ AC_MSG_CHECKING(if Bonobo uses OAF)
+ if ( gnome-config --libs bonobo | grep oaf ) > /dev/null 2>&1 ; then
+ using_oaf="yes"
+ AC_DEFINE(BONOBO_USES_OAF)
+ else
+ using_oaf="no"
+ fi
+
+ AC_MSG_RESULT("$using_oaf")
+
+ AM_CONDITIONAL(BONOBO_USES_OAF, test x"using_oaf" = "xyes")
+])