summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in5
-rw-r--r--plugingui/Makefile.am.plugingui4
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