1 dnl Prefered emacs editing mode: -*- shell-script -*-
3 dnl Process this file with autoconf to produce a configure script.
5 dnl Copyright (c) 1997, by Carlo Wood <carlo@runaway.xs4all.nl>
6 dnl Copyright (C) 2001 Kevin L. Mitchell <klmitch@mit.edu>
8 dnl This program is free software; you can redistribute it and/or modify
9 dnl it under the terms of the GNU General Public License as published by
10 dnl the Free Software Foundation; either version 1, or (at your option)
11 dnl any later version.
13 dnl This program is distributed in the hope that it will be useful,
14 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
15 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 dnl GNU General Public License for more details.
18 dnl You should have received a copy of the GNU General Public License
19 dnl along with this program; if not, write to the Free Software
20 dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 dnl Make sure we are in the correct directory (someone could have run
25 dnl 'configure' with a wrong '--srcdir').
28 dnl Set the default prefix
29 AC_PREFIX_DEFAULT([$HOME])
30 AC_MSG_CHECKING([for installation prefix])
31 AC_CACHE_VAL(unet_cv_prefix, [unet_cv_prefix=$HOME])
32 if test x"$prefix" != xNONE; then
33 unet_cv_prefix=$prefix
35 AC_MSG_RESULT([$unet_cv_prefix])
36 dnl HACK WARNING: We are referencing an autoconf internal variable. This is
37 dnl the only way to force the prefix to be retrieved from the config.cache
39 ac_default_prefix=$unet_cv_prefix
41 dnl Define the input and output configuration header file.
42 AC_CONFIG_HEADER([config.h])
44 dnl Demand at least version 2.13 of autoconf
47 dnl Find out what type of system we are
50 dnl This should be done early.
53 dnl ANSIfy the C compiler whenever possible.
55 dnl Use -O3 instead of -O2.
56 if test x"$CFLAGS" != x; then
57 CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
59 dnl Remove -pipe during configure
60 if test x"$CFLAGS" != x; then
61 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
63 dnl Notice the -g flag and deal accordingly
64 if test x"$CFLAGS" != x; then
65 unet_old_cflags=$CFLAGS
66 CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
68 if test x"$CFLAGS" != x"$unet_old_cflags"; then
69 # If -g was already there, force symbols to be enabled
70 unet_cv_enable_symbols=yes
72 dnl Notice the -pg flag and deal accordingly
73 if test x"$CFLAGS" != x; then
74 unet_old_cflags=$CFLAGS
75 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
77 if test x"$CFLAGS" != x"$unet_old_cflags"; then
78 # If -pg was already there, force profiling to be enabled
79 unet_cv_enable_profile=yes
81 dnl Notice the -Wall flag and deal accordingly
82 if test x"$CFLAGS" != x; then
83 unet_old_cflags=$CFLAGS
84 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
86 if test x"$CFLAGS" != x"$unet_old_cflags"; then
87 # If -Wall was already there, force warnings to be enabled
88 unet_cv_enable_warnings=yes
90 dnl Notice the -pedantic flag and deal accordingly
91 if test x"$CFLAGS" != x; then
92 unet_old_cflags=$CFLAGS
93 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
95 if test x"$CFLAGS" != x"$unet_old_cflags"; then
96 # If -pedantic was already there, force pedatic to be enabled
97 unet_cv_enable_pedantic=yes
100 dnl Checks for libraries.
102 dnl Locate the library containing crypt
103 AC_SEARCH_LIBS(crypt, descrypt crypt, ,
104 [AC_MSG_ERROR([Unable to find library containing crypt()])])
106 dnl Do all the checks necessary to figure out -lnsl / -lsocket stuff
109 dnl Look for res_mkquery. Done after AC_LIBRARY_NET in case res_mkquery
110 dnl is in one of those libraries somewhere.
111 AC_SEARCH_LIBS(res_mkquery, resolv, ,
112 [AC_MSG_ERROR([Unable to find library containing res_mkquery()])])
114 dnl Checks for header files.
116 AC_CHECK_HEADERS(poll.h sys/devpoll.h sys/event.h)
118 dnl Checks for typedefs, structures, and compiler characteristics
125 unet_CHECK_TYPE_SIZES
127 dnl Checks for library functions.
128 AC_CHECK_FUNC(kqueue)
130 dnl Do we have restarting syscalls ?
131 AC_SYS_RESTARTABLE_SYSCALLS
133 dnl Check for required features for admins?
134 AC_MSG_CHECKING([for donuts])
137 dnl Test for programs
142 AC_PATH_PROGS(RMPROG, rm, /bin/rm)
143 AC_PATH_PROGS(SHPROG, sh, /bin/sh)
148 dnl Add -pipe when possible
151 dnl Check OS for os_dep files.
152 AC_MSG_CHECKING(for OS-dependent information)
155 AC_MSG_RESULT([Linux ($host) found.])
156 unet_poll_syscall=yes
161 AC_MSG_RESULT([Solaris ($host) found.])
162 if test x"$ac_cv_header_poll_h" = xyes; then
163 unet_poll_syscall=yes
171 AC_MSG_RESULT([Solaris ($host) found.])
177 AC_MSG_RESULT([OpenBSD ($host) found.])
178 if test x"$ac_cv_header_poll_h" = xyes; then
179 unet_poll_syscall=yes
187 AC_MSG_RESULT([Generic BSD ($host) found.])
188 if test x"$ac_cv_header_poll_h" = xyes; then
189 unet_poll_syscall=yes
197 AC_MSG_RESULT([Darwin (Mac OS X) ($host) found.])
203 AC_MSG_RESULT([Unknown system type $host found.])
204 AC_MSG_WARN([Unknown OS type; using generic routines.])
211 dnl Check user configuration options
212 dnl Start with --enable-poll
213 AC_MSG_CHECKING([whether to enable use of poll()])
214 AC_ARG_ENABLE([poll],
215 [ --enable-poll Force poll to be used regardless of whether or not
216 it is a system call],
217 [unet_cv_enable_poll=$enable_poll],
218 [AC_CACHE_VAL(unet_cv_enable_poll,
219 [unet_cv_enable_poll=$unet_poll_syscall])])
221 # Force poll to be disabled if there is no poll.h
222 if test x"$ac_cv_header_poll_h" != xyes; then
223 unet_cv_enable_poll=no
226 AC_MSG_RESULT([$unet_cv_enable_poll])
228 if test x"$unet_cv_enable_poll" = xyes; then
229 AC_DEFINE([USE_POLL], , [Specify whether or not to use poll()])
230 ENGINE_C=engine_poll.c
232 ENGINE_C=engine_select.c
236 dnl Now look for --enable-debug
237 AC_MSG_CHECKING([whether to enable debug mode])
238 AC_ARG_ENABLE([debug],
239 [ --enable-debug Turn on debugging mode],
240 [unet_cv_enable_debug=$enable_debug],
241 [AC_CACHE_VAL(unet_cv_enable_debug,
242 [unet_cv_enable_debug=no])])
243 AC_MSG_RESULT([$unet_cv_enable_debug])
245 if test x"$unet_cv_enable_debug" = xyes; then
246 AC_DEFINE([DEBUGMODE], , [Enable debugging code])
249 dnl And now for --disable-asserts
250 AC_MSG_CHECKING([whether to enable asserts])
251 AC_ARG_ENABLE([asserts],
252 [ --disable-asserts Disable assertion checking],
253 [unet_cv_enable_asserts=$enable_asserts],
254 [AC_CACHE_VAL(unet_cv_enable_asserts,
255 [unet_cv_enable_asserts=yes])])
256 AC_MSG_RESULT([$unet_cv_enable_asserts])
258 if test x"$unet_cv_enable_asserts" = xno; then
259 AC_DEFINE([NDEBUG], , [Disable assertions])
262 dnl Check for --enable-symbols
263 AC_MSG_CHECKING([whether to enable debugging symbols])
264 AC_ARG_ENABLE([symbols],
265 [ --disable-symbols Disable debugging symbols (remove -g from CFLAGS)],
266 [unet_cv_enable_symbols=$enable_symbols],
267 [AC_CACHE_VAL(unet_cv_enable_symbols,
268 [unet_cv_enable_symbols=yes])])
269 AC_MSG_RESULT([$unet_cv_enable_symbols])
271 if test x"$unet_cv_enable_symbols" = xyes; then
275 dnl Now check for --enable-profile
276 AC_MSG_CHECKING([whether to enable profiling support (gprof)])
277 AC_ARG_ENABLE([profile],
278 [ --enable-profile Enable profiling support (add -pg to CFLAGS)],
279 [unet_cv_enable_profile=$enable_profile],
280 [AC_CACHE_VAL(unet_cv_enable_profile,
281 [unet_cv_enable_profile=no])])
282 AC_MSG_RESULT([$unet_cv_enable_profile])
284 if test x"$unet_cv_enable_profile" = xyes; then
288 dnl Now check for --enable-pedantic
289 AC_MSG_CHECKING([whether to enable pedantic compiler warnings])
290 AC_ARG_ENABLE([pedantic],
291 [ --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)],
292 [unet_cv_enable_pedantic=$enable_pedantic],
293 [AC_CACHE_VAL(unet_cv_enable_pedantic,
294 [unet_cv_enable_pedantic=no])])
295 AC_MSG_RESULT([$unet_cv_enable_pedantic])
297 if test x"$unet_cv_enable_pedantic" = xyes; then
298 CFLAGS="-pedantic $CFLAGS"
301 dnl Now check for --enable-warnings
302 AC_MSG_CHECKING([whether to enable compiler warnings])
303 AC_ARG_ENABLE([warnings],
304 [ --enable-warnings Enable warnings (add -Wall to CFLAGS)],
305 [unet_cv_enable_warnings=$enable_warnings],
306 [AC_CACHE_VAL(unet_cv_enable_warnings,
307 [unet_cv_enable_warnings=no])])
308 AC_MSG_RESULT([$unet_cv_enable_warnings])
310 if test x"$unet_cv_enable_warnings" = xyes; then
311 CFLAGS="-Wall $CFLAGS"
314 dnl --disable-inlines check...
315 AC_MSG_CHECKING([whether to enable inlining for a few critical functions])
316 AC_ARG_ENABLE([inlines],
317 [ --disable-inlines Disable inlining for a few critical functions],
318 [unet_cv_enable_inlines=$enable_inlines],
319 [AC_CACHE_VAL(unet_cv_enable_inlines,
320 [unet_cv_enable_inlines=yes])])
321 AC_MSG_RESULT([$unet_cv_enable_inlines])
323 if test x"$unet_cv_enable_inlines" = xyes; then
324 AC_DEFINE([FORCEINLINE], , [Force inlining for a few critical functions])
327 dnl --disable-devpoll check...
328 AC_MSG_CHECKING([whether to enable the /dev/poll event engine])
329 AC_ARG_ENABLE([devpoll],
330 [ --disable-devpoll Enable the /dev/poll-based engine],
331 [unet_cv_enable_devpoll=$enable_devpoll],
332 [AC_CACHE_VAL(unet_cv_enable_devpoll,
333 [unet_cv_enable_devpoll=yes])])
335 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
336 unet_cv_enable_devpoll=no
339 AC_MSG_RESULT([$unet_cv_enable_devpoll])
341 if test x"$unet_cv_enable_devpoll" != xno; then
342 AC_DEFINE([USE_DEVPOLL], , [Define to enable the /dev/poll engine])
343 ENGINE_C="engine_devpoll.c $ENGINE_C"
346 dnl --disable-kqueue check...
347 AC_MSG_CHECKING([whether to enable the kqueue event engine])
348 AC_ARG_ENABLE([kqueue],
349 [ --disable-kqueue Enable the kqueue-based engine],
350 [unet_cv_enable_kqueue=$enable_kqueue],
351 [AC_CACHE_VAL(unet_cv_enable_kqueue,
352 [unet_cv_enable_kqueue=yes])])
354 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
355 unet_cv_enable_kqueue=no
358 AC_MSG_RESULT([$unet_cv_enable_kqueue])
360 if test x"$unet_cv_enable_kqueue" != xno; then
361 AC_DEFINE([USE_KQUEUE], , [Define to enable the kqueue engine])
362 ENGINE_C="engine_kqueue.c $ENGINE_C"
365 dnl --with-symlink lets us set the name of the symlink; defaults to "ircd"
366 AC_MSG_CHECKING([what name to give the symlink])
367 AC_ARG_WITH([symlink],
368 [ --with-symlink=name Name to give the symlink; if name is "no," no
369 symlink will be created.],
370 [unet_cv_with_symlink=$with_symlink],
371 [AC_CACHE_VAL(unet_cv_with_symlink,
372 [unet_cv_with_symlink="ircd"])])
374 if test x"$unet_cv_with_symlink" = xyes; then
375 unet_cv_with_symlink="ircd"
378 AC_MSG_RESULT([$unet_cv_with_symlink])
380 if test x"$unet_cv_with_symlink" = xno; then
381 INSTALL_RULE=install-no-symlink
384 INSTALL_RULE=install-with-symlink
385 SYMLINK=$unet_cv_with_symlink
387 AC_SUBST(INSTALL_RULE)
390 dnl --with-mode lets us set the permissions on the binary
391 AC_MSG_CHECKING([what permissions to set on the installed binary])
393 [ --with-mode=mode Permissions (in octal) to give the binary],
394 [unet_cv_with_mode=$with_mode],
395 [AC_CACHE_VAL(unet_cv_with_mode,
396 [unet_cv_with_mode=711])])
398 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
399 unet_cv_with_mode=711
402 AC_MSG_RESULT([$unet_cv_with_mode])
404 IRCDMODE=$unet_cv_with_mode
407 dnl --with-owner lets us set the owner of the binary
409 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
411 AC_MSG_CHECKING([which user should own the installed binary])
413 [ --with-owner=owner Specify owner of the installed binary],
414 [unet_cv_with_owner=$with_owner],
415 [AC_CACHE_VAL(unet_cv_with_owner,
416 [unet_cv_with_owner=$unet_uid])])
418 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
419 unet_cv_with_owner=$unet_uid
422 AC_MSG_RESULT([$unet_cv_with_owner])
424 IRCDOWN=$unet_cv_with_owner
427 dnl --with-group lets us set the group owner of the binary
429 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
431 AC_MSG_CHECKING([which group should own the installed binary])
433 [ --with-group=group Specify group owner of the installed binary],
434 [unet_cv_with_group=$with_group],
435 [AC_CACHE_VAL(unet_cv_with_group,
436 [unet_cv_with_group=$unet_gid])])
438 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
439 unet_cv_with_group=$unet_gid
442 AC_MSG_RESULT([$unet_cv_with_group])
444 IRCDGRP=$unet_cv_with_group
447 dnl --with-domain lets us set the domain name for some statistics-gathering
449 if test -f /etc/resolv.conf; then
450 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
451 if test x"$unet_domain" = x; then
452 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
455 AC_MSG_CHECKING([for site domain name])
456 AC_ARG_WITH([domain],
457 [ --with-domain=domain Domain name to use in local statistics gathering],
458 [unet_cv_with_domain=$with_domain],
459 [AC_CACHE_VAL(unet_cv_with_domain,
460 [unet_cv_with_domain=$unet_domain])])
462 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
463 unet_cv_with_domain=$unet_domain
465 if test x"$unet_cv_with_domain" = xno; then
466 AC_MSG_ERROR([Unable to determine server DNS domain; use --with-domain to set it])
469 AC_MSG_RESULT([$unet_cv_with_domain])
471 AC_DEFINE_UNQUOTED(DOMAINNAME, "*$unet_cv_with_domain",
472 [Domain name to be used for some statistics gathering])
474 dnl --with-chroot lets us define a directory that we are going to be using
475 dnl as the root of our filesystem
476 AC_MSG_CHECKING([if chroot operation is desired])
477 AC_ARG_WITH([chroot],
478 [ --with-chroot=dir Specify that the server will be operated under
479 a different root directory given by dir. See
480 doc/readme.chroot for more information.],
481 [unet_cv_with_chroot=$with_chroot],
482 [AC_CACHE_VAL(unet_cv_with_chroot,
483 [unet_cv_with_chroot=no])])
485 if test x"$unet_cv_with_chroot" = xyes; then
486 AC_MSG_ERROR([--with-chroot given with no directory. See doc/readme.chroot.])
489 # Ensure there are no trailing /'s to mess us up
490 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
492 AC_MSG_RESULT([$unet_cv_with_chroot])
494 dnl Determine some default directory names
496 dnl HACK WARNING: We are referencing an autoconf internal variable. This is
497 dnl the only way to figure out what value $prefix will have when we go to do
498 dnl the install--and the only way we can stick that value in our definitions
500 # Deal with the annoying value "NONE" here
501 unet_save_prefix=$prefix
502 if test x"$prefix" = xNONE; then
503 prefix=$ac_default_prefix
508 unet_save_exec_prefix=$exec_prefix
509 if test x"$exec_prefix" = xNONE; then
512 exec_prefix=$exec_prefix
515 # Obtain the actual interesting directories
516 unet_bindir=`eval echo "$bindir"`
517 unet_libdir=`eval echo "$libdir"`
519 # Restore the original settings of $prefix and $exec_prefix
520 prefix=$unet_save_prefix
521 exec_prefix=$unet_save_exec_prefix
523 dnl Now compute the name of the binary and verify that it will work under
525 AC_MSG_CHECKING([where the binary will be for /restart])
526 if test x"$unet_cv_with_symlink" = xno; then
527 unet_spath="$unet_bindir/ircd"
529 unet_spath="$unet_bindir/$unet_cv_with_symlink"
531 AC_MSG_RESULT([$unet_spath])
533 if test x"$unet_cv_with_chroot" != xno; then
534 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
535 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
537 AC_MSG_WARN([Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail])
541 AC_DEFINE_UNQUOTED(SPATH, "$unet_spath", [Path to executable for restarts])
543 dnl --with-dpath sets the all-important DPATH
544 AC_MSG_CHECKING([what the data directory should be])
546 [ --with-dpath=dir Directory for all server data files],
547 [unet_cv_with_dpath=$with_dpath],
548 [AC_CACHE_VAL(unet_cv_with_dpath,
549 [unet_cv_with_dpath=$unet_libdir])])
551 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
552 unet_cv_with_dpath=$unet_libdir
555 # Ensure there are no trailing /'s to mess us up
556 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
558 AC_MSG_RESULT([$unet_cv_with_dpath])
560 if test x"$unet_cv_with_chroot" != xno; then
561 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
562 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
564 AC_MSG_ERROR([Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot])
567 unet_dpath=$unet_cv_with_dpath
570 AC_DEFINE_UNQUOTED(DPATH, "$unet_dpath", [Path to data directory])
572 DPATH=$unet_cv_with_dpath
575 dnl --with-cpath allows us to specify the configuration file
576 AC_MSG_CHECKING([where the default configuration file resides])
578 [ --with-cpath=file Set server configuration file],
579 [unet_cv_with_cpath=$with_cpath],
580 [AC_CACHE_VAL(unet_cv_with_cpath,
581 [unet_cv_with_cpath="ircd.conf"])])
583 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
584 unet_cv_with_cpath="ircd.conf"
587 AC_MSG_RESULT([$unet_cv_with_cpath])
589 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
590 # Absolute path; check against chroot stuff
591 if test x"$unet_cv_with_chroot" != xno; then
592 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
593 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
595 AC_MSG_ERROR([Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot])
598 unet_cpath=$unet_cv_with_cpath
601 unet_cpath=$unet_cv_with_cpath
604 AC_DEFINE_UNQUOTED(CPATH, "$unet_cpath", [Configuration file name])
606 dnl --with-lpath allows us to specify the default debugging log file
607 AC_MSG_CHECKING([where to put the debugging log if debugging enabled])
609 [ --with-lpath=file Set the debugging log file],
610 [unet_cv_with_lpath=$with_lpath],
611 [AC_CACHE_VAL(unet_cv_with_lpath,
612 [unet_cv_with_lpath="ircd.log"])])
614 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
615 unet_cv_with_lpath="ircd.log"
618 AC_MSG_RESULT([$unet_cv_with_lpath])
620 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
621 # Absolute path; check against chroot stuff
622 if test x"$unet_cv_with_chroot" != xno; then
623 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
624 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
626 AC_MSG_WARN([Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead])
627 unet_cv_with_lpath="ircd.log"
628 unet_lpath="ircd.log"
631 unet_lpath=$unet_cv_with_lpath
634 unet_lpath=$unet_cv_with_lpath
637 AC_DEFINE_UNQUOTED(LPATH, "$unet_lpath", [Path to debugging log file])
639 dnl --with-maxcon allows us to set the maximum connections
640 unet_maxcon=`ulimit -Hn`
641 unet_maxcon=`expr $unet_maxcon - 4`
642 AC_MSG_CHECKING([max connections])
643 AC_ARG_WITH([maxcon],
644 [ --with-maxcon=maxcon Maximum number of connections server will accept],
645 [unet_cv_with_maxcon=$with_maxcon],
646 [AC_CACHE_VAL(unet_cv_with_maxcon,
647 [unet_cv_with_maxcon=$unet_maxcon])])
649 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
650 unet_cv_with_maxcon=$unet_maxcon
653 AC_MSG_RESULT([$unet_cv_with_maxcon])
655 AC_DEFINE_UNQUOTED(MAXCONNECTIONS, $unet_cv_with_maxcon,
656 [Maximum number of network connections])
658 dnl Finally really generate all output files:
659 AC_OUTPUT(Makefile ircd/Makefile doc/Makefile, [echo timestamp > stamp-h])