blob: ec14205ac10c7c9e751fb8c27e9609bb5db7d736 (
plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
?RCS: $Id: Extensions.U,v$
?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic Licence; a copy of which may be found at the root
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: Extensions.U,v $
?RCS:
?MAKE:extensions : find Myread i_dbm i_ndbm i_gdbm i_sdbm
?MAKE: -pick add $@ %<
?S:extensions:
?S: This variable holds a list of extension files we want to
?S: include in perl.
?S:.
?T:xxx
?INIT:: List of extensions we want:
?INIT:extensions=''
?X:
case "$extensions" in
' '|'') echo "Looking for extensions..."
case "$find" in
*find*)
cd ..
extensions=`$find ext -type f -name \*.xs -print`
set X $extensions
shift
extensions="$*"
cd UU
;;
*) extensions='ext/dbm/NDBM_File.xs ext/dbm/ODBM_File.xs ext/dbm/GDBM_File.xs ext/dbm/SDBM_File.xs ext/posix/POSIX.xs'
;;
esac
;;
none) extensions='' ;;
*) ;;
esac
: Now see which are supported on this system.
dflt=""
for xxx in $extensions ; do
case "$xxx" in
*ODBM*) case "$i_dbm" in
define) dflt="$dflt $xxx" ;;
*) ;;
esac
;;
*NDBM*) case "$i_ndbm" in
define) dflt="$dflt $xxx" ;;
*) ;;
esac
;;
*GDBM*) case "$i_gdbm" in
define) dflt="$dflt $xxx" ;;
*) ;;
esac
;;
*SDBM*) case "$i_sdbm" in
define) dflt="$dflt $xxx" ;;
*) ;;
esac
;;
*) dflt="$dflt $xxx"
;;
esac
done
rp="What extensions do you wish to include?"
. ./myread
extensions="$ans"
|