This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add IP probe for ip_mreq
[metaconfig.git] / U / modified / i_malloc.U
CommitLineData
a2576c07
YST
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 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 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:
7feb2568 19?MAKE:i_malloc: cat rm_try Compile Setvar i_mallocmalloc
a2576c07
YST
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
35echo " "
36$cat >try.c <<EOCP
37#include <stdlib.h>
38#include <malloc.h>
947aaab0 39#$i_mallocmalloc I_MALLOCMALLOC
7feb2568
NC
40#ifdef I_MALLOCMALLOC
41# include <malloc/malloc.h>
42#endif
43
a2576c07
YST
44int main () { return 0; }
45EOCP
46set try
47if eval $compile; then
48 echo "<malloc.h> found." >&4
49 val="$define"
50else
51 echo "<malloc.h> NOT found." >&4
52 val="$undef"
53fi
2cb64bf6 54$rm_try
a2576c07
YST
55set i_malloc
56eval $setvar
57