]> arthur.barton.de Git - ngircd-alex.git/blob - configure.in
- Gross- und Kleinschreibung der IRC-Befehle wird ignoriert.
[ngircd-alex.git] / configure.in
1 #
2 # ngIRCd -- The Next Generation IRC Daemon
3 # Copyright (c)2001 by Alexander Barton (alex@barton.de)
4 #
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 comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
11 #
12 # $Id: configure.in,v 1.5 2001/12/21 23:54:26 alex Exp $
13 #
14 # $Log: configure.in,v $
15 # Revision 1.5  2001/12/21 23:54:26  alex
16 # - zusaetzliche Debug-Ausgaben koennen eingeschaltet werden.
17 #
18 # Revision 1.4  2001/12/12 17:21:58  alex
19 # - Projektdatei fuer den Mac OS X Project Builder erstellt.
20 #
21 # Revision 1.3  2001/12/12 01:58:53  alex
22 # - Test auf socklen_t verbessert.
23 #
24 # Revision 1.2  2001/12/11 22:04:21  alex
25 # - Test auf stdint.h (HAVE_STDINT_H) hinzugefuegt.
26 #
27 # Revision 1.1.1.1  2001/12/11 21:53:04  alex
28 # Imported sources to CVS.
29 #
30
31 # -- Initialisierung --
32
33 AC_INIT
34 AC_CONFIG_SRCDIR(src/ngircd/ngircd.c)
35 AM_INIT_AUTOMAKE(ngircd,0.0.1-pre)
36 AM_CONFIG_HEADER(src/config.h)
37
38 # -- Variablen --
39
40 CFLAGS="$CFLAGS -I/usr/local/include"
41 LDFLAGS="$LDFLAGS -L/usr/local/lib"
42
43 # -- C Compiler --
44
45 AC_PROG_CC
46 AC_LANG_C
47
48 # -- Hilfsprogramme --
49
50 AC_PROG_MAKE_SET
51 AC_PROG_RANLIB
52
53 # -- Header --
54
55 AC_HEADER_STDC
56
57 AC_CHECK_HEADER(portab.h,,AC_MSG_ERROR([Alex \"portability headers\" (portab.h an friends) not found!]))
58 AC_CHECK_HEADER(imp.h,,AC_MSG_ERROR([Alex \"portability headers\" (portab.h an friends) not found!]))
59 AC_CHECK_HEADER(exp.h,,AC_MSG_ERROR([Alex \"portability headers\" (portab.h an friends) not found!]))
60
61 AC_CHECK_HEADERS([netinet/in.h sys/socket.h],,[required C headers missing!])
62
63 AC_CHECK_HEADERS([stdint.h])
64
65 # -- Datentypen --
66
67 AC_MSG_CHECKING(whether socklen_t exists)
68 AC_TRY_COMPILE([
69         #include <sys/socket.h>
70         #include <sys/types.h>
71         ],[
72         socklen_t a, b;
73         a = 2; b = 4; a += b;
74         ],[
75         AC_DEFINE(HAVE_socklen_t) AC_MSG_RESULT(yes)
76         ],[
77         AC_MSG_RESULT(no)
78 ])
79
80 # -- Funktionen --
81
82 AC_CHECK_FUNCS([socket],,[required functions missing!])
83
84 # -- Libraries --
85
86 # -- Konfigurationsoptionen --
87
88 AC_ARG_ENABLE(debug,
89         [  --enable-debug          enable extra debug output],
90         if test "$enableval" = "yes"; then
91                 AC_DEFINE(DEBUG, 1)
92                 AC_MSG_RESULT([enabling extra debug output])
93         fi
94 )
95
96 # -- Ausgabe --
97
98 AC_OUTPUT([Makefile MacOSX/Makefile src/Makefile src/ngircd/Makefile])
99
100 # -eof-