/[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.30 - (show annotations) (download)
Wed Jul 2 07:31:27 2008 UTC (12 years, 7 months ago) by tothwolf
Branch: MAIN
Changes since 1.29: +7 -2 lines
Fixed EGG_PROG_HEAD_1 autoconf macro cache checking. You can't use AC_MSG_RESULT() within AC_CACHE_VAL().

Moved --enable-strip configure check from EGG_PROG_STRIP to it's own macro: EGG_ENABLE_STRIP()

1 dnl configure.ac: this file is processed by autoconf to produce ./configure.
2 dnl
3 dnl $Id: configure.ac,v 1.29 2008-04-19 14:57:10 guppy 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.29 $)
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([#ifndef _EGG_CONFIG_H
16 #define _EGG_CONFIG_H])
17 AH_BOTTOM([#endif /* !_EGG_CONFIG_H */])
18
19 # Print start message
20 EGG_MSG_CONFIGURE_START
21 EGG_SAVE_PARAMETERS
22
23
24 # Check for a working C compiler
25 AC_PROG_CC
26 EGG_CHECK_CC
27
28 # These 3 need to be done before any AC_COMPILE_IFELSE()'s.
29 AC_AIX
30 AC_ISC_POSIX
31 AC_MINIX
32
33 # Check C compiler characteristics.
34 EGG_CHECK_CCWALL
35 EGG_CHECK_CCPIPE
36
37
38 # Checks for programs.
39 AC_PROG_INSTALL
40 AC_PROG_MAKE_SET
41 AC_PROG_RANLIB
42 AC_PROG_LN_S
43 EGG_PROG_HEAD_1
44 EGG_PROG_STRIP
45 EGG_PROG_AWK
46 EGG_PROG_BASENAME
47 AC_CHECK_PROG(UNAME,uname,uname)
48
49
50 # Check if we will strip the binary
51 # Do this *before* EGG_CHECK_OS
52 EGG_ENABLE_STRIP
53
54
55 # Checks for system libraries.
56 EGG_CHECK_LIBS
57
58
59 # Test the OS and set the module linking settings.
60 EGG_OS_VERSION
61 EGG_CHECK_MODULE_SUPPORT
62 EGG_CHECK_OS
63
64
65 # Checks for header files.
66 EGG_HEADER_STDC
67 AC_HEADER_DIRENT
68 AC_HEADER_TIME
69 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h stdio.h std_args.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])
70
71
72 # Checks for typedefs, structures, and compiler characteristics.
73 AC_C_CONST
74 AC_C_BIGENDIAN
75 AC_C_INLINE
76 AC_TYPE_PID_T
77 AC_TYPE_SIZE_T
78 AC_STRUCT_TIMEZONE
79 AC_C_VOLATILE
80 EGG_CHECK_SOCKLEN_T
81
82
83 # Check the sizes of various types.
84 AC_CHECK_SIZEOF(long, 0)
85 AC_CHECK_SIZEOF(int, 0)
86 AC_CHECK_SIZEOF(short, 0)
87
88
89 # Checks for functions and their arguments.
90 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])
91 AC_FUNC_SELECT_ARGTYPES
92 EGG_FUNC_VPRINTF
93 AC_FUNC_STRFTIME
94 AC_FUNC_MMAP
95
96
97 # Make sure we are using the correct result from a broken libsafe sscanf().
98 EGG_CHECK_LIBSAFE_SSCANF
99
100
101 # Check for executable extension.
102 EGG_EXEEXT
103
104
105 # Tcl version to recommend if no Tcl is found, and the site where it can be
106 # found for download.
107 tclrecommendver="8.5.X"
108 tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
109
110 # Tcl library filename prefixes, suffixes, and search paths.
111 tcllibnames="tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
112 tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
113 tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
114 tcl7.0 tcl70"
115
116 tcllibextensions=".so .so.1 .so.1.0 .so.1.2 .dll .dylib .sl .a"
117
118 tcllibpaths="$HOME/lib $HOME/tcl/lib \
119 /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
120 /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
121 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
122 /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
123 /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
124 /usr/i486-linuxaout/lib /beos/system/lib $HOME"
125
126 # Tcl header filenames and search paths.
127 tclheadernames="tcl.h"
128 tclheaderpaths="$HOME/include $HOME/tcl/include \
129 /usr/local/include /usr/include \
130 /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
131 /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
132 /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
133 /usr/local/pkgs/tcl/include /sys/include \
134 /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
135
136
137 # Misc Tcl checks. We save the cache (if used) here to speed things up if we
138 # can't find Tcl.
139 AC_CACHE_SAVE
140 EGG_TCL_ARG_WITH
141 EGG_TCL_ENV
142 EGG_TCL_WITH_TCLLIB
143 EGG_TCL_WITH_TCLINC
144 EGG_TCL_FIND_LIBRARY
145 EGG_TCL_FIND_HEADER
146 EGG_TCL_CHECK_LIBRARY
147 EGG_TCL_CHECK_HEADER
148 EGG_TCL_DETECT_CHANGE
149 EGG_TCL_CHECK_VERSION
150 EGG_TCL_CHECK_PRE70
151 EGG_TCL_TESTLIBS
152 EGG_TCL_CHECK_FREE
153 EGG_TCL_ENABLE_THREADS
154 EGG_TCL_CHECK_THREADS
155 EGG_TCL_LIB_REQS
156 EGG_TCL_LUSH
157
158
159 # Substitute Makefile variables.
160 EGG_SUBST_EGGVERSION
161 EGG_SUBST_DEST
162 EGG_SUBST_MOD_UPDIR
163
164
165 EGG_CATCH_MAKEFILE_REBUILD
166
167
168 # Create Makefiles
169 AC_CONFIG_FILES([Makefile doc/Makefile scripts/Makefile src/Makefile src/compat/Makefile src/md5/Makefile src/mod/Makefile])
170 AC_OUTPUT
171
172
173 # Display configure end message
174 AC_MSG_RESULT
175 EGG_MSG_WEIRDOS
176 EGG_MSG_CONFIGURE_END

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23