Bug 543297 - Port |Bug 498330 -- make distclean doesn't work with --disable-compile-environment| to comm-central; (Av1) Just copy it.
authorSerge Gautherie <sgautherie.bz@free.fr>
Mon, 15 Feb 2010 04:44:41 +0100
changeset 4913 10bf94ca3428eacea7140401825f6076faee80e7
parent 4912 36643bb71021213c4eae55cf771e117ae44be7ba
child 4914 4e74b1e6e94c4ecc44eafc2fa79e4ca4b1353a66
push idunknown
push userunknown
push dateunknown
bugs543297, 498330
Bug 543297 - Port |Bug 498330 -- make distclean doesn't work with --disable-compile-environment| to comm-central; (Av1) Just copy it. r=Callek.
Makefile.in
config/autoconf.mk.in
configure.in
--- a/Makefile.in
+++ b/Makefile.in
@@ -38,17 +38,19 @@ DEPTH		= .
 topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(DEPTH)/config/autoconf.mk
 
 default::
 
+ifdef COMPILE_ENVIRONMENT
 include $(topsrcdir)/$(MOZ_BUILD_APP)/build.mk
+endif
 
 include $(topsrcdir)/config/config.mk
 
 default alldep all:: $(topsrcdir)/configure config.status
 
 $(topsrcdir)/configure: $(topsrcdir)/configure.in
 	@echo "STOP!  configure.in has changed, and your configure is out of date."
 	@echo "Please rerun autoconf and configure."
--- a/config/autoconf.mk.in
+++ b/config/autoconf.mk.in
@@ -231,16 +231,17 @@ MOZ_INSURIFYING = @MOZ_INSURIFYING@
 MOZ_INSURE_DIRS = @MOZ_INSURE_DIRS@
 MOZ_INSURE_EXCLUDE_DIRS = @MOZ_INSURE_EXCLUDE_DIRS@
 
 MOZ_NATIVE_NSPR = @MOZ_NATIVE_NSPR@
 MOZ_NATIVE_NSS = @MOZ_NATIVE_NSS@
 
 BUILD_CTYPES = @BUILD_CTYPES@
 
+COMPILE_ENVIRONMENT = @COMPILE_ENVIRONMENT@
 CROSS_COMPILE   = @CROSS_COMPILE@
 
 OS_CPPFLAGS	= @CPPFLAGS@
 OS_CFLAGS	= $(OS_CPPFLAGS) @CFLAGS@
 OS_CXXFLAGS	= $(OS_CPPFLAGS) @CXXFLAGS@
 OS_LDFLAGS	= @LDFLAGS@
 
 OS_COMPILE_CFLAGS = $(OS_CPPFLAGS) @COMPILE_CFLAGS@
--- a/configure.in
+++ b/configure.in
@@ -254,16 +254,17 @@ esac
 fi
 
 COMPILE_ENVIRONMENT=1
 MOZ_ARG_ENABLE_BOOL(compile-environment,
 [  --disable-compile-environment
                            Disable compiler/library checks.],
     COMPILE_ENVIRONMENT=1,
     COMPILE_ENVIRONMENT= )
+AC_SUBST(COMPILE_ENVIRONMENT)
 
 MOZ_ARG_WITH_STRING(l10n-base,
 [  --with-l10n-base=DIR     path to l10n repositories],
     L10NBASEDIR=$withval)
 if test ! -z "$L10NBASEDIR"; then
     if test "$L10NBASEDIR" = "yes" -o "$L10NBASEDIR" = "no"; then
         AC_MSG_ERROR([--with-l10n-base must specify a path])
     elif test -d "$L10NBASEDIR"; then