summaryrefslogtreecommitdiff
path: root/configure.ac
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.ac
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.ac')
-rw-r--r--configure.ac32
1 files changed, 32 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 35a23b331..fc6ad3a79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -163,6 +163,26 @@ AC_ARG_ENABLE(
[enable_packetver_zero="no"]
)
+#
+# packetver-Sak
+#
+AC_ARG_ENABLE(
+ [packetver-sak],
+ AC_HELP_STRING(
+ [--enable-packetver-sak],
+ [Sets or unsets the PACKETVER_SAK define - see src/common/mmo.h (currently disabled by default)]
+ ),
+ [
+ enable_packetver_sak="$enableval"
+ case $enableval in
+ "no");;
+ "yes");;
+ *) AC_MSG_ERROR([[invalid argument --enable-packetver-sak=$enableval... stopping]]);;
+ esac
+ ],
+ [enable_packetver_sak="no"]
+)
+
#
# Epoll
@@ -1258,6 +1278,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