]> git.sur5r.net Git - openldap/blob - include/ac/syslog.h
Generate OpenLDAP id for configure
[openldap] / include / ac / syslog.h
1 /* Generic syslog.h */
2 /* $OpenLDAP$ */
3 /*
4  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms are permitted only
8  * as authorized by the OpenLDAP Public License.  A copy of this
9  * license is available at http://www.OpenLDAP.org/license.html or
10  * in file LICENSE in the top-level directory of the distribution.
11  */
12 #ifndef _AC_SYSLOG_H_
13 #define _AC_SYSLOG_H_
14
15 #if defined( HAVE_SYSLOG_H )
16 #include <syslog.h>
17 #elif defined ( HAVE_SYS_SYSLOG_H )
18 #include <sys/syslog.h>
19 #endif
20
21 #if defined( LOG_NDELAY ) && defined( LOG_NOWAIT )
22 #       define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY | LOG_NOWAIT )
23 #elif defined( LOG_NDELAY )
24 #       define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY )
25 #elif defined( LOG_NOWAIT )
26 #       define OPENLOG_OPTIONS ( LOG_PID | LOG_NOWAIT )
27 #elif defined( LOG_PID )
28 #       define OPENLOG_OPTIONS ( LOG_PID )
29 #else
30 #   define OPENLOG_OPTIONS ( 0 )
31 #endif
32
33 #endif /* _AC_SYSLOG_H_ */