!GROK!THIS!
case "${osname}" in
-linux*)
+linux*|darwin)
$spitshell >>$Makefile <<!GROK!THIS!
# If you're going to use valgrind and it can't be invoked as plain valgrind
# then you'll need to change this, or override it on the make command line.
!NO!SUBS!
case "${osname}${osvers}" in
-linux*)
+linux*|darwin*)
$spitshell >>$Makefile <<'!NO!SUBS!'
-# Valgrind perl (currently Linux only)
+# Valgrind perl (currently Linux, Darwin only)
perl.valgrind.config: config.sh
@echo "To build perl.valgrind you must Configure -Doptimize=-g -Uusemymalloc, checking..."
!NO!SUBS!
case "${osname}${osvers}" in
-linux*)
+linux*|darwin*)
$spitshell >>$Makefile <<'!NO!SUBS!'
# Targets for valgrind testing: