+2007-07-27 Ben Pfaff <blp@gnu.org>
+
+ * configure.ac: Make PKG_CHECK_MODULES tests more user-friendly,
+ by having them give their errors at the end of the configuration
+ process instead of stopping it in the middle. Patch #6116.
+ Reviewed by Jason Stover.
+
2007-06-14 Ben Pfaff <blp@gnu.org>
* Smake: Use xmalloca instead of xallocsa due to module renaming.
AC_ARG_WITH(gui, [ --without-gui don't build the PSPPIRE gui])
if test x"$with_gui" != x"no" ; then
- PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6.0)
- PKG_CHECK_MODULES(GLADE, libglade-2.0)
+ PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6.0,,
+ [PSPP_REQUIRED_PREREQ([gtk+ 2.0 v2.6.0 or later (or use --without-gui)])])
+ PKG_CHECK_MODULES(GLADE, libglade-2.0,,
+ [PSPP_REQUIRED_PREREQ([libglade 2.0 (or use --without-gui)])])
fi
AM_CONDITIONAL(WITHGUI, test x"$with_gui" != x"no")