aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-01-12 02:31:49 +0800
committerChristian Persch <chpe@src.gnome.org>2006-01-12 02:31:49 +0800
commitd2d8d80fbad18ba937fb21482b77fadd7e1349f4 (patch)
tree90c092b3268782c5ac5e2dda938e29ba434b469d /configure.ac
parent976e395007d07311218e5dfb8bdfbca20c2d7e9c (diff)
downloadgsoc2013-epiphany-d2d8d80fbad18ba937fb21482b77fadd7e1349f4.tar
gsoc2013-epiphany-d2d8d80fbad18ba937fb21482b77fadd7e1349f4.tar.gz
gsoc2013-epiphany-d2d8d80fbad18ba937fb21482b77fadd7e1349f4.tar.bz2
gsoc2013-epiphany-d2d8d80fbad18ba937fb21482b77fadd7e1349f4.tar.lz
gsoc2013-epiphany-d2d8d80fbad18ba937fb21482b77fadd7e1349f4.tar.xz
gsoc2013-epiphany-d2d8d80fbad18ba937fb21482b77fadd7e1349f4.tar.zst
gsoc2013-epiphany-d2d8d80fbad18ba937fb21482b77fadd7e1349f4.zip
Add another contract ID check, only on gecko >= 1.8.
2006-01-11 Christian Persch <chpe@cvs.gnome.org> * configure.ac: Add another contract ID check, only on gecko >= 1.8.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac18
1 files changed, 12 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index c05e5bb14..cd6ea1596 100644
--- a/configure.ac
+++ b/configure.ac
@@ -341,16 +341,22 @@ fi
# Check for some contractIDs that we need but are provided by extensions
# which may or may not have been built.
+REQUIRED_EXTENSIONS="cookie"
+if test "$gecko_cv_gecko_version_major" = 1 -a "$gecko_cv_gecko_version_minor" -ge "8"; then
+ REQUIRED_EXTENSIONS="$REQUIRED_EXTENSIONS,permissions"
+fi
+
GECKO_CHECK_CONTRACTID([@mozilla.org/permissionmanager;1],
- [],[AC_MSG_ERROR([Gecko needs to be compiled with at least --enable-extensions=default,cookie,permissions])])
+ [],[AC_MSG_ERROR([Gecko needs to be compiled with at least --enable-extensions=default,$REQUIRED_EXTENSIONS])])
GECKO_CHECK_CONTRACTID([@mozilla.org/PopupWindowManager;1],
- [],[AC_MSG_ERROR([Gecko needs to be compiled with at least --enable-extensions=default,cookie,permissions])])
+ [],[AC_MSG_ERROR([Gecko needs to be compiled with at least --enable-extensions=default,$REQUIRED_EXTENSIONS])])
GECKO_CHECK_CONTRACTID([@mozilla.org/cookie/permission;1],
- [],[AC_MSG_ERROR([Gecko needs to be compiled with at least --enable-extensions=default,cookie,permissions])])
+ [],[AC_MSG_ERROR([Gecko needs to be compiled with at least --enable-extensions=default,$REQUIRED_EXTENSIONS])])
-# This one ought to exist too but somehow doesn't on breezy at least...!?
-# GECKO_CHECK_CONTRACTID([@mozilla.org/permissions/contentblocker;1],
-# [],[AC_MSG_ERROR([Gecko needs to be compiled with at least --enable-extensions=default,cookie,permissions])])
+if test "$gecko_cv_gecko_version_major" = 1 -a "$gecko_cv_gecko_version_minor" -ge "8"; then
+ GECKO_CHECK_CONTRACTID([@mozilla.org/permissions/contentblocker;1],
+ [],[AC_MSG_ERROR([Gecko needs to be compiled with at least --enable-extensions=default,$REQUIRED_EXTENSIONS])])
+fi
# ***************
# Multimedia keys