Index: tclpkg/gv/Makefile.am =================================================================== --- tclpkg/gv/Makefile.am.orig 2010-06-18 14:03:09.206918506 +0200 +++ tclpkg/gv/Makefile.am 2010-06-18 15:01:52.630918214 +0200 @@ -120,13 +120,18 @@ gv.cmxa: gv.cmx ocamlopt -a -o gv.cmxa gv.cmx gv.a: gv.cmxa +PERL ?= perl +PERL_CC = $(shell $(PERL) -MExtUtils::Embed -e ccopts) +PERL_LD = $(shell $(PERL) -MExtUtils::Embed -e ldopts) +VENDOR_ARCH = $(shell $(PERL) -MConfig -e 'print $$Config{installvendorarch};') + pkgperldir = $(pkglibdir)/perl PERL_data = gv.pm nodist_libgv_perl_la_SOURCES = gv_perl.cpp $(PERL_data) libgv_perl_la_SOURCES = $(BASESOURCES) gv_dummy_init.c libgv_perl_la_LIBADD = $(BASELIBS) $(PERL_LIBS) -libgv_perl_la_LDFLAGS = -module -avoid-version -libgv_perl_la_CPPFLAGS = $(BASECPPFLAGS) $(PERL_INCLUDES) +libgv_perl_la_LDFLAGS = -module -avoid-version $(PERL_LD) +libgv_perl_la_CPPFLAGS = $(BASECPPFLAGS) $(PERL_CC) $(PERL_data): gv_perl.cpp gv_perl.cpp: gv.i $(SWIG) -c++ -perl -o gv_perl.cpp $(srcdir)/gv.i