Guard against using plperl's Makefile without specifying --with-perl.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Sep 2011 00:07:34 +0000 (20:07 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Sep 2011 00:07:34 +0000 (20:07 -0400)
commit6a24742c1a1bd04c02da24c4739811b068a84367
tree4daa089145fd84a84a20f9f54c7b63971a51e831
parent4c2777d0b733220d9029f78817af8ce671e4a5ad
Guard against using plperl's Makefile without specifying --with-perl.

The $(PERL) macro will be set by configure if it finds perl at all,
but $(perl_privlibexp) isn't configured unless you said --with-perl.
This results in confusing error messages if someone cd's into
src/pl/plperl and tries to build there despite the configure omission,
as reported by Tomas Vondra in bug #6198.  Add simple checks to
provide a more useful report, while not disabling other use of the
makefile such as "make clean".

Back-patch to 9.0, which is as far as the patch applies easily.
src/pl/plperl/GNUmakefile