From: Michael Jerris Date: Wed, 19 Mar 2014 21:24:21 +0000 (-0400) Subject: fix perldir to at least point to install the same place as the code looks for it... X-Git-Tag: v1.5.12~373 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cd69cc0f4fab6542abca87398ba3bf0baa003a7;p=thirdparty%2Ffreeswitch.git fix perldir to at least point to install the same place as the code looks for it. Note, on fhs type builds, where prefix is /usr, these files are going to go into /usr/perl, which probably isn't right, but thats where the code looks too, we should do something better for builds that are not in the prefix --- diff --git a/src/mod/languages/mod_perl/Makefile.am b/src/mod/languages/mod_perl/Makefile.am index 07fbc80dec..5f42ea5444 100644 --- a/src/mod/languages/mod_perl/Makefile.am +++ b/src/mod/languages/mod_perl/Makefile.am @@ -4,7 +4,7 @@ PERL = perl PERL_LIBDIR =-L`perl -MConfig -e 'print $$Config{archlib}'`/CORE PERL_LIBS =`perl -MConfig -e 'print $$Config{libs}'` -perldir=$(DESTDIR)$(prefix)/perl +perldir=$(prefix)/perl mod_LTLIBRARIES = mod_perl.la perl_LTLIBRARIES = freeswitch.la mod_perl_la_SOURCES = mod_perl.c freeswitch_perl.cpp mod_perl_wrap.cpp perlxsi.c @@ -36,6 +36,6 @@ orig: mod_perl_wrap.cpp @touch .perlok install-data-local: - mkdir -p $(DESTDIR)$(prefix)/perl - $(INSTALL) freeswitch.pm $(DESTDIR)$(prefix)/perl - if [ ! -f $(DESTDIR)$(prefix)/perl/freeswitch.pm ] ; then $(INSTALL) freeswitch.pm $(DESTDIR)$(prefix)/perl ; fi + mkdir -p $(DESTDIR)$(perldir) + $(INSTALL) freeswitch.pm $(DESTDIR)$(perldir) + if [ ! -f $(DESTDIR)$(perldir)/freeswitch.pm ] ; then $(INSTALL) freeswitch.pm $(DESTDIR)$(perldir) ; fi