/[cvs]/eggdrop1.6/configure.ac
ViewVC logotype

Annotation of /eggdrop1.6/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.40 - (hide annotations) (download)
Tue Jun 29 15:52:23 2010 UTC (9 years, 7 months ago) by thommey
Branch: MAIN
Changes since 1.39: +4 -2 lines
Overwrite the Tcl notifier with our own version of it if possible.
Integrate Tcl events and sockets into our own eventloop and socketlist.
Don't fork() before initializing Tcl anymore with overwritten notifier.
Replace max-dcc with a dynamically enlarging array, limited by the new setting max-socks.
Add two configure checks against the Tcl library to check if the notifier can be replaced.

1 wcc 1.1 dnl configure.ac: this file is processed by autoconf to produce ./configure.
2     dnl
3 thommey 1.40 dnl $Id: configure.ac,v 1.39 2010/03/14 18:21:59 pseudo Exp $
4 wcc 1.1
5 tothwolf 1.33 AC_PREREQ(2.60)
6 guppy 1.29 AC_INIT([Eggdrop],[1.6.20],[bugs@eggheads.org])
7 pseudo 1.36 AC_COPYRIGHT([Copyright (C) 1999 - 2010 Eggheads Development Team])
8 thommey 1.40 AC_REVISION($Revision: 1.39 $)
9 wcc 1.1 AC_CONFIG_SRCDIR(src/eggdrop.h)
10     AC_CONFIG_AUX_DIR(misc)
11     AC_CONFIG_HEADER(config.h)
12     AC_PREFIX_DEFAULT([\${HOME}/eggdrop])
13 tothwolf 1.33 AC_PRESERVE_HELP_ORDER
14 wcc 1.1
15 wcc 1.11 dnl config.h stuff
16 tothwolf 1.32 AH_TOP([/*
17     * Copyright (C) 1997 Robey Pointer
18 pseudo 1.36 * Copyright (C) 1999 - 2010 Eggheads Development Team
19 tothwolf 1.32 *
20     * This program is free software; you can redistribute it and/or
21     * modify it under the terms of the GNU General Public License
22     * as published by the Free Software Foundation; either version 2
23     * of the License, or (at your option) any later version.
24     *
25     * This program is distributed in the hope that it will be useful,
26     * but WITHOUT ANY WARRANTY; without even the implied warranty of
27     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28     * GNU General Public License for more details.
29     *
30     * You should have received a copy of the GNU General Public License
31     * along with this program; if not, write to the Free Software
32     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33     */
34    
35     #ifndef _EGG_CONFIG_H
36 wcc 1.10 #define _EGG_CONFIG_H])
37     AH_BOTTOM([#endif /* !_EGG_CONFIG_H */])
38 wcc 1.7
39     # Print start message
40 wcc 1.1 EGG_MSG_CONFIGURE_START
41     EGG_SAVE_PARAMETERS
42    
43 wcc 1.7
44     # Check for a working C compiler
45 wcc 1.1 AC_PROG_CC
46     EGG_CHECK_CC
47    
48 wcc 1.13 # These 3 need to be done before any AC_COMPILE_IFELSE()'s.
49 wcc 1.1 AC_AIX
50     AC_ISC_POSIX
51     AC_MINIX
52    
53 wcc 1.13 # Check C compiler characteristics.
54 tothwolf 1.32 EGG_CHECK_ICC
55 tothwolf 1.31 EGG_CHECK_CCPIPE
56 wcc 1.13 EGG_CHECK_CCWALL
57 tothwolf 1.31
58    
59     # Check for executable extension.
60     EGG_EXEEXT
61 wcc 1.1
62 wcc 1.7
63 wcc 1.13 # Checks for programs.
64 wcc 1.1 AC_PROG_INSTALL
65     AC_PROG_MAKE_SET
66     AC_PROG_RANLIB
67     AC_PROG_LN_S
68     EGG_PROG_HEAD_1
69     EGG_PROG_STRIP
70     EGG_PROG_AWK
71     EGG_PROG_BASENAME
72     AC_CHECK_PROG(UNAME,uname,uname)
73    
74 wcc 1.7
75 tothwolf 1.30 # Check if we will strip the binary
76     # Do this *before* EGG_CHECK_OS
77     EGG_ENABLE_STRIP
78    
79    
80 wcc 1.13 # Checks for system libraries.
81     EGG_CHECK_LIBS
82 wcc 1.1
83 wcc 1.7
84 wcc 1.13 # Test the OS and set the module linking settings.
85     EGG_OS_VERSION
86     EGG_CHECK_MODULE_SUPPORT
87     EGG_CHECK_OS
88 wcc 1.1
89 wcc 1.10
90 wcc 1.13 # Checks for header files.
91 wcc 1.1 EGG_HEADER_STDC
92     AC_HEADER_DIRENT
93     AC_HEADER_TIME
94 tothwolf 1.32 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h stdio.h stdarg.h stddef.h sys/file.h sys/param.h sys/rusage.h sys/select.h sys/socket.h sys/time.h unistd.h wchar.h])
95 wcc 1.7
96 wcc 1.1
97 wcc 1.13 # Checks for typedefs, structures, and compiler characteristics.
98 wcc 1.1 AC_C_CONST
99     AC_C_BIGENDIAN
100     AC_C_INLINE
101 pseudo 1.38 AC_TYPE_INTPTR_T
102 wcc 1.1 AC_TYPE_PID_T
103     AC_TYPE_SIZE_T
104 wcc 1.7 AC_STRUCT_TIMEZONE
105 wcc 1.1 AC_C_VOLATILE
106 wcc 1.7 EGG_CHECK_SOCKLEN_T
107    
108 wcc 1.1
109 wcc 1.13 # Check the sizes of various types.
110 wcc 1.1 AC_CHECK_SIZEOF(long, 0)
111     AC_CHECK_SIZEOF(int, 0)
112 wcc 1.12 AC_CHECK_SIZEOF(short, 0)
113 wcc 1.1
114 wcc 1.7
115 wcc 1.13 # Checks for functions and their arguments.
116 tothwolf 1.35 AC_CHECK_FUNCS([clock dprintf fsync getdtablesize getrusage inet_aton isascii mbrlen memcpy memset random rand lrand48 rename setpgid sigaction sigemptyset snprintf strcasecmp strncasecmp uname vsnprintf])
117 wcc 1.3 AC_FUNC_SELECT_ARGTYPES
118     EGG_FUNC_VPRINTF
119 wcc 1.1 AC_FUNC_STRFTIME
120 wcc 1.9 AC_FUNC_MMAP
121 wcc 1.1
122 wcc 1.7
123 wcc 1.20 # Tcl version to recommend if no Tcl is found, and the site where it can be
124 wcc 1.7 # found for download.
125 guppy 1.28 tclrecommendver="8.5.X"
126     tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
127 wcc 1.1
128 tothwolf 1.18 # Tcl library filename prefixes, suffixes, and search paths.
129     tcllibnames="tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
130     tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
131     tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
132     tcl7.0 tcl70"
133 wcc 1.1
134 wcc 1.16 tcllibextensions=".so .so.1 .so.1.0 .so.1.2 .dll .dylib .sl .a"
135 tothwolf 1.18
136 wcc 1.16 tcllibpaths="$HOME/lib $HOME/tcl/lib \
137 wcc 1.22 /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
138 wcc 1.7 /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
139 wcc 1.16 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
140     /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
141 wcc 1.19 /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
142 wcc 1.13 /usr/i486-linuxaout/lib /beos/system/lib $HOME"
143 wcc 1.1
144 wcc 1.13 # Tcl header filenames and search paths.
145 wcc 1.1 tclheadernames="tcl.h"
146 wcc 1.16 tclheaderpaths="$HOME/include $HOME/tcl/include \
147     /usr/local/include /usr/include \
148 wcc 1.7 /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
149 wcc 1.16 /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
150     /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
151 wcc 1.7 /usr/local/pkgs/tcl/include /sys/include \
152 wcc 1.19 /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
153 wcc 1.1
154    
155 tothwolf 1.31 # We save the cache (if used) here to speed things up if we can't find Tcl.
156 wcc 1.13 AC_CACHE_SAVE
157 tothwolf 1.31
158     # Misc Tcl checks.
159 wcc 1.1 EGG_TCL_ARG_WITH
160     EGG_TCL_ENV
161     EGG_TCL_WITH_TCLLIB
162     EGG_TCL_WITH_TCLINC
163     EGG_TCL_FIND_LIBRARY
164     EGG_TCL_FIND_HEADER
165     EGG_TCL_CHECK_LIBRARY
166     EGG_TCL_CHECK_HEADER
167     EGG_TCL_DETECT_CHANGE
168     EGG_TCL_CHECK_VERSION
169     EGG_TCL_CHECK_PRE70
170     EGG_TCL_TESTLIBS
171     EGG_TCL_CHECK_FREE
172 tothwolf 1.37 EGG_TCL_CHECK_GETCURRENTTHREAD
173 thommey 1.40 EGG_TCL_CHECK_GETTHREADDATA
174     EGG_TCL_CHECK_SETNOTIFIER
175 wcc 1.1 EGG_TCL_LIB_REQS
176     EGG_TCL_LUSH
177    
178 wcc 1.7
179 tothwolf 1.33 # Debug options
180     EGG_DEBUG_ENABLE
181     EGG_DEBUG_DEFAULTS
182 tothwolf 1.34 EGG_DEBUG_OPTIONS
183     EGG_DEBUG_CFLAGS
184 tothwolf 1.33 EGG_ENABLE_DEBUG_CONTEXT
185    
186 pseudo 1.39 # Let the user set the handlen with a configure option
187     EGG_ARG_HANDLEN
188 tothwolf 1.33
189 wcc 1.13 # Substitute Makefile variables.
190 wcc 1.1 EGG_SUBST_EGGVERSION
191     EGG_SUBST_DEST
192     EGG_SUBST_MOD_UPDIR
193    
194 wcc 1.7
195 wcc 1.1 EGG_CATCH_MAKEFILE_REBUILD
196 wcc 1.7
197    
198     # Create Makefiles
199 wcc 1.1 AC_CONFIG_FILES([Makefile doc/Makefile scripts/Makefile src/Makefile src/compat/Makefile src/md5/Makefile src/mod/Makefile])
200     AC_OUTPUT
201    
202 wcc 1.7
203     # Display configure end message
204 wcc 1.13 AC_MSG_RESULT
205     EGG_MSG_WEIRDOS
206 wcc 1.1 EGG_MSG_CONFIGURE_END

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23