Commit | Line | Data |
---|---|---|
7eee7366 MB |
1 | ?RCS: $Id: so.U 1 2006-08-24 12:32:52Z rmanfredi $ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi | |
4 | ?RCS: | |
5 | ?RCS: You may redistribute only under the terms of the Artistic Licence, | |
6 | ?RCS: as specified in the README file that comes with the distribution. | |
7 | ?RCS: You may reuse parts of this distribution only within the terms of | |
8 | ?RCS: that same Artistic Licence; a copy of which may be found at the root | |
9 | ?RCS: of the source tree for dist 4.0. | |
10 | ?RCS: | |
11 | ?RCS: $Log: so.U,v $ | |
12 | ?RCS: Revision 3.0.1.2 1994/10/29 16:30:04 ram | |
13 | ?RCS: patch36: now tells user how he can suppress shared lib lookup (ADO) | |
14 | ?RCS: patch36: removed echo at the top, since it's now in the here-doc (ADO) | |
15 | ?RCS: | |
16 | ?RCS: Revision 3.0.1.1 1994/06/20 07:07:02 ram | |
17 | ?RCS: patch30: created | |
18 | ?RCS: | |
19 | ?X: | |
20 | ?X: This unit computes the shared-object / shared-lib extension | |
21 | ?X: | |
22 | ?MAKE:so d_libname_unique: test libpth Loc Myread Oldconfig cat Setvar | |
23 | ?MAKE: -pick add $@ %< | |
24 | ?S:so: | |
25 | ?S: This variable holds the extension used to identify shared libraries | |
26 | ?S: (also known as shared objects) on the system. Usually set to 'so'. | |
27 | ?S:. | |
28 | ?S:d_libname_unique: | |
29 | ?S: This variable is defined if the target system insists on unique | |
30 | ?S: basenames for shared library files. This is currently true on Android, | |
31 | ?S: false everywhere else we know of. | |
32 | ?S: Defaults to 'undef'. | |
33 | ?S:. | |
34 | ?LINT:set d_libname_unique | |
35 | ?T: xxx | |
36 | : compute shared library extension | |
37 | case "$so" in | |
38 | '') | |
39 | if xxx=`./loc libc.sl X $libpth`; $test -f "$xxx"; then | |
40 | dflt='sl' | |
41 | else | |
42 | dflt='so' | |
43 | fi | |
44 | ;; | |
45 | *) dflt="$so";; | |
46 | esac | |
47 | $cat <<EOM | |
48 | ||
49 | On some systems, shared libraries may be available. Answer 'none' if | |
50 | you want to suppress searching of shared libraries for the remainder | |
51 | of this configuration. | |
52 | ||
53 | EOM | |
54 | rp='What is the file extension used for shared libraries?' | |
55 | . ./myread | |
56 | so="$ans" | |
57 | ||
58 | : Does target system insist that shared library basenames are unique | |
59 | $cat << EOM | |
60 | ||
61 | Some dynamic loaders assume that the *basename* of shared library filenames | |
62 | are globally unique. We'll default this to undef as we assume your system | |
63 | is not this weird. Set to defined if you're on one of them. | |
64 | ||
65 | EOM | |
66 | ||
67 | dflt='n' | |
68 | rp='Make shared library basenames unique?' | |
69 | . ./myread | |
70 | case "$ans" in | |
71 | y|Y) val="$define" ;; | |
72 | *) val="$undef" ;; | |
73 | esac | |
74 | set d_libname_unique | |
75 | eval $setvar | |
76 |