4dd23c7
Index: browser-plugin/totemStringGlue.h
4dd23c7
===================================================================
9aaeec3
--- browser-plugin/totemStringGlue.h	(revision 5028)
4dd23c7
+++ browser-plugin/totemStringGlue.h	(working copy)
4dd23c7
@@ -1,58 +0,0 @@
4dd23c7
-/* Totem browser plugin
4dd23c7
- *
4dd23c7
- * Copyright © 2006 Bastien Nocera <hadess@hadess.net>
4dd23c7
- * Copyright © 2006 Christian Persch
4dd23c7
- *
4dd23c7
- * This library is free software; you can redistribute it and/or
4dd23c7
- * modify it under the terms of the GNU Library General Public
4dd23c7
- * License as published by the Free Software Foundation; either
4dd23c7
- * version 2 of the License, or (at your option) any later version.
4dd23c7
- *
4dd23c7
- * This library is distributed in the hope that it will be useful,
4dd23c7
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
4dd23c7
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4dd23c7
- * Library General Public License for more details.
4dd23c7
- *
4dd23c7
- * You should have received a copy of the GNU Library General Public
4dd23c7
- * License along with this library; if not, write to the
4dd23c7
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
4dd23c7
- * Boston, MA 02111-1307, USA.
4dd23c7
- */
4dd23c7
-
4dd23c7
-#include <nsEmbedString.h>
4dd23c7
-
4dd23c7
-#ifndef NS_LITERAL_CSTRING
4dd23c7
-#define NS_LITERAL_CSTRING(x) (x)
4dd23c7
-#endif
4dd23c7
-
4dd23c7
-class nsString : public nsEmbedString {
4dd23c7
-  public:
4dd23c7
-    PRBool IsEmpty () { return !Length (); }
4dd23c7
-};
4dd23c7
-
4dd23c7
-class nsCString : public nsEmbedCString {
4dd23c7
-  public:
4dd23c7
-    nsCString () : nsEmbedCString () { }
4dd23c7
-    explicit nsCString (const char *aData, PRUint32 aLength) : nsEmbedCString (aData, aLength) { }
4dd23c7
-    explicit nsCString (const abstract_string_type& aOther) { Assign (aOther); }
4dd23c7
-    explicit nsCString (const char *&aOther) { Assign (aOther); }
4dd23c7
-    explicit nsCString (const nsCString& aData, int aStartPos, PRUint32 aLength) : nsEmbedCString (aData.get() + aStartPos, aLength-aStartPos) { }
4dd23c7
-    PRBool IsEmpty () { return !Length (); }
4dd23c7
-    PRBool Equals (const self_type& aOther) { return !strcmp (aOther.get (), get ()); }
4dd23c7
-    PRBool Equals (const char_type *aOther) { return !strcmp (aOther, get ()); }
4dd23c7
-    void SetLength (PRUint32 aLen) { Assign (""); }
4dd23c7
-    self_type& operator=(const abstract_string_type& aOther) { Assign (aOther); return *this; }
4dd23c7
-    self_type& operator=(const char_type* aOther) { Assign (aOther); return *this; }
4dd23c7
-};
4dd23c7
-
4dd23c7
-class NS_ConvertUTF16toUTF8 : public nsCString {
4dd23c7
-  public:
4dd23c7
-    explicit NS_ConvertUTF16toUTF8 (const nsAString& aString) {
4dd23c7
-	 NS_UTF16ToCString (aString, NS_CSTRING_ENCODING_UTF8, *this);
4dd23c7
-      }
4dd23c7
-};
4dd23c7
-
4dd23c7
-typedef nsString nsDependentString;
4dd23c7
-typedef nsCString nsDependentCString;
4dd23c7
-typedef nsCString nsDependentCSubstring;
4dd23c7
-
4dd23c7
Index: browser-plugin/totemPlugin.h
4dd23c7
===================================================================
9aaeec3
--- browser-plugin/totemPlugin.h	(revision 5028)
4dd23c7
+++ browser-plugin/totemPlugin.h	(working copy)
4dd23c7
@@ -29,9 +29,8 @@
4dd23c7
 
4dd23c7
 #include <nsStringAPI.h>
4dd23c7
 
4dd23c7
-#ifdef NEED_STRING_GLUE
4dd23c7
-#include "totemStringGlue.h"
4dd23c7
-#endif
4dd23c7
+#define NS_STATIC_CAST(__type, __ptr) static_cast< __type >(__ptr)
4dd23c7
+#define NS_REINTERPRET_CAST(__type, __expr) reinterpret_cast< __type >(__expr)
4dd23c7
 
4dd23c7
 #if defined(TOTEM_COMPLEX_PLUGIN) && defined(HAVE_NSTARRAY_H)
4dd23c7
 #include <nsTArray.h>
4dd23c7
Index: browser-plugin/Makefile.am
4dd23c7
===================================================================
9aaeec3
--- browser-plugin/Makefile.am	(revision 5028)
4dd23c7
+++ browser-plugin/Makefile.am	(working copy)
4dd23c7
@@ -144,7 +144,6 @@
4dd23c7
 	totemPluginGlue.h		\
4dd23c7
 	totemPlugin.cpp			\
4dd23c7
 	totemPlugin.h			\
4dd23c7
-	totemStringGlue.h		\
4dd23c7
 	totemBasicPlugin.cpp		\
4dd23c7
 	totemBasicPlugin.h		\
4dd23c7
 	totemClassInfo.h		\
9aaeec3
@@ -182,12 +181,13 @@
9aaeec3
 	libtotempluginviewer_helper.la					\
9aaeec3
 	$(DBUS_LIBS)	\
9aaeec3
 	$(BROWSER_PLUGIN_LIBS)	\
9aaeec3
-	$(LIBXPCOMGLUE_S)
9aaeec3
+	$(GECKO_LIBS)
9aaeec3
 
9aaeec3
 libtotem_basic_plugin_la_LDFLAGS = \
9aaeec3
 	-avoid-version	\
9aaeec3
 	-export-symbols $(srcdir)/plugin.symbols \
9aaeec3
 	-module		\
9aaeec3
+	-no-undefined	\
9aaeec3
 	$(AM_LDFLAGS)
9aaeec3
 
9aaeec3
 endif
9aaeec3
@@ -210,7 +210,6 @@
4dd23c7
 	totemPluginGlue.h		\
4dd23c7
 	totemPlugin.cpp			\
4dd23c7
 	totemPlugin.h			\
4dd23c7
-	totemStringGlue.h		\
4dd23c7
 	totemGMPPlugin.cpp		\
4dd23c7
 	totemGMPPlugin.h		\
4dd23c7
 	totemClassInfo.h		\
9aaeec3
@@ -248,12 +247,13 @@
9aaeec3
 	libtotempluginviewer_helper.la	\
9aaeec3
 	$(DBUS_LIBS)	\
9aaeec3
 	$(BROWSER_PLUGIN_LIBS)	\
9aaeec3
-	$(LIBXPCOMGLUE_S)
9aaeec3
+	$(GECKO_LIBS)
9aaeec3
 
9aaeec3
 libtotem_gmp_plugin_la_LDFLAGS = \
9aaeec3
 	-avoid-version	\
9aaeec3
 	-export-symbols $(srcdir)/plugin.symbols \
9aaeec3
 	-module		\
9aaeec3
+	-no-undefined	\
9aaeec3
 	$(AM_LDFLAGS)
9aaeec3
 
9aaeec3
 endif
9aaeec3
@@ -270,7 +270,6 @@
4dd23c7
 	totemPluginGlue.h		\
4dd23c7
 	totemPlugin.cpp			\
4dd23c7
 	totemPlugin.h			\
4dd23c7
-	totemStringGlue.h		\
4dd23c7
 	totemComplexPlugin.cpp		\
4dd23c7
 	totemComplexPlugin.h		\
4dd23c7
 	totemClassInfo.h		\
9aaeec3
@@ -308,12 +307,13 @@
9aaeec3
 	libtotempluginviewer_helper.la					\
9aaeec3
 	$(DBUS_LIBS)	\
9aaeec3
 	$(BROWSER_PLUGIN_LIBS)	\
9aaeec3
-	$(LIBXPCOMGLUE_S)
9aaeec3
+	$(GECKO_LIBS)
9aaeec3
 
9aaeec3
 libtotem_complex_plugin_la_LDFLAGS = \
9aaeec3
 	-avoid-version	\
9aaeec3
 	-export-symbols $(srcdir)/plugin.symbols \
9aaeec3
 	-module		\
9aaeec3
+	-no-undefined	\
9aaeec3
 	$(AM_LDFLAGS)
9aaeec3
 
9aaeec3
 endif
9aaeec3
@@ -330,7 +330,6 @@
4dd23c7
 	totemPluginGlue.h		\
4dd23c7
 	totemPlugin.cpp			\
4dd23c7
 	totemPlugin.h			\
4dd23c7
-	totemStringGlue.h		\
4dd23c7
 	totemNarrowSpacePlugin.cpp	\
4dd23c7
 	totemNarrowSpacePlugin.h	\
4dd23c7
 	totemClassInfo.h		\
9aaeec3
@@ -368,12 +367,13 @@
9aaeec3
 	libtotempluginviewer_helper.la					\
9aaeec3
 	$(DBUS_LIBS)	\
9aaeec3
 	$(BROWSER_PLUGIN_LIBS)	\
9aaeec3
-	$(LIBXPCOMGLUE_S)
9aaeec3
+	$(GECKO_LIBS)
9aaeec3
 
9aaeec3
 libtotem_narrowspace_plugin_la_LDFLAGS = \
9aaeec3
 	-avoid-version	\
9aaeec3
 	-export-symbols $(srcdir)/plugin.symbols \
9aaeec3
 	-module		\
9aaeec3
+	-no-undefined	\
9aaeec3
 	$(AM_LDFLAGS)
9aaeec3
 
9aaeec3
 endif
9aaeec3
@@ -390,7 +390,6 @@
4dd23c7
 	totemPluginGlue.h		\
4dd23c7
 	totemPlugin.cpp			\
4dd23c7
 	totemPlugin.h			\
4dd23c7
-	totemStringGlue.h		\
4dd23c7
 	totemMullYPlugin.cpp		\
4dd23c7
 	totemMullYPlugin.h		\
4dd23c7
 	totemClassInfo.h		\
9aaeec3
@@ -428,12 +427,13 @@
9aaeec3
 	libtotempluginviewer_helper.la					\
9aaeec3
 	$(DBUS_LIBS)	\
9aaeec3
 	$(BROWSER_PLUGIN_LIBS)	\
9aaeec3
-	$(LIBXPCOMGLUE_S)
9aaeec3
+	$(GECKO_LIBS)
9aaeec3
 
9aaeec3
 libtotem_mully_plugin_la_LDFLAGS = \
9aaeec3
 	-avoid-version	\
9aaeec3
 	-export-symbols $(srcdir)/plugin.symbols \
9aaeec3
 	-module		\
9aaeec3
+	-no-undefined	\
9aaeec3
 	$(AM_LDFLAGS)
9aaeec3
 
9aaeec3
 endif
9aaeec3
@@ -450,7 +450,6 @@
4dd23c7
 	totemPluginGlue.h		\
4dd23c7
 	totemPlugin.cpp			\
4dd23c7
 	totemPlugin.h			\
4dd23c7
-	totemStringGlue.h		\
4dd23c7
 	totemConePlugin.cpp		\
4dd23c7
 	totemConePlugin.h		\
4dd23c7
 	totemClassInfo.h		\
9aaeec3
@@ -488,12 +487,13 @@
9aaeec3
 	libtotempluginviewer_helper.la					\
9aaeec3
 	$(DBUS_LIBS)	\
9aaeec3
 	$(BROWSER_PLUGIN_LIBS)	\
9aaeec3
-	$(LIBXPCOMGLUE_S)
9aaeec3
+	$(GECKO_LIBS)
9aaeec3
 
9aaeec3
 libtotem_cone_plugin_la_LDFLAGS = \
9aaeec3
 	-avoid-version	\
9aaeec3
 	-export-symbols $(srcdir)/plugin.symbols \
9aaeec3
 	-module		\
9aaeec3
+	-no-undefined	\
9aaeec3
 	$(AM_LDFLAGS)
9aaeec3
 
9aaeec3
 endif
4dd23c7
Index: configure.in
4dd23c7
===================================================================
9aaeec3
--- configure.in	(revision 5028)
4dd23c7
+++ configure.in	(working copy)
932af80
@@ -40,6 +40,7 @@
932af80
 GNOMEICON_REQS=2.15.90
932af80
 DBUS_REQS=0.61
b745eec
 VALA_REQS=0.1.6
932af80
+XULRUNNER_REQS=1.9
932af80
 
932af80
 TOTEM_VERSION_MAJOR=totem_version_major
932af80
 TOTEM_VERSION_MINOR=totem_version_minor
932af80
@@ -560,61 +561,23 @@
4dd23c7
 	[AS_HELP_STRING([--enable-browser-plugins],[compile the totem browser plugins])],
4dd23c7
 	[],[enable_browser_plugins=autodetect])
4dd23c7
 
4dd23c7
-# Backward compatibility
4dd23c7
-AC_ARG_ENABLE([mozilla],[],[enable_browser_plugins=$enableval],[])
4dd23c7
-
4dd23c7
 AC_MSG_RESULT([$enable_browser_plugins])
4dd23c7
 
4dd23c7
 # Check which mozilla to use
4dd23c7
 
4dd23c7
 if test "$enable_browser_plugins" != "no" ; then
4dd23c7
-	AC_MSG_CHECKING([which gecko to use])
932af80
+	PKG_CHECK_MODULES([GECKO], [libxul >= $XULRUNNER_REQS], [gecko=xulrunner], [gecko=""])
4dd23c7
 
4dd23c7
-	AC_ARG_WITH([gecko],
4dd23c7
-		[AS_HELP_STRING([--with-gecko],[Which gecko engine to use (default: autodetect)])])
4dd23c7
-
4dd23c7
-	# backward compat
4dd23c7
-	AC_ARG_WITH([mozilla],[],[with_gecko=$withval])
4dd23c7
-
4dd23c7
-	GECKOS="xulrunner firefox mozilla-firefox seamonkey mozilla"
4dd23c7
-	gecko=$with_gecko
4dd23c7
-
4dd23c7
-	if test -z "$with_gecko"; then
4dd23c7
-		dnl Autodetect gecko
4dd23c7
-		for g in $GECKOS; do
4dd23c7
-			if $PKG_CONFIG --exists $g-xpcom; then
4dd23c7
-				gecko=$g
4dd23c7
-				break;
4dd23c7
-			fi
4dd23c7
-		done
4dd23c7
-	elif ! $PKG_CONFIG --exists $gecko-xpcom; then
4dd23c7
-		AC_MSG_ERROR([Gecko "$gecko" not found])
4dd23c7
-	fi
4dd23c7
-
4dd23c7
-	if test -z "$gecko" -a "$enable_browser_plugins" = "autodetect"; then
932af80
+	if "x$enable_browser_plugins" = "xautodetect"; then
4dd23c7
 		dnl No gecko found, disable plugin
4dd23c7
 		AC_MSG_WARN([No gecko found, disabling plugin])
4dd23c7
 		enable_browser_plugins=no
4dd23c7
 	elif test -z "$gecko"; then
4dd23c7
-		AC_MSG_ERROR([No gecko found])
4dd23c7
-	elif ! ( echo "$GECKOS" | egrep "(^| )$gecko(\$| )" > /dev/null); then
4dd23c7
-		AC_MSG_ERROR([Unknown gecko "$gecko" specified])
4dd23c7
+		AC_MSG_ERROR([No xulrunner found])
4dd23c7
 	else
4dd23c7
 		enable_browser_plugins=yes
4dd23c7
 	fi
4dd23c7
 
4dd23c7
-	AC_MSG_RESULT([$gecko])
4dd23c7
-
4dd23c7
-	case "$gecko" in
4dd23c7
-		mozilla) MOZILLA_VERSION_MIN=1.7 ;;
4dd23c7
-		seamonkey) MOZILLA_VERSION_MIN=1.0 ;;
4dd23c7
-		*firefox) MOZILLA_VERSION_MIN=1.0 ;;
4dd23c7
-		xulrunner) MOZILLA_VERSION_MIN=1.8 ;;
4dd23c7
-	esac
4dd23c7
-
4dd23c7
-	MOZILLA=$gecko
4dd23c7
-	AC_SUBST([MOZILLA])
4dd23c7
-
4dd23c7
 	if test "$enable_cxx_warnings" != "no" -a "$GXX" = "yes"; then
4dd23c7
 		PLUGIN_EXTRA_WARN_CXXFLAGS="-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Woverloaded-virtual"
4dd23c7
 	else
932af80
@@ -625,15 +588,14 @@
932af80
 
932af80
 # Check for mozilla modules, but keep the CFLAGS and LIBS in
4dd23c7
 # separate vars
932af80
-if test "$enable_browser_plugins" = "yes" ; then
932af80
+if test "x$enable_browser_plugins" = "xyes" ; then
4dd23c7
 	PKG_CHECK_MODULES([MOZILLA_NOT_LINKED],
4dd23c7
-		[$MOZILLA-xpcom >= $MOZILLA_VERSION_MIN \
4dd23c7
-		 $MOZILLA-plugin],,
932af80
+		[libxul >= $XULRUNNER_REQS],,
4dd23c7
                 [enable_browser_plugins=no])
4dd23c7
 fi
4dd23c7
 # Check for other required modules, and merge CFLAGS, but not link
932af80
 # flags to avoid linking against -lxpcom -lplds4 -lplc4 -lnspr4
932af80
-if test "$enable_browser_plugins" = "yes" ; then
932af80
+if test "x$enable_browser_plugins" = "xyes" ; then
932af80
 	PKG_CHECK_MODULES([BROWSER_PLUGIN],
932af80
 		[glib-2.0
932af80
 		 gnome-vfs-2.0 >= $GNOMEVFS_REQS
932af80
@@ -654,7 +616,7 @@
932af80
 				>= 0.22 to function.])])
932af80
 fi
932af80
 
932af80
-if test "$enable_browser_plugins" = "yes" ; then
932af80
+if test "x$enable_browser_plugins" = "xyes" ; then
932af80
 	PKG_CHECK_MODULES([DBUS], [dbus-glib-1 >= $DBUS_REQS],,
932af80
 			[enable_browser_plugins=no])
932af80
 	DBUSLIBDIR="`$PKG_CONFIG dbus-glib-1 --variable=libdir`"
932af80
@@ -675,56 +637,46 @@
4dd23c7
 
4dd23c7
 # Sets some variables, and check for xpidl
4dd23c7
 if test "$enable_browser_plugins" = "yes" ; then
4dd23c7
-	MOZILLA_PREFIX="`$PKG_CONFIG $MOZILLA-xpcom --variable=prefix`"
4dd23c7
-	MOZILLA_LIBDIR="`$PKG_CONFIG $MOZILLA-xpcom --variable=libdir`"
4dd23c7
-	MOZILLA_INCLUDE_ROOT="`$PKG_CONFIG --variable=includedir $MOZILLA-xpcom`"
4dd23c7
-	MOZILLA_XPCOM_CFLAGS="-I`$PKG_CONFIG --variable=includedir $MOZILLA-xpcom`"
4dd23c7
+	LIBXUL_SDK_DIR=`$PKG_CONFIG --variable=sdkdir libxul`
4dd23c7
+	MOZILLA_PREFIX="`$PKG_CONFIG libxul --variable=prefix`"
4dd23c7
+	MOZILLA_LIBDIR="`$PKG_CONFIG libxul --variable=libdir`"
4dd23c7
+	MOZILLA_INCLUDE_ROOT="`$PKG_CONFIG --variable=includedir libxul`"
7b053af
+	MOZILLA_XPCOM_CFLAGS="`$PKG_CONFIG --cflags libxul-unstable`"
4dd23c7
+	MOZILLA_LIBS="`$PKG_CONFIG --libs libxul`"
932af80
+	MOZILLA_IDLDIR="`$PKG_CONFIG --variable=idldir libxul`"
4dd23c7
+
4dd23c7
 	MOZILLA_PLUGINDIR="${MOZILLA_PLUGINDIR:-"\${libdir}/mozilla/plugins"}"
4dd23c7
 
4dd23c7
-	AC_PATH_PROG([MOZILLA_XPIDL], [xpidl], [no], [$MOZILLA_LIBDIR:$PATH])
4dd23c7
+	AC_PATH_PROG([MOZILLA_XPIDL], [xpidl], [no], [$LIBXUL_SDK_DIR/bin:$PATH])
4dd23c7
 	if test "x$MOZILLA_XPIDL" = "xno"; then
4dd23c7
 		AC_MSG_ERROR([xpidl compiler not found])
4dd23c7
 	fi
4dd23c7
 
4dd23c7
-	AC_PATH_PROG([MOZILLA_XPT_LINK],[xpt_link],[no],[$MOZILLA_LIBDIR:$PATH])
4dd23c7
+	AC_PATH_PROG([MOZILLA_XPT_LINK],[xpt_link],[no],[$LIBXUL_SDK_DIR/bin:$PATH])
4dd23c7
 	if test "$MOZILLA_XPT_LINK" = "no"; then
4dd23c7
 		AC_MSG_ERROR([xpt_link not found])
4dd23c7
 	fi
4dd23c7
 
4dd23c7
 	AC_SUBST([MOZILLA_PREFIX])
4dd23c7
 	AC_SUBST([MOZILLA_LIBDIR])
4dd23c7
+	AC_SUBST([MOZILLA_LIBS])
4dd23c7
 	AC_SUBST([MOZILLA_XPCOM_CFLAGS])
4dd23c7
 	AC_SUBST([MOZILLA_INCLUDE_ROOT])
932af80
+	AC_SUBST([MOZILLA_IDLDIR])
4dd23c7
 	AC_ARG_VAR([MOZILLA_PLUGINDIR],[Where to install the plugin to])
932af80
 fi
932af80
 
932af80
-# Search for the idl include directory
932af80
-if test "$enable_browser_plugins" = "yes" ; then
932af80
-	dnl This only works on gecko 1.8
4dd23c7
-	MOZILLA_IDLDIR="`$PKG_CONFIG --variable=idldir $MOZILLA-xpcom`"
4dd23c7
-	dnl Fallback for older versions
4dd23c7
-	if test "x$MOZILLA_IDLDIR" = "x"; then
4dd23c7
-		MOZILLA_IDLDIR="`echo $MOZILLA_LIBDIR | sed -e s!lib!share/idl!`"
4dd23c7
-	fi
4dd23c7
-	dnl Some distributions (Gentoo) have it in unusual places
4dd23c7
-	if test "x$MOZILLA_IDLDIR" = "x"; then
4dd23c7
-		MOZILLA_IDLDIR="$MOZILLA_INCLUDE_ROOT/idl"
4dd23c7
-	fi
932af80
-
932af80
-	AC_SUBST([MOZILLA_IDLDIR])
932af80
-fi
932af80
-
932af80
-if test "$enable_browser_plugins" = "yes" ; then
932af80
+if test "x$enable_browser_plugins" = "xyes" ; then
932af80
 	AC_DEFINE([ENABLE_BROWSER_PLUGINS],[1],[Define if you build the mozilla plugin])
4dd23c7
 fi
932af80
 
932af80
-AM_CONDITIONAL([ENABLE_BROWSER_PLUGINS], [test "$enable_browser_plugins" = "yes"])
932af80
+AM_CONDITIONAL([ENABLE_BROWSER_PLUGINS], [test "x$enable_browser_plugins" = "xyes"])
932af80
 
932af80
 # check for libxpcomglue_s
932af80
 
932af80
 LIBXPCOMGLUE_S=
932af80
 
932af80
-if test "$enable_browser_plugins" = "yes"; then
932af80
+if test "x$enable_browser_plugins" = "xyes"; then
932af80
 	AC_LANG_PUSH([C++])
932af80
 	__SAVE_CPPFLAGS=$CPPFLAGS
932af80
 	__SAVE_CXXFLAGS=$CXXFLAGS
932af80
@@ -765,7 +717,7 @@
932af80
 
932af80
 # check for -fno-rtti flag
932af80
 
932af80
-if test "$enable_browser_plugins" = "yes"; then
932af80
+if test "x$enable_browser_plugins" = "xyes"; then
932af80
 	AC_LANG_PUSH([C++])
932af80
 	__SAVE_CXXFLAGS=$CXXFLAGS
932af80
 	CXXFLAGS="-fno-rtti $CXXFLAGS"
932af80
@@ -782,35 +734,9 @@
4dd23c7
 	fi
4dd23c7
 fi
4dd23c7
 
4dd23c7
-# check for some additional xpcom headers and for string compatibility
4dd23c7
-
4dd23c7
-if test "$enable_browser_plugins" = "yes"; then
4dd23c7
-	AC_LANG_PUSH([C++])
4dd23c7
-	__SAVE_CPPFLAGS=$CPPFLAGS
4dd23c7
-	CPPFLAGS="$CPPFLAGS $MOZILLA_NOT_LINKED_CFLAGS -I$MOZILLA_INCLUDE_ROOT -I$MOZILLA_INCLUDE_ROOT/xpcom"
4dd23c7
-
4dd23c7
-	AC_CHECK_HEADERS([nsTArray.h])
4dd23c7
-
4dd23c7
-	AC_MSG_CHECKING([whether we need string glue])
4dd23c7
-	AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
4dd23c7
-				#include <mozilla-config.h>
4dd23c7
-				#include <nsStringAPI.h>
4dd23c7
-		],[
4dd23c7
-				nsDependentCString test("Test");
4dd23c7
-		])],[need_string_glue=no],[need_string_glue=yes])
4dd23c7
-	AC_MSG_RESULT([$need_string_glue])
4dd23c7
-
4dd23c7
-	CPPFLAGS=$__SAVE_CPPFLAGS
4dd23c7
-	AC_LANG_POP([C++])
4dd23c7
-
4dd23c7
-	if test "$need_string_glue" = "yes"; then
4dd23c7
-		AC_DEFINE([NEED_STRING_GLUE],[1],[Define if we need string glue])
4dd23c7
-	fi
4dd23c7
-fi
4dd23c7
-
4dd23c7
 # check which plugins to enable
4dd23c7
 
932af80
-if test "$enable_browser_plugins" = "yes"; then
932af80
+if test "x$enable_browser_plugins" = "xyes"; then
932af80
 
932af80
 AC_MSG_CHECKING([whether to enable the basic browser plugin])
932af80
 AC_ARG_ENABLE([basic-plugin],
932af80
@@ -1097,7 +1023,7 @@
4dd23c7
 	AC_MSG_NOTICE([   No Totem plugins enabled])
4dd23c7
 fi
4dd23c7
 if test x$enable_browser_plugins = xyes ; then
4dd23c7
-	AC_MSG_NOTICE([** Browser plugin enabled (using $MOZILLA)])
4dd23c7
+	AC_MSG_NOTICE([** Browser plugin enabled (using xulrunner)])
4dd23c7
 	if test x$enable_basic_plugin = xyes ; then
4dd23c7
 		AC_MSG_NOTICE([** Basic browser plugin enabled])
4dd23c7
 	else