Author: suokko
Date: Wed Aug 13 15:02:47 2008
New Revision: 28539
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28539&view=rev
Log:
Added banwidth statistics configure switch
Modified:
trunk/configure.ac
trunk/src/Makefile.am
Modified: trunk/configure.ac
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/configure.ac?rev=28539&r1=28538&r2=28539&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Wed Aug 13 15:02:47 2008
@@ -289,6 +289,11 @@
[raw_sockets=$enableval],
[raw_sockets=no])
+AC_ARG_ENABLE([bandwidth-monitor],
+ AS_HELP_STRING([--enable-bandwidth-monitor], [Enable bandwidth
monitoring for server]),
+ [bandwidth_monitor=$enableval],
+ [bandwidth_monitor=no])
+
if test "x$raw_sockets" = "xyes"
then
CPPFLAGS="$CPPFLAGS -DNETWORK_USE_RAW_SOCKETS"
@@ -302,6 +307,7 @@
AM_CONDITIONAL([TESTS], [test x$tests = xyes])
AM_CONDITIONAL([EDITOR], [test x$editor = xyes])
AM_CONDITIONAL([EDITOR2], [test x$editor2 = xyes])
+AM_CONDITIONAL([BANDWIDTH_MONITOR], [test x$bandwidth_monitor = xyes])
AM_CONDITIONAL([TOOLS], [test x$tools = xyes])
AM_CONDITIONAL([GCC], [test x$GXX = xyes])
AM_CONDITIONAL([INCLUDEDINTL], [test x$nls_cv_use_gnu_gettext = xyes])
Modified: trunk/src/Makefile.am
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/Makefile.am?rev=28539&r1=28538&r2=28539&view=diff
==============================================================================
--- trunk/src/Makefile.am (original)
+++ trunk/src/Makefile.am Wed Aug 13 15:02:47 2008
@@ -223,6 +223,10 @@
time.cpp \
loadscreen_empty.cpp
+if BANDWIDTH_MONITOR
+wesnothd_CXXFLAGS = $(AM_CXXFLAGS) -DBANDWIDTH_MONITOR
+endif
+
wesnothd_LDADD = -L. -lwesnoth-core $(BOOST_IOSTREAMS_LIBS) @SDL_NET_LIBS@
@SDL_LIBS@ $(LIBINTL)
wesnothd_DEPENDENCIES=libwesnoth-core.a
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits