From 6a2ff38f0fb2ed00e96a1a3d4cd2c655774e87fe Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Thu, 25 Oct 2018 18:12:58 -0400 Subject: Issue #795 - Make nsIUserInfo component optional This allows the nsIUserinfo component to be disabled with --disable-userinfo in mozconfig at build time, but leaves it on by default to avoid any compatibility issues in existing applications. --- old-configure.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'old-configure.in') diff --git a/old-configure.in b/old-configure.in index 80597eb73..d0b17835c 100644 --- a/old-configure.in +++ b/old-configure.in @@ -2247,6 +2247,7 @@ MOZ_PLACES=1 MOZ_SERVICES_HEALTHREPORT=1 MOZ_SERVICES_SYNC=1 MOZ_SERVICES_CLOUDSYNC=1 +MOZ_USERINFO=1 case "$target_os" in mingw*) @@ -4586,6 +4587,20 @@ fi AC_SUBST(MOZ_DEVTOOLS) +dnl ======================================================== +dnl = Disable nsUserInfo +dnl ======================================================== +MOZ_ARG_DISABLE_BOOL(userinfo, +[ --disable-userinfo Disable nsUserInfo (default=enabled)], + MOZ_USERINFO=, + MOZ_USERINFO=1) + +if test -n "$MOZ_USERINFO"; then + AC_DEFINE(MOZ_USERINFO) +fi + +AC_SUBST(MOZ_USERINFO) + dnl ======================================================== dnl = Define default location for MOZILLA_FIVE_HOME dnl ======================================================== -- cgit v1.2.3