diff mbox

infiniband-diags: change perl install to vendorlib

Message ID 20110712144321.4c1bcbf3.weiny2@llnl.gov (mailing list archive)
State Accepted, archived
Delegated to: Ira Weiny
Headers show

Commit Message

Ira Weiny July 12, 2011, 9:43 p.m. UTC
Signed-off-by: Ira Weiny <weiny2@llnl.gov>
---
 configure.in             |    2 +-
 infiniband-diags.spec.in |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/configure.in b/configure.in
index dfb6ba2..183223d 100644
--- a/configure.in
+++ b/configure.in
@@ -132,7 +132,7 @@  AC_SUBST(PERL_INSTALLDIR)
 
 if test $withperlinstalldir = "no"
 then
-    PERL_INSTALLDIR=`$PERL -e 'use Config; $T=$Config{installsitearch}; print $T;'`
+    PERL_INSTALLDIR=`$PERL -e 'use Config; $T=$Config{installvendorlib}; print $T;'`
 fi
 AC_SUBST(PERL_INSTALLDIR)
 
diff --git a/infiniband-diags.spec.in b/infiniband-diags.spec.in
index bcdd250..6b05483 100644
--- a/infiniband-diags.spec.in
+++ b/infiniband-diags.spec.in
@@ -50,7 +50,7 @@  rm -rf $RPM_BUILD_ROOT
 %{_libdir}/*.a
 %{_libdir}/*.so*
 %{_includedir}/infiniband/*.h
-%define _perldir %(perl -e 'use Config; $T=$Config{installsitearch}; $T=~/(.*)\\/site_perl.*/; print $1;')
+%define _perldir %(perl -e 'use Config; $T=$Config{installvendorlib}; print $T;')
 %{_perldir}/*
 %{_mandir}/man8/*
 %{_mandir}/man3/*