Bug 649722 - allow setting MOZ_APP_NAME in configure.in; r=ted
authorJohn Ford <jhford@mozilla.com>
Fri, 15 Apr 2011 11:39:24 -0700
changeset 68197 bee1149208a9d7424f27cb5c63e9d926e2ece11e
parent 68196 5cc41f55de1fe19aae2cfb29d5b0e50aa111dbf5
child 68198 98094f3afb9306c9387dff493ae4df10269ec29d
push idunknown
push userunknown
push dateunknown
reviewersted
bugs649722
milestone6.0a1
first release with
nightly win64
bee1149208a9 / 6.0a1 / 20110416030211 / files
nightly linux32
nightly linux64
nightly mac
nightly win32
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly win64
Bug 649722 - allow setting MOZ_APP_NAME in configure.in; r=ted
configure.in
--- a/configure.in
+++ b/configure.in
@@ -5102,16 +5102,26 @@ fi
 AC_MSG_CHECKING([if app-specific confvars.sh exists])
 if test -f "${srcdir}/${MOZ_BUILD_APP}/confvars.sh" ; then
   AC_MSG_RESULT([${srcdir}/${MOZ_BUILD_APP}/confvars.sh])
   . "${srcdir}/${MOZ_BUILD_APP}/confvars.sh"
 else
   AC_MSG_RESULT([no])
 fi
 
+# Allow someone to change MOZ_APP_NAME in mozconfig
+MOZ_ARG_WITH_STRING(app-name,
+[--with-app-name=APPNAME sets MOZ_APP_NAME to APPNAME],
+WITH_APP_NAME=$withval,
+)
+
+if test -n "$WITH_APP_NAME" ; then
+    MOZ_APP_NAME="$WITH_APP_NAME"
+fi
+
 # Now is a good time to test for logic errors, define mismatches, etc.
 case "$MOZ_BUILD_APP" in
 xulrunner)
   if test "$LIBXUL_SDK"; then
     AC_MSG_ERROR([Building XULRunner --with-libxul-sdk doesn't make sense; XULRunner provides the libxul SDK.])
   fi
   ;;
 esac