This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Probe for timegm
[metaconfig.git] / U / perl / dlext.U
CommitLineData
959f3c4c
JH
1?RCS: $Id: dlsrc.U,v$
2?RCS:
3?RCS: Copyright (c) 1996-1998, Andy Dougherty
4?RCS:
5?RCS: You may distribute under the terms of either the GNU General Public
6?RCS: License or the Artistic License, as specified in the README file.
7?RCS:
8?RCS: $Log: dlext.U,v $
9?RCS:
10?X: hpux support thanks to Jeff Okamoto <okamoto@hpcc101.corp.hp.com>
2f125bce 11?X:
959f3c4c
JH
12?X: To create a shared library, you must compile ALL source files in the
13?X: library with +z (or possibly +Z if the library is whopping huge),
14?X: then link the library with -b. Example:
15?X: cc -c +z module_a.c
16?X: cc -c +z module_b.c
17?X: ld -b module_a.o module_b.o -o module.sl
2f125bce 18?X:
959f3c4c
JH
19?MAKE:dlext: \
20 Getfile Myread cat usedl so
21?MAKE: -pick add $@ %<
22?Y:BOTTOM
23?S:dlext:
24?S: This variable contains the extension that is to be used for the
25?S: dynamically loaded modules that perl generaties.
26?S:.
2f125bce 27: Check what extension to use for shared libs
959f3c4c
JH
28case "$usedl" in
29$define|y|true)
30 $cat << EOM
31
32On a few systems, the dynamically loaded modules that perl generates and uses
33will need a different extension than shared libs. The default will probably
34be appropriate.
35
36EOM
37 case "$dlext" in
38 '') dflt="$so" ;;
39 *) dflt="$dlext" ;;
40 esac
41 rp='What is the extension of dynamically loaded modules'
42 . ./myread
43 dlext="$ans"
44 ;;
45*)
46 dlext="none"
47 ;;
48esac
49