0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-18 10:53:48 +02:00

configure: Add --with-custom-branding and --with-custom-version options.

This commit is contained in:
William Pitcock 2011-05-08 08:55:32 -05:00
parent 69a367da50
commit b6d0720c1c
8 changed files with 3330 additions and 1930 deletions

788
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -655,6 +655,33 @@ AC_HELP_STRING([--with-moduledir=DIR],
AC_SUBST_DIR([moduledir])]
)
dnl **********************************************************************
dnl Branding
dnl **********************************************************************
AC_MSG_CHECKING([whether custom branding is requested])
AC_ARG_WITH(custom-branding,
AC_HELP_STRING([--with-custom-branding=NAME],
[Custom branding name.]),
[BRANDING_NAME=$withval
AC_MSG_RESULT([yes])],
[BRANDING_NAME=$PACKAGE_NAME
AC_MSG_RESULT([no])]
)
AC_MSG_CHECKING([whether a custom version is requested])
AC_ARG_WITH(custom-version,
AC_HELP_STRING([--with-custom-version=NAME],
[Custom version branding.]),
[BRANDING_VERSION=$withval
AC_MSG_RESULT([yes])],
[BRANDING_VERSION=$PACKAGE_VERSION
AC_MSG_RESULT([no])]
)
AC_DEFINE_UNQUOTED(BRANDING_NAME, ["$BRANDING_NAME"], [Custom branding name.])
AC_DEFINE_UNQUOTED(BRANDING_VERSION, ["$BRANDING_VERSION"], [Custom branding name.])
if test ! -z "$SELECT_TYPE_EXPLICIT"; then
SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
echo "Forcing $SELECT_TYPE to be enabled"
@ -1182,7 +1209,7 @@ else
fi
echo "
Configuration:
Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
Install directory : $prefix
Ziplinks : $zlib
@ -1194,5 +1221,5 @@ Configuration:
Nickname length : $NICKLEN
Topic length : $TOPICLEN
Use (g)make to compile Charybdis, then (g)make install to install it.
Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.
"

View file

@ -27,5 +27,5 @@
#include "setup.h"
#ifndef PATCHLEVEL
#define PATCHLEVEL PACKAGE_NAME "-" PACKAGE_VERSION
#define PATCHLEVEL BRANDING_NAME "-" BRANDING_VERSION
#endif

View file

@ -9,6 +9,12 @@
/* Size of the ban heap. */
#undef BAN_HEAP_SIZE
/* Custom branding name. */
#undef BRANDING_NAME
/* Custom branding name. */
#undef BRANDING_VERSION
/* Size of the channel heap. */
#undef CHANNEL_HEAP_SIZE

View file

@ -143,10 +143,10 @@ CFLAGS = @CFLAGS@
CP = @CP@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CRYPT_LIB = @CRYPT_LIB@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
@ -174,6 +174,7 @@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
MV = @MV@
NM = @NM@
@ -208,6 +209,7 @@ abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
@ -240,7 +242,6 @@ libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
lt_ECHO = @lt_ECHO@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@

2080
libratbox/aclocal.m4 vendored

File diff suppressed because it is too large Load diff

2343
libratbox/configure vendored

File diff suppressed because it is too large Load diff

View file

@ -113,10 +113,10 @@ CFLAGS = @CFLAGS@
CP = @CP@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CRYPT_LIB = @CRYPT_LIB@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
@ -144,6 +144,7 @@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
MV = @MV@
NM = @NM@
@ -178,6 +179,7 @@ abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
@ -210,7 +212,6 @@ libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
lt_ECHO = @lt_ECHO@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@