Check the version of byacc.
Jarkko Hietaniemi [Sun, 10 Jun 2001 17:09:42 +0000 (17:09 +0000)]
p4raw-id: //depot/perl@10502

Makefile.SH

index 9ba5313..29f6142 100644 (file)
@@ -676,7 +676,10 @@ install.html: all installhtml
 # to run with precisely the same version of byacc as I use.  You
 # normally shouldn't remake perly.[ch].
 
-run_byacc:     FORCE
+check_byacc:
+       @$(BYACC) -V 2>&1 | grep 'version 1\.8\.2'
+
+run_byacc:     FORCE check_byacc
        $(BYACC) -d perly.y
        -chmod 664 perly.c perly.h
        sh $(shellflags) ./perly.fixer y.tab.c perly.c