autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ax_perl_ext.m4 extension: PERL_EXT_PREFIX


From: Thomas Klausner
Subject: ax_perl_ext.m4 extension: PERL_EXT_PREFIX
Date: Thu, 13 Feb 2014 10:58:46 +0100

Hi!

For a local project I've extended ax_perl_ext.m4 to report back the
perl installation prefix as PERL_EXT_PREFIX.

I use it like this:

configure.ac:
PERL_RELATIVE_INSTALL_DIR=`echo ${PERL_EXT_LIB} | sed "s,${PERL_EXT_PREFIX},,"`

Makefile.am:
perlmodulepmdir=$(prefix)$(PERL_RELATIVE_INSTALL_DIR)/FOO
perlmodulepm_DATA=BAR.pm
perlmodulesodir=$(prefix)$(PERL_RELATIVE_INSTALL_DIR)/auto/FOO/BAR
perlmoduleso_LTLIBRARIES = BAR.la

This way I can install the perl files into DESTDIR for packaging.

Of course, if $(prefix) != $(PERL_EXT_PREFIX) in the final
installation place, it won't work.

Cheers,
 Thomas

Attachment: ax_perl_ext.m4.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]