summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-08-22 01:26:00 +0300
committerAndrei Karas <akaras@inbox.ru>2018-08-25 00:37:54 +0300
commit05af69b6dcdc5fddac4da8ebfdd2ff9036e41c90 (patch)
tree6ceab1bde0bfd7f43ff8bf917452c54d31f5fae9 /configure
parentbf6b8a0ccfb3f0b35aec9b0ae833327ab5cbf405 (diff)
downloadhercules-05af69b6dcdc5fddac4da8ebfdd2ff9036e41c90.tar.gz
hercules-05af69b6dcdc5fddac4da8ebfdd2ff9036e41c90.tar.bz2
hercules-05af69b6dcdc5fddac4da8ebfdd2ff9036e41c90.tar.xz
hercules-05af69b6dcdc5fddac4da8ebfdd2ff9036e41c90.zip
Add support for build for SAK clients.
Add configure flag --enable-packetver-sak Add defines for SAK into mmo.h Add messages list for SAK clients.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure36
1 files changed, 35 insertions, 1 deletions
diff --git a/configure b/configure
index b8f002e32..a0113e7f3 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac dfd6225e6.
+# From configure.ac 7f7b8060c.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.
#
@@ -693,6 +693,7 @@ enable_manager
enable_packetver
enable_packetver_re
enable_packetver_zero
+enable_packetver_sak
enable_epoll
with_key1
with_key2
@@ -1346,6 +1347,8 @@ Optional Features:
src/common/mmo.h (currently disabled by default)
--enable-packetver-zero Sets or unsets the PACKETVER_ZERO define - see
src/common/mmo.h (currently disabled by default)
+ --enable-packetver-sak Sets or unsets the PACKETVER_SAK define - see
+ src/common/mmo.h (currently disabled by default)
--enable-epoll use epoll(4) on Linux
--enable-debug[=ARG] Compiles extra debug code. (yes by default)
(available options: yes, no, gdb)
@@ -3572,6 +3575,25 @@ else
fi
+#
+# packetver-Sak
+#
+# Check whether --enable-packetver-sak was given.
+if test "${enable_packetver_sak+set}" = set; then :
+ enableval=$enable_packetver_sak;
+ enable_packetver_sak="$enableval"
+ case $enableval in
+ "no");;
+ "yes");;
+ *) as_fn_error $? "invalid argument --enable-packetver-sak=$enableval... stopping" "$LINENO" 5;;
+ esac
+
+else
+ enable_packetver_sak="no"
+
+fi
+
+
#
# Epoll
@@ -8267,6 +8289,18 @@ case $enable_packetver_zero in
esac
#
+# Packetver-Sak
+#
+case $enable_packetver_sak in
+ "yes")
+ CPPFLAGS="$CPPFLAGS -DENABLE_PACKETVER_SAK"
+ ;;
+ "no")
+ # default value
+ ;;
+esac
+
+#
# Epoll
#
case $have_linux_epoll in