Skip to content

Commit

Permalink
Fixed --disable-packetver-re / --enable-packetver-re in ./configure
Browse files Browse the repository at this point in the history
- Follow-up to c50e094

Signed-off-by: Haru <haru@dotalux.com>
  • Loading branch information
MishimaHaruna committed Jan 21, 2014
1 parent 284a163 commit 9701fe3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
12 changes: 6 additions & 6 deletions configure
@@ -1,5 +1,5 @@
#! /bin/sh
# From configure.in d0f16b7.
# From configure.in 284a163.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.
#
Expand Down Expand Up @@ -1328,8 +1328,8 @@ Optional Features:
--enable-manager=ARG memory managers: no, builtin, memwatch, dmalloc,
gcollect, bcheck (defaults to builtin)
--enable-packetver=ARG Sets the PACKETVER define. (see src/common/mmo.h)
--disable-packetver-re Sets or unsets the PACKETVER_RE define - see
src/common/mmo.h (currently enabled by default)
--enable-packetver-re Sets or unsets the PACKETVER_RE define - see
src/common/mmo.h (currently disabled by default)
--enable-debug[=ARG] Compiles extra debug code. (disabled by default)
(available options: yes, no, gdb)
--enable-buildbot[=ARG] (available options: yes, no)
Expand Down Expand Up @@ -3485,7 +3485,7 @@ if test "${enable_packetver_re+set}" = set; then :
esac
else
enable_packetver_re="yes"
enable_packetver_re="no"
fi
Expand Down Expand Up @@ -6232,10 +6232,10 @@ fi
#
case $enable_packetver_re in
"yes")
# default value
CFLAGS="$CFLAGS -DDISABLE_PACKETVER_RE"
CFLAGS="$CFLAGS -DENABLE_PACKETVER_RE"
;;
"no")
# default value
;;
esac
Expand Down
10 changes: 5 additions & 5 deletions configure.in
Expand Up @@ -59,8 +59,8 @@ AC_ARG_ENABLE(
AC_ARG_ENABLE(
[packetver-re],
AC_HELP_STRING(
[--disable-packetver-re],
[Sets or unsets the PACKETVER_RE define - see src/common/mmo.h (currently enabled by default)]
[--enable-packetver-re],
[Sets or unsets the PACKETVER_RE define - see src/common/mmo.h (currently disabled by default)]
),
[
enable_packetver_re="$enableval"
Expand All @@ -70,7 +70,7 @@ AC_ARG_ENABLE(
*) AC_MSG_ERROR([[invalid argument --enable-packetver-re=$enableval... stopping]]);;
esac
],
[enable_packetver_re="yes"]
[enable_packetver_re="no"]
)


Expand Down Expand Up @@ -929,10 +929,10 @@ fi
#
case $enable_packetver_re in
"yes")
# default value
CFLAGS="$CFLAGS -DDISABLE_PACKETVER_RE"
CFLAGS="$CFLAGS -DENABLE_PACKETVER_RE"
;;
"no")
# default value
;;
esac

Expand Down
8 changes: 5 additions & 3 deletions src/common/mmo.h
Expand Up @@ -51,9 +51,11 @@
#define PACKETVER 20131223
#endif // PACKETVER

#ifndef DISABLE_PACKETVER_RE
//Uncomment the following line if your client is ragexeRE instead of ragexe (required because of conflicting packets in ragexe vs ragexeRE).
//#define PACKETVER_RE
//Uncomment the following line if your client is ragexeRE instead of ragexe (required because of conflicting packets in ragexe vs ragexeRE).
//#define ENABLE_PACKETVER_RE
#ifdef ENABLE_PACKETVER_RE
#define PACKETVER_RE
#undef ENABLE_PACKETVER_RE
#endif // DISABLE_PACKETVER_RE

// Client support for experimental RagexeRE UI present in 2012-04-10 and 2012-04-18
Expand Down

0 comments on commit 9701fe3

Please sign in to comment.