From 196f4193bdfe0b53644509bf85a60d447420572c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20G=2E=20Aragoneses?= Date: Mon, 20 Jan 2014 18:27:04 +0100 Subject: [PATCH] configure: if gtk is not found, advice about --disable-gui With this, user will know that he can build without the GUI features if she wants. --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8a05636b..9113c226 100644 --- a/configure.ac +++ b/configure.ac @@ -62,7 +62,12 @@ AC_ARG_ENABLE(docs, AM_CONDITIONAL(ENABLE_DOCS, test x$enable_docs = xyes) if test "x$enable_gui" = "xyes"; then - PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0]) + PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0], + has_gtk=yes, has_gtk=no) + + if test "x$has_gtk" = "xno"; then + AC_MSG_ERROR([gtk is needed for GUI features, install it or use --disable-gui]) + fi fi if test "x$enable_tests" = "xyes"; then