-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.ac
569 lines (516 loc) · 18.8 KB
/
configure.ac
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
# _ _
# _ __ ___ (_)_ __ | | __
# | '_ ` _ \| | '_ \| |/ /
# | | | | | | | | | | <
# |_| |_| |_|_|_| |_|_|\_\
#
# SPDX-License-Identifier: MIT
#
AC_PREREQ([2.68])
AC_INIT([mink], [1.0], [info@link-mink.com], , [https://github.com/link-mink])
config_flags="$*"
AC_DEFINE_UNQUOTED([CONFIG_FLAGS],["$config_flags"],[Flags passed to configure])
AC_SUBST(CONFIG_FLAGS, "$config_flags")
AM_INIT_AUTOMAKE([foreign subdir-objects nostdinc 1.14])
AC_CONFIG_SRCDIR([src])
AC_CONFIG_HEADERS([config.h])
AX_PREFIX_CONFIG_H(mink_pkg_config.h)
AC_CONFIG_MACRO_DIR([m4])
AC_LANG([C++])
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX_11([noext], [mandatory])
AC_PROG_AWK
AC_PROG_CC
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_CPP
AC_PROG_SED
AC_CHECK_PROG(GPERF, gperf, gperf)
AX_BOOST_BASE([1.74], [], [AC_MSG_ERROR([Minimum required Boost version not found!])])
AX_BOOST_FILESYSTEM
AC_USE_SYSTEM_EXTENSIONS
AS_IF([test -z "$GPERF"], [AC_MSG_ERROR([gperf not found!])])
PKG_PROG_PKG_CONFIG
LT_INIT
# save libs
COMMON_LIBS=$LIBS
# /*********************/
# /* enable DEBUG mode */
# /*********************/
AC_ARG_ENABLE(debug,
[AS_HELP_STRING([--enable-debug], [enable DEBUG mode [default=no]])],,
[enable_debug=no])
AM_CONDITIONAL(ENABLE_DEBUG, test "x$enable_debug" = "xyes")
# /**************/
# /* mink debug */
# /**************/
AC_ARG_ENABLE(mdebug,
[AS_HELP_STRING([--enable-mdebug], [enable MINK DEBUG mode [default=no]])],,
[enable_mdebug=no])
AM_CONDITIONAL(ENABLE_MDEBUG, test "x$enable_mdebug" = "xyes")
if test "x$enable_mdebug" != "xno"; then
AC_DEFINE([ENABLE_MDEBUG], [1], [Enable MINK debug mode])
fi
# /***********/
# /* configd */
# /***********/
AC_ARG_ENABLE(configd,
[AS_HELP_STRING([--enable-configd], [Enable CONFIGD [default=no]])],,
[enable_configd=no])
AM_CONDITIONAL(ENABLE_CONFIGD, test "x$enable_configd" = "xyes")
if test "x$enable_configd" != "xno"; then
AC_DEFINE([ENABLE_CONFIGD], [1], [Enable CONFIGD])
# antlr3c
AC_MSG_NOTICE([Enabling bundled antlr3c])
AC_CONFIG_SUBDIRS([lib/libantlr3c-3.4])
fi
# /***********************************/
# /* disable RT threads (SCHED_FIFO) */
# /***********************************/
AC_ARG_ENABLE(sched-fifo,
[AS_HELP_STRING([--enable-sched-fifo], [Enable SCHED_FIFO scheduling [default=no]])],,
[enable_sched_fifo=no])
AM_CONDITIONAL(ENABLE_SCHED_FIFO, test "x$enable_sched_fifo" = "xyes")
if test "x$enable_sched_fifo" != "xno"; then
AC_DEFINE([ENABLE_SCHED_FIFO], [1], [Enable SCHED_FIFO scheduling])
fi
# /*************************/
# /* SCTP_EVENT workaround */
# /*************************/
AC_ARG_ENABLE(sctp-event-workaround,
[AS_HELP_STRING([--enable-sctp-event-workaround], [Enable SCTP_EVENT workaround [default=no]])],,
[enable_sctp_event_workaround=no])
AM_CONDITIONAL(ENABLE_SCTP_EVENT_WORKAROUND, test "x$enable_sctp_event_workaround" = "xyes")
if test "x$enable_sctp_event_workaround" != "xno"; then
AC_DEFINE([ENABLE_SCTP_EVENT_WORKAROUND], [1], [Enable SCTP_EVENT workaround])
fi
# /********/
# /* gRPC */
# /********/
AC_ARG_ENABLE(grpc,
[AS_HELP_STRING([--enable-grpc], [Enable GRPC [default=no]])],,
[enable_grpc=no])
AM_CONDITIONAL(ENABLE_GRPC, test "x$enable_grpc" = "xyes")
if test "x$enable_grpc" != "xno"; then
PKG_CHECK_MODULES([GRPC], [grpc++], [], [AC_MSG_ERROR([gRPC not found!])])
AC_DEFINE([ENABLE_GRPC], [1], [Enable GRPC])
# protobuf
PKG_CHECK_MODULES([PROTOBUF], [protobuf], [], [AC_MSG_ERROR([protobuf not found!])])
fi
# /************/
# /* json rpc */
# /************/
AC_ARG_ENABLE(jrpc,
[AS_HELP_STRING([--enable-jrpc], [Enable JRPC [default=no]])],,
[enable_jrpc=no])
AM_CONDITIONAL(ENABLE_JRPC, test "x$enable_jrpc" = "xyes")
if test "x$enable_grpc" != "xno"; then
AC_DEFINE([ENABLE_JRPC], [1], [Enable JRPC])
fi
# /************/
# /* sysagent */
# /************/
AC_ARG_ENABLE(sysagent,
[AS_HELP_STRING([--enable-sysagent], [Enable SYSAGENT [default=no]])],,
[enable_sysagent=no])
AM_CONDITIONAL(ENABLE_SYSAGENT, test "x$enable_sysagent" = "xyes")
if test "x$enable_sysagent" != "xno"; then
AC_DEFINE([ENABLE_SYSAGENT], [1], [Enable mink sysagent])
AC_CHECK_LIB([procps],
[readproc],
[AC_SUBST([PROCPS_LIBS], ["-lprocps"])],
[AC_MSG_ERROR([procps library not found!])])
AC_CHECK_LIB([sqlite3],
[sqlite3_open],
[AC_SUBST([SQLITE_LIBS], ["-lsqlite3"])],
[AC_MSG_ERROR([sqlite3 library not found!])])
fi
# /*************/
# /* gdt trapc */
# /*************/
AC_ARG_ENABLE(gdttrapc,
[AS_HELP_STRING([--enable-gdttrapc], [Enable GDTTRAPC [default=no]])],,
[enable_gdttrapc=no])
AM_CONDITIONAL(ENABLE_GDTTRAPC, test "x$enable_gdttrapc" = "xyes")
if test "x$enable_gdttrapc" != "xno"; then
AC_DEFINE([ENABLE_GDTTRAPC], [1], [Enable mink gdttrapc])
fi
# /***********/
# /* codegen */
# /***********/
AC_ARG_ENABLE(codegen,
[AS_HELP_STRING([--enable-codegen], [Enable mink codegen [default=no]])],,
[enable_codegen=no])
AM_CONDITIONAL(ENABLE_CODEGEN, test "x$enable_codegen" = "xyes")
if test "x$enable_codegen" != "xno"; then
AC_DEFINE([ENABLE_CODEGEN], [1], [Enable mink codegen])
fi
# /*********/
# /* CLIPS */
# /*********/
AC_ARG_ENABLE(clips,
[AS_HELP_STRING([--enable-clips], [Enable CLIPS support [default=no]])],,
[enable_clips=no])
AM_CONDITIONAL(ENABLE_CLIPS, test "x$enable_clips" = "xyes")
if test "x$enable_clips" != "xno"; then
AC_DEFINE([ENABLE_CLIPS], [1], [Enable CLIPS support])
fi
# /***********/
# /* openssl */
# /***********/
AC_ARG_ENABLE(openssl,
[AS_HELP_STRING([--enable-openssl], [Enable OPENSSL support [default=no]])],,
[enable_openssl=no])
AM_CONDITIONAL(ENABLE_OPENSSL, test "x$enable_openssl" = "xyes")
if test "x$enable_openssl" != "xno"; then
AC_DEFINE([ENABLE_OPENSSL], [1], [Enable OPENSSL support])
# libcrypto
AC_CHECK_LIB([crypto],
[CRYPTO_new_ex_data],
[AC_SUBST([CRYPTO_LIBS], ["-lcrypto"])],
[AC_MSG_ERROR([crypto library not found])])
FOUND_SSL_LIB="no"
# check with OPENSSL_init_ssl method
AC_CHECK_LIB([ssl],
[OPENSSL_init_ssl], [
AC_SUBST([SSL_LIBS], ["-lssl"])
[FOUND_SSL_LIB="yes"]
])
# check with SSL_library_init method
AC_CHECK_LIB([ssl],
[SSL_library_init], [
AC_SUBST([SSL_LIBS], ["-lssl"])
[FOUND_SSL_LIB="yes"]
])
if test "x$FOUND_SSL_LIB" = "xno"; then
AC_MSG_ERROR([SSL library not found])
fi
fi
# /******************/
# /* enable tlsv1_2 */
# /******************/
AC_ARG_ENABLE(tlsv12,
[AS_HELP_STRING([--enable-tlsv12], [Enable TLSv1_2 [default=no]])],,
[enable_tlsv12=no])
AM_CONDITIONAL(ENABLE_TLSV12, test "x$enable_tlsv12" = "xyes")
if test "x$enable_tlsv12" != "xno"; then
AC_DEFINE([ENABLE_TLSV12], [1], [Enable TLSv1_2 support])
fi
# enable single user session
AC_ARG_ENABLE(ws-single-session,
[AS_HELP_STRING([--enable-ws-single-session], [Enable WS SINGLE SESSION [default=no]])],,
[enable_ws_single_session=no])
AM_CONDITIONAL(ENABLE_WS_SINGLE_SESSION, test "x$enable_ws_single_session" = "xyes")
if test "x$enable_ws_single_session" != "xno"; then
AC_DEFINE([ENABLE_WS_SINGLE_SESSION], [1], [Enable WS SINGLE SESSION])
fi
# /***************************/
# /* enable WS (unencrypted) */
# /***************************/
AC_ARG_ENABLE(plain-ws,
[AS_HELP_STRING([--enable-plain-ws], [Enable Plain WS (no encryption) [default=no]])],,
[enable_plain_ws=no])
AM_CONDITIONAL(ENABLE_PLAIN_WS, test "x$enable_plain_ws" = "xyes")
if test "x$enable_plain_ws" != "xno"; then
AC_DEFINE([ENABLE_PLAIN_WS], [1], [Enable Plain WS (no encryption)])
fi
# /***********/
# /* openwrt */
# /***********/
AC_ARG_ENABLE(openwrt,
[AS_HELP_STRING([--enable-openwrt], [Enable OpenWrt support [default=no]])],,
[enable_openwrt=no])
AM_CONDITIONAL(ENABLE_OPENWRT, test "x$enable_openwrt" = "xyes")
if test "x$enable_openwrt" != "xno"; then
AC_DEFINE([ENABLE_OPENWRT], [1], [Enable OpenWrt support])
AC_CHECK_LIB([ubus],
[ubus_connect],
[AC_SUBST([UBUS_LIBS], ["-lubus"])],
[AC_MSG_ERROR([ubus library not found!])])
AC_CHECK_LIB([ubox],
[blob_buf_init],
[AC_SUBST([UBOX_LIBS], ["-lubox"])],
[AC_MSG_ERROR([ubox library not found!])])
AC_CHECK_LIB([blobmsg_json],
[blobmsg_add_object],
[AC_SUBST([BLOBMSG_JSON_LIBS], ["-lblobmsg_json"])],
[AC_MSG_ERROR([blobmsg_json library not found!])])
AC_CHECK_LIB([json-c],
[json_tokener_new],
[AC_SUBST([JSONC_LIBS], ["-ljson-c"])],
[AC_MSG_ERROR([json-c library not found!])])
fi
# /**********/
# /* syslog */
# /**********/
AC_ARG_ENABLE(syslog,
[AS_HELP_STRING([--enable-syslog], [Enable syslog plugin [default=no]])],,
[enable_syslog=no])
AM_CONDITIONAL(ENABLE_SYSLOG, test "x$enable_syslog" = "xyes")
if test "x$enable_syslog" != "xno"; then
AC_DEFINE([ENABLE_SYSLOG], [1], [Enable syslog plugin])
fi
# /**********/
# /* sysmon */
# /**********/
AC_ARG_ENABLE(sysmon,
[AS_HELP_STRING([--enable-sysmon], [Enable sysmon plugin [default=no]])],,
[enable_sysmon=no])
AM_CONDITIONAL(ENABLE_SYSMON, test "x$enable_sysmon" = "xyes")
if test "x$enable_sysmon" != "xno"; then
AC_DEFINE([ENABLE_SYSMON], [1], [Enable sysmon plugin])
fi
# /***********/
# /* cgroup2 */
# /***********/
AC_ARG_ENABLE(cgroup2,
[AS_HELP_STRING([--enable-cgroup2], [Enable cgroup2 plugin [default=no]])],,
[enable_cgroup2=no])
AM_CONDITIONAL(ENABLE_CGROUP2, test "x$enable_cgroup2" = "xyes")
if test "x$enable_cgroup2" != "xno"; then
AC_DEFINE([ENABLE_CGROUP2], [1], [Enable cgroup2 plugin])
fi
# /*************************/
# /* UNIX socket interface */
# /*************************/
AC_ARG_ENABLE(unix,
[AS_HELP_STRING([--enable-unix], [Enable UNIX socket interface [default=no]])],,
[enable_unix=no])
AM_CONDITIONAL(ENABLE_UNIX, test "x$enable_unix" = "xyes")
if test "x$enable_unix" != "xno"; then
AC_DEFINE([ENABLE_UNIX], [1], [Enable UNIX interface plugin])
fi
# /***********/
# /* systemd */
# /***********/
AC_ARG_ENABLE(systemd,
[AS_HELP_STRING([--enable-systemd], [Enable systemd support [default=no]])],,
[enable_systemd=no])
AM_CONDITIONAL(ENABLE_SYSTEMD, test "x$enable_systemd" = "xyes")
if test "x$enable_systemd" != "xno"; then
AC_DEFINE([ENABLE_SYSTEMD], [1], [Enable SYSTEMD interface plugin])
AC_CHECK_LIB([systemd],
[sd_bus_open_system],
[AC_SUBST([SYSTEMD_LIBS], ["-lsystemd"])],
[AC_MSG_ERROR([systemd library not found!])])
fi
# /**********************/
# /* cfg handler plugin */
# /**********************/
AC_ARG_ENABLE(config-handler,
[AS_HELP_STRING([--enable-config-handler], [Enable mINK CFG handler [default=no]])],,
[enable_config_handler=no])
AM_CONDITIONAL(ENABLE_CONFIG_HANDLER, test "x$enable_config_handler" = "xyes")
if test "x$enable_config_handler" != "xno"; then
AC_DEFINE([ENABLE_CONFIG_HANDLER], [1], [Enable mINK CFG handler plugin])
fi
# /*****************/
# /* modbus plugin */
# /*****************/
AC_ARG_ENABLE(modbus,
[AS_HELP_STRING([--enable-modbus], [Enable MODBUS plugin [default=no]])],,
[enable_modbus=no])
AM_CONDITIONAL(ENABLE_MODBUS, test "x$enable_modbus" = "xyes")
if test "x$enable_modbus" != "xno"; then
AC_DEFINE([ENABLE_MODBUS], [1], [Enable MODBUS plugin])
AC_CHECK_HEADERS([modbus/modbus.h], ,AC_MSG_ERROR([modbus header not found!]))
AC_CHECK_LIB([modbus],
[modbus_set_bits_from_bytes],
[AC_SUBST([MODBUS_LIBS], ["-lmodbus"])],
[AC_MSG_ERROR([modbus library not found!])])
fi
# /***************/
# /* nDPI plugin */
# /***************/
AC_ARG_ENABLE(ndpi,
[AS_HELP_STRING([--enable-ndpi], [Enable nDPI plugin [default=no]])],,
[enable_ndpi=no])
AM_CONDITIONAL(ENABLE_NDPI, test "x$enable_ndpi" = "xyes")
if test "x$enable_ndpi" != "xno"; then
AC_DEFINE([ENABLE_NDPI], [1], [Enable nDPI plugin])
AC_CHECK_HEADERS([ndpi/ndpi_main.h], ,AC_MSG_ERROR([nDPI header not found!]))
AC_CHECK_HEADERS([pcap/pcap.h], ,AC_MSG_ERROR([pcap header not found!]))
AC_CHECK_LIB([ndpi],
[ndpi_init_detection_module],
[AC_SUBST([NDPI_LIBS], ["-lndpi"])],
[AC_MSG_ERROR([nDPI library not found!])])
AC_CHECK_LIB([pcap],
[pcap_open_live],
[AC_SUBST([PCAP_LIBS], ["-lpcap"])],
[AC_MSG_ERROR([pcap library not found!])])
fi
# /**********/
# /* LuaJIT */
# /**********/
AC_ARG_ENABLE(lua,
[AS_HELP_STRING([--enable-lua], [Enable LuaJIT [default=no]])],,
[enable_lua=no])
AM_CONDITIONAL(ENABLE_LUA, test "x$enable_lua" = "xyes")
if test "x$enable_lua" != "xno"; then
PKG_CHECK_MODULES([LUA], [luajit], [], [AC_MSG_ERROR([LuaJIT not found!])])
AC_DEFINE([ENABLE_LUA], [1], [Enable LuaJIT])
fi
# /********/
# /* MQTT */
# /********/
AC_ARG_ENABLE(mqtt,
[AS_HELP_STRING([--enable-mqtt], [Enable MQTT [default=no]])],,
[enable_mqtt=no])
AM_CONDITIONAL(ENABLE_MQTT, test "x$enable_mqtt" = "xyes")
if test "x$enable_mqtt" != "xno"; then
AC_DEFINE([ENABLE_MQTT], [1], [Enable MQTT])
AC_CHECK_LIB([paho-mqtt3as],
[MQTTAsync_create],
[AC_SUBST([MQTT_LIBS], ["-lpaho-mqtt3as"])],
[AC_MSG_ERROR([paho-mqtt3a library not found!])])
fi
# /*************************/
# /* GDT packet chunk size */
# /*************************/
AC_ARG_WITH(gdt-csize,
[AS_HELP_STRING([--with-gdt-csize], [GDT packet buffer size [default = 1024]])],
[gdt_csize=$withval],
[gdt_csize=1024])
if (($gdt_csize < 1024 || $gdt_csize > 32768)); then
AC_MSG_ERROR([Invalid GDT packet buffer value (1024 - 32768)])
fi
AC_SUBST(GDT_CSIZE, "$gdt_csize")
AC_DEFINE_UNQUOTED([GDT_CSIZE], [$gdt_csize], [GDT packet buffer size])
# /***************************/
# /* GDT ASN1 Node pool size */
# /***************************/
AC_ARG_WITH(asn1-psize,
[AS_HELP_STRING([--with-asn1-psize], [ASN1 node pool size [default = 1000]])],
[asn1_psize=$withval],
[asn1_psize=1000])
if (($asn1_psize < 1000 || $asn1_psize > 32768)); then
AC_MSG_ERROR([Invalid ASN1 node pool size value (1000 - 32768)])
fi
AC_SUBST(ASN1_PSIZE, "$asn1_psize")
AC_DEFINE_UNQUOTED([ASN1_PSIZE], [$asn1_psize], [ASN1 node pool size])
# /******/
# /* rt */
# /******/
AC_CHECK_LIB([rt], [clock_gettime], , AC_MSG_ERROR([clock_gettime not found!]))
# /***********/
# /* ncurses */
# /***********/
AC_CHECK_LIB([ncurses],
[mvwinchstr],
[AC_SUBST([NCURSES_LIBS], ["-lncurses"])],
[AC_MSG_ERROR([ncurses library not found!])])
# /********/
# /* zlib */
# /********/
AC_CHECK_LIB([z],
[inflateEnd],
[AC_SUBST([Z_LIBS], ["-lz"])],
[AC_MSG_ERROR([libz not found!])])
# /***********/
# /* pthread */
# /***********/
AC_CHECK_LIB([pthread],
[pthread_create], ,
AC_MSG_ERROR([pthread library not found!]))
# /********/
# /* sctp */
# /********/
AC_CHECK_LIB([sctp],
[sctp_send],
[AC_SUBST([SCTP_LIBS], ["-lsctp"])],
[AC_MSG_ERROR([sctp library not found!])])
# /****************************/
# /* Checks for header files. */
# /****************************/
AC_CHECK_HEADERS([ arpa/inet.h \
fcntl.h \
inttypes.h \
locale.h \
netdb.h \
netinet/in.h \
stddef.h \
stdint.h \
stdlib.h \
string.h \
strings.h \
sys/ioctl.h \
sys/socket.h \
sys/time.h \
sys/timeb.h \
syslog.h \
pthread.h \
curses.h \
boost/circular_buffer.hpp \
boost/asio/local/stream_protocol.hpp \
boost/asio/io_service.hpp \
boost/beast/core/detail/base64.hpp \
boost/asio/signal_set.hpp \
boost/beast/core.hpp \
boost/beast/websocket.hpp \
boost/beast/websocket/ssl.hpp \
boost/beast/ssl.hpp \
boost/asio/dispatch.hpp \
boost/asio/strand.hpp \
boost/asio/buffers_iterator.hpp \
boost/optional.hpp \
boost/algorithm/string/trim.hpp \
boost/range/as_array.hpp \
boost/tokenizer.hpp \
boost/signals2.hpp \
zlib.h \
unistd.h], , AC_MSG_ERROR([Header file missing!]))
# /******************************************************************/
# /* Checks for typedefs, structures, and compiler characteristics. */
# /******************************************************************/
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_INT8_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
# /*********************************/
# /* Checks for library functions. */
# /*********************************/
AC_FUNC_ERROR_AT_LINE
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_MKTIME
AC_FUNC_STRNLEN
AC_FUNC_STRTOD
AC_CHECK_FUNCS([alarm \
atexit \
bzero \
gethostname \
gettimeofday \
inet_ntoa \
isascii \
localtime_r \
memmove \
memset \
mkdir \
mkfifo \
pow \
select \
poll \
setenv \
socket \
strchr \
strdup \
strerror \
strncasecmp \
strstr \
strtoul \
strtoull \
sysinfo], , AC_MSG_ERROR([System function missing!]))
AC_CONFIG_FILES([Makefile])
AC_OUTPUT