Guard against using plperl's Makefile without specifying --with-perl.
authorTom Lane <[email protected]>
Mon, 5 Sep 2011 00:07:38 +0000 (20:07 -0400)
committerTom Lane <[email protected]>
Mon, 5 Sep 2011 00:07:38 +0000 (20:07 -0400)
commiteed7dcfceedeb314d17695f014754ac0f3e8f892
tree0a3ea6b6213fd98a4f7bcb12b89edc75acb31a0f
parent1ae019f04b95771293f9a649c298aaeb0d3155a2
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