1 dnl Process this file with autoconf to produce a configure script.
3 dnl $Id: configure.in,v 1.1.1.1 2001/05/15 13:58:50 oes Exp $
5 dnl Written by and Copyright (C) 2001 the SourceForge
6 dnl IJBSWA team. http://ijbswa.sourceforge.net
8 dnl Based on the Internet Junkbuster originally written
9 dnl by and Copyright (C) 1997 Anonymous Coders and
10 dnl Junkbusters Corporation. http://www.junkbusters.com
12 dnl This program is free software; you can redistribute it
13 dnl and/or modify it under the terms of the GNU General
14 dnl Public License as published by the Free Software
15 dnl Foundation; either version 2 of the License, or (at
16 dnl your option) any later version.
18 dnl This program is distributed in the hope that it will
19 dnl be useful, but WITHOUT ANY WARRANTY; without even the
20 dnl implied warranty of MERCHANTABILITY or FITNESS FOR A
21 dnl PARTICULAR PURPOSE. See the GNU General Public
22 dnl License for more details.
24 dnl The GNU General Public License should be included with
25 dnl this file. If not, you can view it at
26 dnl http://www.gnu.org/copyleft/gpl.html
27 dnl or write to the Free Software Foundation, Inc., 59
28 dnl Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 dnl $Log: configure.in,v $
31 dnl Revision 1.1.1.1 2001/05/15 13:58:50 oes
32 dnl Initial import of version 2.9.3 source tree
36 AC_CONFIG_HEADER(config.h)
42 AC_SUBST(VERSION_MAJOR)
43 AC_SUBST(VERSION_MINOR)
44 AC_SUBST(VERSION_POINT)
46 AC_DEFINE_UNQUOTED(VERSION_MAJOR,${VERSION_MAJOR})
47 AC_DEFINE_UNQUOTED(VERSION_MINOR,${VERSION_MINOR})
48 AC_DEFINE_UNQUOTED(VERSION_POINT,${VERSION_POINT})
49 AC_DEFINE_UNQUOTED(VERSION,"${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_POINT}")
51 dnl Checks for programs.
58 dnl RANLIB is for PCRE:
66 dnl Checks for libraries.
67 dnl AC_CHECK_LIB(pcre, pcre_compile)
68 dnl AC_CHECK_LIB(pcreposix, regcomp, pcre)
70 dnl Checks for header files.
72 dnl AC_HEADER_SYS_WAIT
73 dnl AC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/time.h unistd.h)
74 dnl limits.h is for PCRE:
75 dnl AC_CHECK_HEADERS(limits.h)
77 dnl Checks for typedefs, structures, and compiler characteristics.
81 dnl Checks for library functions.
83 dnl AC_CHECK_FUNC(strstr)
84 dnl bcopy and memmove are for PCRE
85 AC_CHECK_FUNCS(strerror bcopy memmove)
89 AC_ARG_ENABLE(mingw32,
90 [ --enable-mingw32 Use mingw32 for a Windows GUI],
91 [if test $enableval = yes; then
93 CYGWIN_FLAGS="-mwindows -mno-cygwin"
94 echo "Using mingw32 (Win32 GUI)"
97 if test "$CYGWIN" = "yes"; then
98 CYGWIN_FLAGS="-mno-win32"
99 echo "Using Cygnus (Win32 command line)"
104 [if test "$MINGW32" = "yes"; then
106 CYGWIN_FLAGS="-mwindows -mno-cygwin"
107 echo "Using mingw32 (Win32 GUI)"
110 if test "$CYGWIN" = "yes"; then
111 CYGWIN_FLAGS="-mno-win32"
112 echo "Using Cygnus (Win32 command line)"
119 AC_SUBST(CYGWIN_FLAGS)
122 AC_SUBST(SOLARIS_ONLY)
133 [ --disable-regex Don't allow regular expressions in the blockfile],
134 [if test $enableval = yes; then
140 fi],AC_DEFINE(REGEX))
142 AC_ARG_ENABLE(pcre-regex,
143 [ --disable-pcre-regex Use old, slow GNU Regex instead of PCRE.],
144 [if test $enableval = yes; then
153 AC_SUBST(GNU_REGEX_ONLY)
154 AC_SUBST(PCRE_REGEX_ONLY)
155 AC_SUBST(NO_REGEX_ONLY)
160 AC_ARG_ENABLE(toggle,
161 [ --disable-toggle Don't support temporary disable],
162 [if test $enableval = yes; then
164 fi],AC_DEFINE(TOGGLE))
168 [ --disable-pcrs Don't support arbitrary content modification],
169 [if test $enableval = yes; then
174 fi],[AC_DEFINE(PCRS) AC_DEFINE(DENY_GZIP)])
178 [ --disable-force Don't allow blockfle to be bypassed],
179 [if test $enableval = yes; then
180 AC_DEFINE(FORCE_LOAD)
181 fi],AC_DEFINE(FORCE_LOAD))
183 AC_ARG_ENABLE(killpopup,
184 [ --disable-killpopup Never block popups],
185 [if test $enableval = yes; then
186 AC_DEFINE(KILLPOPUPS)
187 fi],AC_DEFINE(KILLPOPUPS))
190 [ --disable-stats Don't keep statistics],
191 [if test $enableval = yes; then
192 AC_DEFINE(STATISTICS)
193 fi],AC_DEFINE(STATISTICS))
195 AC_ARG_ENABLE(split-proxy-args,
196 [ --disable-split-proxy-args One big show-proxy-args page, not one per file.],
197 [if test $enableval = yes; then
198 AC_DEFINE(SPLIT_PROXY_ARGS)
199 fi],AC_DEFINE(SPLIT_PROXY_ARGS))
201 AC_ARG_ENABLE(webdav,
202 [ --disable-webdav Don't support WebDAV. This option stops MS Outlook
203 Express from accessing HotMail e-mail.],
204 [if test $enableval = yes; then
209 AC_ARG_ENABLE(ie-images,
210 [ --disable-ie-images Don't auto-detect whether a request from MS Internet
211 Explorer is for an image or HTML.],
212 [if test $enableval = yes; then
213 AC_DEFINE(DETECT_MSIE_IMAGES)
215 AC_DEFINE(DETECT_MSIE_IMAGES))
217 AC_ARG_ENABLE(image-list,
218 [ --disable-image-list Don't try to figure out whether a request is for an
219 image or HTML using the imagelist - assume HTML.],
220 [if test $enableval = yes; then
221 AC_DEFINE(USE_IMAGE_LIST)
223 AC_DEFINE(USE_IMAGE_LIST))
225 AC_ARG_ENABLE(acl-files,
226 [ --disable-acl-files Prevents the use of ACL files to control access to
227 the proxy by IP address.],
228 [if test $enableval = yes; then
231 AC_DEFINE(ACL_FILES))
233 AC_ARG_ENABLE(trust-files,
234 [ --disable-trust-files Prevents the use of trust files.],
235 [if test $enableval = yes; then
236 AC_DEFINE(TRUST_FILES)
238 AC_DEFINE(TRUST_FILES))
240 AC_ARG_ENABLE(jar-files,
241 [ --disable-jar-files Prevents the use of jar files to capture cookies.],
242 [if test $enableval = yes; then
245 AC_DEFINE(JAR_FILES))
249 AC_ARG_ENABLE(static-pcre,
250 [ --disable-static-pcre Link dynamically with the pcre and pcreposix
251 libraries. You must build the libraries seperately.],
252 [if test $enableval = no; then
256 AC_SUBST(LIBRARY_PCRE_ONLY)
257 AC_SUBST(STATIC_PCRE_ONLY)