From 763a14223fdabd8060603d858138a3ba33a7a8b6 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 30 Apr 2013 22:02:24 +0200 Subject: Added configure check for Xlib. --- configure.in | 5 +++++ plugingui/Makefile.am.plugingui | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index f3b32bf..9dd92cf 100644 --- a/configure.in +++ b/configure.in @@ -37,6 +37,11 @@ if test "x$enable_lv2" = "xyes"; then dnl Check for lv2core dnl ====================== PKG_CHECK_MODULES(LV2, lv2 >= 1.0) + + dnl ====================== + dnl Check for Xlib + dnl ====================== + PKG_CHECK_MODULES(X11, x11 >= 1.0) else AC_MSG_RESULT([*** LV2 plugin will not be compiled ***]) enable_lv2=no diff --git a/plugingui/Makefile.am.plugingui b/plugingui/Makefile.am.plugingui index 9ad5233..c4e9218 100644 --- a/plugingui/Makefile.am.plugingui +++ b/plugingui/Makefile.am.plugingui @@ -32,6 +32,6 @@ PLUGIN_GUI_SOURCES = \ $(top_srcdir)/plugingui/resource.cc \ $(top_srcdir)/plugingui/resource_data.cc -PLUGIN_GUI_LIBS = -lX11 +PLUGIN_GUI_LIBS = $(X11_LIBS) -PLUGIN_GUI_CFLAGS = -I$(top_srcdir)/hugin -DWITH_HUG_SYSLOG -DWITH_HUG_MUTEX +PLUGIN_GUI_CFLAGS = $(X11_CFLAGS) -I$(top_srcdir)/hugin -DWITH_HUG_SYSLOG -DWITH_HUG_MUTEX -- cgit v1.2.3