File: config_nws.h.in

package info (click to toggle)
nws 2.11-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,700 kB
  • ctags: 2,820
  • sloc: ansic: 28,849; sh: 3,289; java: 1,205; makefile: 697; perl: 12
file content (167 lines) | stat: -rwxr-xr-x 3,355 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/* $Id: config_nws.h.in,v 1.23 2004/08/19 23:44:37 graziano Exp $ */

#ifndef CONFIG_H
#define CONFIG_H

#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifndef NULL
#  define NULL 0
#endif

/* NWS version number */
#define VERSION "@VERSION@"

/* Preserve 2.0 interface with this definition */
#undef NWS_API_COMPAT

/* Define if you have the sys/statfs.h header.  */
#undef HAVE_SYS_TYPES_H
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

/* Define to `int' if <sys/types.h> doesn't define.  */
#undef pid_t

/* Define if you have the alarm function.  */
#undef HAVE_ALARM

/* Define if you have the getrusage function.  */
#undef HAVE_GETRUSAGE

/* Define if you have the sighold function.  */
#undef HAVE_SIGHOLD

/* Define if you have the sigrelse function.  */
#undef HAVE_SIGRELSE

/* Define if you have the statvfs function.  */
#undef HAVE_STATVFS

/* Define if you have the sys/vfs.h header.  */
#undef HAVE_SYS_VFS_H

/* Define if you have the sys/statfs.h header.  */
#undef HAVE_SYS_STATFS_H

/* Define if you have the sys/param.h header.  */
#undef HAVE_SYS_PARAM_H

/* Define if you have the sys/mount.h header.  */
#undef HAVE_SYS_MOUNT_H

/* Define if you have the dirent.h & Co. header.  */
#undef HAVE_DIRENT_H
#undef HAVE_SYS_NDIR_H
#undef HAVE_SYS_DIR_H
#undef HAVE_NDIR_H


/* Define if you have the utmp.h header.  */
#undef HAVE_UTMP_H

/* Define if you have the utmpx.h header.  */
#undef HAVE_UTMPX_H

/* define if time.h and sys/time.h can be both included */
#undef TIME_WITH_SYS_TIME
#undef HAVE_SYS_TIME_H

/* pthread header is present */
#undef HAVE_PTHREAD_H

/* define if sys/resource.h is present */
#undef HAVE_SYS_RESOURCE_H

/* define if sys/resource.h is present */
#undef HAVE_LIMITS_H

/* look for the postgresql include and library */
#undef HAVE_LIPQ_FE_H
#undef HAVE_POSTGRESQL_LIBPQ_FE_H
#undef HAVE_LIBPQ
#if defined(HAVE_LIBPQ) && (defined(HAVE_POSTGRESQL_LIBPQ_FE_H) || defined(HAVE_LIBPQ_FE_H))
#	define NWS_WITH_DB
#endif

/* Define if you have getutent function.  */
#undef HAVE_GETUTENT

/* Define if you have getutxent function.  */
#undef HAVE_GETUTXENT

/* Define if you have the sysconf function.  */
#undef HAVE_SYSCONF

/* Define if you have strcasecmp */
#undef HAVE_STRCASECMP
#ifdef HAVE_STRCASECMP
int
strcasecmp(const char*, const char *);
#endif

/* Define if you have strbcasecmp */
#undef HAVE_STRNCASECMP
#ifdef HAVE_STRNCASECMP
#include <stdlib.h>
int
strncasecmp(const char*, const char *, size_t n);
#endif

/* Define if you have the getpgid function.  */
#undef HAVE_GETPGID
#ifdef HAVE_GETPGID
#include <unistd.h>
pid_t
getpgid(pid_t);
#endif

/* Define if we have opendir */
#undef HAVE_OPENDIR

/* Define if we have readdir */
#undef HAVE_READDIR

/* Define to the (char *) version of the NWS sources. */
#undef VERSION

/* Define as the path to the `uptime' program. */
#undef UPTIME_PATH

/* Define as the path to the `vmstat' program. */
#undef VMSTAT_PATH

/* use the experimental sensors */
#undef EXPERIMENTAL

/* we are compiling with debug options */
#undef WITH_DEBUG

/* where PS is */
#undef PS

/* where netlogger is */
#undef WITH_NETLOGGER

#ifndef MALLOC
#	define MALLOC(size) malloc ((size)==0?1:(size))
#endif

#ifndef FREE
#	define FREE(ptr) \
	if (ptr != NULL) { \
		free(ptr); \
		ptr = NULL; \
	}
#endif

#ifdef __cplusplus
}
#endif

#endif