From 3533786fe96e4e8d252e230822201f2037d05578 Mon Sep 17 00:00:00 2001 From: Benedikt Meurer Date: Sat, 24 Jul 2004 17:26:55 +0000 Subject: [PATCH] Extended XFCE_PANEL_PLUGIN macro to honor the new threaded panel. (Old svn revision: 326) --- m4/depends.m4 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/m4/depends.m4 b/m4/depends.m4 index 8022d61..e4b296e 100644 --- a/m4/depends.m4 +++ b/m4/depends.m4 @@ -40,6 +40,17 @@ AC_DEFUN([XFCE_PANEL_PLUGIN], [ BM_DEPEND([$1], [xfce4-panel-1.0], [$2]) + dnl Check if the panel is threaded + ac_CFLAGS=$$1_CFLAGS + AC_MSG_CHECKING([whether the panel is threaded]) + if $PKG_CONFIG --atleast-version=4.1.8 xfce4-panel-1.0; then + $1_CFLAGS="$ac_CFLAGS -DXFCE_PANEL_THREADED=1 -DXFCE_PANEL_LOCK\(\)=gdk_threads_enter\(\) -DXFCE_PANEL_UNLOCK\(\)=gdk_threads_leave\(\)" + AC_MSG_RESULT([yes]) + else + $1_CFLAGS="$ac_CFLAGS -DXFCE_PANEL_LOCK\(\)=do{}while\(0\) -DXFCE_PANEL_UNLOCK\(\)=do{}while\(0\)" + AC_MSG_RESULT([no]) + fi + dnl Check where to put the plugins to AC_ARG_WITH([pluginsdir], AC_HELP_STRING([--with-pluginsdir=DIR], [Install plugins dir DIR]),