Просмотр исходного кода

build: Let the user override PERL_LIBDIR at configure time

The variable is declared as precious via AC_ARG_VAR, but assigned to
unconditionally.
Guillem Jover лет назад: 14
Родитель
Сommit
e65993b196
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      m4/dpkg-progs.m4

+ 4 - 1
m4/dpkg-progs.m4

@@ -12,9 +12,12 @@ if test "$PERL" = "no" || test ! -x "$PERL"; then
   AC_MSG_ERROR([cannot find the Perl interpreter])
   AC_MSG_ERROR([cannot find the Perl interpreter])
 fi
 fi
 AC_ARG_VAR([PERL_LIBDIR], [Perl library directory])dnl
 AC_ARG_VAR([PERL_LIBDIR], [Perl library directory])dnl
+# Let the user override the variable.
+if test -z "$PERL_LIBDIR"; then
 PERL_LIBDIR=$($PERL -MConfig -e 'my $r = $Config{vendorlibexp};
 PERL_LIBDIR=$($PERL -MConfig -e 'my $r = $Config{vendorlibexp};
                                  $r =~ s/$Config{vendorprefixexp}/\$(prefix)/;
                                  $r =~ s/$Config{vendorprefixexp}/\$(prefix)/;
-                                 print $r')dnl
+                                 print $r')
+fi
 ])# DPKG_PROG_PERL
 ])# DPKG_PROG_PERL
 
 
 # DPKG_PROG_PO4A
 # DPKG_PROG_PO4A