This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[UTIL] Perl system does not default to $_
[metaconfig.git] / dist / U / d_syslog.U
1 ?RCS: $Id: d_syslog.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: d_syslog.U,v $
12 ?RCS: Revision 3.0.1.1  1997/02/28  15:46:56  ram
13 ?RCS: patch61: replaced .o with $_o all over the place
14 ?RCS:
15 ?RCS: Revision 3.0  1993/08/18  12:07:43  ram
16 ?RCS: Baseline for dist 3.0 netwide release.
17 ?RCS:
18 ?MAKE:d_syslog: test Csym Setvar Findhdr
19 ?MAKE:  -pick add $@ %<
20 ?S:d_syslog:
21 ?S:     This variable conditionally defines the HAS_SYSLOG symbol, which
22 ?S:     indicates to the C program that syslog() exists on this system.
23 ?S:.
24 ?C:HAS_SYSLOG (LIBSYSLOG):
25 ?C:     This symbol, if defined, indicates that the program can rely on the
26 ?C:     system providing syslog().  Otherwise, the syslog code provided by
27 ?C:     the package should be used.
28 ?C:.
29 ?H:#$d_syslog HAS_SYSLOG        /**/
30 ?H:.
31 ?LINT:set d_syslog
32 : see if syslog is available
33 echo " "
34 if $test `./findhdr syslog.h` && \
35         (set syslog val -f d_syslog; eval $csym; $val); then
36         echo "syslog() found." >&4
37         val="$define"
38 else
39         echo "syslog() not found in your C library." >&4
40         val="$undef"
41 fi
42 set d_syslog
43 eval $setvar
44