summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartyn Russell <martyn@lanedo.com>2014-02-06 17:38:55 +0000
committerMartyn Russell <martyn@lanedo.com>2014-02-06 17:38:55 +0000
commit92fec15ce2b3c87ee1f197c2bed9772d8aa5f873 (patch)
tree6e9d57950db6eee20a7f2ff2c235161ec10dfaa2
parent5bab8ee72d2956e3814ced2ff3824bbadd2c8663 (diff)
downloadlibmediaart-92fec15ce2b3c87ee1f197c2bed9772d8aa5f873.tar.gz
build: Fix selection between backends Qt and GdkPixbuf
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 81777b4..744de13 100644
--- a/configure.ac
+++ b/configure.ac
@@ -213,6 +213,10 @@ selected_for_media_art="no (disabled)"
# Choose between backends (GdkPixbuf/Qt/etc)
##################################################################
+if test "x$enable_qt" == "xyes" && test "x$enable_gdkpixbuf" == "xyes"; then
+ AC_MSG_ERROR([Can not enable both Qt and GdkPixbuf backends, please pick one])
+fi
+
if test "x$enable_qt" != "xno" && test "x$enable_gdkpixbuf" != "xyes"; then
PKG_CHECK_MODULES(QT5,
[Qt5Gui >= $QT5_REQUIRED],
@@ -260,7 +264,7 @@ AM_CONDITIONAL(HAVE_QT4, test "x$have_qt4" = "xyes")
AM_CONDITIONAL(HAVE_QT5, test "x$have_qt5" = "xyes")
AM_CONDITIONAL(HAVE_QT, test "x$have_qt5" = "xyes" || test "x$have_qt4" = "xyes")
-if test "x$enable_gdkpixbuf" != "xno" && test "x$enable_quill" != "xyes"; then
+if test "x$enable_gdkpixbuf" != "xno" && test "x$enable_qt" != "xyes"; then
PKG_CHECK_MODULES(GDKPIXBUF,
[gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED],
[have_gdkpixbuf=yes],