?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 ?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