Bug 1035096 - Avoid much mess by not letting mozilla subconfigure read mozconfig. r=jcranmer

This commit is contained in:
Mike Hommey 2014-07-08 13:53:24 +09:00
Родитель 98c6e3c4b3
Коммит c14cdd4d55
1 изменённых файлов: 11 добавлений и 5 удалений

Просмотреть файл

@ -15,11 +15,15 @@ AC_CANONICAL_SYSTEM
dnl comm-central-specific options
dnl (MOZILLA_SRCDIR would fit here, but is needed to find autoconf tools)
COMM_BUILD=1
export COMM_BUILD=1
dnl export this, so the var is set for mozilla/configure
MOZCONFIG=`$srcdir/build/autoconf/mozconfig-find $srcdir`
export MOZCONFIG
dnl Get mozconfig output for configure in a config.site we'll pass to
dnl the mozilla configure. Then unset MOZCONFIG and MOZ_OBJDIR to avoid
dnl confusing the mozilla configure.
$(dirname $0)/mozilla/mach environment --format=configure > config.site
COMM_MOZCONFIG=`$srcdir/build/autoconf/mozconfig-find $srcdir`
unset MOZCONFIG
unset MOZ_OBJDIR
dnl Do not allow a separate objdir build if a srcdir build exists.
dnl ==============================================================
@ -268,8 +272,10 @@ if test -n "$MOZ_CURRENT_PROJECT"; then
export MOZ_BUILD_APP="$MOZ_CURRENT_PROJECT"
fi
# Files listed in $CONFIG_SITE are sourced by configure near the beginning.
export CONFIG_SITE="$(pwd)/config.site $CONFIG_SITE"
AC_OUTPUT_SUBDIRS(mozilla)
MOZ_BUILD_APP="$MOZ_BUILD_APP_CACHED"
# Build the comm-central files with config.status
test "$no_create" = yes || WRITE_MOZINFO=1 ${PYTHON} $CONFIG_STATUS || exit 1
test "$no_create" = yes || MOZCONFIG="$COMM_MOZCONFIG" WRITE_MOZINFO=1 ${PYTHON} $CONFIG_STATUS || exit 1