Move --enable-tests out of Python configure and flip the default.

This commit is contained in:
wolfbeast 2018-04-29 13:27:12 +02:00 committed by Roy Tam
commit 8ffcc15d3f
4 changed files with 40 additions and 32 deletions

View file

@ -2261,6 +2261,7 @@ dnl ========================================================
MOZ_ARG_HEADER(Application)
ENABLE_TESTS=
ENABLE_SYSTEM_EXTENSION_DIRS=1
MOZ_BRANDING_DIRECTORY=
MOZ_OFFICIAL_BRANDING=
@ -3876,6 +3877,32 @@ if test -n "$MOZ_UPDATER"; then
AC_DEFINE(MOZ_UPDATER)
fi
dnl ========================================================
dnl Build the tests?
dnl ========================================================
MOZ_ARG_ENABLE_BOOL(tests,
[ --enable-tests Build test libraries & programs],
ENABLE_TESTS=1,
ENABLE_TESTS= )
if test -n "$ENABLE_TESTS"; then
GTEST_HAS_RTTI=0
AC_DEFINE(ENABLE_TESTS)
AC_DEFINE_UNQUOTED(GTEST_HAS_RTTI, 0)
AC_SUBST(GTEST_HAS_RTTI)
if test -n "$_WIN32_MSVC"; then
AC_DEFINE_UNQUOTED(_VARIADIC_MAX, 10)
fi
if test "${OS_TARGET}" = "Android"; then
AC_DEFINE(GTEST_OS_LINUX_ANDROID)
AC_DEFINE(GTEST_USE_OWN_TR1_TUPLE)
AC_DEFINE_UNQUOTED(GTEST_HAS_CLONE, 0)
AC_SUBST(GTEST_OS_LINUX_ANDROID)
AC_SUBST(GTEST_USE_OWN_TR1_TUPLE)
AC_SUBST(GTEST_HAS_CLONE)
fi
fi
dnl ========================================================
dnl parental controls (for Windows Vista)
dnl ========================================================
@ -5328,6 +5355,8 @@ AC_SUBST(LIBICONV)
AC_SUBST(MOZ_TOOLKIT_SEARCH)
AC_SUBST(MOZ_FEEDS)
AC_SUBST(ENABLE_TESTS)
AC_SUBST(MOZ_UNIVERSALCHARDET)
AC_SUBST(ACCESSIBILITY)
AC_SUBST(MOZ_SPELLCHECK)