aboutsummaryrefslogtreecommitdiffstats
path: root/macros
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-09-08 04:04:40 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-09-08 04:04:40 +0800
commit92c122de800bcd06f2a1207a1baf8ee65d55906a (patch)
treeebfa66fe71ac91c061cf08ab5ef9ad590ba52fdf /macros
parenta16706067d74cf68c0610accb9c611289ff7070e (diff)
downloadgsoc2013-evolution-92c122de800bcd06f2a1207a1baf8ee65d55906a.tar.gz
gsoc2013-evolution-92c122de800bcd06f2a1207a1baf8ee65d55906a.tar.zst
gsoc2013-evolution-92c122de800bcd06f2a1207a1baf8ee65d55906a.zip
New check macro for ORBit -mig
svn path=/trunk/; revision=366
Diffstat (limited to 'macros')
-rw-r--r--macros/gnome-orbit-check.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/macros/gnome-orbit-check.m4 b/macros/gnome-orbit-check.m4
new file mode 100644
index 0000000000..d26b39bc3a
--- /dev/null
+++ b/macros/gnome-orbit-check.m4
@@ -0,0 +1,21 @@
+dnl
+dnl GNOME_ORBIT_HOOK (script-if-orbit-found, failflat)
+dnl
+dnl if failflag is "failure" it aborts if orbit is not found.
+dnl
+
+AC_DEFUN([GNOME_ORBIT_HOOK],[
+ AC_PATH_PROG(ORBIT_CONFIG,orbit-config,no)
+ if test x$ORBIT_CONFIG = xno; then
+ if test x$2 = failure; then
+ AC_MSG_ERROR(Could not find orbit-config)
+ fi
+ else
+ $1
+ AC_DEFINE(HAVE_ORBIT)
+ fi
+])
+
+AC_DEFUN([GNOME_ORBIT_CHECK], [
+ GNOME_ORBIT_HOOK([],failure)
+])