From 52401b6b8805c9e13ac1d6c042163823bb822850 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 4 Apr 2005 21:56:30 +0000 Subject: [PATCH] make configure work even when no prefix is specified git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@353 a5681a0c-68f1-0310-ab6d-d61299d08faa --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5cfd7d2..d6ad88a 100644 --- a/configure.ac +++ b/configure.ac @@ -309,7 +309,10 @@ AC_MSG_CHECKING(Perl Modules to build) AC_MSG_RESULT(${COMP_PERL:-No Perl Modules will be built}) # Options to pass when configuring perl module -PERL_MAKE_OPTIONS="PREFIX=$prefix LIB=$prefix/lib/perl/$PERL_VERSION" +ppref=$prefix +test "x$ppref" = xNONE && ppref=$ac_default_prefix + +PERL_MAKE_OPTIONS="PREFIX=$ppref LIB=$ppref/lib/perl/$PERL_VERSION" dnl pass additional perl options when generating Makefile from Makefile.PL AC_ARG_ENABLE(perl-site-install, -- 2.11.0