This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix .gitignore: only ignore 'perl' in root of repo, not U/perl subdir
[metaconfig.git] / U / perl / bincompat5005.U
CommitLineData
f7706288
JH
1?RCS: Copyright (c) 1996, Chip Salzenberg
2?RCS:
3?RCS: You may distribute under the terms of either the GNU General Public
4?RCS: License or the Artistic License, as specified in the README file.
5?RCS:
6?MAKE:bincompat5005 d_bincompat5005: Oldconfig Myread Setvar cat \
7 usethreads usemultiplicity
8?MAKE: -pick add $@ %<
3ecd8e4d 9?Y:TOP
f7706288 10?S:bincompat5005:
7303ecc3
JH
11?S: This variable contains y if this version of Perl should be
12?S: binary-compatible with Perl 5.005.
f7706288
JH
13?S:.
14?S:d_bincompat5005:
15?S: This variable conditionally defines BINCOMPAT5005 so that embed.h
7303ecc3
JH
16?S: can take special action if this version of Perl should be
17?S: binary-compatible with Perl 5.005. This is impossible for builds
18?S: that use features like threads and multiplicity it is always $undef
19?S: for those versions.
f7706288
JH
20?S:.
21?C:PERL_BINCOMPAT_5005:
7303ecc3 22?C: This symbol, if defined, indicates that this version of Perl should be
f7706288
JH
23?C: binary-compatible with Perl 5.005. This is impossible for builds
24?C: that use features like threads and multiplicity it is always $undef
25?C: for those versions.
26?C:.
27?H:#$d_bincompat5005 PERL_BINCOMPAT_5005 /**/
28?H:.
f7706288
JH
29: Binary compatibility with 5.005 is not possible for builds
30: with advanced features
31case "$usethreads$usemultiplicity" in
0304e160
JH
32*define*)
33 bincompat5005="$undef"
34 d_bincompat5005="$undef"
35 ;;
f7706288
JH
36*) $cat <<EOM
37
7303ecc3
JH
38This version of Perl can be compiled for binary compatibility with 5.005.
39If you decide to do so, you will be able to continue using most of the
40extensions that were compiled for Perl 5.005.
f7706288
JH
41
42EOM
aa6fcae1
JH
43 case "$bincompat5005$d_bincompat5005" in
44 *"$undef"*) dflt=n ;;
f7706288
JH
45 *) dflt=y ;;
46 esac
47 rp='Binary compatibility with Perl 5.005?'
48 . ./myread
49 case "$ans" in
50 y*) val="$define" ;;
51 *) val="$undef" ;;
52 esac
53 set d_bincompat5005
54 eval $setvar
55 case "$d_bincompat5005" in
0304e160
JH
56 "$define")
57 bincompat5005="$define"
58 ;;
59 *) bincompat5005="$undef"
60 d_bincompat5005="$undef"
61 ;;
f7706288
JH
62 esac
63 ;;
64esac
65
66