This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Atari FreeMiNT: MiNT does not have .exe for _exe
[metaconfig.git] / U / modified / i_neterrno.U
CommitLineData
2cb64bf6
MB
1?RCS: $Id: i_neterrno.U,v 3.0.1.3 1994/10/29 16:20:29 ram Exp $
2?RCS:
3?RCS: Copyright (c) 1991-1993, Raphael Manfredi
65a32477
MBT
4?RCS:
5?RCS: You may redistribute only under the terms of the Artistic License,
2cb64bf6
MB
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
65a32477 8?RCS: that same Artistic License; a copy of which may be found at the root
2cb64bf6
MB
9?RCS: of the source tree for dist 3.0.
10?RCS:
11?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
12?RCS:
13?RCS: $Log: i_neterrno.U,v $
14?RCS: Revision 3.0.1.3 1994/10/29 16:20:29 ram
15?RCS: patch36: forgot to initialize 'val' to an empty value (ADO)
16?RCS:
17?RCS: Revision 3.0.1.2 1994/08/29 16:22:10 ram
18?RCS: patch32: removed spurious echo
19?RCS:
20?RCS: Revision 3.0.1.1 1994/06/20 07:02:05 ram
21?RCS: patch30: created by ADO
22?RCS:
23?MAKE:i_neterrno: Inhdr +cc +ccflags rm_try Setvar
24?MAKE: -pick add $@ %<
25?S:i_neterrno:
26?S: This variable conditionally defines the I_NET_ERRNO symbol, which
27?S: indicates to the C program that <net/errno.h> exists and should
28?S: be included.
29?S:.
30?C:I_NET_ERRNO:
31?C: This symbol, if defined, indicates that <net/errno.h> exists and
32?C: should be included.
33?C:.
34?H:#$i_neterrno I_NET_ERRNO /**/
35?H:.
36?LINT:set i_neterrno
37: see if net/errno.h is available
38val=''
39set net/errno.h val
40eval $inhdr
41
42: Unfortunately, it causes problems on some systems. Arrgh.
43case "$val" in
44$define)
45 cat > try.c <<'EOM'
46#include <stdio.h>
47#include <errno.h>
48#include <net/errno.h>
49int func()
50{
51 return ENOTSOCK;
52}
53EOM
54 if $cc $ccflags -c try.c >/dev/null 2>&1; then
55 echo "We'll be including <net/errno.h>." >&4
56 else
57 echo "We won't be including <net/errno.h>." >&4
58 val="$undef"
59 fi
60 $rm_try
61 ;;
62esac
63set i_neterrno
64eval $setvar
65