[Freeciv-Dev] [PATCH] --with-efence
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
If you have Electric Fence Malloc Debugger, you can link against
it with following patch.
./configure --with-efence
This patch is "developer only".
diff -u -u -r1.3 configure.in
--- configure.in 1999/07/03 13:06:49 1.3
+++ configure.in 1999/07/03 23:56:05
@@ -75,6 +75,11 @@
WITH_XAW=1
)
+AC_ARG_WITH(efence,
+ [ --with-efence use Electric Fence, malloc debugger ],
+ WITH_EFENCE=1
+)
+
AC_ARG_ENABLE(client,
[ --disable-client do not compile the client],
[case "${enableval}" in
@@ -276,5 +281,15 @@
dnl export where the datadir is going to be installed
FC_EXPAND_DIR(FREECIV_DATADIR, "$datadir/freeciv")
AC_DEFINE_UNQUOTED(FREECIV_DATADIR, "$FREECIV_DATADIR")
+
+dnl This has to be last library
+if test ! -z $WITH_EFENCE; then
+ AC_CHECK_LIB(efence, malloc, [
+ if test "x$LIBS" = "x"; then
+ LIBS = -lefence
+ else
+ LIBS="$LIBS -lefence"
+ fi])
+fi
AC_OUTPUT(Makefile data/Makefile data/default/Makefile data/civ1/Makefile
data/trident/Makefile common/Makefile ai/Makefile client/Makefile
client/include/Makefile client/gui-gtk/Makefile client/gui-xaw/Makefile
server/Makefile undep.sh, [ chmod +x undep.sh ; ./undep.sh ])
--
//Markus
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] [PATCH] --with-efence,
Markus Linnala <=
|
|