1 ?RCS: $Id: i_memory.U,v 3.0.1.3 1994/06/20 07:01:55 ram Exp $
3 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
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.
11 ?RCS: $Log: i_memory.U,v $
12 ?RCS: Revision 3.0.1.3 1994/06/20 07:01:55 ram
13 ?RCS: patch30: cosmetic changes
15 ?RCS: Revision 3.0.1.2 1994/05/13 15:23:56 ram
16 ?RCS: patch27: modified to avoid spurious Whoa warnings (ADO)
18 ?RCS: Revision 3.0.1.1 1994/05/06 15:02:25 ram
19 ?RCS: patch23: avoid conflicts with <string.h>
21 ?RCS: Revision 3.0 1993/08/18 12:08:22 ram
22 ?RCS: Baseline for dist 3.0 netwide release.
24 ?MAKE:i_memory: Inhdr strings cppstdin cppflags cppminus contains rm Setvar
25 ?MAKE: -pick add $@ %<
27 ?S: This variable conditionally defines the I_MEMORY symbol, and indicates
28 ?S: whether a C program should include <memory.h>.
31 ?C: This symbol, if defined, indicates to the C program that it should
32 ?C: include <memory.h>.
34 ?H:#$i_memory I_MEMORY /**/
38 ?X: Unfortunately, the definitions of memory functions sometimes
39 ?X: conflict with those in <string.h>. We'll assume that if
40 ?X: <string.h> contains memcpy, then we don't need memory.h
42 : see if memory.h is available.
47 : See if it conflicts with string.h
53 $cppstdin $cppflags $cppminus < $strings > mem.h
54 if $contains 'memcpy' mem.h >/dev/null 2>&1; then
56 echo "We won't be including <memory.h>."