aclocal.m4 635 B

123456789101112131415161718192021
  1. ## ----------------------------------- ##
  2. ## Check if --with-dmalloc was given. ##
  3. ## From Franc,ois Pinard ##
  4. ## ----------------------------------- ##
  5. AC_DEFUN([LIBBT_WITH_DMALLOC],
  6. [AC_MSG_CHECKING([if malloc debugging is wanted])
  7. AC_ARG_WITH(dmalloc,
  8. [ --with-dmalloc use dmalloc, as in
  9. http://www.dmalloc.com/dmalloc.tar.gz],
  10. [if test "$withval" = yes; then
  11. AC_MSG_RESULT(yes)
  12. AC_DEFINE(WITH_DMALLOC,1,
  13. [Define if using the dmalloc debugging malloc package])
  14. LIBS="$LIBS -ldmalloc"
  15. LDFLAGS="$LDFLAGS -g"
  16. else
  17. AC_MSG_RESULT(no)
  18. fi], [AC_MSG_RESULT(no)])
  19. ])