diff options
-rwxr-xr-x | configure | 65 | ||||
-rw-r--r-- | configure.ac | 33 | ||||
-rw-r--r-- | src/common/mmo.h | 7 |
3 files changed, 104 insertions, 1 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac b7b45b7c3. +# From configure.ac b60eb4b69. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69. # @@ -692,6 +692,7 @@ enable_option_checking enable_manager enable_packetver enable_packetver_re +enable_packetver_zero enable_epoll with_key1 with_key2 @@ -1343,6 +1344,8 @@ Optional Features: --enable-packetver=ARG Sets the PACKETVER define. (see src/common/mmo.h) --enable-packetver-re Sets or unsets the PACKETVER_RE define - see 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-epoll use epoll(4) on Linux --enable-debug[=ARG] Compiles extra debug code. (yes by default) (available options: yes, no, gdb) @@ -3551,6 +3554,26 @@ fi # +# packetver-Zero +# +# Check whether --enable-packetver-zero was given. +if test "${enable_packetver_zero+set}" = set; then : + enableval=$enable_packetver_zero; + enable_packetver_zero="$enableval" + case $enableval in + "no");; + "yes");; + *) as_fn_error $? "invalid argument --enable-packetver-zero=$enableval... stopping" "$LINENO" 5;; + esac + +else + enable_packetver_zero="no" + +fi + + + +# # Epoll # # Check whether --enable-epoll was given. @@ -8232,6 +8255,18 @@ case $enable_packetver_re in esac # +# Packetver-Zero +# +case $enable_packetver_zero in + "yes") + CPPFLAGS="$CPPFLAGS -DENABLE_PACKETVER_ZERO" + ;; + "no") + # default value + ;; +esac + +# # Epoll # case $have_linux_epoll in @@ -8372,6 +8407,34 @@ case $enable_renewal in ;; esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-var-tracking" >&5 +$as_echo_n "checking whether $CC supports -fno-var-tracking... " >&6; } + OLD_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -fno-var-tracking" + OLD_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -fno-var-tracking" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + CFLAGS="$OLD_CFLAGS" + LDFLAGS="$OLD_LDFLAGS" + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + # # Host specific stuff # diff --git a/configure.ac b/configure.ac index 7539b0890..35a23b331 100644 --- a/configure.ac +++ b/configure.ac @@ -144,6 +144,27 @@ AC_ARG_ENABLE( # +# packetver-Zero +# +AC_ARG_ENABLE( + [packetver-zero], + AC_HELP_STRING( + [--enable-packetver-zero], + [Sets or unsets the PACKETVER_ZERO define - see src/common/mmo.h (currently disabled by default)] + ), + [ + enable_packetver_zero="$enableval" + case $enableval in + "no");; + "yes");; + *) AC_MSG_ERROR([[invalid argument --enable-packetver-zero=$enableval... stopping]]);; + esac + ], + [enable_packetver_zero="no"] +) + + +# # Epoll # AC_ARG_ENABLE([epoll], @@ -1225,6 +1246,18 @@ case $enable_packetver_re in esac # +# Packetver-Zero +# +case $enable_packetver_zero in + "yes") + CPPFLAGS="$CPPFLAGS -DENABLE_PACKETVER_ZERO" + ;; + "no") + # default value + ;; +esac + +# # Epoll # case $have_linux_epoll in diff --git a/src/common/mmo.h b/src/common/mmo.h index 6a0e75ca5..aadba9cab 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -74,6 +74,13 @@ #undef ENABLE_PACKETVER_RE #endif // DISABLE_PACKETVER_RE +//Uncomment the following line if your client is zero ragexe instead of normal kro clients +//#define ENABLE_PACKETVER_ZERO +#ifdef ENABLE_PACKETVER_ZERO + #define PACKETVER_ZERO + #undef ENABLE_PACKETVER_ZERO +#endif // DISABLE_PACKETVER_ZERO + // Client support for experimental RagexeRE UI present in 2012-04-10 and 2012-04-18 #if defined(PACKETVER_RE) && ( PACKETVER == 20120410 || PACKETVER == 20120418 ) #define PARTY_RECRUIT |