From: Chris Coulson <chris.coulson@canonical.com>
Date: Tue, 12 Jul 2022 19:55:04 +0800
Subject: Introduce --with-app-profile to change the profile location, so

that we can have nightly builds that are fully coinstallable with release
builds
Forwarded: no
---
 build/moz.configure/old.configure | 1 +
 old-configure.in                  | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/build/moz.configure/old.configure b/build/moz.configure/old.configure
index a18b52b..32fdab4 100644
--- a/build/moz.configure/old.configure
+++ b/build/moz.configure/old.configure
@@ -94,6 +94,7 @@ def old_configure_options(*options):
     "--includedir",
     "--libdir",
     "--prefix",
+    "--with-app-profile",
     "--with-branding",
     "--with-distribution-id",
     "--with-macbundlename-prefix",
diff --git a/old-configure.in b/old-configure.in
index a7d8193..5794827 100644
--- a/old-configure.in
+++ b/old-configure.in
@@ -993,6 +993,15 @@ if test -n "$WITH_UA_VENDOR" ; then
     MOZ_UA_VENDOR="$WITH_UA_VENDOR"
 fi
 
+MOZ_ARG_WITH_STRING(app-profile,
+[--with-app-profile=APPPROFILE sets MOZ_APP_PROFILE to APPPROFILE],
+WITH_APP_PROFILE=$withval,
+)
+
+if test -n "$WITH_APP_PROFILE" ; then
+    MOZ_APP_PROFILE="$WITH_APP_PROFILE"
+fi
+
 AC_SUBST(MOZ_OFFICIAL_BRANDING)
 if test -n "$MOZ_OFFICIAL_BRANDING"; then
   if test -z "$MOZ_OFFICIAL_BRANDING_DIRECTORY"; then
