aboutsummaryrefslogtreecommitdiffstats
path: root/aclocal.m4
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-01-30 20:57:56 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-01-30 20:57:56 +0000
commitf040b602703f9aa2849384c9116413f9aecf04b4 (patch)
tree6577cd2c6172763a0223ed7bb933657b1c5b5436 /aclocal.m4
parent59a314fd82aefb99aea2e3956248a928f55fa5e4 (diff)
downloadlcd4linux-f040b602703f9aa2849384c9116413f9aecf04b4.tar.gz
[lcd4linux @ 2004-01-30 20:57:55 by reinelt]
HD44780 patch from Martin Hejl dmalloc integrated git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@348 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index b62dd68..ec6d6e4 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -6883,3 +6883,22 @@ SED=$lt_cv_path_SED
AC_MSG_RESULT([$SED])
])
+
+# serial 1
+
+AC_DEFUN([AM_WITH_DMALLOC],
+[AC_MSG_CHECKING(if malloc debugging is wanted)
+AC_ARG_WITH(dmalloc,
+[ --with-dmalloc use dmalloc, as in
+ ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz],
+[if test "$withval" = yes; then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(WITH_DMALLOC,1,
+ [Define if using the dmalloc debugging malloc package])
+ LIBS="$LIBS -ldmalloc"
+ LDFLAGS="$LDFLAGS -g"
+else
+ AC_MSG_RESULT(no)
+fi], [AC_MSG_RESULT(no)])
+])
+