From 88081dd414142d1dc2e1029b943fb4a87789dc32 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 22 Aug 2018 01:34:48 +0300 Subject: Add support for build for AD clients. Add configure flag --enable-packetver-ad Add defines for AD into mmo.h Add messages list for AD clients. --- configure | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index a0113e7f3..3a33cebd3 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac 7f7b8060c. +# From configure.ac 515eed8ee. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69. # @@ -694,6 +694,7 @@ enable_packetver enable_packetver_re enable_packetver_zero enable_packetver_sak +enable_packetver_ad enable_epoll with_key1 with_key2 @@ -1349,6 +1350,8 @@ Optional Features: 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-packetver-ad Sets or unsets the PACKETVER_AD 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) @@ -3594,6 +3597,25 @@ else fi +# +# packetver-Ad +# +# Check whether --enable-packetver-ad was given. +if test "${enable_packetver_ad+set}" = set; then : + enableval=$enable_packetver_ad; + enable_packetver_ad="$enableval" + case $enableval in + "no");; + "yes");; + *) as_fn_error $? "invalid argument --enable-packetver-ad=$enableval... stopping" "$LINENO" 5;; + esac + +else + enable_packetver_ad="no" + +fi + + # # Epoll @@ -8300,6 +8322,18 @@ case $enable_packetver_sak in ;; esac +# +# Packetver-ad +# +case $enable_packetver_ad in + "yes") + CPPFLAGS="$CPPFLAGS -DENABLE_PACKETVER_AD" + ;; + "no") + # default value + ;; +esac + # # Epoll # -- cgit v1.2.3-70-g09d2