Index: configure.in
===================================================================
--- configure.in (revision 17374)
+++ configure.in (working copy)
@@ -37,6 +37,25 @@
[enable_manager="builtin"]
)
+AC_ARG_ENABLE(
+ [prere],
+ AC_HELP_STRING(
+ [--enable-prere@<:@=ARG@:>@],
+ [
+ Compiles serv in prere mode. (disabled by default)
+ (available options: yes, no)
+ ]
+ ),
+ [
+ enable_prere="$enableval"
+ case $enableval in
+ "no");;
+ "yes");;
+ *) AC_MSG_ERROR([[invalid argument --enable-prere=$enableval... stopping]]);;
+ esac
+ ],
+ [enable_prere="no"]
+)
#
# packetver
@@ -638,6 +657,12 @@
CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver"
fi
+#
+# Renewal
+#
+if test -n "$enable_prere" ; then
+ CFLAGS="$CFLAGS -URENEWAL -URENEWAL_CAST -URENEWAL_DROP -URENEWAL_EXP -URENEWAL_LVDMG -URENEWAL_EDP -URENEWAL_ASPD"
+fi
#
# Debug
Index: configure
===================================================================
--- configure (revision 17374)
+++ configure (working copy)
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 17342 .
+# From configure.in Revision: 17367 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.
#
@@ -687,6 +687,7 @@
ac_user_opts='
enable_option_checking
enable_manager
+enable_prere
enable_packetver
enable_debug
enable_warn
@@ -1320,6 +1321,8 @@
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-manager=ARG memory managers: no, builtin, memwatch, dmalloc,
gcollect, bcheck (defaults to builtin)
+ --enable-prere[=ARG] Compiles serv in prere mode. (disabled by default)
+ (available options: yes, no)
--enable-packetver=ARG Sets the PACKETVER define of the map-server. (see
src/map/clif.h)
--enable-debug[=ARG] Compiles extra debug code. (disabled by default)
@@ -3435,7 +3438,22 @@
fi
+# Check whether --enable-prere was given.
+if test "${enable_prere+set}" = set; then :
+ enableval=$enable_prere;
+ enable_prere="$enableval"
+ case $enableval in
+ "no");;
+ "yes");;
+ *) as_fn_error $? "invalid argument --enable-prere=$enableval... stopping" "$LINENO" 5;;
+ esac
+else
+ enable_prere="no"
+
+fi
+
+
#
# packetver
#
@@ -5176,6 +5194,12 @@
CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver"
fi
+#
+# Renewal
+#
+if test -n "$enable_prere" ; then
+ CFLAGS="$CFLAGS -URENEWAL -URENEWAL_CAST -URENEWAL_DROP -URENEWAL_EXP -URENEWAL_LVDMG -URENEWAL_EDP -URENEWAL_ASPD"
+fi
#
# Debug