[PATCH] librep: dlmalloc is unused



> Here's a patch to remove dlmalloc from configure. You should also
> delete src/dlmalloc.c file from the repository.

Here's similar patch for librep.


diff -ur git-librep/config.h.in librep/config.h.in
--- git-librep/config.h.in	2009-12-29 16:56:14.000000000 +0200
+++ librep/config.h.in	2009-12-29 17:01:22.000000000 +0200
@@ -23,9 +23,6 @@
 /* Need dlsym uscore */
 #undef DLSYM_NEED_USCORE
 
-/* Have doug lea malloc */
-#undef DOUG_LEA_MALLOC
-
 /* Env undeclared */
 #undef ENVIRON_UNDECLARED
 
@@ -288,9 +285,6 @@
 /* Have libc gettext */
 #undef LIBC_GETTEXT
 
-/* Have libc malloc */
-#undef LIBC_MALLOC
-
 /* Define to the address where bug reports for this package should be sent. */
 #undef PACKAGE_BUGREPORT
 
diff -ur git-librep/configure.in librep/configure.in
--- git-librep/configure.in	2009-12-29 17:02:51.000000000 +0200
+++ librep/configure.in	2009-12-29 17:01:46.000000000 +0200
@@ -160,20 +160,6 @@
     AC_MSG_ERROR(Cannot find GDBM header))
 AC_SUBST(GDBM_LIBS)
 
-dnl Check for Doug Lea's malloc in libc
-doug_lea_malloc=yes
-AC_CHECK_FUNC(malloc_get_state, , doug_lea_malloc=no)
-AC_CHECK_FUNC(malloc_set_state, , doug_lea_malloc=no)
-if test "$doug_lea_malloc" = "no"; then
-  dnl We used to compile our own version of dlmalloc on most
-  dnl platforms that didn't have it in their libc. But the list
-  dnl of exceptions was growing too long..
-  AC_DEFINE(LIBC_MALLOC, 1, [Have libc malloc])
-else
-  AC_DEFINE(DOUG_LEA_MALLOC, 1, [Have doug lea malloc])
-  AC_DEFINE(LIBC_MALLOC, 1, [Have libc malloc])
-fi
-
 dnl Check for readline
 AC_ARG_WITH(readline,
  [  --with-readline         support fancy command input editing


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]