/[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.32 - (hide 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 wcc 1.1 dnl configure.ac: this file is processed by autoconf to produce ./configure.
2     dnl
3 tothwolf 1.32 dnl $Id: configure.ac,v 1.31 2008-07-04 01:52:55 tothwolf Exp $
4 wcc 1.1
5     AC_PREREQ(2.59)
6 guppy 1.29 AC_INIT([Eggdrop],[1.6.20],[bugs@eggheads.org])
7 guppy 1.27 AC_COPYRIGHT([Copyright (C) 1999 - 2008 Eggheads Development Team])
8 tothwolf 1.32 AC_REVISION($Revision: 1.31 $)
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    
14 wcc 1.11 dnl config.h stuff
15 tothwolf 1.32 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 wcc 1.10 #define _EGG_CONFIG_H])
36     AH_BOTTOM([#endif /* !_EGG_CONFIG_H */])
37 wcc 1.7
38     # Print start message
39 wcc 1.1 EGG_MSG_CONFIGURE_START
40     EGG_SAVE_PARAMETERS
41    
42 wcc 1.7
43     # Check for a working C compiler
44 wcc 1.1 AC_PROG_CC
45     EGG_CHECK_CC
46    
47 wcc 1.13 # These 3 need to be done before any AC_COMPILE_IFELSE()'s.
48 wcc 1.1 AC_AIX
49     AC_ISC_POSIX
50     AC_MINIX
51    
52 wcc 1.13 # Check C compiler characteristics.
53 tothwolf 1.32 EGG_CHECK_ICC
54 tothwolf 1.31 EGG_CHECK_CCPIPE
55 wcc 1.13 EGG_CHECK_CCWALL
56 tothwolf 1.31
57    
58     # Check for executable extension.
59     EGG_EXEEXT
60 wcc 1.1
61 wcc 1.7
62 wcc 1.13 # Checks for programs.
63 wcc 1.1 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 wcc 1.7
74 tothwolf 1.30 # Check if we will strip the binary
75     # Do this *before* EGG_CHECK_OS
76     EGG_ENABLE_STRIP
77    
78    
79 wcc 1.13 # Checks for system libraries.
80     EGG_CHECK_LIBS
81 wcc 1.1
82 wcc 1.7
83 wcc 1.13 # Test the OS and set the module linking settings.
84     EGG_OS_VERSION
85     EGG_CHECK_MODULE_SUPPORT
86     EGG_CHECK_OS
87 wcc 1.1
88 wcc 1.10
89 wcc 1.13 # Checks for header files.
90 wcc 1.1 EGG_HEADER_STDC
91     AC_HEADER_DIRENT
92     AC_HEADER_TIME
93 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])
94 wcc 1.7
95 wcc 1.1
96 wcc 1.13 # Checks for typedefs, structures, and compiler characteristics.
97 wcc 1.1 AC_C_CONST
98     AC_C_BIGENDIAN
99     AC_C_INLINE
100     AC_TYPE_PID_T
101     AC_TYPE_SIZE_T
102 wcc 1.7 AC_STRUCT_TIMEZONE
103 wcc 1.1 AC_C_VOLATILE
104 wcc 1.7 EGG_CHECK_SOCKLEN_T
105    
106 wcc 1.1
107 wcc 1.13 # Check the sizes of various types.
108 wcc 1.1 AC_CHECK_SIZEOF(long, 0)
109     AC_CHECK_SIZEOF(int, 0)
110 wcc 1.12 AC_CHECK_SIZEOF(short, 0)
111 wcc 1.1
112 wcc 1.7
113 wcc 1.13 # 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 wcc 1.3 AC_FUNC_SELECT_ARGTYPES
116     EGG_FUNC_VPRINTF
117 wcc 1.1 AC_FUNC_STRFTIME
118 wcc 1.9 AC_FUNC_MMAP
119 wcc 1.1
120 wcc 1.7
121 wcc 1.13 # Make sure we are using the correct result from a broken libsafe sscanf().
122 wcc 1.1 EGG_CHECK_LIBSAFE_SSCANF
123    
124 wcc 1.7
125 wcc 1.20 # Tcl version to recommend if no Tcl is found, and the site where it can be
126 wcc 1.7 # found for download.
127 guppy 1.28 tclrecommendver="8.5.X"
128     tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
129 wcc 1.1
130 tothwolf 1.18 # 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 wcc 1.1
136 wcc 1.16 tcllibextensions=".so .so.1 .so.1.0 .so.1.2 .dll .dylib .sl .a"
137 tothwolf 1.18
138 wcc 1.16 tcllibpaths="$HOME/lib $HOME/tcl/lib \
139 wcc 1.22 /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
140 wcc 1.7 /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
141 wcc 1.16 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
142     /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
143 wcc 1.19 /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
144 wcc 1.13 /usr/i486-linuxaout/lib /beos/system/lib $HOME"
145 wcc 1.1
146 wcc 1.13 # Tcl header filenames and search paths.
147 wcc 1.1 tclheadernames="tcl.h"
148 wcc 1.16 tclheaderpaths="$HOME/include $HOME/tcl/include \
149     /usr/local/include /usr/include \
150 wcc 1.7 /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
151 wcc 1.16 /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
152     /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
153 wcc 1.7 /usr/local/pkgs/tcl/include /sys/include \
154 wcc 1.19 /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
155 wcc 1.1
156    
157 tothwolf 1.31 # We save the cache (if used) here to speed things up if we can't find Tcl.
158 wcc 1.13 AC_CACHE_SAVE
159 tothwolf 1.31
160     # Misc Tcl checks.
161 wcc 1.1 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 wcc 1.7
180 wcc 1.13 # Substitute Makefile variables.
181 wcc 1.1 EGG_SUBST_EGGVERSION
182     EGG_SUBST_DEST
183     EGG_SUBST_MOD_UPDIR
184    
185 wcc 1.7
186 wcc 1.1 EGG_CATCH_MAKEFILE_REBUILD
187 wcc 1.7
188    
189     # Create Makefiles
190 wcc 1.1 AC_CONFIG_FILES([Makefile doc/Makefile scripts/Makefile src/Makefile src/compat/Makefile src/md5/Makefile src/mod/Makefile])
191     AC_OUTPUT
192    
193 wcc 1.7
194     # Display configure end message
195 wcc 1.13 AC_MSG_RESULT
196     EGG_MSG_WEIRDOS
197 wcc 1.1 EGG_MSG_CONFIGURE_END

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23