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

Contents of /eggdrop1.6/configure.ac

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


Revision 1.43 - (show annotations) (download)
Wed Jul 20 10:50:35 2011 UTC (7 years, 4 months ago) by thommey
Branch: MAIN
CVS Tags: HEAD
Changes since 1.42: +3 -2 lines
Work around Tcl8.5.10 bug 3371644. Use the autoconf macros AC_LANG_PROGRAM/AC_LANG_SOURCE.

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23