Blame
Date:
Fri Jan 1 14:38:26 2021 UTC
Message:
2021! :-) Happy new year!
001
2012-09-24
alex
#
002
2012-09-24
alex
# ngIRCd -- The Next Generation IRC Daemon
003
2014-01-02
alex
# Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors
004
2012-09-24
alex
#
005
2012-09-24
alex
# This program is free software; you can redistribute it and/or modify
006
2012-09-24
alex
# it under the terms of the GNU General Public License as published by
007
2012-09-24
alex
# the Free Software Foundation; either version 2 of the License, or
008
2012-09-24
alex
# (at your option) any later version.
009
2012-09-24
alex
# Please read the file COPYING, README and AUTHORS for more information.
010
2012-09-24
alex
#
011
2012-09-24
alex
012
2012-09-24
alex
define(VERSION_ID,esyscmd([
013
2012-09-24
alex
V=`git describe 2>/dev/null | sed -e 's/rel-//g' | sed -e 's/-/~/'`;
014
2012-09-24
alex
[ -z "$V" -a -r configure ] \
015
2012-09-24
alex
&& V=`grep "PACKAGE_STRING=" configure | cut -d"'" -f2 | cut -d' ' -f2`
016
2012-09-24
alex
( [ -n "$V" ] && echo "$V" || echo "??" ) | tr -d '\n';
017
2012-09-24
alex
]))
018
2012-09-24
alex
019
2012-09-24
alex
m4_ifdef([AM_SILENT_RULES],
020
2012-09-24
alex
[m4_define([ng_color_tests], [color-tests])],
021
2012-09-24
alex
[m4_define([ng_color_tests], [])])
022
2012-09-24
alex
023
2012-09-24
alex
# -- Initialisation --
024
2012-09-24
alex
025
2014-01-04
alex
AC_PREREQ([2.61])
026
2014-01-02
alex
AC_INIT([ngIRCd],[VERSION_ID],[ngircd-ml@ngircd.barton.de],[ngircd],[http://ngircd.barton.de/])
027
2012-09-24
alex
028
2012-09-24
alex
AC_CONFIG_SRCDIR([src/ngircd/ngircd.c])
029
2012-09-24
alex
AC_CONFIG_HEADER([src/config.h])
030
2012-09-24
alex
AC_CANONICAL_HOST
031
2012-09-24
alex
032
2020-03-29
alex
AM_INIT_AUTOMAKE([-Wall 1.10 foreign ]ng_color_tests)
033
2012-09-24
alex
034
2012-09-24
alex
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
035
2012-09-24
alex
036
2012-09-24
alex
# -- Templates for config.h --
037
2012-09-24
alex
038
2012-09-24
alex
AH_TEMPLATE([DEBUG], [Define if debug-mode should be enabled])
039
2012-09-24
alex
AH_TEMPLATE([HAVE_sockaddr_in_len], [Define if sockaddr_in.sin_len exists])
040
2012-09-24
alex
AH_TEMPLATE([HAVE_socklen_t], [Define if socklen_t exists])
041
2012-10-06
alex
AH_TEMPLATE([ICONV], [Define if libiconv can be used, e.g. for CHARCONV])
042
2012-09-24
alex
AH_TEMPLATE([IDENTAUTH], [Define if the server should do IDENT requests])
043
2012-09-24
alex
AH_TEMPLATE([IRCPLUS], [Define if IRC+ protocol should be used])
044
2012-09-24
alex
AH_TEMPLATE([PAM], [Define if PAM should be used])
045
2012-09-24
alex
AH_TEMPLATE([SNIFFER], [Define if IRC sniffer should be enabled])
046
2012-09-24
alex
AH_TEMPLATE([STRICT_RFC], [Define if ngIRCd should behave strict RFC compliant])
047
2012-09-24
alex
AH_TEMPLATE([SYSLOG], [Define if syslog should be used for logging])
048
2012-09-24
alex
AH_TEMPLATE([TCPWRAP], [Define if TCP wrappers should be used])
049
2012-09-24
alex
AH_TEMPLATE([WANT_IPV6], [Define if IPV6 protocol should be enabled])
050
2012-09-24
alex
AH_TEMPLATE([ZLIB], [Define if zlib compression should be enabled])
051
2012-09-24
alex
052
2012-09-24
alex
AH_TEMPLATE([HOST_OS], [Target operating system name])
053
2012-09-24
alex
AH_TEMPLATE([HOST_VENDOR], [Target system vendor])
054
2012-09-24
alex
AH_TEMPLATE([HOST_CPU], [Target CPU name])
055
2012-09-24
alex
056
2012-09-24
alex
# -- C Compiler --
057
2012-09-24
alex
058
2012-09-24
alex
AC_PROG_CC
059
2012-09-24
alex
AC_PROG_CC_STDC
060
2012-09-24
alex
061
2012-09-24
alex
# -- Helper programs --
062
2012-09-24
alex
063
2012-09-24
alex
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
064
2012-09-24
alex
065
2012-09-24
alex
AC_PROG_AWK
066
2012-09-24
alex
AC_PROG_INSTALL
067
2012-09-24
alex
AC_PROG_LN_S
068
2012-09-24
alex
AC_PROG_MAKE_SET
069
2014-01-17
alex
AC_PROG_MKDIR_P
070
2012-09-24
alex
AC_PROG_RANLIB
071
2012-09-24
alex
072
2012-09-24
alex
# -- Compiler Features --
073
2012-09-24
alex
074
2012-09-24
alex
AC_C_CONST
075
2012-09-24
alex
AC_C_INLINE
076
2012-09-24
alex
__ng_PROTOTYPES__
077
2012-09-24
alex
078
2013-11-11
alex
# -- Function Definitions --
079
2012-09-24
alex
080
2012-09-24
alex
AC_DEFUN([GCC_STACK_PROTECT_CC],[
081
2013-11-11
alex
ssp_cc=yes
082
2013-11-11
alex
# Use -fstack-protector-all for the test to enfoce the use of the
083
2013-11-11
alex
# guard variable
084
2013-11-11
alex
AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector])
085
2013-11-11
alex
ssp_old_cflags="$CFLAGS"
086
2013-11-11
alex
CFLAGS="$CFLAGS -fstack-protector-all"
087
2014-01-02
alex
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],[],[ssp_cc=no])
088
2013-11-11
alex
echo $ssp_cc
089
2013-11-11
alex
CFLAGS="$ssp_old_cflags"
090
2013-11-11
alex
if test "X$ssp_cc" = "Xyes"; then
091
2013-11-11
alex
CFLAGS="$CFLAGS -fstack-protector"
092
2013-11-11
alex
AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.])
093
2013-11-11
alex
fi
094
2012-09-24
alex
])
095
2012-09-24
alex
096
2013-12-27
alex
AC_DEFUN([WORKING_GETADDRINFO],[
097
2013-12-27
alex
AC_CHECK_FUNCS([getaddrinfo],[
098
2013-12-27
alex
AC_MSG_CHECKING([whether getaddrinfo() works])
099
2014-01-02
alex
AC_RUN_IFELSE([AC_LANG_SOURCE([[
100
2013-12-27
alex
#include <stdio.h>
101
2013-12-27
alex
#include <sys/types.h>
102
2013-12-27
alex
#include <sys/socket.h>
103
2013-12-27
alex
#include <netdb.h>
104
2013-12-27
alex
int
105
2013-12-27
alex
main(int argc, char **argv)
106
2013-12-27
alex
{
107
2013-12-27
alex
struct addrinfo hints, *ai;
108
2013-12-27
alex
memset(&hints, 0, sizeof(hints));
109
2013-12-27
alex
hints.ai_flags = AI_PASSIVE;
110
2013-12-27
alex
hints.ai_socktype = SOCK_STREAM;
111
2013-12-27
alex
hints.ai_family = PF_UNSPEC;
112
2013-12-27
alex
if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
113
2013-12-27
alex
return 1;
114
2013-12-27
alex
return 0;
115
2013-12-27
alex
}
116
2014-01-02
alex
]])],[
117
2013-12-27
alex
AC_DEFINE([HAVE_WORKING_GETADDRINFO], 1, [getaddrinfo(0)])
118
2013-12-27
alex
AC_MSG_RESULT(yes)
119
2013-12-27
alex
],[
120
2013-12-27
alex
AC_MSG_RESULT(no)
121
2014-01-02
alex
],[
122
2014-01-02
alex
AC_MSG_RESULT(no)
123
2013-12-27
alex
])
124
2013-12-27
alex
])
125
2013-12-27
alex
])
126
2013-12-27
alex
127
2013-11-11
alex
# -- Hard coded system and compiler dependencies/features/options ... --
128
2013-11-11
alex
129
2012-09-24
alex
if test "$GCC" = "yes"; then
130
2012-09-24
alex
# We are using the GNU C compiler. Good!
131
2012-09-24
alex
CFLAGS="$CFLAGS -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes"
132
2012-09-24
alex
133
2012-09-24
alex
GCC_STACK_PROTECT_CC
134
2012-09-24
alex
fi
135
2012-09-24
alex
136
2012-09-24
alex
case "$host_os" in
137
2012-09-24
alex
hpux*)
138
2012-09-24
alex
# This is HP/UX, we need to define _XOPEN_SOURCE_EXTENDED
139
2012-09-24
alex
# (tested with HP/UX 11.11)
140
2012-09-24
alex
CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
141
2012-09-24
alex
;;
142
2012-09-24
alex
esac
143
2012-09-24
alex
144
2012-09-24
alex
# Add additional CFLAGS, eventually specified on the command line:
145
2012-09-24
alex
test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
146
2012-09-24
alex
147
2013-01-02
alex
CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"' -DDOCDIR='\"\$(docdir)\"'"
148
2012-09-24
alex
149
2012-09-24
alex
# -- Headers --
150
2012-09-24
alex
151
2012-09-24
alex
AC_HEADER_STDC
152
2012-09-24
alex
AC_HEADER_SYS_WAIT
153
2012-09-24
alex
AC_HEADER_TIME
154
2012-09-24
alex
155
2012-09-24
alex
# Required header files
156
2012-09-24
alex
AC_CHECK_HEADERS([ \
157
2018-02-25
alex
fcntl.h \
158
2018-02-25
alex
netdb.h \
159
2018-02-25
alex
netinet/in.h \
160
2018-02-25
alex
stdlib.h \
161
2018-02-25
alex
string.h \
162
2018-02-25
alex
strings.h \
163
2018-02-25
alex
sys/socket.h \
164
2018-02-25
alex
sys/time.h \
165
2018-02-25
alex
sys/types.h \
166
2018-02-25
alex
unistd.h \
167
2012-09-24
alex
],,AC_MSG_ERROR([required C header missing!]))
168
2012-09-24
alex
169
2012-09-24
alex
# Optional header files
170
2012-09-24
alex
AC_CHECK_HEADERS_ONCE([ \
171
2018-02-25
alex
arpa/inet.h \
172
2018-02-25
alex
inttypes.h \
173
2018-02-25
alex
malloc.h \
174
2018-02-25
alex
netinet/in_systm.h \
175
2018-02-25
alex
netinet/ip.h \
176
2018-02-25
alex
stdbool.h \
177
2018-02-25
alex
stddef.h \
178
2018-02-25
alex
stdint.h \
179
2018-02-25
alex
varargs.h \
180
2018-02-25
alex
])
181
2012-09-24
alex
182
2012-09-24
alex
# -- Datatypes --
183
2012-09-24
alex
184
2012-09-24
alex
AC_MSG_CHECKING(whether socklen_t exists)
185
2014-01-02
alex
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
186
2012-09-24
alex
#include <sys/types.h>
187
2012-09-24
alex
#include <sys/socket.h>
188
2014-01-02
alex
]],[[
189
2012-09-24
alex
socklen_t a, b;
190
2012-09-24
alex
a = 2; b = 4; a += b;
191
2014-01-02
alex
]])],[
192
2012-09-24
alex
AC_DEFINE(HAVE_socklen_t) AC_MSG_RESULT(yes)
193
2012-09-24
alex
],[
194
2012-09-24
alex
AC_MSG_RESULT(no)
195
2012-09-24
alex
])
196
2012-09-24
alex
197
2012-09-24
alex
AC_TYPE_PID_T
198
2012-09-24
alex
AC_TYPE_SIZE_T
199
2012-09-24
alex
AC_TYPE_SSIZE_T
200
2012-09-24
alex
AC_TYPE_UID_T
201
2012-09-24
alex
AC_TYPE_UINT16_T
202
2012-09-24
alex
AC_TYPE_UINT32_T
203
2012-09-24
alex
AC_TYPE_UINT8_T
204
2012-09-24
alex
205
2012-09-24
alex
AC_CHECK_MEMBER([struct sockaddr_in.sin_len], AC_DEFINE(HAVE_sockaddr_in_len),,
206
2012-09-24
alex
[#include <arpa/inet.h>])
207
2012-09-24
alex
208
2012-09-24
alex
# -- Libraries --
209
2012-09-24
alex
210
2012-09-24
alex
# memmove: A/UX libUTIL
211
2012-09-24
alex
AC_SEARCH_LIBS([memmove], [UTIL], [], [
212
2012-09-24
alex
AC_MSG_ERROR([unable to find the memmove() function])
213
2012-09-24
alex
])
214
2012-09-24
alex
# gethostbyname: Solaris libnsl
215
2012-10-11
alex
AC_SEARCH_LIBS([gethostbyname], [bind nsl network], [], [
216
2012-09-24
alex
AC_MSG_ERROR([unable to find the gethostbyname() function])
217
2012-09-24
alex
])
218
2012-09-24
alex
# bind: SVR4 libsocket
219
2012-10-11
alex
AC_SEARCH_LIBS([bind], [socket network], [], [
220
2012-09-24
alex
AC_MSG_ERROR([unable to find the bind() function])
221
2012-09-24
alex
])
222
2012-09-24
alex
223
2012-09-24
alex
# -- Functions --
224
2012-09-24
alex
225
2012-09-24
alex
AC_FUNC_FORK
226
2012-09-24
alex
AC_FUNC_STRFTIME
227
2012-09-24
alex
228
2012-09-24
alex
# Required functions
229
2012-09-24
alex
AC_CHECK_FUNCS([ \
230
2018-02-25
alex
alarm \
231
2018-02-25
alex
dup2 \
232
2018-02-25
alex
endpwent \
233
2018-02-25
alex
gethostbyaddr \
234
2018-02-25
alex
gethostbyname \
235
2018-02-25
alex
gethostname \
236
2018-02-25
alex
gettimeofday \
237
2018-02-25
alex
inet_ntoa \
238
2018-02-25
alex
memmove \
239
2018-02-25
alex
memset \
240
2018-02-25
alex
setsid \
241
2018-02-25
alex
socket \
242
2018-02-25
alex
strcasecmp \
243
2018-02-25
alex
strchr \
244
2018-02-25
alex
strcspn \
245
2018-02-25
alex
strerror \
246
2018-02-25
alex
strncasecmp \
247
2018-02-25
alex
strrchr \
248
2018-02-25
alex
strspn \
249
2018-02-25
alex
strstr \
250
2012-09-24
alex
],,
251
2012-09-24
alex
AC_MSG_ERROR([required function missing!]))
252
2012-09-24
alex
253
2012-09-24
alex
# Optional functions
254
2013-12-27
alex
AC_CHECK_FUNCS_ONCE([
255
2018-02-25
alex
arc4random \
256
2018-02-25
alex
arc4random_stir \
257
2018-02-25
alex
gai_strerror \
258
2018-02-25
alex
getnameinfo \
259
2018-02-25
alex
inet_aton \
260
2018-02-25
alex
setgroups \
261
2018-02-25
alex
sigaction \
262
2018-02-25
alex
sigprocmask \
263
2018-02-25
alex
snprintf \
264
2018-02-25
alex
strdup \
265
2018-02-25
alex
strlcat \
266
2018-02-25
alex
strlcpy \
267
2018-02-25
alex
strndup \
268
2019-11-10
alex
strsignal \
269
2018-02-25
alex
strtok_r \
270
2018-02-25
alex
unsetenv \
271
2018-02-25
alex
vsnprintf \
272
2018-02-25
alex
waitpid \
273
2018-02-25
alex
])
274
2012-09-24
alex
275
2013-12-27
alex
WORKING_GETADDRINFO
276
2013-12-27
alex
277
2012-09-24
alex
# -- Configuration options --
278
2012-09-24
alex
279
2012-09-24
alex
# use syslog?
280
2012-09-24
alex
281
2012-09-24
alex
x_syslog_on=no
282
2012-09-24
alex
AC_ARG_WITH(syslog,
283
2012-09-24
alex
AS_HELP_STRING([--without-syslog],
284
2012-09-24
alex
[disable syslog (autodetected by default)]),
285
2012-09-24
alex
[ if test "$withval" != "no"; then
286
2012-09-24
alex
if test "$withval" != "yes"; then
287
2012-09-24
alex
CFLAGS="-I$withval/include $CFLAGS"
288
2012-09-24
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
289
2012-09-24
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
290
2012-09-24
alex
fi
291
2012-09-24
alex
AC_SEARCH_LIBS([syslog], [be], [x_syslog_on=yes], [
292
2012-09-24
alex
AC_MSG_ERROR([Can't enable syslog!])
293
2012-09-24
alex
])
294
2012-09-24
alex
fi
295
2012-09-24
alex
],
296
2012-09-24
alex
[ AC_SEARCH_LIBS([syslog], [be], [x_syslog_on=yes])
297
2012-09-24
alex
]
298
2012-09-24
alex
)
299
2012-09-24
alex
if test "$x_syslog_on" = "yes"; then
300
2012-09-24
alex
AC_DEFINE(SYSLOG, 1)
301
2012-09-24
alex
AC_CHECK_HEADERS(syslog.h,,AC_MSG_ERROR([required C header missing!]))
302
2012-09-24
alex
fi
303
2012-09-24
alex
304
2012-09-24
alex
# use zlib compression?
305
2012-09-24
alex
306
2012-09-24
alex
x_zlib_on=no
307
2012-09-24
alex
AC_ARG_WITH(zlib,
308
2012-09-24
alex
AS_HELP_STRING([--without-zlib],
309
2012-09-24
alex
[disable zlib compression (autodetected by default)]),
310
2012-09-24
alex
[ if test "$withval" != "no"; then
311
2012-09-24
alex
if test "$withval" != "yes"; then
312
2012-09-24
alex
CFLAGS="-I$withval/include $CFLAGS"
313
2012-09-24
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
314
2012-09-24
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
315
2012-09-24
alex
fi
316
2012-09-24
alex
AC_CHECK_LIB(z, deflate)
317
2012-09-24
alex
AC_CHECK_FUNCS(deflate, x_zlib_on=yes,
318
2012-09-24
alex
AC_MSG_ERROR([Can't enable zlib!])
319
2012-09-24
alex
)
320
2012-09-24
alex
fi
321
2012-09-24
alex
],
322
2012-09-24
alex
[ AC_CHECK_LIB(z, deflate)
323
2012-09-24
alex
AC_CHECK_FUNCS(deflate, x_zlib_on=yes)
324
2012-09-24
alex
]
325
2012-09-24
alex
)
326
2012-09-24
alex
if test "$x_zlib_on" = "yes"; then
327
2012-09-24
alex
AC_DEFINE(ZLIB, 1)
328
2012-09-24
alex
AC_CHECK_HEADERS(zlib.h,,AC_MSG_ERROR([required C header missing!]))
329
2012-09-24
alex
fi
330
2012-09-24
alex
331
2012-09-24
alex
# detect which IO API to use:
332
2012-09-24
alex
333
2012-09-24
alex
x_io_backend=none
334
2012-09-24
alex
335
2012-09-24
alex
AC_ARG_WITH(select,
336
2012-09-24
alex
AS_HELP_STRING([--without-select],
337
2012-09-24
alex
[disable select IO support (autodetected by default)]),
338
2012-09-24
alex
[ if test "$withval" != "no"; then
339
2012-09-24
alex
if test "$withval" != "yes"; then
340
2012-09-24
alex
CFLAGS="-I$withval/include $CFLAGS"
341
2012-09-24
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
342
2012-09-24
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
343
2012-09-24
alex
fi
344
2012-09-24
alex
AC_CHECK_FUNCS(select, x_io_select=yes,
345
2012-09-24
alex
AC_MSG_ERROR([Can't enable select IO support!])
346
2012-09-24
alex
)
347
2012-09-24
alex
fi
348
2012-09-24
alex
],
349
2012-09-24
alex
[
350
2012-09-24
alex
AC_CHECK_FUNCS(select, x_io_select=yes)
351
2012-09-24
alex
]
352
2012-09-24
alex
)
353
2012-09-24
alex
354
2012-09-24
alex
AC_ARG_WITH(poll,
355
2012-09-24
alex
AS_HELP_STRING([--without-poll],
356
2012-09-24
alex
[disable poll support (autodetected by default)]),
357
2012-09-24
alex
[ if test "$withval" != "no"; then
358
2012-09-24
alex
if test "$withval" != "yes"; then
359
2012-09-24
alex
CFLAGS="-I$withval/include $CFLAGS"
360
2012-09-24
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
361
2012-09-24
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
362
2012-09-24
alex
fi
363
2012-09-24
alex
AC_CHECK_FUNCS(poll, [
364
2012-09-24
alex
AC_CHECK_HEADERS(poll.h,
365
2012-09-24
alex
x_io_backend=poll\(\),
366
2012-09-24
alex
AC_MSG_ERROR(
367
2012-09-24
alex
[Can't enable poll IO support!])
368
2012-09-24
alex
)
369
2012-09-24
alex
], [
370
2012-09-24
alex
AC_MSG_ERROR([Can't enable poll IO support!])
371
2012-09-24
alex
])
372
2012-09-24
alex
fi
373
2012-09-24
alex
],
374
2012-09-24
alex
[
375
2012-09-24
alex
AC_CHECK_FUNCS(poll, [
376
2012-09-24
alex
AC_CHECK_HEADERS(poll.h, x_io_backend=poll\(\))
377
2012-09-24
alex
])
378
2012-09-24
alex
]
379
2012-09-24
alex
)
380
2012-09-24
alex
381
2012-09-24
alex
AC_ARG_WITH(devpoll,
382
2012-09-24
alex
AS_HELP_STRING([--without-devpoll],
383
2012-09-24
alex
[disable /dev/poll IO support (autodetected by default)]),
384
2012-09-24
alex
[ if test "$withval" != "no"; then
385
2012-09-24
alex
if test "$withval" != "yes"; then
386
2012-09-24
alex
CFLAGS="-I$withval/include $CFLAGS"
387
2012-09-24
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
388
2012-09-24
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
389
2012-09-24
alex
fi
390
2012-09-24
alex
391
2012-09-24
alex
AC_CHECK_HEADERS(sys/devpoll.h,,AC_MSG_ERROR([required C header missing!]))
392
2012-09-24
alex
fi
393
2012-09-24
alex
],
394
2012-09-24
alex
[
395
2012-09-24
alex
AC_CHECK_HEADERS(sys/devpoll.h, x_io_backend=/dev/poll)
396
2012-09-24
alex
]
397
2012-09-24
alex
)
398
2012-09-24
alex
399
2012-09-24
alex
AC_ARG_WITH(epoll,
400
2012-09-24
alex
AS_HELP_STRING([--without-epoll],
401
2012-09-24
alex
[disable epoll IO support (autodetected by default)]),
402
2012-09-24
alex
[ if test "$withval" != "no"; then
403
2012-09-24
alex
if test "$withval" != "yes"; then
404
2012-09-24
alex
CFLAGS="-I$withval/include $CFLAGS"
405
2012-09-24
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
406
2012-09-24
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
407
2012-09-24
alex
fi
408
2012-09-24
alex
AC_CHECK_FUNCS(epoll_create, x_io_epoll=yes,
409
2012-09-24
alex
AC_MSG_ERROR([Can't enable epoll IO support!])
410
2012-09-24
alex
)
411
2012-09-24
alex
fi
412
2012-09-24
alex
],
413
2012-09-24
alex
[
414
2012-09-24
alex
AC_CHECK_FUNCS(epoll_create, x_io_epoll=yes)
415
2012-09-24
alex
]
416
2012-09-24
alex
)
417
2012-09-24
alex
418
2012-09-24
alex
AC_ARG_WITH(kqueue,
419
2012-09-24
alex
AS_HELP_STRING([--without-kqueue],
420
2012-09-24
alex
[disable kqueue IO support (autodetected by default)]),
421
2012-09-24
alex
[ if test "$withval" != "no"; then
422
2012-09-24
alex
if test "$withval" != "yes"; then
423
2012-09-24
alex
CFLAGS="-I$withval/include $CFLAGS"
424
2012-09-24
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
425
2012-09-24
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
426
2012-09-24
alex
fi
427
2012-09-24
alex
AC_CHECK_FUNCS(kqueue, x_io_backend=kqueue\(\),
428
2012-09-24
alex
AC_MSG_ERROR([Can't enable kqueue IO support!])
429
2012-09-24
alex
)
430
2012-09-24
alex
fi
431
2012-09-24
alex
],
432
2012-09-24
alex
[
433
2012-09-24
alex
AC_CHECK_FUNCS(kqueue, x_io_backend=kqueue\(\))
434
2012-09-24
alex
]
435
2012-09-24
alex
)
436
2012-09-24
alex
437
2012-09-24
alex
if test "$x_io_epoll" = "yes" -a "$x_io_select" = "yes"; then
438
2012-09-24
alex
# when epoll() and select() are available, we'll use both!
439
2012-09-24
alex
x_io_backend="epoll(), select()"
440
2012-09-24
alex
else
441
2012-09-24
alex
if test "$x_io_epoll" = "yes"; then
442
2012-09-24
alex
# we prefere epoll() if it is available
443
2012-09-24
alex
x_io_backend="epoll()"
444
2012-09-24
alex
else
445
2012-09-24
alex
if test "$x_io_select" = "yes" -a "$x_io_backend" = "none"; then
446
2012-09-24
alex
# we'll use select, when available and no "better"
447
2012-09-24
alex
# interface has been detected ...
448
2012-09-24
alex
x_io_backend="select()"
449
2012-09-24
alex
fi
450
2012-09-24
alex
fi
451
2012-09-24
alex
fi
452
2012-09-24
alex
453
2012-09-24
alex
if test "$x_io_backend" = "none"; then
454
2012-09-24
alex
AC_MSG_ERROR([No useable IO API activated/found!?])
455
2012-09-24
alex
fi
456
2012-09-24
alex
457
2012-09-24
alex
# use SSL?
458
2012-09-24
alex
459
2012-09-24
alex
AC_ARG_WITH(openssl,
460
2012-09-24
alex
AS_HELP_STRING([--with-openssl],
461
2012-09-24
alex
[enable SSL support using OpenSSL]),
462
2012-09-24
alex
[ if test "$withval" != "no"; then
463
2012-09-24
alex
if test "$withval" != "yes"; then
464
2012-09-24
alex
CFLAGS="-I$withval/include $CFLAGS"
465
2012-09-24
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
466
2012-09-24
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
467
2012-09-24
alex
fi
468
2019-04-20
alex
PKG_CHECK_MODULES([OPENSSL], [libssl libcrypto],
469
2019-07-01
alex
[LIBS="$LIBS $OPENSSL_LIBS" CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
470
2019-07-01
alex
AC_DEFINE(HAVE_LIBSSL, 1)],
471
2019-04-20
alex
[AC_CHECK_LIB(crypto, BIO_s_mem)
472
2019-04-20
alex
AC_CHECK_LIB(ssl, SSL_new)]
473
2019-04-20
alex
)
474
2016-12-05
alex
AC_CHECK_FUNCS(SSL_new, x_ssl_openssl=yes,
475
2012-09-24
alex
AC_MSG_ERROR([Can't enable openssl])
476
2012-09-24
alex
)
477
2012-09-24
alex
fi
478
2012-09-24
alex
]
479
2012-09-24
alex
)
480
2012-09-24
alex
481
2012-09-24
alex
AC_ARG_WITH(gnutls,
482
2012-09-24
alex
AS_HELP_STRING([--with-gnutls],
483
2012-09-24
alex
[enable SSL support using gnutls]),
484
2012-09-24
alex
[ if test "$withval" != "no"; then
485
2012-09-24
alex
if test "$withval" != "yes"; then
486
2012-09-24
alex
CFLAGS="-I$withval/include $CFLAGS"
487
2012-09-24
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
488
2012-09-24
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
489
2012-09-24
alex
fi
490
2012-09-24
alex
AC_CHECK_LIB(gnutls, gnutls_global_init)
491
2012-09-24
alex
AC_CHECK_FUNCS(gnutls_global_init, x_ssl_gnutls=yes,
492
2012-09-24
alex
AC_MSG_ERROR([Can't enable gnutls])
493
2012-09-24
alex
)
494
2012-09-24
alex
fi
495
2012-09-24
alex
]
496
2012-09-24
alex
)
497
2012-09-24
alex
498
2012-09-24
alex
x_ssl_lib="no"
499
2012-09-24
alex
if test "$x_ssl_gnutls" = "yes"; then
500
2012-09-24
alex
if test "$x_ssl_openssl" = "yes";then
501
2012-09-24
alex
AC_MSG_ERROR([Cannot enable both gnutls and openssl])
502
2012-09-24
alex
fi
503
2012-09-24
alex
x_ssl_lib=gnutls
504
2012-09-24
alex
fi
505
2012-09-24
alex
if test "$x_ssl_openssl" = "yes"; then
506
2012-09-24
alex
x_ssl_lib=openssl
507
2012-09-24
alex
fi
508
2012-09-24
alex
509
2020-05-06
noreply
AM_CONDITIONAL(HAVE_SSL, [test $x_ssl_lib != "no"])
510
2020-05-06
noreply
511
2012-09-24
alex
# use TCP wrappers?
512
2012-09-24
alex
513
2012-09-24
alex
x_tcpwrap_on=no
514
2012-09-24
alex
AC_ARG_WITH(tcp-wrappers,
515
2012-09-24
alex
AS_HELP_STRING([--with-tcp-wrappers],
516
2012-09-24
alex
[enable TCP wrappers support]),
517
2012-09-24
alex
[ if test "$withval" != "no"; then
518
2012-09-24
alex
if test "$withval" != "yes"; then
519
2012-09-24
alex
CFLAGS="-I$withval/include $CFLAGS"
520
2012-09-24
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
521
2012-09-24
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
522
2012-09-24
alex
fi
523
2012-09-24
alex
AC_MSG_CHECKING(for hosts_access)
524
2014-01-17
alex
saved_LIBS="$LIBS"
525
2012-09-24
alex
LIBS="-lwrap $LIBS"
526
2014-01-17
alex
LIBS_END="-lwrap $LIBS_END"
527
2014-01-02
alex
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
528
2014-01-17
alex
#include <sys/types.h>
529
2014-01-17
alex
#include <sys/socket.h>
530
2012-09-24
alex
#include <tcpd.h>
531
2012-09-24
alex
int allow_severity = 0;
532
2012-09-24
alex
int deny_severity = 0;
533
2014-01-02
alex
]],[[
534
2012-09-24
alex
tcpd_warn("link test");
535
2014-01-02
alex
]])],[
536
2012-09-24
alex
AC_MSG_RESULT(yes)
537
2012-09-24
alex
AC_DEFINE(TCPWRAP, 1)
538
2012-09-24
alex
x_tcpwrap_on=yes
539
2012-09-24
alex
],[
540
2012-09-24
alex
AC_MSG_RESULT(no)
541
2012-09-24
alex
AC_MSG_ERROR([Can't enable TCP wrappers!])
542
2012-09-24
alex
])
543
2014-01-17
alex
LIBS="$saved_LIBS"
544
2012-09-24
alex
fi
545
2012-09-24
alex
]
546
2012-09-24
alex
)
547
2012-09-24
alex
548
2012-09-24
alex
# do IDENT requests using libident?
549
2012-09-24
alex
550
2012-09-24
alex
x_identauth_on=no
551
2012-09-24
alex
AC_ARG_WITH(ident,
552
2012-09-24
alex
AS_HELP_STRING([--with-ident],
553
2012-09-24
alex
[enable "IDENT" ("AUTH") protocol support]),
554
2012-09-24
alex
[ if test "$withval" != "no"; then
555
2012-09-24
alex
if test "$withval" != "yes"; then
556
2012-09-24
alex
CFLAGS="-I$withval/include $CFLAGS"
557
2012-09-24
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
558
2012-09-24
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
559
2012-09-24
alex
fi
560
2012-09-24
alex
AC_CHECK_LIB(ident, ident_id)
561
2012-09-24
alex
AC_CHECK_FUNCS(ident_id, x_identauth_on=yes,
562
2012-09-24
alex
AC_MSG_ERROR([Can't enable IDENT support!])
563
2012-09-24
alex
)
564
2012-09-24
alex
fi
565
2012-09-24
alex
]
566
2012-09-24
alex
)
567
2012-09-24
alex
if test "$x_identauth_on" = "yes"; then
568
2012-09-24
alex
AC_DEFINE(IDENTAUTH, 1)
569
2012-09-24
alex
AC_CHECK_HEADERS(ident.h,,AC_MSG_ERROR([required C header missing!]))
570
2012-09-24
alex
fi
571
2012-09-24
alex
572
2012-09-24
alex
# compile in PAM support?
573
2012-09-24
alex
574
2012-09-24
alex
x_pam_on=no
575
2012-09-24
alex
AC_ARG_WITH(pam,
576
2012-09-24
alex
AS_HELP_STRING([--with-pam],
577
2012-09-24
alex
[enable user authentication using PAM]),
578
2012-09-24
alex
[ if test "$withval" != "no"; then
579
2012-09-24
alex
if test "$withval" != "yes"; then
580
2012-09-24
alex
CFLAGS="-I$withval/include $CFLAGS"
581
2012-09-24
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
582
2012-09-24
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
583
2012-09-24
alex
fi
584
2012-09-24
alex
AC_CHECK_LIB(pam, pam_authenticate)
585
2012-09-24
alex
AC_CHECK_FUNCS(pam_authenticate, x_pam_on=yes,
586
2012-09-24
alex
AC_MSG_ERROR([Can't enable PAM support!])
587
2012-09-24
alex
)
588
2012-09-24
alex
fi
589
2012-09-24
alex
]
590
2012-09-24
alex
)
591
2012-09-24
alex
if test "$x_pam_on" = "yes"; then
592
2012-09-24
alex
AC_DEFINE(PAM, 1)
593
2012-09-24
alex
AC_CHECK_HEADERS(security/pam_appl.h,pam_ok=yes)
594
2012-09-24
alex
if test "$pam_ok" != "yes"; then
595
2012-09-24
alex
AC_CHECK_HEADERS(pam/pam_appl.h,pam_ok=yes,
596
2012-09-24
alex
AC_MSG_ERROR([required C header missing!]))
597
2012-09-24
alex
fi
598
2012-09-24
alex
fi
599
2012-09-24
alex
600
2012-09-24
alex
# compile in IRC+ protocol support?
601
2012-09-24
alex
602
2012-09-24
alex
x_ircplus_on=yes
603
2012-09-24
alex
AC_ARG_ENABLE(ircplus,
604
2012-09-24
alex
AS_HELP_STRING([--disable-ircplus],
605
2012-09-24
alex
[disable IRC+ protocol]),
606
2012-09-24
alex
if test "$enableval" = "no"; then x_ircplus_on=no; fi
607
2012-09-24
alex
)
608
2012-09-24
alex
if test "$x_ircplus_on" = "yes"; then
609
2012-09-24
alex
AC_DEFINE(IRCPLUS, 1)
610
2012-10-06
alex
611
2012-10-06
alex
# Compile in iconv support?
612
2012-10-06
alex
# We only check for it when IRC+ is enabled, because the IRC+ command
613
2012-10-06
alex
# CHARCONV is the only function depending on it.
614
2012-10-06
alex
x_iconv_on=no
615
2012-10-06
alex
AC_ARG_WITH(iconv,
616
2013-01-06
alex
AS_HELP_STRING([--with-iconv],
617
2013-02-15
alex
[enable character conversion using libiconv]),
618
2012-10-06
alex
[ if test "$withval" != "no"; then
619
2012-10-06
alex
if test "$withval" != "yes"; then
620
2012-10-06
alex
CFLAGS="-I$withval/include $CFLAGS"
621
2012-10-06
alex
CPPFLAGS="-I$withval/include $CPPFLAGS"
622
2012-10-06
alex
LDFLAGS="-L$withval/lib $LDFLAGS"
623
2012-10-06
alex
fi
624
2012-10-06
alex
AC_CHECK_LIB(iconv, iconv_open)
625
2013-03-24
alex
AC_CHECK_FUNCS(iconv_open, x_iconv_on=yes)
626
2013-03-24
alex
if test "$x_iconv_on" != "yes"; then
627
2013-02-15
alex
AC_CHECK_LIB(iconv, libiconv_open)
628
2013-03-24
alex
AC_CHECK_FUNCS(libiconv_open, x_iconv_on=yes)
629
2013-03-24
alex
fi
630
2013-03-24
alex
if test "$x_iconv_on" != "yes"; then
631
2013-03-24
alex
AC_MSG_ERROR([Can't enable libiconv support!])
632
2013-03-24
alex
fi
633
2013-03-24
alex
fi ]
634
2012-10-06
alex
)
635
2012-10-06
alex
if test "$x_iconv_on" = "yes"; then
636
2012-10-06
alex
AC_DEFINE(ICONV, 1)
637
2012-10-06
alex
fi
638
2012-09-24
alex
fi
639
2012-09-24
alex
640
2012-09-24
alex
# enable support for IPv6?
641
2012-09-24
alex
x_ipv6_on=no
642
2012-09-24
alex
AC_ARG_ENABLE(ipv6,
643
2012-09-24
alex
AS_HELP_STRING([--enable-ipv6],
644
2012-09-24
alex
[enable IPv6 protocol support]),
645
2012-09-24
alex
if test "$enableval" = "yes"; then x_ipv6_on=yes; fi
646
2012-09-24
alex
)
647
2012-09-24
alex
if test "$x_ipv6_on" = "yes"; then
648
2012-09-24
alex
# getaddrinfo() and getnameinfo() are optional when not compiling
649
2012-09-24
alex
# with IPv6 support, but are required for IPv6 to work!
650
2012-09-24
alex
AC_CHECK_FUNCS([ \
651
2012-09-24
alex
getaddrinfo getnameinfo \
652
2012-09-24
alex
],,AC_MSG_ERROR([required function missing for IPv6 support!]))
653
2012-09-24
alex
AC_DEFINE(WANT_IPV6, 1)
654
2012-09-24
alex
fi
655
2012-09-24
alex
656
2012-09-24
alex
# compile in IRC "sniffer"?
657
2012-09-24
alex
658
2012-09-24
alex
x_sniffer_on=no; x_debug_on=no
659
2012-09-24
alex
AC_ARG_ENABLE(sniffer,
660
2012-09-24
alex
AS_HELP_STRING([--enable-sniffer],
661
2012-09-24
alex
[enable IRC traffic sniffer (enables debug mode)]),
662
2012-09-24
alex
if test "$enableval" = "yes"; then
663
2012-09-24
alex
AC_DEFINE(SNIFFER, 1)
664
2012-09-24
alex
x_sniffer_on=yes; x_debug_on=yes
665
2012-09-24
alex
fi
666
2012-09-24
alex
)
667
2012-09-24
alex
668
2012-09-24
alex
# enable additional debugging code?
669
2012-09-24
alex
670
2012-09-24
alex
AC_ARG_ENABLE(debug,
671
2012-09-24
alex
AS_HELP_STRING([--enable-debug],
672
2012-09-24
alex
[show additional debug output]),
673
2012-09-24
alex
if test "$enableval" = "yes"; then x_debug_on=yes; fi
674
2012-09-24
alex
)
675
2012-09-24
alex
if test "$x_debug_on" = "yes"; then
676
2012-09-24
alex
AC_DEFINE(DEBUG, 1)
677
2012-09-24
alex
test "$GCC" = "yes" && CFLAGS="-pedantic $CFLAGS"
678
2012-09-24
alex
AC_CHECK_FUNCS(mtrace)
679
2012-09-24
alex
fi
680
2012-09-24
alex
681
2012-09-24
alex
# enable "strict RFC rules"?
682
2012-09-24
alex
683
2012-09-24
alex
x_strict_rfc_on=no
684
2012-09-24
alex
AC_ARG_ENABLE(strict-rfc,
685
2012-09-24
alex
AS_HELP_STRING([--enable-strict-rfc],
686
2012-09-24
alex
[strict RFC conformance -- may break clients!]),
687
2012-09-24
alex
if test "$enableval" = "yes"; then
688
2012-09-24
alex
AC_DEFINE(STRICT_RFC, 1)
689
2012-09-24
alex
x_strict_rfc_on=yes
690
2012-09-24
alex
fi
691
2012-09-24
alex
)
692
2012-09-24
alex
693
2012-09-24
alex
# -- Definitions --
694
2012-09-24
alex
695
2012-09-24
alex
AC_DEFINE_UNQUOTED(HOST_CPU, "$host_cpu" )
696
2012-09-24
alex
AC_DEFINE_UNQUOTED(HOST_VENDOR, "$host_vendor" )
697
2012-09-24
alex
AC_DEFINE_UNQUOTED(HOST_OS, "$host_os" )
698
2012-09-24
alex
699
2014-01-17
alex
# Add additional CFLAGS, LDFLAGS and LIBS which were specified on the command
700
2014-01-17
alex
# line or by some tests from above, but after running this script. Useful for
701
2014-01-17
alex
# adding "-Werror", for example:
702
2012-09-24
alex
test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END"
703
2014-01-17
alex
test -n "$LDFLAGS_END" && LDFLAGS="$LDFLAGS $LDFLAGS_END"
704
2014-01-17
alex
test -n "$LIBS_END" && LIBS="$LIBS $LIBS_END"
705
2012-09-24
alex
706
2012-09-24
alex
# -- Generate files --
707
2012-09-24
alex
708
2012-09-24
alex
AC_CONFIG_FILES([ \
709
2012-09-24
alex
Makefile \
710
2012-09-24
alex
contrib/Debian/Makefile \
711
2012-09-24
alex
contrib/MacOSX/Makefile \
712
2012-09-24
alex
contrib/MacOSX/ngIRCd.pmdoc/Makefile \
713
2012-09-24
alex
contrib/MacOSX/ngIRCd.xcodeproj/Makefile \
714
2012-09-24
alex
contrib/Makefile \
715
2012-09-24
alex
doc/Makefile \
716
2012-09-24
alex
doc/src/Makefile \
717
2012-09-24
alex
man/Makefile \
718
2012-09-24
alex
src/ipaddr/Makefile \
719
2012-09-24
alex
src/Makefile \
720
2012-09-24
alex
src/ngircd/Makefile \
721
2012-09-24
alex
src/portab/Makefile \
722
2012-09-24
alex
src/testsuite/Makefile \
723
2012-09-24
alex
src/tool/Makefile \
724
2012-09-24
alex
])
725
2012-09-24
alex
726
2012-09-24
alex
AC_OUTPUT
727
2012-09-24
alex
728
2012-09-24
alex
type dpkg >/dev/null 2>&1
729
2012-09-24
alex
if test $? -eq 0; then
730
2012-09-24
alex
# Generate debian/ link if the dpkg command exists
731
2012-09-24
alex
# (read: if we are running on a debian compatible system)
732
2012-09-24
alex
echo "creating Debian-specific links ..."
733
2014-01-26
alex
if test ! -f debian/rules -a -f contrib/Debian/rules; then
734
2014-01-26
alex
ln -s contrib/Debian debian
735
2014-01-26
alex
fi
736
2012-09-24
alex
fi
737
2012-09-24
alex
738
2012-09-24
alex
# -- Result --
739
2012-09-24
alex
740
2012-09-24
alex
echo
741
2012-09-24
alex
echo "ngIRCd $PACKAGE_VERSION has been configured with the following options:"
742
2012-09-24
alex
echo
743
2012-09-24
alex
744
2012-09-24
alex
# Someone please show me a better way :) [borrowed by OpenSSH]
745
2012-09-24
alex
B=`eval echo ${bindir}` ; B=`eval echo ${B}`
746
2012-09-24
alex
S=`eval echo ${sbindir}` ; S=`eval echo ${S}`
747
2012-09-24
alex
C=`eval echo ${sysconfdir}` ; C=`eval echo ${C}`
748
2012-09-24
alex
M=`eval echo ${mandir}` ; M=`eval echo ${M}`
749
2012-09-24
alex
D=`eval echo ${docdir}` ; D=`eval echo ${D}`
750
2012-09-24
alex
751
2012-09-24
alex
echo " Host: ${host}"
752
2012-09-24
alex
echo " Compiler: ${CC}"
753
2012-09-24
alex
test -n "$CFLAGS" && echo " Compiler flags: ${CFLAGS}"
754
2012-09-24
alex
test -n "$CPPFLAGS" && echo " Preprocessor flags: ${CPPFLAGS}"
755
2012-09-24
alex
test -n "$LDFLAGS" && echo " Linker flags: ${LDFLAGS}"
756
2012-09-24
alex
test -n "$LIBS" && echo " Libraries: ${LIBS}"
757
2012-09-24
alex
echo
758
2012-09-24
alex
echo " 'ngircd' binary: $S"
759
2012-09-24
alex
echo " Configuration file: $C"
760
2012-09-24
alex
echo " Manual pages: $M"
761
2012-09-24
alex
echo " Documentation: $D"
762
2012-09-24
alex
echo
763
2012-09-24
alex
764
2012-09-24
alex
echo $ECHO_N " Syslog support: $ECHO_C"
765
2012-09-24
alex
test "$x_syslog_on" = "yes" \
766
2012-09-24
alex
&& echo $ECHO_N "yes $ECHO_C" \
767
2012-09-24
alex
|| echo $ECHO_N "no $ECHO_C"
768
2012-09-24
alex
echo $ECHO_N " Enable debug code: $ECHO_C"
769
2012-09-24
alex
test "$x_debug_on" = "yes" \
770
2012-09-24
alex
&& echo "yes" \
771
2012-09-24
alex
|| echo "no"
772
2012-09-24
alex
773
2012-09-24
alex
echo $ECHO_N " zlib compression: $ECHO_C"
774
2012-09-24
alex
test "$x_zlib_on" = "yes" \
775
2012-09-24
alex
&& echo $ECHO_N "yes $ECHO_C" \
776
2012-09-24
alex
|| echo $ECHO_N "no $ECHO_C"
777
2012-09-24
alex
echo $ECHO_N " IRC sniffer: $ECHO_C"
778
2012-09-24
alex
test "$x_sniffer_on" = "yes" \
779
2012-09-24
alex
&& echo "yes" \
780
2012-09-24
alex
|| echo "no"
781
2012-09-24
alex
782
2012-09-24
alex
echo $ECHO_N " Use TCP Wrappers: $ECHO_C"
783
2012-09-24
alex
test "$x_tcpwrap_on" = "yes" \
784
2012-09-24
alex
&& echo $ECHO_N "yes $ECHO_C" \
785
2012-09-24
alex
|| echo $ECHO_N "no $ECHO_C"
786
2012-09-24
alex
echo $ECHO_N " Strict RFC mode: $ECHO_C"
787
2012-09-24
alex
test "$x_strict_rfc_on" = "yes" \
788
2012-09-24
alex
&& echo "yes" \
789
2012-09-24
alex
|| echo "no"
790
2012-09-24
alex
791
2012-09-24
alex
echo $ECHO_N " IDENT support: $ECHO_C"
792
2012-09-24
alex
test "$x_identauth_on" = "yes" \
793
2012-09-24
alex
&& echo $ECHO_N "yes $ECHO_C" \
794
2012-09-24
alex
|| echo $ECHO_N "no $ECHO_C"
795
2012-09-24
alex
echo $ECHO_N " IRC+ protocol: $ECHO_C"
796
2012-09-24
alex
test "$x_ircplus_on" = "yes" \
797
2012-09-24
alex
&& echo "yes" \
798
2012-09-24
alex
|| echo "no"
799
2012-09-24
alex
800
2012-09-24
alex
echo $ECHO_N " IPv6 protocol: $ECHO_C"
801
2012-09-24
alex
test "$x_ipv6_on" = "yes" \
802
2012-09-24
alex
&& echo $ECHO_N "yes $ECHO_C" \
803
2012-09-24
alex
|| echo $ECHO_N "no $ECHO_C"
804
2012-09-24
alex
echo $ECHO_N " I/O backend: $ECHO_C"
805
2013-08-11
alex
echo "$x_io_backend"
806
2012-09-24
alex
807
2012-09-24
alex
echo $ECHO_N " PAM support: $ECHO_C"
808
2012-09-24
alex
test "$x_pam_on" = "yes" \
809
2012-09-24
alex
&& echo $ECHO_N "yes $ECHO_C" \
810
2012-09-24
alex
|| echo $ECHO_N "no $ECHO_C"
811
2012-09-24
alex
echo $ECHO_N " SSL support: $ECHO_C"
812
2012-09-24
alex
echo "$x_ssl_lib"
813
2012-09-24
alex
814
2012-10-06
alex
echo $ECHO_N " libiconv support: $ECHO_C"
815
2012-10-06
alex
echo "$x_iconv_on"
816
2012-10-06
alex
817
2012-09-24
alex
echo
818
2012-09-24
alex
819
2013-01-05
alex
define(_automake_regex_,[[^AUTOMAKE_OPTIONS = [a-z .\-]*/portab/ansi2knr]])
820
2013-01-05
alex
if ! grep "_automake_regex_" src/ngircd/Makefile.am >/dev/null 2>&1; then
821
2012-09-24
alex
echo "WARNING:"
822
2012-09-24
alex
echo "This GNU automake generated build system does not support \"de-ANSI-fication\","
823
2012-09-24
alex
echo "therefore don't use it to generate \"official\" distribution archives!"
824
2012-09-24
alex
echo "(Most probably you want to use GNU automake 1.11.x for this purpose ...)"
825
2012-09-24
alex
echo
826
2012-09-24
alex
fi
827
2012-09-24
alex
828
2012-09-24
alex
# -eof-
IRCNow