From ceb3507a8fca872770b3dcd7e5c5b36179ab95b0 Mon Sep 17 00:00:00 2001 From: Manoj Srivastava Date: Fri, 30 May 2008 12:42:47 -0700 Subject: Import dist_3.5-236.orig.tar.gz [dgit import orig dist_3.5-236.orig.tar.gz] --- mcon/U/d_linuxstd.U | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 mcon/U/d_linuxstd.U (limited to 'mcon/U/d_linuxstd.U') diff --git a/mcon/U/d_linuxstd.U b/mcon/U/d_linuxstd.U new file mode 100644 index 0000000..547755d --- /dev/null +++ b/mcon/U/d_linuxstd.U @@ -0,0 +1,55 @@ +?RCS: $Id$ +?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 + -- cgit v1.2.3