Commit 2a35ffae authored by Jean-Paul Saman's avatar Jean-Paul Saman

Patch by Mikko Hirvonen <masse at astro dot helsinki dot fi> for Firefox-1.5.x...

Patch by Mikko Hirvonen <masse at astro dot helsinki dot fi> for Firefox-1.5.x development tools detection in configure.ac. The patch is applied with some modifications of me
parent 641707d3
...@@ -123,6 +123,7 @@ Max Rudberg <max_08 at mac.com> - Mac OS X controller art (v0.7.0) ...@@ -123,6 +123,7 @@ Max Rudberg <max_08 at mac.com> - Mac OS X controller art (v0.7.0)
Michael Mondragon <mammon at lokmail.net> - ncurses compilation fix Michael Mondragon <mammon at lokmail.net> - ncurses compilation fix
Mickael Hoerdt <hoerdt at clarinet.u-strasbg.fr> - IPv6 SSM multicast patch Mickael Hoerdt <hoerdt at clarinet.u-strasbg.fr> - IPv6 SSM multicast patch
Mike Schrag <mschrag at pobox dot com> - directx device selection Mike Schrag <mschrag at pobox dot com> - directx device selection
Mikko Hirvonen <masse at astro dot helsinki dot fi> - Firefox-1.5.x development configure patch
Michel Lanners <mlan at cpu.lu> - fixed typos and AltiVec detection Michel Lanners <mlan at cpu.lu> - fixed typos and AltiVec detection
Miroslav Oujeský <oujesky at mail dot muni dot cz> - Czech translation Miroslav Oujeský <oujesky at mail dot muni dot cz> - Czech translation
Moritz Bunkus <moritz at bunkus dot org> - Matroska patches Moritz Bunkus <moritz at bunkus dot org> - Matroska patches
......
...@@ -5299,7 +5299,7 @@ dnl Mozilla plugin ...@@ -5299,7 +5299,7 @@ dnl Mozilla plugin
dnl dnl
mozilla=false mozilla=false
AC_ARG_ENABLE(mozilla, AC_ARG_ENABLE(mozilla,
[ --enable-mozilla build a vlc-based Mozilla plugin (default disabled)]) [ --enable-mozilla build a vlc-based Firefox/Mozilla plugin (default disabled)])
AC_ARG_WITH(mozilla-sdk-path, AC_ARG_WITH(mozilla-sdk-path,
[ --with-mozilla-sdk-path=PATH path to mozilla sdk]) [ --with-mozilla-sdk-path=PATH path to mozilla sdk])
AC_LANG_PUSH(C++) AC_LANG_PUSH(C++)
...@@ -5307,8 +5307,59 @@ if test "${enable_mozilla}" = "yes" ...@@ -5307,8 +5307,59 @@ if test "${enable_mozilla}" = "yes"
then then
dnl currently vlc plugin only needs headers, no xpcom support apis are actually used dnl currently vlc plugin only needs headers, no xpcom support apis are actually used
need_xpcom_libs=false need_xpcom_libs=false
if test "${with_mozilla_sdk_path}" = "" -o "${with_mozilla_sdk_path}" = "no" if test "${with_mozilla_sdk_path}" = "" -o "${with_mozilla_sdk_path}" = "no"
then then
dnl New firefox-1.5 SDK api
PKG_CHECK_MODULES([firefox], [firefox-plugin],
[
PKG_CHECK_MODULES(
[xpcom],
[firefox-xpcom],
[VLC_ADD_CFLAGS([mozilla], [${XPCOM_CFLAGS}])],
[AC_MSG_ERROR([Please install the Firefox development tools, XPCOM wax not found.])]
)
firefox_include=`pkg-config --variable=includedir firefox-plugin`
MOZILLA_CONFIG_H=1
dnl CPPFLAGS="${CPPFLAGS_save} ${firefox_include} ${FIREFOX_CPPFLAGS}"
dnl AC_CHECK_HEADERS(mozilla-config.h,[MOZILLA_CONFIG_H=1],[MOZILLA_CONFIG_H=0],[#include <mozilla-config.h>])
dnl CPPFLAGS="${CPPFLAGS_save}"
dnl HACK Test for mozilla-config.h headerfile existence
if test -f "${firefox_include}/mozilla-config.h"; then
MOZILLA_CONFIG_H=1
fi
if test "${MOZILLA_CONFIG_H}" = "0"; then
AC_MSG_ERROR([Please install the Firefox development tools, mozilla-config.h was not found.])
fi
MOZILLA_CONFIG_H="${firefox_include}/mozilla-config.h"
XPIDL_INCL=`pkg-config --variable=idldir firefox-xpcom`
xpcom_lib_path=`pkg-config --variable=libdir firefox-xpcom`
AC_PATH_PROG(
[XPIDL],
[xpidl],
[ no ],
[${xpidl_path}:${xpcom_lib_path}:${PATH}]
)
if test "${XPIDL}" = "no"; then
AC_MSG_ERROR([Please install the Firefox development tools, xpidl not found!])
fi
if test "${need_xpcom_libs}" = "false"; then
REAL_FIREFOX_LIBS=`echo ${FIREFOX_LDFLAGS} | sed -e 's|-lxpcom||'`
FIREFOX_LDFLAGS=${REAL_FIREFOX_LIBS}
fi
if test -f ${MOZILLA_CONFIG_H}; then
VLC_ADD_CFLAGS([mozilla],[${firefox_include}])
if grep '^#define HAVE_MOZ_X11 1' ${MOZILLA_CONFIG_H} 2>&1 > /dev/null ; then
VLC_ADD_LDFLAGS([mozilla], [${X_LIBS} ${X_PRE_LIBS}])
fi
fi
VLC_ADD_CFLAGS([mozilla],[${FIREFOX_CPPFLAGS}])
VLC_ADD_CXXFLAGS([mozilla],[$XPCOM_CFLAGS, " ", ${FIREFOX_CPPFLAGS}])
VLC_ADD_LDFLAGS([mozilla],[${FIREFOX_LDFLAGS}])
VLC_ADD_PLUGINS([mozilla])
MOZILLA_CONFIG=
],
[
AC_PATH_PROG(MOZILLA_CONFIG, mozilla-config, no) AC_PATH_PROG(MOZILLA_CONFIG, mozilla-config, no)
if test "${MOZILLA_CONFIG}" = "no" if test "${MOZILLA_CONFIG}" = "no"
then then
...@@ -5327,7 +5378,11 @@ then ...@@ -5327,7 +5378,11 @@ then
MOZILLA_CONFIG="${SEAMONKEY_CONFIG}" MOZILLA_CONFIG="${SEAMONKEY_CONFIG}"
fi fi
fi fi
]
)
if test ! -z "${MOZILLA_CONFIG}"
then
if ${MOZILLA_CONFIG} --defines | grep -q 'MOZ_X11=1'; then if ${MOZILLA_CONFIG} --defines | grep -q 'MOZ_X11=1'; then
LDFLAGS="${LDFLAGS_save} ${X_LIBS} ${X_PRE_LIBS}" LDFLAGS="${LDFLAGS_save} ${X_LIBS} ${X_PRE_LIBS}"
AC_CHECK_LIB(Xt,XtStrings, AC_CHECK_LIB(Xt,XtStrings,
...@@ -5366,6 +5421,7 @@ then ...@@ -5366,6 +5421,7 @@ then
MOZILLA_REQUIRED_HEADERS= MOZILLA_REQUIRED_HEADERS=
CPPFLAGS="${CPPFLAGS_save}" CPPFLAGS="${CPPFLAGS_save}"
MOZILLA_SDK_PATH="`${MOZILLA_CONFIG} --prefix`" MOZILLA_SDK_PATH="`${MOZILLA_CONFIG} --prefix`"
fi
dnl End of moz_sdk = "" dnl End of moz_sdk = ""
else else
dnl special case for mingw32 dnl special case for mingw32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment