mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Backing out bug 305782 due to build bustage
This commit is contained in:
parent
c3a85541a1
commit
23f01ef525
@ -104,9 +104,7 @@ tier_1_dirs += modules/zlib/standalone
|
||||
endif
|
||||
|
||||
ifdef MOZ_UPDATER
|
||||
ifndef MOZ_NATIVE_BZ2
|
||||
tier_1_dirs += modules/libbz2
|
||||
endif
|
||||
tier_1_dirs += modules/libmar
|
||||
endif
|
||||
|
||||
|
@ -184,7 +184,6 @@ NECKO_SMALL_BUFFERS = @NECKO_SMALL_BUFFERS@
|
||||
NECKO_COOKIES = @NECKO_COOKIES@
|
||||
|
||||
MOZ_NATIVE_ZLIB = @SYSTEM_ZLIB@
|
||||
MOZ_NATIVE_BZ2 = @SYSTEM_BZ2@
|
||||
MOZ_NATIVE_JPEG = @SYSTEM_JPEG@
|
||||
MOZ_NATIVE_PNG = @SYSTEM_PNG@
|
||||
MOZ_TREE_CAIRO = @MOZ_TREE_CAIRO@
|
||||
@ -375,14 +374,6 @@ endif
|
||||
ZLIB_REQUIRES = zlib
|
||||
endif
|
||||
|
||||
MOZ_BZ2_CFLAGS = @MOZ_BZ2_CFLAGS@
|
||||
MOZ_BZ2_LIBS = @MOZ_BZ2_LIBS@
|
||||
ifdef MOZ_NATIVE_BZ2
|
||||
BZ2_REQUIRES =
|
||||
else
|
||||
BZ2_REQUIRES = libbz2
|
||||
endif
|
||||
|
||||
ifdef MOZ_NATIVE_PNG
|
||||
PNG_CFLAGS = @PNG_CFLAGS@
|
||||
PNG_LIBS = @PNG_LIBS@
|
||||
|
34
configure.in
34
configure.in
@ -748,8 +748,6 @@ MOZ_JPEG_CFLAGS=
|
||||
MOZ_JPEG_LIBS='-L$(DIST)/lib -lmozjpeg'
|
||||
MOZ_ZLIB_CFLAGS=
|
||||
MOZ_ZLIB_LIBS='-L$(DIST)/lib -lmozz'
|
||||
MOZ_BZ2_CFLAGS=
|
||||
MOZ_BZ2_LIBS='-L$(DIST)/lib -lbz2'
|
||||
MOZ_PNG_CFLAGS=
|
||||
MOZ_PNG_LIBS='-L$(DIST)/lib -lmozpng'
|
||||
|
||||
@ -3657,35 +3655,6 @@ if test "${ZLIB_DIR}" -a -d "${ZLIB_DIR}" -a "$SYSTEM_ZLIB" = 1; then
|
||||
ZLIB_LIBS="-L${ZLIB_DIR}/lib ${ZLIB_LIBS}"
|
||||
fi
|
||||
|
||||
dnl system BZIP2 Support
|
||||
dnl ========================================================
|
||||
MOZ_ARG_WITH_STRING(system-bz2,
|
||||
[ --with-system-bz2[=PFX]
|
||||
Use system libbz2 [installed at prefix PFX]],
|
||||
BZ2_DIR=$withval)
|
||||
|
||||
_SAVE_CFLAGS=$CFLAGS
|
||||
_SAVE_LDFLAGS=$LDFLAGS
|
||||
_SAVE_LIBS=$LIBS
|
||||
if test -n "${BZ2_DIR}" -a "${BZ2_DIR}" != "yes"; then
|
||||
CFLAGS="-I${BZ2_DIR}/include $CFLAGS"
|
||||
LDFLAGS="-L${BZ2_DIR}/lib $LDFLAGS"
|
||||
fi
|
||||
if test -z "$BZ2_DIR" -o "$BZ2_DIR" = no; then
|
||||
SYSTEM_BZ2=
|
||||
else
|
||||
AC_CHECK_LIB(bz2, BZ2_bzread, [SYSTEM_BZ2=1 MOZ_BZ2_LIBS="-lbz2"],
|
||||
[SYSTEM_BZ2= MOZ_BZ2_CFLAGS= MOZ_BZ2_LIBS=], $MOZ_BZ2_LIBS)
|
||||
fi
|
||||
CFLAGS=$_SAVE_CFLAGS
|
||||
LDFLAGS=$_SAVE_LDFLAGS
|
||||
LIBS=$_SAVE_LIBS
|
||||
|
||||
if test "${BZ2_DIR}" -a -d "${BZ2_DIR}" -a "$SYSTEM_BZ2" = 1; then
|
||||
MOZ_BZ2_CFLAGS="-I${BZ2_DIR}/include"
|
||||
MOZ_BZ2_LIBS="-L${BZ2_DIR}/lib ${MOZ_BZ2_LIBS}"
|
||||
fi
|
||||
|
||||
dnl system PNG Support
|
||||
dnl ========================================================
|
||||
MOZ_ARG_WITH_STRING(system-png,
|
||||
@ -6962,7 +6931,6 @@ AC_SUBST(SYSTEM_MAKEDEPEND)
|
||||
AC_SUBST(SYSTEM_JPEG)
|
||||
AC_SUBST(SYSTEM_PNG)
|
||||
AC_SUBST(SYSTEM_ZLIB)
|
||||
AC_SUBST(SYSTEM_BZ2)
|
||||
|
||||
AC_SUBST(JPEG_CFLAGS)
|
||||
AC_SUBST(JPEG_LIBS)
|
||||
@ -6975,8 +6943,6 @@ AC_SUBST(MOZ_JPEG_CFLAGS)
|
||||
AC_SUBST(MOZ_JPEG_LIBS)
|
||||
AC_SUBST(MOZ_ZLIB_CFLAGS)
|
||||
AC_SUBST(MOZ_ZLIB_LIBS)
|
||||
AC_SUBST(MOZ_BZ2_CFLAGS)
|
||||
AC_SUBST(MOZ_BZ2_LIBS)
|
||||
AC_SUBST(MOZ_PNG_CFLAGS)
|
||||
AC_SUBST(MOZ_PNG_LIBS)
|
||||
|
||||
|
@ -52,11 +52,11 @@ CPPSRCS = \
|
||||
|
||||
PROGRAM = updater$(BIN_SUFFIX)
|
||||
|
||||
REQUIRES = libmar \
|
||||
$(BZ2_REQUIRES)
|
||||
REQUIRES = libmar libbz2
|
||||
|
||||
LIBS += \
|
||||
$(DIST)/lib/$(LIB_PREFIX)mar.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)bz2.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
@ -119,6 +119,3 @@ ifeq ($(OS_ARCH),WINNT)
|
||||
# Pick up nsWindowsRestart.cpp
|
||||
LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/xre
|
||||
endif
|
||||
|
||||
CXXFLAGS += $(MOZ_BZ2_CFLAGS)
|
||||
LIBS += $(MOZ_BZ2_LIBS)
|
||||
|
@ -52,7 +52,6 @@
|
||||
#include "archivereader.h"
|
||||
#include "errors.h"
|
||||
#include "bzlib.h"
|
||||
#include "nscore.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -122,7 +121,7 @@ void LaunchChild(int argc, char **argv);
|
||||
|
||||
// This variable lives in libbz2. It's declared in bzlib_private.h, so we just
|
||||
// declare it here to avoid including that entire header file.
|
||||
extern "C" NS_IMPORT_(unsigned int) BZ2_crc32Table[256];
|
||||
extern "C" unsigned int BZ2_crc32Table[256];
|
||||
|
||||
static unsigned int
|
||||
crc32(const unsigned char *buf, unsigned int len)
|
||||
|
Loading…
Reference in New Issue
Block a user