Bug 644861 - --enable-application should default to browser. r=ted

This commit is contained in:
Mitchell Field 2011-03-26 01:49:06 +11:00
parent 2b2622cac7
commit f84197e666

View File

@ -5083,13 +5083,18 @@ if test -z "$XULRUNNER_STUB_NAME"; then
fi
AC_SUBST(XULRUNNER_STUB_NAME)
AC_MSG_CHECKING([for application to build])
if test -z "$MOZ_BUILD_APP"; then
AC_MSG_ERROR([--enable-application=APP was not specified and is required.])
AC_MSG_RESULT([browser])
MOZ_BUILD_APP=browser
else
# We have a valid application only if it has a build.mk file in its top
# directory.
if test ! -f "${srcdir}/${MOZ_BUILD_APP}/build.mk" ; then
AC_MSG_RESULT([none])
AC_MSG_ERROR([--enable-application value not recognized (${MOZ_BUILD_APP}/build.mk does not exist).])
else
AC_MSG_RESULT([$MOZ_BUILD_APP])
fi
fi