/[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.32 - (show annotations) (download)
Fri Jul 4 02:41:42 2008 UTC (11 years, 6 months ago) by tothwolf
Branch: MAIN
Changes since 1.31: +24 -4 lines
Added EGG_APPEND_VAR and EGG_CHECK_ICC autoconf macros to aclocal.m4.

Replaced autoconf 'var="$var <string>"' with EGG_APPEND_VAR macro.

Replaced no_pipe and no_wall variable hacks with a proper test for the Intel C Compiler (icc).

Put '-pipe' in CFLAGS not CC.

Added GPL header to AH_TOP macro in configure.ac for config.h.in.

Removed unused std_args.h header check and HAVE_STD_ARGS_H conditionals.

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23