summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-4.3.1/debian/libjava-xulrunner1.9.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/libjava-xulrunner1.9.dpatch')
-rw-r--r--meta/packages/gcc/gcc-4.3.1/debian/libjava-xulrunner1.9.dpatch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/libjava-xulrunner1.9.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/libjava-xulrunner1.9.dpatch
new file mode 100644
index 0000000000..19d67d88ba
--- /dev/null
+++ b/meta/packages/gcc/gcc-4.3.1/debian/libjava-xulrunner1.9.dpatch
@@ -0,0 +1,41 @@
1#! /bin/sh -e
2
3# DP: Add configure check for xulrunner-1.9.
4
5dir=
6if [ $# -eq 3 -a "$2" = '-d' ]; then
7 pdir="-d $3"
8 dir="$3/"
9elif [ $# -ne 1 ]; then
10 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11 exit 1
12fi
13case "$1" in
14 -patch)
15 patch $pdir -f --no-backup-if-mismatch -p0 < $0
16 cd ${dir}libjava/classpath && aclocal -I m4 -I ../.. -I ../../config && autoconf
17 ;;
18 -unpatch)
19 patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
20 rm -f ${dir}libjava/configure
21 ;;
22 *)
23 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
24 exit 1
25esac
26exit 0
27
28--- libjava/classpath/configure.ac~ 2008-02-22 08:37:10.356094701 +0100
29+++ libjava/classpath/configure.ac 2008-02-22 08:38:49.397588719 +0100
30@@ -702,7 +702,10 @@
31
32 dnl Check for plugin support headers and libraries.
33 if test "x${COMPILE_PLUGIN}" = xyes; then
34- PKG_CHECK_MODULES(MOZILLA, mozilla-plugin, [MOZILLA_FOUND=yes], [MOZILLA_FOUND=no])
35+ PKG_CHECK_MODULES(MOZILLA, mozilla-plugin libxul-unstable, [MOZILLA_FOUND=yes], [MOZILLA_FOUND=no])
36+ if test "x${MOZILLA_FOUND}" = xno; then
37+ PKG_CHECK_MODULES(MOZILLA, mozilla-plugin, [MOZILLA_FOUND=yes], [MOZILLA_FOUND=no])
38+ fi
39 if test "x${MOZILLA_FOUND}" = xno; then
40 PKG_CHECK_MODULES(MOZILLA, firefox-plugin firefox-xpcom, [MOZILLA_FOUND=yes], [MOZILLA_FOUND=no])
41 fi