File mozilla-bonobo-xulrunner.patch of Package mozilla-bonobo

--- configure.in.orig	2005-07-09 19:24:48.000000000 +0200
+++ configure.in	2008-08-30 23:35:09.000000000 +0200
@@ -24,11 +24,15 @@
 
 dnl Checks for programs.
 if test $moz_include_forced != yes; then
-
+	moz_name=mozilla
 	echo -n "Checking if mozilla is in pkg-config..."
-	if pkg-config --exists mozilla-plugin mozilla-nspr; then
+	if pkg-config --exists mozilla-plugin nspr; then
+		echo yes;
+		mozilla_in_pkgconfig=yes;
+	elif pkg-config --exists xulrunner-plugin nspr; then
 		echo yes;
 		mozilla_in_pkgconfig=yes;
+		moz_name=xulrunner;
 	else
 		echo no;
 		mozilla_in_pkgconfig=no;
@@ -72,7 +76,7 @@
 	if test $mozilla_in_pkgconfig != yes; then
 		PLUGIN_CFLAGS=$(mozilla-config --cflags java plugin)
 	else
-		PLUGIN_CFLAGS=$(pkg-config --cflags mozilla-plugin mozilla-nspr)
+		PLUGIN_CFLAGS=$(pkg-config --cflags $moz_name-plugin nspr)
 	fi
 else
 	PLUGIN_CFLAGS="-I$MOZILLA_INCLUDE_DIR/java -I$MOZILLA_INCLUDE_DIR/plugin -I$MOZILLA_INCLUDE_DIR/nspr"