From 464c5784caf9462a021505775cdc94ee2404475d Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 10 Apr 2010 16:53:36 +0300 Subject: [PATCH] Require xul >= 1.9.2 explicitly --- configure.ac | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 51b6ca26a8..9fc2af9ba8 100644 --- a/configure.ac +++ b/configure.ac @@ -4558,15 +4558,18 @@ then if test -n "$i" then echo "Trying to find $i package" >&AS_MESSAGE_LOG_FD - if $PKG_CONFIG --exists --print-errors "$i" 2>&AS_MESSAGE_LOG_FD + AC_MSG_CHECKING([for $i >= 1.9.2]) + if $PKG_CONFIG --exists --print-errors "$i >= 1.9.2" 2>&AS_MESSAGE_LOG_FD then echo "Using $i pkg-config package." >&AS_MESSAGE_LOG_FD echo "Using $i package." >&AS_MESSAGE_FD found=1 MOZILLA_CFLAGS=$(eval $PKG_CONFIG --cflags "$i" ) MOZILLA_LIBS=$(eval $PKG_CONFIG --libs "$i" ) + AC_MSG_RESULT([yes]) break fi + AC_MSG_RESULT([no]) fi done fi @@ -4581,7 +4584,7 @@ then #endif ]) if test "${MOZILLA_REQUIRED_HEADERS}" = "0"; then - AC_MSG_ERROR([Please install the Firefox development tools; mozilla-config.h, plugin/npapi.h and plugin/npruntime.h were not found.]) + AC_MSG_ERROR([Please install the Firefox development tools; plugin/npapi.h and/or plugin/npruntime.h were not found.]) fi MOZILLA_REQUIRED_HEADERS= mozilla=: @@ -4606,7 +4609,7 @@ then AC_PATH_PROGS(MOZILLA_CONFIG, [mozilla-config seamonkey-config xulrunner-config], [no]) - test "${MOZILLA_CONFIG}" = "no" && AC_MSG_ERROR([Please install the Mozilla development tools. mozilla-config was not found.]) + test "${MOZILLA_CONFIG}" = "no" && AC_MSG_ERROR([Please install the Mozilla development tools (version 1.9.2 or higher) or use --disable-mozilla.]) ] ) dnl pkg-config failed but we might have found a mozilla-config -- 2.39.2