3 ?RCS: Copyright (c) 1999, Jarkko Hietaniemi
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 ?MAKE:d_mmap mmaptype: Inlibc i_sysmman cat cc ccflags
12 ?MAKE: -pick add $@ %<
14 ?S: This variable conditionally defines HAS_MMAP if mmap() is
15 ?S: available to map a file into memory.
18 ?S: This symbol contains the type of pointer returned by mmap()
19 ?S: (and simultaneously the type of the first argument).
20 ?S: It can be 'void *' or 'caddr_t'.
23 ?C: This symbol, if defined, indicates that the mmap system call is
24 ?C: available to map a file into memory.
27 ?C: This symbol holds the return type of the mmap() system call
28 ?C: (and simultaneously the type of the first argument).
29 ?C: Usually set to 'void *' or 'cadd_t'.
31 ?H:#$d_mmap HAS_MMAP /**/
32 ?H:#define Mmap_t $mmaptype /**/
39 : see what shmat returns
40 : default to something harmless
42 case "$i_sysmman$d_mmap" in
48 if $cc $ccflags -c mmap.c >/dev/null 2>&1; then
53 echo "and it returns ($mmaptype)." >&4