aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-conduit-check.m4
diff options
context:
space:
mode:
authornobody <nobody@localhost>1999-08-19 08:50:32 +0800
committernobody <nobody@localhost>1999-08-19 08:50:32 +0800
commit3d9dd8655f4588bc77951cf1bf4eb185e273d09a (patch)
treea091c4f0fe43944ba46a912ed3c879eb33ddcec3 /macros/gnome-conduit-check.m4
parent6f38fd46e6bed032688514ecc22d6a8d9634d817 (diff)
downloadgsoc2013-evolution-3d9dd8655f4588bc77951cf1bf4eb185e273d09a.tar.gz
gsoc2013-evolution-3d9dd8655f4588bc77951cf1bf4eb185e273d09a.tar.zst
gsoc2013-evolution-3d9dd8655f4588bc77951cf1bf4eb185e273d09a.zip
This commit was manufactured by cvs2svn to create tag 'GGV_0_50'.GGV_0_50
svn path=/tags/GGV_0_50/; revision=1124
Diffstat (limited to 'macros/gnome-conduit-check.m4')
-rw-r--r--macros/gnome-conduit-check.m450
1 files changed, 50 insertions, 0 deletions
diff --git a/macros/gnome-conduit-check.m4 b/macros/gnome-conduit-check.m4
new file mode 100644
index 0000000000..2cc3655cb5
--- /dev/null
+++ b/macros/gnome-conduit-check.m4
@@ -0,0 +1,50 @@
+dnl
+dnl GNOME_CONDUIT_HOOK (script-if-xml-found, failflag)
+dnl
+dnl If failflag is "failure", script aborts due to lack of XML
+dnl
+dnl Check for availability of the Pilot conduit framework
+dnl
+
+AC_DEFUN([CONDUIT_LIBS_CHECK], [
+ AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
+ if test "$GNOME_CONFIG" = no; then
+ if test x$2 = xfailure; then
+ AC_MSG_ERROR(Could not find gnome-config)
+ fi
+ fi
+
+ AC_MSG_CHECKING(for Palm conduit libs)
+ if gnome-config --libs conduit > /dev/null 2>&1; then
+ GNOME_CONDUIT_LIBS=`gnome-config --libs conduit`
+ GNOME_CONDUIT_INCLUDEDIR=`gnome-config --cflags conduit`
+ HAVE_GNOME_CONDUIT=yes
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ fi
+
+ AC_SUBST(HAVE_GNOME_CONDUIT)
+ AC_SUBST(GNOME_CONDUIT_LIBS)
+ AC_SUBST(GNOME_CONDUIT_INCLUDEDIR)
+])
+
+AC_DEFUN([GNOME_CONDUIT_HOOK], [
+ AC_ARG_ENABLE(conduits,
+ [ --disable-conduits disable Palm conduits ], [
+ if test x$enableval = xno; then
+ # do nothing
+ true
+ else
+ # try to find conduit libs. error if not found.
+ CONDUIT_LIBS_CHECK
+ if test x$HAVE_GNOME_CONDUIT = x; then
+ AC_MSG_ERROR(Palm conduit libraries not found)
+ fi
+ fi ], [
+ CONDUIT_LIBS_CHECK ])
+])
+
+AC_DEFUN([GNOME_CONDUIT_CHECK], [
+ GNOME_CONDUIT_HOOK([],failure)
+])