This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
/\=/ does not require \ even in older awk
[metaconfig.git] / U / modified / so.U
CommitLineData
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
37case "$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";;
46esac
47$cat <<EOM
48
49On some systems, shared libraries may be available. Answer 'none' if
50you want to suppress searching of shared libraries for the remainder
51of this configuration.
52
53EOM
54rp='What is the file extension used for shared libraries?'
55. ./myread
56so="$ans"
57
58: Does target system insist that shared library basenames are unique
59$cat << EOM
60
61Some dynamic loaders assume that the *basename* of shared library filenames
62are globally unique. We'll default this to undef as we assume your system
63is not this weird. Set to defined if you're on one of them.
64
65EOM
66
67dflt='n'
68rp='Make shared library basenames unique?'
69. ./myread
70case "$ans" in
71y|Y) val="$define" ;;
72*) val="$undef" ;;
73esac
74set d_libname_unique
75eval $setvar
76