From 478b3b69960c4030492731b5abac4214d3766c72 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Fri, 2 Jan 2009 09:13:22 +0000 Subject: [PATCH] Add BUILD_CREDIT support using --with-build-credit which shows up in the titlebar (I didn't want to add this but it keeps coming up.) I also hope it is not abused by setting usernames during package builds for distributions. It should only be used for personal builds only or shared builds by individuals. Originally committed to SVN as r2614. --- configure.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configure.in b/configure.in index 32ef0f4ca..802ae470e 100644 --- a/configure.in +++ b/configure.in @@ -89,6 +89,21 @@ AC_SUBST(aegisubdatadir) # Install prefix used by wxStandardPaths::SetInstallPrefix. AC_DEFINE_UNQUOTED([INSTALL_PREFIX], ["$prefix"], [Default install prefix, or --prefix.]) +AC_ARG_WITH(build-credit, [--with-build-credit=NAME Build credit shown in the program title.], [use_build_credit="yes"]) + +AC_MSG_CHECKING([whether BUILD_CREDIT has been set]) +if test "$use_build_credit" = "yes"; then + if test "$with_build_credit" = "yes" || test -z "$with_build_credit"; then + AC_MSG_FAILURE([You must set a value eg --with-build-credit=]) + else + AC_MSG_RESULT([yes ($with_build_credit)]) + AC_DEFINE_UNQUOTED([BUILD_CREDIT], ["$with_build_credit"], [Build credit supplied in application title using --with-build-credit=]) + fi +else + AC_MSG_RESULT([no]) +fi + + #################### # Check for programs ####################