From 3d232ad4e8a72ace998806fe7216fd2d432f92c8 Mon Sep 17 00:00:00 2001 From: Benedikt Meurer Date: Wed, 28 Jul 2004 21:49:36 +0000 Subject: [PATCH] Fix BM_DEPEND_CHECK(). (Old svn revision: 328) --- m4/depends.m4 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/m4/depends.m4 b/m4/depends.m4 index ac86b43..fb46287 100644 --- a/m4/depends.m4 +++ b/m4/depends.m4 @@ -25,6 +25,7 @@ AC_HELP_STRING([--disable-$4], [Disable checking for $5]), AC_MSG_RESULT([yes]) BM_DEPEND([$1], [$2], [$3]) AC_DEFINE([HAVE_$1], [1], [Define if you have $2 >= $3]) + $1_FOUND="yes" else AC_MSG_RESULT([no]) fi @@ -61,3 +62,19 @@ AC_HELP_STRING([--with-pluginsdir=DIR], [Install plugins dir DIR]), AC_SUBST([$1_PLUGINSDIR]) AC_MSG_RESULT([$$1_PLUGINSDIR]) ]) + +dnl +dnl XFCE_MCS_PLUGIN(var, version) +dnl +dnl sets $var_CFLAGS, $var_LIBS and $var_PLUGINSDIR +dnl +AC_DEFUN([XFCE_MCS_PLUGIN], +[ + BM_DEPEND([$1], [xfce-mcs-manager], [$2]) + + dnl Check where to put the plugins to + AC_MSG_CHECKING([where to install MCS plugins]) + $1_PLUGINSDIR=`$PKG_CONFIG --variable=pluginsdir xfce-mcs-manager` + AC_SUBST([$1_PLUGINSDIR]) + AC_MSG_RESULT([$$1_PLUGINSDIR]) +])