blob: c1dd4588779a591c4e7d3f5d673e2adaa60c511b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
?RCS: $Id: d_linuxstd.U 167 2013-05-08 17:58:00Z rmanfredi $
?RCS:
?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS:
?RCS: You may redistribute only under the terms of the Artistic License,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic License; a copy of which may be found at the root
?RCS: of the source tree for dist 4.0.
?RCS:
?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
?RCS:
?RCS: $Log: d_linuxstd.U,v $
?RCS: Revision 3.0.1.1 1994/10/29 16:14:05 ram
?RCS: patch36: created by ADO
?RCS:
?MAKE:d_linuxstd: d_stdstdio cppstdin cppflags cppminus \
contains rm Setvar Findhdr
?MAKE: -pick add $@ %<
?S:d_linuxstd:
?S: This variable conditionally defines USE_LINUX_STDIO if this system
?S: has a FILE structure declaring _IO_read_base, _IO_read_ptr,
?S: and _IO_read_end in stdio.h.
?S:.
?C:USE_LINUX_STDIO:
?C: This symbol is defined if this system has a FILE structure declaring
?C: _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h.
?C:.
?H:#$d_linuxstd USE_LINUX_STDIO /**/
?H:.
?T:xxx
?LINT:set d_linuxstd
: see if stdio is like that in linux
case "$d_stdstdio" in
"$undef")
echo " "
xxx=`./findhdr stdio.h`
$cppstdin $cppflags $cppminus < "$xxx" > stdio.E
if $contains 'char.*_IO_read_base' stdio.E >/dev/null 2>&1 && \
$contains '_IO_read_ptr' stdio.E >/dev/null 2>&1 && \
$contains '_IO_read_end' stdio.E >/dev/null 2>&1 ; then
echo "Your stdio looks like linux." >&4
val="$define"
else
echo "You don't have linux stdio, either." >&4
val="$undef"
fi
$rm -f stdio.E
;;
*) val="$undef" ;;
esac
set d_linuxstd
eval $setvar
|