Inform users about GtkSourceView dependency
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 10 Aug 2010 13:30:19 +0000 (15:30 +0200)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 11 Aug 2010 17:25:53 +0000 (10:25 -0700)
INSTALL
configure.ac

diff --git a/INSTALL b/INSTALL
index 6654e90bb52507a395ac9be49812e69529f3e41a..23bbf8a4b1ead5afaf8aab88c36afbb68f835808 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -55,6 +55,10 @@ use the GUI, you must run `configure' with --without-gui.
 
     * GTK+ (http://www.gtk.org/), version 2.12.0 or later.
 
+    * GtkSourceView (http://projects.gnome.org/gtksourceview/) 
+      version 2.2 or later.
+
+
 To cross-compile PSPP, you will likely need to set the
 PKG_CONFIG_LIBDIR environment variable to point to an
 appropriate pkg-config for the cross-compilation environment.
index 14e3f9047aaef40aa8e551a67bff9e80c8f64518..177ca576a2ab09c9fcd9dde6fe257722bc940322 100644 (file)
@@ -76,7 +76,8 @@ if test "$with_cairo" != no && test "$with_gui" != "no"; then
   PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.16], [],
     [PSPP_REQUIRED_PREREQ([gtk+ 2.0 version 2.16 or later (or use --without-gui)])])
 
-  PKG_CHECK_MODULES([GTKSOURCEVIEW], [gtksourceview-2.0 >= 2.2])
+  PKG_CHECK_MODULES([GTKSOURCEVIEW], [gtksourceview-2.0 >= 2.2], [],
+    [PSPP_REQUIRED_PREREQ([gtksourceview 2.0 version 2.2 or later (or use --without-gui)])])
 
   AC_ARG_VAR([GLIB_GENMARSHAL])
   AC_CHECK_PROGS([GLIB_GENMARSHAL], [glib-genmarshal])