Fixes build failure when the perl config ld value contains multiple
words, such as on PowerPC Mac OS X where it may be a value like
'env MACOSX_DEPLOYMENT_TARGET=10.3 /usr/bin/gcc-4.2'.
perl-module/Makefile: perl-module/Makefile.PL perl-module/pspp-module-config $(module_sources)
$(AM_V_GEN)cd perl-module && $(PERL) Makefile.PL PREFIX=$(prefix) \
OPTIMIZE="$(CFLAGS) $(CPPFLAGS)" \
- LD="`$(PERL) -V::ld:` $(LDFLAGS)"
+ LD="`$(PERL) -e 'use Config::Perl::V;print Config::Perl::V::myconfig()->{config}{ld};'` $(LDFLAGS)"
perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz: $(module_sources) perl-module/Makefile
$(AM_V_at)rm -f $@