From: Tobias Oetiker Date: Mon, 4 Apr 2005 21:56:30 +0000 (+0000) Subject: make configure work even when no prefix is specified X-Git-Tag: 1.2rc2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4936b460ad3ef665beb4c1898dd8231f1882eafd;p=thirdparty%2Frrdtool-1.x.git 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 --- diff --git a/configure.ac b/configure.ac index 5cfd7d28..d6ad88ab 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,