File: zaptel_perl

package info (click to toggle)
dahdi-tools 1%3A3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,384 kB
  • sloc: ansic: 54,472; perl: 4,031; sh: 2,618; makefile: 554; xml: 26
file content (39 lines) | stat: -rw-r--r-- 1,190 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Subject: Set perl installation path to vendorlib
Author: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Forwarded: no

Point DAHDI PERL modules to the right directory under which to install
perl modules.

(sitelib in Debian is under /usr/local. We don't want to install there)

Debian-specific configuration.

--- a/configure.ac
+++ b/configure.ac
@@ -120,20 +120,22 @@ fi
 #    - The "$datadir/perl5" directory otherwise (e.g: during "make distcheck")
 #
 AC_MSG_CHECKING(for perl libdir)
+set -x
 m4_define([_PERL_LIBDIR_DEFAULT], [${datadir}/perl5])dnl
 AC_ARG_WITH(perllib,
 	[AS_HELP_STRING([--with-perllib=PATH],
-		[Location of perl modules @<:@default=]_PERL_LIBDIR_DEFAULT[, or perl -V:sitelib@:>@])],
+		[Location of perl modules @<:@default=]_PERL_LIBDIR_DEFAULT[, or perl -V:vendorlib@:>@])],
 	[perllibdir=$withval],
 	[
 		if test "$prefix" = 'NONE' -o "$prefix" = '/usr'; then
-			eval `"$PERL" -V:sitelib`
-			perllibdir="$sitelib"
+			eval `"$PERL" -V:vendorlib`
+			perllibdir="$vendorlib"
 		else
 			perllibdir='_PERL_LIBDIR_DEFAULT'
 		fi
 	]
 )
+set +x
 AC_SUBST([perllibdir], "$perllibdir")
 AC_MSG_RESULT([$perllibdir])
 AM_CONDITIONAL([PERL], [test "$perllibdir" != ''])