Make perl.third checks more understandable to the builder.
Jarkko Hietaniemi [Sun, 18 Mar 2001 19:37:46 +0000 (19:37 +0000)]
p4raw-id: //depot/perl@9204

Makefile.SH

index a2cb1a2..7747d6c 100644 (file)
@@ -507,8 +507,12 @@ quantperl: $& perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_ext) ext.libs
 
 perl.third.config: config.sh
        @echo "To build perl.third you must Configure -Doptimize=-g -Uusemymalloc, checking..."
-       @grep "^optimize='-g'" config.sh || exit 1
-       @grep "^usemymalloc='n'" config.sh || exit 1
+       @echo "Checking optimize='-g'..."
+       @grep "^optimize=" config.sh
+       @grep -q "^optimize='-g'" config.sh || exit 1
+       @echo "Checking usemymalloc='n'..."
+       @grep "^usemymalloc=" config.sh
+       @grep -q "^usemymalloc='n'" config.sh || exit 1
 
 perl.third: /usr/bin/atom perl.third.config perl
        atom -tool third -L. -all -gp -toolargs="-quiet -invalid -uninit heap+stack+partword+copy -min 0" perl