diff configure.ac @ 32132:7b1a94adc33f

WebKit is only required when building Pidgin.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 08 Sep 2011 05:13:53 +0000
parents 472e70ea58ed
children 8fb1124b2794
line wrap: on
line diff
--- a/configure.ac	Wed Sep 07 05:44:17 2011 +0000
+++ b/configure.ac	Thu Sep 08 05:13:53 2011 +0000
@@ -434,6 +434,16 @@
 	PKG_CHECK_MODULES(PANGO, [pango >= 1.4.0],
 			AC_DEFINE(HAVE_PANGO14, 1, [Define if we have Pango 1.4 or newer.]),:)
 
+	PKG_CHECK_MODULES(WEBKIT, [webkit-1.0 >= 1.1.1], , [
+		AC_MSG_RESULT(no)
+		AC_MSG_ERROR([
+You must have WebKit 1.1.1 or newer development headers installed to compile
+Pidgin.  If you want to build only Finch then specify --disable-gtkui when
+running configure.
+])])
+	AC_SUBST(WEBKIT_CFLAGS)
+	AC_SUBST(WEBKIT_LIBS)
+
 	dnl #######################################################################
 	dnl # Check if we should compile with X support
 	dnl #######################################################################
@@ -710,8 +720,6 @@
 
 #AC_CHECK_FUNC(wcwidth, [AC_DEFINE([HAVE_WCWIDTH], [1], [Define to 1 if you have wcwidth function.])])
 
-PKG_CHECK_MODULES(WEBKIT, [webkit-1.0 >= 1.1.1]);
-
 dnl #######################################################################
 dnl # Check for LibXML2 (required)
 dnl #######################################################################