On 11/2/15 4:07 PM, Tom Lane wrote: > I wonder how much we need that script at all though. If, say, configure > doesn't find bison, what's so wrong with just defining BISON=bison and > letting the usual shell "bison: command not found" error leak through?
I agree. Something like the attached patch.
diff --git a/src/Makefile.global.in b/src/Makefile.global.in index 51f4797..5379c90 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -293,8 +293,12 @@ ifneq (@PERL@,) # quoted to protect pathname with spaces PERL = '@PERL@' else +ifdef PGXS + PERL = perl +else PERL = $(missing) perl endif +endif perl_archlibexp = @perl_archlibexp@ perl_privlibexp = @perl_privlibexp@ perl_embed_ldflags = @perl_embed_ldflags@ @@ -597,6 +601,15 @@ TAS = @TAS@ # # Global targets and rules +ifdef PGXS +ifeq (,$(BISON)) +BISON = bison +endif +ifeq (,$(FLEX)) +FLEX = flex +endif +endif + %.c: %.l ifdef FLEX $(FLEX) $(if $(FLEX_NO_BACKUP),-b) $(FLEXFLAGS) -o'$@' $<
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers