This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Spelling - megapatch
[metaconfig.git] / U / modified / i_malloc.U
1 ?RCS: $Id: i_malloc.U,v 3.1 2003/01/21 18:51:51 merijn Exp $
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
4 ?RCS:
5 ?RCS: You may redistribute only under the terms of the Artistic License,
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 License; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 3.0.
10 ?RCS:
11 ?RCS: $Log: i_malloc.U,v $
12 ?RCS: Revision 3.1  2003/01/21  18:51:51  merijn
13 ?RCS: Moved to modified: Ihdr replaced with Compile
14 ?RCS:
15 ?RCS: $Log: i_malloc.U,v $
16 ?RCS: Revision 3.0  1993/08/18  12:08:21  ram
17 ?RCS: Baseline for dist 3.0 netwide release.
18 ?RCS:
19 ?MAKE:i_malloc: cat rm_try Compile Setvar i_mallocmalloc
20 ?MAKE:  -pick add $@ %<
21 ?S:i_malloc:
22 ?S:     This variable conditionally defines the I_MALLOC symbol, and indicates
23 ?S:     whether a C program should include <malloc.h>.
24 ?S:.
25 ?C:I_MALLOC:
26 ?C:     This symbol, if defined, indicates to the C program that it should
27 ?C:     include <malloc.h>.
28 ?C:.
29 ?H:#$i_malloc I_MALLOC          /**/
30 ?H:.
31 ?LINT:set i_malloc
32 : see if this is a malloc.h system
33 : we want a real compile instead of Inhdr because some systems have a
34 : malloc.h that just gives a compile error saying to use stdlib.h instead
35 echo " "
36 $cat >try.c <<EOCP
37 #include <stdlib.h>
38 #include <malloc.h>
39 #$i_mallocmalloc I_MALLOCMALLOC
40 #ifdef I_MALLOCMALLOC
41 # include <malloc/malloc.h>
42 #endif
43
44 int main () { return 0; }
45 EOCP
46 set try
47 if eval $compile; then
48     echo "<malloc.h> found." >&4
49     val="$define"
50 else
51     echo "<malloc.h> NOT found." >&4
52     val="$undef"
53 fi
54 $rm_try
55 set i_malloc
56 eval $setvar
57