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

Contents of /eggdrop1.8/configure.ac

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


Revision 1.5.2.1 - (show annotations) (download)
Wed Jan 12 13:54:00 2011 UTC (8 years, 3 months ago) by pseudo
Branch: gettext
Changes since 1.5: +7 -4 lines
Removed memcpy(), memset() and strftime() compatibility replacements.

1 dnl configure.ac: this file is processed by autoconf to produce ./configure.
2 dnl
3 dnl $Id: configure.ac,v 1.5 2010/10/19 12:13:32 pseudo Exp $
4
5 AC_PREREQ(2.60)
6 AC_INIT([Eggdrop],[1.8.0],[bugs@eggheads.org])
7 AC_COPYRIGHT([Copyright (C) 1999 - 2010 Eggheads Development Team])
8 AC_REVISION($Revision: 1.5 $)
9 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 AC_PRESERVE_HELP_ORDER
14
15 dnl config.h stuff
16 AH_TOP([/*
17 * Copyright (C) 1997 Robey Pointer
18 * Copyright (C) 1999 - 2010 Eggheads Development Team
19 *
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 #define _EGG_CONFIG_H])
37 AH_BOTTOM([#endif /* !_EGG_CONFIG_H */])
38
39 # Print start message
40 EGG_MSG_CONFIGURE_START
41 EGG_SAVE_PARAMETERS
42
43
44 # Check for a working C compiler
45 AC_PROG_CC
46 EGG_CHECK_CC
47
48 # These 3 need to be done before any AC_COMPILE_IFELSE()'s.
49 AC_AIX
50 AC_ISC_POSIX
51 AC_MINIX
52
53 # Check C compiler characteristics.
54 EGG_CHECK_ICC
55 EGG_CHECK_CCPIPE
56 EGG_CHECK_CCWALL
57
58
59 # Check for executable extension.
60 EGG_EXEEXT
61
62
63 # Checks for programs.
64 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
75 # Check if we will strip the binary
76 # Do this *before* EGG_CHECK_OS
77 EGG_ENABLE_STRIP
78
79
80 # Checks for system libraries.
81 EGG_CHECK_LIBS
82
83
84 # Test the OS and set the module linking settings.
85 EGG_OS_VERSION
86 EGG_CHECK_MODULE_SUPPORT
87 EGG_CHECK_OS
88
89
90 # Checks for header files.
91 EGG_HEADER_STDC
92 AC_HEADER_DIRENT
93 AC_HEADER_TIME
94 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
96
97 # Checks for typedefs, structures, and compiler characteristics.
98 AC_C_CONST
99 AC_C_BIGENDIAN
100 AC_C_INLINE
101 AC_TYPE_INTPTR_T
102 AC_TYPE_PID_T
103 AC_TYPE_SIZE_T
104 AC_STRUCT_TIMEZONE
105 AC_C_VOLATILE
106 EGG_CHECK_SOCKLEN_T
107
108
109 # Check the sizes of various types.
110 AC_CHECK_SIZEOF(long, 0)
111 AC_CHECK_SIZEOF(int, 0)
112 AC_CHECK_SIZEOF(short, 0)
113
114
115 # Checks for functions and their arguments.
116 AC_CHECK_FUNCS([clock dprintf fsync getdtablesize getrusage inet_aton isascii mbrlen random rand lrand48 rename setpgid sigaction sigemptyset snprintf strcasecmp strncasecmp uname vsnprintf inet_ntop])
117 AC_CHECK_FUNCS([memcpy memset strftime], , [
118 AC_MSG_ERROR([Some of the required library functions is not available. Sorry])
119 exit 1
120 ])
121 AC_FUNC_SELECT_ARGTYPES
122 EGG_FUNC_VPRINTF
123 AC_FUNC_MMAP
124
125
126 # Tcl version to recommend if no Tcl is found, and the site where it can be
127 # found for download.
128 tclrecommendver="8.5.X"
129 tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
130
131 # Tcl library filename prefixes, suffixes, and search paths.
132 tcllibnames="tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
133 tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
134 tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
135 tcl7.0 tcl70"
136
137 tcllibextensions=".so .so.1 .so.1.0 .so.1.2 .dll .dylib .sl .a"
138
139 tcllibpaths="$HOME/lib $HOME/tcl/lib \
140 /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
141 /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
142 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
143 /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
144 /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
145 /usr/i486-linuxaout/lib /beos/system/lib $HOME"
146
147 # Tcl header filenames and search paths.
148 tclheadernames="tcl.h"
149 tclheaderpaths="$HOME/include $HOME/tcl/include \
150 /usr/local/include /usr/include \
151 /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
152 /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
153 /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
154 /usr/local/pkgs/tcl/include /sys/include \
155 /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
156
157
158 # We save the cache (if used) here to speed things up if we can't find Tcl.
159 AC_CACHE_SAVE
160
161 # Misc Tcl checks.
162 EGG_TCL_ARG_WITH
163 EGG_TCL_ENV
164 EGG_TCL_WITH_TCLLIB
165 EGG_TCL_WITH_TCLINC
166 EGG_TCL_FIND_LIBRARY
167 EGG_TCL_FIND_HEADER
168 EGG_TCL_CHECK_LIBRARY
169 EGG_TCL_CHECK_HEADER
170 EGG_TCL_DETECT_CHANGE
171 EGG_TCL_CHECK_VERSION
172 EGG_TCL_CHECK_PRE70
173 EGG_TCL_TESTLIBS
174 EGG_TCL_CHECK_FREE
175 EGG_TCL_CHECK_GETCURRENTTHREAD
176 EGG_TCL_CHECK_GETTHREADDATA
177 EGG_TCL_CHECK_SETNOTIFIER
178 EGG_TCL_CHECK_NOTIFIER_INIT
179 EGG_TCL_LIB_REQS
180 EGG_TCL_LUSH
181
182
183 # Debug options
184 EGG_DEBUG_ENABLE
185 EGG_DEBUG_DEFAULTS
186 EGG_DEBUG_OPTIONS
187 EGG_DEBUG_CFLAGS
188 EGG_ENABLE_DEBUG_CONTEXT
189
190 # Let the user set the handlen with a configure option
191 EGG_ARG_HANDLEN
192
193
194 # Check for IPv6
195 EGG_IPV6_STATUS
196 EGG_IPV6_ENABLE
197 EGG_IPV6_COMPAT
198
199
200 # Check for TLS
201 EGG_TLS_ENABLE
202 EGG_TLS_WITHSSL
203 EGG_TLS_DETECT
204
205
206 # Substitute Makefile variables.
207 EGG_SUBST_EGGVERSION
208 EGG_SUBST_DEST
209 EGG_SUBST_MOD_UPDIR
210
211
212 EGG_CATCH_MAKEFILE_REBUILD
213
214
215 # Create Makefiles
216 AC_CONFIG_FILES([Makefile doc/Makefile scripts/Makefile src/Makefile src/compat/Makefile src/md5/Makefile src/mod/Makefile])
217 AC_OUTPUT
218
219
220 # Display configure end message
221 AC_MSG_RESULT
222 EGG_MSG_WEIRDOS
223 EGG_MSG_CONFIGURE_END

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23