This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the files from dist/meta to perl's repo
[metaconfig.git] / dist / U / i_fcntl.U
CommitLineData
d8875586
MBT
1?RCS: $Id: i_fcntl.U 1 2006-08-24 12:32:52Z rmanfredi $
2?RCS:
3?RCS: Copyright (c) 1991-1997, 2004-2006, 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 4.0.
10?RCS:
11?RCS: $Log: i_fcntl.U,v $
12?RCS: Revision 3.0 1993/08/18 12:08:18 ram
13?RCS: Baseline for dist 3.0 netwide release.
14?RCS:
15?MAKE:i_fcntl: h_fcntl h_sysfile +i_sysfile Inhdr Setvar
16?MAKE: -pick add $@ %<
17?S:i_fcntl:
18?S: This variable controls the value of I_FCNTL (which tells
19?S: the C program to include <fcntl.h>).
20?S:.
21?C:I_FCNTL (HDR_O_STUFF FCNTL):
22?C: This manifest constant tells the C program to include <fcntl.h>.
23?C:.
24?H:#$i_fcntl I_FCNTL /**/
25?H:.
26?T:val
27?X: Make line lists +i_sysfile to ensure tests for <sys/file.h> will be
28?X: conducted prior tests for <fcntl.h>, hece making sure the h_sysfile
29?X: variable is correctly set when we reach that unit.
30?LINT:set i_fcntl
31?LINT:use i_sysfile
32?LINT:change h_fcntl
33: see if fcntl.h is there
34val=''
35set fcntl.h val
36eval $inhdr
37
38: see if we can include fcntl.h
39case "$val" in
40"$define")
41 echo " "
42 if $h_fcntl; then
43 val="$define"
44 echo "We'll be including <fcntl.h>." >&4
45 else
46 val="$undef"
47 if $h_sysfile; then
48 echo "We don't need to include <fcntl.h> if we include <sys/file.h>." >&4
49 else
50 echo "We won't be including <fcntl.h>." >&4
51 fi
52 fi
53 ;;
54*)
55 h_fcntl=false
56 val="$undef"
57 ;;
58esac
59set i_fcntl
60eval $setvar
61