/[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.31 - (hide annotations) (download)
Fri Jul 4 01:52:55 2008 UTC (12 years, 7 months ago) by tothwolf
Branch: MAIN
Changes since 1.30: +10 -9 lines
Refactored root Makefile.in variables.

Removed unnecessary '-g' flag from LD variables (-g is ignored).

Renamed DEBCFLAGS to DEBCFLGS

Moved -g3 compiler flag to DEBCFLGS variable.

Removed double quoting "`command`" in autoconf macro tests.

Changed autoconf macro 'test ! foo = bar' tests to 'test foo !=  bar'. Both are portable but '!=' is now more common in autoconf macros and is easier to read.

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23