2 # ngIRCd -- The Next Generation IRC Daemon
3 # Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
5 # Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 # der GNU General Public License (GPL), wie von der Free Software Foundation
7 # herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 # der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
12 # $Id: configure.in,v 1.17 2002/01/05 15:53:20 alex Exp $
14 # $Log: configure.in,v $
15 # Revision 1.17 2002/01/05 15:53:20 alex
16 # - Test auf Header "arpa/inet.h" und Funktion inet_aton() hinzugefuegt (BeOS).
18 # Revision 1.16 2002/01/02 13:41:36 alex
19 # - CFLAGS wird nur noch gesetzt, wenn der GCC verwendet wird.
21 # Revision 1.15 2002/01/02 02:52:09 alex
22 # - Copyright-Texte angepasst ;-)
24 # Revision 1.14 2001/12/31 16:11:13 alex
25 # - CVS-Version auf "0.0.2-pre" angehoben.
27 # Revision 1.13 2001/12/31 16:02:30 alex
30 # Revision 1.12 2001/12/31 02:21:00 alex
31 # - "doc"-Unterverzeichnis aufgenommen.
33 # Revision 1.11 2001/12/29 03:04:06 alex
34 # - neue configure-Option "--enable-strict-rfc".
36 # Revision 1.10 2001/12/27 16:25:36 alex
37 # - neue configure-Option "--with-portab=DIR".
39 # Revision 1.9 2001/12/27 02:08:38 alex
40 # - da fehlte an zwei Stellen ein AC_MSG_ERROR ... ups!
42 # Revision 1.8 2001/12/27 01:44:49 alex
43 # - die Verwendung von syslog kann nun abgeschaltet werden.
45 # Revision 1.7 2001/12/27 00:37:07 alex
46 # - Erkennung der "portab header" geaendert, CFLAGS werden nun anders gesetzt.
48 # Revision 1.6 2001/12/25 22:01:47 alex
49 # - neue configure-Option "--enable-sniffer".
51 # Revision 1.5 2001/12/21 23:54:26 alex
52 # - zusaetzliche Debug-Ausgaben koennen eingeschaltet werden.
54 # Revision 1.4 2001/12/12 17:21:58 alex
55 # - Projektdatei fuer den Mac OS X Project Builder erstellt.
57 # Revision 1.3 2001/12/12 01:58:53 alex
58 # - Test auf socklen_t verbessert.
60 # Revision 1.2 2001/12/11 22:04:21 alex
61 # - Test auf stdint.h (HAVE_STDINT_H) hinzugefuegt.
63 # Revision 1.1.1.1 2001/12/11 21:53:04 alex
64 # Imported sources to CVS.
67 # -- Initialisierung --
70 AC_CONFIG_SRCDIR(src/ngircd/ngircd.c)
71 AM_INIT_AUTOMAKE(ngircd,0.0.2-pre)
72 AM_CONFIG_HEADER(src/config.h)
81 # -- Hilfsprogramme --
96 [ --with-portab=DIR search the "portab headers" in DIR],
97 [ if test "x$withval" != "xno"; then
98 CFLAGS="$CFLAGS -I${withval}"
99 if test -f ${withval}/portab.h; then
100 AC_MSG_RESULT([searching "portab headers" in ${withval}...])
102 AC_MSG_ERROR([${withval}/portab.h not found!])
105 AC_MSG_ERROR([Can't disable Alex \"portability headers\"!])
108 [ AC_CHECK_HEADER(portab.h,[
109 AC_CHECK_HEADER(imp.h,,AC_MSG_ERROR([Alex \"portability headers\" (portab.h an friends) not found!]))
110 AC_CHECK_HEADER(exp.h,,AC_MSG_ERROR([Alex \"portability headers\" (portab.h an friends) not found!]))
112 AC_CHECK_HEADER(/usr/local/include/portab.h,,AC_MSG_ERROR([Alex \"portability headers\" (portab.h an friends) not found!]))
113 AC_CHECK_HEADER(/usr/local/include/imp.h,,AC_MSG_ERROR([Alex \"portability headers\" (portab.h an friends) not found!]))
114 AC_CHECK_HEADER(/usr/local/include/exp.h,,AC_MSG_ERROR([Alex \"portability headers\" (portab.h an friends) not found!]))
115 CFLAGS="$CFLAGS -I/usr/local/include"
121 errno.h fcntl.h netinet/in.h string.h \
122 sys/socket.h sys/time.h unistd.h \
123 ],,AC_MSG_ERROR([required C header missing!]))
125 AC_CHECK_HEADERS(arpa/inet.h)
129 AC_MSG_CHECKING(whether socklen_t exists)
131 #include <sys/socket.h>
132 #include <sys/types.h>
135 a = 2; b = 4; a += b;
137 AC_DEFINE(HAVE_socklen_t) AC_MSG_RESULT(yes)
147 gethostname inet_ntoa memmove memset select \
148 socket strcasecmp strchr strerror strstr waitpid \
149 ],,AC_MSG_ERROR([required function missing!]))
151 AC_CHECK_FUNCS(inet_aton)
155 # -- Konfigurationsoptionen --
157 AC_ARG_ENABLE(syslog,
158 [ --disable-syslog disable syslog (autodetected by default)],
159 [ if test "$enableval" = "yes"; then
160 AC_CHECK_HEADER(syslog.h,AC_DEFINE(USE_SYSLOG, 1),AC_MSG_ERROR([Can't enable syslog: syslog.h not found!]))
162 AC_MSG_RESULT([disabling syslog])
165 [ AC_CHECK_HEADER(syslog.h,AC_DEFINE(USE_SYSLOG, 1))
169 AC_ARG_ENABLE(strict-rfc,
170 [ --enable-strict-rfc strict RFC conformance, may break clients],
171 if test "$enableval" = "yes"; then
172 AC_DEFINE(STRICT_RFC, 1)
173 AC_MSG_RESULT([enabling strict RFC conformance])
177 AC_ARG_ENABLE(sniffer,
178 [ --enable-sniffer enable network traffic monitor (enables debug mode!)],
179 if test "$enableval" = "yes"; then
180 AC_DEFINE(SNIFFER, 1)
181 AC_MSG_RESULT([enabling network traffic monitor])
187 [ --enable-debug show additional debug output],
188 if test "$enableval" = "yes"; then x_debug_on=yes; fi
190 if test "$x_debug_on" = "yes"; then
192 AC_MSG_RESULT([enabling additional debug output])
197 if test "$GCC" = "yes"; then
198 CFLAGS="-Wall $CFLAGS"
207 MacOSX/ngircd.pbproj/Makefile \
209 src/ngircd/Makefile \