From: Amos Jeffries Date: Mon, 26 Jan 2009 07:39:42 +0000 (+1300) Subject: Make configure use AC_MSG_NOTICE and AC_MSG_WARN X-Git-Tag: SQUID_3_2_0_1~1244 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eed82608df475f02a67ae609d8b528f4200dd0ba;p=thirdparty%2Fsquid.git Make configure use AC_MSG_NOTICE and AC_MSG_WARN These macros are cleaner on the output than custom echo messages. Makes quiet build truely quiet for the main squid configure.in. TODO: sub-configures. --- diff --git a/configure.in b/configure.in index 1a76a5202d..b0c54ca69e 100644 --- a/configure.in +++ b/configure.in @@ -126,8 +126,8 @@ mingw|mingw32) CFLAGS="$CFLAGS -mthreads" CXXFLAGS="$CXXFLAGS -mthreads" if test "$ac_cv_path_WIN32_PSAPI" = "none"; then - echo "PSAPI.DLL is recommended to run Squid on Windows NT Platform" - echo "Please see PSAPI.DLL section on doc/win32-relnotes.html." + AC_MSG_NOTICE([PSAPI.DLL is recommended to run Squid on Windows NT Platform]) + AC_MSG_NOTICE([Please see PSAPI.DLL section on doc/win32-relnotes.html.]) else AC_DEFINE(HAVE_WIN32_PSAPI,1,[Define if you have PSAPI.DLL on Windows systems]) LIBS="$LIBS -lpsapi" @@ -197,8 +197,7 @@ if test "$GCC" = "yes"; then case "$host" in i386-*-freebsd*) if test $GCCVER2 -lt 300 ; then - echo "ERROR: GCC $GCCVER causes a coredump on $host" - echo "ERROR: Try a more recent GCC version" + AC_MSG_FAILURE([GCC $GCCVER causes a coredump on $host. Try a more recent GCC version]) sleep 5 fi ;; @@ -313,7 +312,7 @@ AC_ARG_ENABLE(optimizations, and allow easier debugging. This option implicitly also enabled --disable-inline]), [ if test "$enableval" = "no" ; then - echo "Disabling compiler optimizations (-O flag)" + AC_MSG_NOTICE([Disabling compiler optimizations (-O flag)]) CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`" CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-O[[0-9]]*//'`" SquidInline="no" @@ -340,7 +339,7 @@ if test "$SquidInline" = "yes" ; then AC_DEFINE(_SQUID_INLINE_, inline, [Keyword used by squid for inlining methods]) AC_DEFINE(_USE_INLINE_,, [Include inline methods into header file]) else - echo "Inlining optimization disabled" + AC_MSG_NOTICE([Inlining optimization disabled]) AC_DEFINE(_SQUID_INLINE_,, [Keyword used by squid for inlining methods]) fi @@ -348,7 +347,7 @@ AC_ARG_ENABLE(debug-cbdata, AC_HELP_STRING([--enable-debug-cbdata], [Provide some debug information in cbdata]), [ if test "$enableval" = "yes" ; then - echo "cbdata debugging enabled" + AC_MSG_NOTICE([cbdata debugging enabled]) AC_DEFINE(CBDATA_DEBUG,1,[Enable for cbdata debug information]) fi ]) @@ -358,7 +357,7 @@ dnl dnl AC_ARG_ENABLE(xmalloc-debug, dnl [ --enable-xmalloc-debug Do some simple malloc debugging], dnl [ if test "$enableval" = "yes" ; then -dnl echo "Malloc debugging enabled" +dnl AC_MSG_NOTICE([malloc debugging enabled]) dnl AC_DEFINE(XMALLOC_DEBUG,1,[Define to do simple malloc debugging]) dnl fi dnl ]) @@ -369,7 +368,7 @@ dnl AC_ARG_ENABLE(xmalloc-debug-trace, dnl [ --enable-xmalloc-debug-trace dnl Detailed trace of memory allocations], dnl [ if test "$enableval" = "yes" ; then -dnl echo "Malloc debug trace enabled" +dnl AC_MSG_NOTICE([malloc debug trace enabled]) dnl AC_DEFINE(XMALLOC_TRACE,1,[Define to have a detailed trace of memory allocations]) dnl AC_DEFINE(XMALLOC_DEBUG,1) dnl fi @@ -379,7 +378,7 @@ AC_ARG_ENABLE(xmalloc-statistics, AC_HELP_STRING([--enable-xmalloc-statistics], [Show malloc statistics in status page]), [ if test "$enableval" = "yes" ; then - echo "Malloc statistics enabled" + AC_MSG_NOTICE([malloc statistics enabled]) AC_DEFINE(XMALLOC_STATISTICS,1,[Define to have malloc statistics]) fi ]) @@ -416,7 +415,7 @@ AC_ARG_WITH(aufs-threads, esac ]) if test "$aufs_io_threads"; then - echo "With $aufs_io_threads aufs threads" + AC_MSG_NOTICE([With $aufs_io_threads aufs threads]) AC_DEFINE_UNQUOTED(AUFS_IO_THREADS,$aufs_io_threads, [Defines how many threads aufs uses for I/O]) fi @@ -424,20 +423,20 @@ fi AC_ARG_WITH(pthreads, AC_HELP_STRING([--with-pthreads],[Use POSIX Threads])) if test "$with_pthreads" = "yes"; then - echo "With pthreads" + AC_MSG_NOTICE([With pthreads]) fi AC_ARG_WITH(aio, AC_HELP_STRING([--with-aio],[Use POSIX AIO])) if test "$with_aio" = "yes"; then - echo "With aio" + AC_MSG_NOTICE([With aio]) fi AC_ARG_WITH(dl, AC_HELP_STRING([--with-dl],[Use dynamic linking])) if test "$with_dl" = "yes"; then - echo "With dl" + AC_MSG_NOTICE([With dl]) fi AC_ARG_ENABLE(storeio, @@ -475,7 +474,7 @@ if test -n "$STORE_MODULES"; then for module in $STORE_MODULES_FULL; do have_mod=`echo "$STORE_MODULES" | grep "$module"` if test "$have_mod" != ""; then - echo "Removing duplicate $module from storeio" + AC_MSG_NOTICE([Removing duplicate $module from storeio]) elif test -d $srcdir/src/fs/$module; then STORE_MODULES="$STORE_MODULES $module" STORE_LINKOBJS="$STORE_LINKOBJS fs/${module}/StoreFS${module}.o" @@ -483,7 +482,7 @@ if test -n "$STORE_MODULES"; then AC_MSG_ERROR(storeio $module does not exist) fi done - echo "Store modules built: $STORE_MODULES" + AC_MSG_NOTICE([Store modules built: $STORE_MODULES]) fi dnl remove all but diskd - its the only module that needs to recurse dnl into the sub directory @@ -534,7 +533,7 @@ for fs in $STORE_MODULES; do done if test -z "$UFS_FOUND" && test -n "$NEED_UFS"; then - echo "adding UFS, as it contains core logic for diskd and aufs" + AC_MSG_NOTICE([Adding UFS, as it contains core logic for diskd and aufs]) STORE_OBJS="$STORE_OBJS fs/libufs.a" STORE_LIBS="$STORE_LIBS libufs.a" STORE_MODULES="$STORE_MODULES ufs" @@ -564,7 +563,7 @@ AC_ARG_ENABLE(disk-io, for dir in $srcdir/src/DiskIO/*; do module="`basename $dir`" if test -d "$dir" && test "$module" != CVS; then - echo "Autodetected $module DiskIO module" + AC_MSG_NOTICE([Autodetected $module DiskIO module]) DISK_MODULES="$DISK_MODULES $module" fi done @@ -581,7 +580,7 @@ AC_ARG_ENABLE(disk-io, ], [ if test -z "$DISK_MODULES"; then DISK_MODULES="Blocking" - echo "Enabling Blocking DiskIO module (required default)" + AC_MSG_NOTICE([Enabling Blocking DiskIO module (required default)]) AC_DEFINE(USE_DISKIO,1,[DiskIO modules are expected to be available.]) fi ]) @@ -596,7 +595,7 @@ if test -n "$DISK_MODULES"; then DISK_LIBS="lib`echo $DISK_MODULES|sed -e 's% %.a lib%g'`.a" DISK_LINKOBJS= for module in $DISK_MODULES; do - echo "Enabling $module DiskIO module" + AC_MSG_NOTICE([Enabling $module DiskIO module]) DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/${module}/${module}DiskIOModule.o" done fi @@ -618,14 +617,14 @@ for fs in $DISK_MODULES none; do done if test -z "$FOUND_BLOCKING" && test -n "$NEED_BLOCKING"; then - echo "adding Blocking, as it is used by an active, legacy Store Module" + AC_MSG_NOTICE([adding Blocking, as it is used by an active, legacy Store Module]) DISK_LIBS="$DISK_LIBS libBlocking.a" DISK_MODULES="$DISK_MODULES Blocking" DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/Blocking/BlockingDiskIOModule.o" fi if test -z "$FOUND_DISKDAEMON" && test -n "$NEED_DISKDAEMON"; then - echo "adding DiskDaemon, as it is used by an active, legacy Store Module" + AC_MSG_NOTICE(["adding DiskDaemon, as it is used by an active, legacy Store Module]) DISK_LIBS="$DISK_LIBS libDiskDaemon.a" DISK_MODULES="$DISK_MODULES DiskDaemon" DISK_PROGRAMS="$DISK_PROGRAMS DiskIO/DiskDaemon/diskd" @@ -633,19 +632,19 @@ if test -z "$FOUND_DISKDAEMON" && test -n "$NEED_DISKDAEMON"; then fi if test -z "$FOUND_DISKTHREADS" && test -n "$NEED_DISKTHREADS"; then - echo "adding DiskThreads, as it is used by an active, legacy Store Module" + AC_MSG_NOTICE([adding DiskThreads, as it is used by an active, legacy Store Module]) DISK_LIBS="$DISK_LIBS libDiskThreads.a" DISK_MODULES="$DISK_MODULES DiskThreads" DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/DiskThreads/DiskThreadsDiskIOModule.o" fi if test -z "$FOUND_AIO" && test -n "$NEED_AIO"; then - echo "adding AIO, as it is used by an active, legacy Store Module" + AC_MSG_NOTICE([adding AIO, as it is used by an active, legacy Store Module]) DISK_LIBS="$DISK_LIBS libAIO.a" DISK_MODULES="$DISK_MODULES AIO" DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/AIO/AIODiskIOModule.o" fi -echo "IO Modules built: $DISK_MODULES" +AC_MSG_NOTICE([IO Modules built: $DISK_MODULES]) USE_AIOPS_WIN32=0 USE_AIO_WIN32=0 dnl we know what is being built. now add dependencies. @@ -656,10 +655,10 @@ for fs in $DISK_MODULES none; do case "$host_os" in mingw|mingw32) USE_AIOPS_WIN32=1 - echo "DiskThreads IO Module used, Windows threads support automatically enabled" + AC_MSG_NOTICE([DiskThreads IO Module used, Windows threads support automatically enabled]) ;; *) - echo "DiskThreads IO Module used, pthreads support automatically enabled" + AC_MSG_NOTICE([DiskThreads IO Module used, pthreads support automatically enabled]) with_pthreads=yes ;; esac @@ -670,10 +669,10 @@ for fs in $DISK_MODULES none; do case "$host_os" in mingw|mingw32) USE_AIO_WIN32=1 - echo "Aio IO Module used, Windows overlapped I/O support automatically enabled" + AC_MSG_NOTICE([Aio IO Module used, Windows overlapped I/O support automatically enabled]) ;; *) - echo "Aio IO Module used, aio support automatically enabled" + AC_MSG_NOTICE([Aio IO Module used, aio support automatically enabled]) with_aio=yes ;; esac @@ -762,7 +761,7 @@ if test -n "$REPL_POLICIES"; then AC_MSG_ERROR(Removal policy $module does not exist) fi done - echo "Removal policies built: $REPL_POLICIES" + AC_MSG_NOTICE([Removal policies built: $REPL_POLICIES]) REPL_OBJS="repl/lib`echo $REPL_POLICIES|sed -e 's% %.a repl/lib%g'`.a" REPL_LIBS="`echo $REPL_OBJS|sed -e 's%repl/%%g'`" fi @@ -774,7 +773,7 @@ AM_CONDITIONAL(ENABLE_PINGER, false) AC_ARG_ENABLE(icmp, AC_HELP_STRING([--enable-icmp],[Enable ICMP pinging and Network Measurement]), [ if test "$enableval" = "yes" ; then - echo "ICMP enabled" + AC_MSG_NOTICE([ICMP enabled]) AC_DEFINE(USE_ICMP,1,[Define to use Squid's ICMP and Network Measurement features (highly recommended!)]) AM_CONDITIONAL(ENABLE_PINGER, true) fi @@ -785,7 +784,7 @@ AC_ARG_ENABLE(delay-pools, AC_HELP_STRING([--enable-delay-pools], [Enable delay pools to limit bandwidth usage]), [ if test "$enableval" = "yes" ; then - echo "Delay pools enabled" + AC_MSG_NOTICE([Delay pools enabled]) AC_DEFINE([DELAY_POOLS],1,[Traffic management via "delay pools".]) AM_CONDITIONAL(USE_DELAY_POOLS, true,) fi @@ -905,7 +904,7 @@ dnl dnl AC_ARG_ENABLE(mem-gen-trace, dnl [ --enable-mem-gen-trace Do trace of memory stuff], dnl [ if test "$enableval" = "yes" ; then -dnl echo "Memory trace (to file) enabled" +dnl AC_MSG_NOTICE([Memory trace (to file) enabled]) dnl AC_DEFINE(MEM_GEN_TRACE,1,[Define for log file trace of mem alloc/free]) dnl fi dnl ]) @@ -914,7 +913,7 @@ AC_ARG_ENABLE(useragent-log, AC_HELP_STRING([--enable-useragent-log], [Enable logging of User-Agent header]), [ if test "$enableval" = "yes" ; then - echo "User-Agent logging enabled" + AC_MSG_NOTICE([User-Agent logging enabled]) AC_DEFINE(USE_USERAGENT_LOG,1,[If you want to log User-Agent request header values, define this. By default, they are written to useragent.log in the Squid log directory.]) @@ -924,7 +923,7 @@ AC_ARG_ENABLE(useragent-log, AC_ARG_ENABLE(referer-log, AC_HELP_STRING([--enable-referer-log],[Enable logging of Referer header]), [ if test "$enableval" = "yes" ; then - echo "Referer logging enabled" + AC_MSG_NOTICE([Referer logging enabled]) AC_DEFINE(USE_REFERER_LOG,1,[If you want to log Referer request header values, define this. By default, they are written to referer.log in the Squid log directory.]) @@ -935,7 +934,7 @@ USE_WCCP=1 AC_ARG_ENABLE(wccp, AC_HELP_STRING([--disable-wccp],[Disable Web Cache Coordination Protocol]), [ if test "$enableval" = "no" ; then - echo "Web Cache Coordination Protocol disabled" + AC_MSG_NOTICE([Web Cache Coordination Protocol disabled]) USE_WCCP=0 fi ]) @@ -948,7 +947,7 @@ AC_ARG_ENABLE(wccpv2, AC_HELP_STRING([--disable-wccpv2], [Disable Web Cache Coordination V2 Protocol]), [ if test "$enableval" = "no" ; then - echo "Web Cache Coordination V2 Protocol disabled" + AC_MSG_NOTICE(["Web Cache Coordination V2 Protocol disabled]) USE_WCCPv2=0 fi ]) @@ -959,7 +958,7 @@ fi AC_ARG_ENABLE(kill-parent-hack, AC_HELP_STRING([--enable-kill-parent-hack],[Kill parent on shutdown]), [ if test "$enableval" = "yes" ; then - echo "Kill parent on shutdown" + AC_MSG_NOTICE([Kill parent on shutdown]) AC_DEFINE(KILL_PARENT_OPT,1,[A dangerous feature which causes Squid to kill its parent process (presumably the RunCache script) upon receipt of SIGTERM or SIGINT. Use with caution.]) @@ -970,7 +969,7 @@ USE_SNMP=true AC_ARG_ENABLE(snmp, AC_HELP_STRING([--disable-snmp],[Disable SNMP monitoring support]), [ if test "$enableval" = "no" ; then - echo "SNMP monitoring disabled" + AC_MSG_NOTICE([SNMP monitoring disabled]) USE_SNMP= fi ]) @@ -991,14 +990,14 @@ AC_ARG_ENABLE(cachemgr-hostname, yes) AC_DEFINE(CACHEMGR_HOSTNAME,[getfullhostname()], [If you are upset that the cachemgr.cgi form comes up with the hostname field blank, then define this to getfullhostname()]) - echo "Cachemgr default hostname == host where cachemgr runs" + AC_MSG_NOTICE([Cachemgr default hostname == host where cachemgr runs]) ;; no) : # Nothing to do.. ;; *) AC_DEFINE_UNQUOTED(CACHEMGR_HOSTNAME,"${enableval}") - echo "Cachemgr default hostname set to ${enableval}" + AC_MSG_NOTICE([Cachemgr default hostname set to ${enableval}]) ;; esac ]) @@ -1008,7 +1007,7 @@ AC_ARG_ENABLE(arp-acl, AC_HELP_STRING([--enable-arp-acl], [Enable use of ARP ACL lists (ether address)]), [ if test "$enableval" = "yes" ; then - echo "ARP ACL lists enabled (ether address)" + AC_MSG_NOTICE([ARP ACL lists enabled (ether address)]) case "$host" in *-linux-*) ;; @@ -1027,7 +1026,7 @@ AC_ARG_ENABLE(arp-acl, LIBS="$LIBS -liphlpapi" ;; *) - echo "WARNING: ARP ACL support probably won't work on $host." + AC_MSG_WARN([ARP ACL support probably won't work on $host.]) sleep 10 ;; esac @@ -1041,7 +1040,7 @@ AM_CONDITIONAL(ENABLE_HTCP, false) AC_ARG_ENABLE(htcp, AC_HELP_STRING([--disable-htcp],[Disable HTCP protocol support]), [ if test "$enableval" = "no" ; then - echo "HTCP support disabled" + AC_MSG_NOTICE([HTCP support disabled]) fi ]) if test x$USE_HTCP = xtrue; then @@ -1056,7 +1055,7 @@ dnl Default is to use OpenSSL when available AC_ARG_ENABLE(ssl, AC_HELP_STRING([--enable-ssl],[Enable ssl gatewaying support using OpenSSL]), [ if test "$enableval" != "no"; then - echo "SSL gatewaying using OpenSSL enabled" + AC_MSG_NOTICE([SSL gatewaying using OpenSSL enabled]) AC_DEFINE(USE_SSL,1,[Define this to include code for SSL encryption.]) AM_CONDITIONAL(ENABLE_SSL, true) case "$host_os" in @@ -1094,14 +1093,14 @@ AC_ARG_WITH(openssl, esac ]) if test -n "$USE_OPENSSL"; then - echo "Using OpenSSL MD5 implementation" + AC_MSG_NOTICE([Using OpenSSL MD5 implementation]) AC_DEFINE(USE_OPENSSL,1,[Define this to make use of the OpenSSL libraries for MD5 calculation rather than Squid's own MD5 implementation or if building with SSL encryption (USE_SSL)]) if test -z "$SSLLIB"; then SSLLIB="-lcrypto" # for MD5 routines fi dnl This is a workaround for RedHat 9 brain damage.. if test -d /usr/kerberos/include && test -z "$SSLLIBDIR" && test -f /usr/include/openssl/kssl.h; then - echo "OpenSSL depends on Kerberos" + AC_MSG_NOTICE([OpenSSL depends on Kerberos]) SSLLIBDIR="/usr/kerberos/lib" CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" fi @@ -1115,7 +1114,7 @@ AC_SUBST(SSLLIB) AC_ARG_ENABLE(forw-via-db, AC_HELP_STRING([--enable-forw-via-db],[Enable Forw/Via database]), [ if test "$enableval" = "yes" ; then - echo "FORW-VIA enabled" + AC_MSG_NOTICE([FORW-VIA enabled]) AC_DEFINE(FORW_VIA_DB,1,[Enable Forw/Via database]) fi ]) @@ -1125,7 +1124,7 @@ AC_ARG_ENABLE(cache-digests, [Use Cache Digests. See http://wiki.squid-cache.org/SquidFaq/CacheDigests]), [ if test "$enableval" = "yes" ; then - echo "USE_CACHE_DIGESTS enabled" + AC_MSG_NOTICE([Cache Disgests enabled]) AC_DEFINE(USE_CACHE_DIGESTS,1,[Use Cache Digests for locating objects in neighbor caches. This code is still semi-experimental.]) fi ]) @@ -1135,7 +1134,7 @@ AC_ARG_WITH(coss-membuf-size, AC_HELP_STRING([--with-coss-membuf-size=size], [COSS membuf size (default 1048576 bytes)]), [ if test -n "$withval" -a "x$withval" != "xno" ; then - echo "Setting COSS membuf size to $with_coss_membuf_size bytes" + AC_MSG_NOTICE([Setting COSS membuf size to $with_coss_membuf_size bytes]) AC_DEFINE_UNQUOTED(COSS_MEMBUF_SZ, $with_coss_membuf_size,[Define if you want to set the COSS membuf size]) fi ]) @@ -1149,11 +1148,11 @@ AC_ARG_ENABLE(poll, [ case "$enableval" in yes) - echo "Forcing poll() to be enabled" + AC_MSG_WARN([Forcing poll() to be enabled]) SELECT_TYPE="poll" ;; no) - echo "Forcing poll() to be disabled" + AC_MSG_WARN([Forcing poll() to be disabled]) disable_poll=true ;; esac @@ -1166,11 +1165,11 @@ AC_ARG_ENABLE(select, [ case "$enableval" in yes) - echo "Forcing select() to be enabled" + AC_MSG_WARN([Forcing select() to be enabled]) SELECT_TYPE="select" ;; no) - echo "Forcing select() to be disabled" + AC_MSG_WARN([Forcing select() to be disabled]) disable_select=true ;; esac @@ -1184,13 +1183,13 @@ AC_ARG_ENABLE(kqueue, [ case "$enableval" in yes) - echo "Forcing kqueue() to be enabled" + AC_MSG_WARN([Forcing kqueue() to be enabled]) SELECT_TYPE="kqueue" AC_CHECK_HEADERS([sys/event.h],[], [ AC_MSG_ERROR([kqueue support requires sys/event.h header file.]) ]) ;; no) - echo "Forcing kqueue() to be disabled" + AC_MSG_WARN([Forcing kqueue() to be disabled]) disable_kqueue=true ;; *) @@ -1206,7 +1205,7 @@ AC_ARG_ENABLE(epoll, [ case "$enableval" in yes) - echo "Forcing epoll() to be enabled" + AC_MSG_WARN([Forcing epoll() to be enabled]) SELECT_TYPE="epoll" dnl epoll requires header file and library to be installed AC_CHECK_HEADERS([sys/epoll.h],[], @@ -1215,7 +1214,7 @@ AC_ARG_ENABLE(epoll, [ AC_MSG_ERROR([required libepoll library is missing.]) ]) ;; no) - echo "Forcing epoll() to be disabled" + AC_MSG_WARN([Forcing epoll() to be disabled]) disable_epoll=true ;; esac @@ -1262,7 +1261,7 @@ AC_ARG_ENABLE(http-violations, [This allows you to remove code which is known to violate the HTTP protocol specification.]), [ if test "$enableval" = "no" ; then - echo "Disabling HTTP Violations" + AC_MSG_NOTICE([Disabling HTTP Violations]) http_violations=0 fi ]) @@ -1278,7 +1277,7 @@ AC_ARG_ENABLE(ipfw-transparent, [Enable Transparent Proxy support for systems using FreeBSD IPFW style redirection.]), [ if test "$enableval" = "yes" ; then - echo "IPFW Transparent Proxy enabled" + AC_MSG_NOTICE([IPFW Transparent Proxy enabled]) AC_DEFINE(IPFW_TRANSPARENT,1,[Enable support for Transparent Proxy on systems using FreeBSD IPFW address redirection.]) IPFW_TRANSPARENT="yes" else @@ -1292,7 +1291,7 @@ AC_ARG_ENABLE(ipf-transparent, [Enable Transparent Proxy support for systems using IP-Filter network address redirection.]), [ if test "$enableval" = "yes" ; then - echo "IP-Filter Transparent Proxy enabled" + AC_MSG_NOTICE([IP-Filter Transparent Proxy enabled]) AC_DEFINE(IPF_TRANSPARENT,1,[Enable support for Transparent Proxy on systems using IP-Filter address redirection. This provides "masquerading" support for non Linux system.]) IPF_TRANSPARENT="yes" else @@ -1306,7 +1305,7 @@ AC_ARG_ENABLE(pf-transparent, [Enable Transparent Proxy support for systems using PF network address redirection.]), [ if test "$enableval" = "yes" ; then - echo "PF Transparent Proxy enabled" + AC_MSG_NOTICE([PF Transparent Proxy enabled]) AC_DEFINE(PF_TRANSPARENT,1,[Enable support for Transparent Proxy on systems using PF address redirection. This provides "masquerading" support for OpenBSD.]) PF_TRANSPARENT="yes" else @@ -1319,7 +1318,7 @@ AC_ARG_ENABLE(linux-netfilter, AC_HELP_STRING([--enable-linux-netfilter], [Enable Transparent Proxy support for Linux (Netfilter)]), [ if test "$enableval" = "yes" ; then - echo "Linux (Netfilter) Transparent Proxy enabled" + AC_MSG_NOTICE([Linux (Netfilter) Transparent Proxy enabled]) AC_DEFINE(LINUX_NETFILTER,1,[Enable support for Transparent Proxy on Linux (Netfilter) systems]) LINUX_NETFILTER="yes" else @@ -1354,8 +1353,7 @@ AC_ARG_WITH(build-environment, default The default for your OS], [ case "$withval" in yes|no) - echo "--with-build-environment expects a build environment string as used by getconf" - exit 1 + AC_MSG_FAILURE(["--with-build-environment expects a build environment string as used by getconf]) ;; *) buildmodel="$withval" @@ -1371,20 +1369,20 @@ if test $needlargefiles && test -z "$buildmodel"; then fi done if test -z "$buildmodel"; then - echo "WARNING: No suitable build environment found for large files. Trying to use _FILE_OFFSET_BITS=64" + AC_MSG_WARN(["No suitable build environment found for large files. Trying to use _FILE_OFFSET_BITS=64]) sleep 1 fi fi case "$buildmodel" in default|"") if test "$needlargefiles"; then - echo "Enabling -D_FILE_OFFSET_BITS=64" + AC_MSG_NOTICE([Enabling -D_FILE_OFFSET_BITS=64]) CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS" CXXFLAGS="-D_FILE_OFFSET_BITS=64 $CXXFLAGS" fi ;; *) - echo "Using $buildmodel build environment" + AC_MSG_NOTICE([Using $buildmodel build environment]) if test "`getconf _$buildmodel 2>/dev/null || true`" = 1 || test "`getconf $buildmodel 2>/dev/null || true`" ; then : # All fine else @@ -1403,19 +1401,19 @@ dnl For gcc "-xarch=generic64" must be replaced with "-m64" dnl The 'sun' define is needed by ipfilter includes, so we must remove "-Usun" *-solaris*) if test "$GCC" = "yes"; then - echo "Removing -Xa for gcc/g++ on $host" + AC_MSG_NOTICE([Removing -Xa for gcc/g++ on $host]) CFLAGS="`echo $CFLAGS | sed -e 's/-Xa//'`" CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-Xa//'`" - echo "Replacing -xarch=generic64 with -m64 for gcc/g++ on $host" + AC_MSG_NOTICE([Replacing -xarch=generic64 with -m64 for gcc/g++ on $host]) CFLAGS="`echo $CFLAGS | sed -e 's/-xarch=generic64/-m64/'`" CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-xarch=generic64/-m64/'`" LDFLAGS="`echo $LDFLAGS | sed -e 's/-xarch=generic64//'`" fi - echo "Removing -Usun on $host" + AC_MSG_NOTICE([Removing -Usun on $host]) CFLAGS="`echo $CFLAGS | sed -e 's/-Usun//'`" CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-Usun//'`" ;; -dnl +dnl dnl On Irix 6.x getconf returns options valid only for the SGI MipsPRO compiler, dnl so we must adjust something to avoid gcc errors. dnl On Irix 6.x 32/64 bit we must replace "-n32" with "-mabi=n32" in CFLAGS and @@ -1444,11 +1442,11 @@ AC_ARG_ENABLE(linux-tproxy, [Enable real Transparent Proxy support for Netfilter TPROXY (version 2).]), [ if test "$enableval" = "yes" ; then - echo "Linux Netfilter/TPROXY v2 enabled" + AC_MSG_NOTICE(["Linux Netfilter/TPROXY v2 enabled]) AC_DEFINE(LINUX_TPROXY2, 1, [Enable real Transparent Proxy support for Netfilter TPROXY v2.]) LINUX_TPROXY2="yes" if test -z "$LINUX_NETFILTER"; then - echo "Linux-Netfilter Transparent Proxy automatically enabled" + AC_MSG_NOTICE([Linux-Netfilter Transparent Proxy automatically enabled]) LINUX_NETFILTER="yes" fi else @@ -1465,7 +1463,7 @@ AC_ARG_ENABLE(leakfinder, code to use the leak finding functions. Probably Useful for hackers only.]), [ if test "$enableval" = "yes" ; then - echo "Leak-Finding enabled" + AC_MSG_NOTICE([Leak-Finding enabled]) AC_DEFINE(USE_LEAKFINDER,1,[Enable code for assisting in finding memory leaks. Hacker stuff only.]) USE_LEAKFINDER="yes" AM_CONDITIONAL(MAKE_LEAKFINDER, true) @@ -1480,7 +1478,7 @@ AC_ARG_ENABLE(follow-x-forwarded-for, original or indirect client when a request has been forwarded through other proxies.]), [ if test "$enableval" = "yes" ; then - echo "follow X-Forwarded-For enabled" + AC_MSG_NOTICE([follow X-Forwarded-For enabled]) follow_xff=1 fi ]) @@ -1495,7 +1493,7 @@ AC_ARG_ENABLE(ident-lookups, AC_HELP_STRING([--disable-ident-lookups], [This allows you to remove code that performs Ident (RFC 931) lookups.]), [ if test "$enableval" = "no" ; then - echo "Disabling Ident Lookups" + AC_MSG_NOTICE([Disabling Ident Lookups]) use_ident=0 fi ]) @@ -1514,7 +1512,7 @@ AC_ARG_ENABLE(internal-dns, [Prevents Squid from directly sending and receiving DNS messages, and instead enables the old external 'dnsserver' processes.]), [ if test "$enableval" = "no" ; then - echo "Disabling Internal DNS queries" + AC_MSG_WARN([Disabling Internal DNS queries]) use_dnsserver="yes" fi ]) @@ -1533,13 +1531,13 @@ AC_ARG_ENABLE(default-hostsfile, if test -f $enableval; then OPT_DEFAULT_HOSTS=$enableval else - echo "Warning Unable to find $enableval" + AC_MSG_WARN([Unable to find $enableval]) sleep 5 fi else - OPT_DEFAULT_HOSTS="none" + OPT_DEFAULT_HOSTS="none" fi - echo "Default hosts file set to: $enableval" + AC_MSG_NOTICE([Default hosts file set to: $enableval]) ],[OPT_DEFAULT_HOSTS="/etc/hosts"]) AC_SUBST(OPT_DEFAULT_HOSTS) @@ -1581,11 +1579,11 @@ if test -n "$AUTH_MODULES"; then fi eval AUTH_MODULE_${module}=yes done - echo "Auth scheme modules built: $AUTH_MODULES" + AC_MSG_NOTICE([Auth scheme modules built: $AUTH_MODULES]) AUTH_OBJS="auth/lib`echo $AUTH_MODULES|sed -e 's% %.a auth/lib%g'`.a" AUTH_LIBS="`echo $AUTH_OBJS|sed -e 's%auth/%%g'`" else - echo "Auth scheme modules built: None" + AC_MSG_WARN([Auth scheme modules built: None]) fi AUTH_LINKOBJS= for module in $AUTH_MODULES; do @@ -1621,7 +1619,7 @@ AC_ARG_ENABLE(basic-auth-helpers, ;; *) if test -z "$AUTH_MODULE_basic"; then - echo "WARNING: Basic auth helpers selected without the basic scheme enabled" + AC_MSG_WARN([Basic auth helpers selected without the basic scheme enabled]) sleep 15 fi BASIC_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`" @@ -1649,7 +1647,7 @@ if test -n "$BASIC_AUTH_HELPERS"; then AC_MSG_ERROR(Basic auth helper $helper does not exist) fi done - echo "Basic auth helpers built: $BASIC_AUTH_HELPERS" + AC_MSG_NOTICE([Basic auth helpers built: $BASIC_AUTH_HELPERS]) fi AC_SUBST(BASIC_AUTH_HELPERS) @@ -1692,7 +1690,7 @@ if test -n "$NTLM_AUTH_HELPERS"; then AC_MSG_ERROR(NTLM Auth helper $helper does not exist) fi done - echo "NTLM auth helpers built: $NTLM_AUTH_HELPERS" + AC_MSG_NOTICE([NTLM auth helpers built: $NTLM_AUTH_HELPERS]) fi AC_SUBST(NTLM_AUTH_HELPERS) @@ -1735,7 +1733,7 @@ if test -n "$NEGOTIATE_AUTH_HELPERS"; then AC_MSG_ERROR(Negotiate Auth helper $helper does not exist) fi done - echo "Negotiate auth helpers built: $NEGOTIATE_AUTH_HELPERS" + AC_MSG_NOTICE([Negotiate auth helpers built: $NEGOTIATE_AUTH_HELPERS]) fi AC_SUBST(NEGOTIATE_AUTH_HELPERS) AC_CONFIG_SUBDIRS(helpers/negotiate_auth/squid_kerb_auth) @@ -1779,7 +1777,7 @@ if test -n "$DIGEST_AUTH_HELPERS"; then AC_MSG_ERROR(digest auth helper $helper does not exist) fi done - echo "Digest auth helpers built: $DIGEST_AUTH_HELPERS" + AC_MSG_NOTICE([Digest auth helpers built: $DIGEST_AUTH_HELPERS]) fi AC_SUBST(DIGEST_AUTH_HELPERS) @@ -1831,7 +1829,7 @@ if test -n "$EXTERNAL_ACL_HELPERS"; then AC_MSG_ERROR(external acl helper $helper does not exist) fi done - echo "External acl helpers built: $EXTERNAL_ACL_HELPERS" + AC_MSG_NOTICE([External acl helpers built: $EXTERNAL_ACL_HELPERS]) fi AC_SUBST(EXTERNAL_ACL_HELPERS) @@ -1853,8 +1851,8 @@ AC_ARG_WITH(valgrind-debug, if test $valgrind; then AC_CHECK_HEADERS(valgrind/memcheck.h, [ AC_DEFINE(WITH_VALGRIND, 1, [Valgrind memory debugger support]) - echo "Valgrind debug support enabled" ], - [ echo "Valgrind header not found. Valgrind support disabled." ] + AC_MSG_NOTICE([Valgrind debug support enabled]) ], + [ AC_MSG_WARN([Valgrind header not found. Valgrind support disabled.]) ] ) fi ]) @@ -1867,7 +1865,7 @@ AC_ARG_ENABLE(mempools, only lib/MemPool.c needs to be altered to change the squid-wide default for all classes.]), [ if test "$enableval" = "no" ; then - echo "memPools disabled" + AC_MSG_NOTICE([memPools disabled]) AC_DEFINE(DISABLE_POOLS, 1, [Define if you have problems with memPools and want to disable Pools]) else AC_DEFINE(DISABLE_POOLS, 0, [Define if you have problems with memPools and want to disable Pools.]) @@ -1882,7 +1880,7 @@ AC_ARG_ENABLE(win32-service, [Compile Squid as a WIN32 Service. Works only on MS-Windows platforms (NT and up).]), [ if test "$enableval" = "yes" ; then - echo "Enabling WIN32 run service mode" + AC_MSG_NOTICE([Enabling WIN32 run service mode]) AC_DEFINE(USE_WIN32_SERVICE,1,[Define Windows NT & Windows 2000 run service mode]) fi ]) @@ -1892,11 +1890,11 @@ dnl Check for Cyrus SASL if test "$require_sasl" = "yes"; then AC_CHECK_HEADERS(sasl/sasl.h sasl.h) if test "$ac_cv_header_sasl_sasl_h" = "yes"; then - echo "using SASL2" + AC_MSG_NOTICE([using SASL2]) LIBSASL="-lsasl2" else if test "$ac_cv_header_sasl_h" = "yes"; then - echo "using SASL" + AC_MSG_NOTICE([using SASL]) LIBSASL="-lsasl" else AC_MSG_ERROR(Neither SASL nor SASL2 found) @@ -1919,11 +1917,11 @@ AC_ARG_ENABLE(unlinkd, use_unlinkd=yes ]) if test "$use_unlinkd" = "yes"; then - echo "unlinkd enabled" + AC_MSG_NOTICE([unlinkd enabled]) AC_DEFINE(USE_UNLINKD,1,[Define this if unlinkd is required (strongly recommended for ufs storage type)]) AM_CONDITIONAL(ENABLE_UNLINKD, true) else - echo "unlinkd disabled" + AC_MSG_NOTICE([unlinkd disabled]) AM_CONDITIONAL(ENABLE_UNLINKD, false) fi @@ -1932,7 +1930,7 @@ AC_ARG_ENABLE(stacktraces, AC_HELP_STRING([--enable-stacktraces], [Enable automatic call backtrace on fatal errors]), [ if test "$enableval" = "yes" ; then - echo "Enabling automatic stack backtraces on fatal errors" + AC_MSG_NOTICE([Enabling automatic stack backtraces on fatal errors]) AC_DEFINE(PRINT_STACK_TRACE, 1,[Print stacktraces on fatal errors]) fi ]) @@ -1949,7 +1947,7 @@ AC_ARG_ENABLE(cpu-profiling, If you are not developer you shouldn't enable this, as it slows squid down somewhat. See lib/Profiler.c for more details.]), [ if test "$enableval" = "yes" ; then - echo "Enabling cpu-profiling" + AC_MSG_NOTICE([Enabling cpu-profiling]) AC_DEFINE(USE_XPROF_STATS, 1,[Define to enable CPU profiling within Squid]) AM_CONDITIONAL(ENABLE_XPROF_STATS, true) fi @@ -1964,7 +1962,7 @@ AC_ARG_ENABLE(x_accelerator_vary, Typically used together with other code that adds custom HTTP headers to the requests.]), [ if test "$enableval" = "yes" ; then - echo "Enabling support for X-Accelerator-Vary" + AC_MSG_NOTICE([Enabling support for X-Accelerator-Vary]) AC_DEFINE(X_ACCELERATOR_VARY, 1, [Enable support for the X-Accelerator-Vary HTTP header]) fi ]) @@ -2049,7 +2047,7 @@ AC_ARG_WITH(localhost-ipv6, else # NP: semi-silent failure as IPv4-only mode is perfectly usable on this system. - echo "WARNING: IPv6 is not available on this system." + AC_MSG_WARN([IPv6 is not available on this system.]) AC_DEFINE(USE_IPV6,0,[Enable support for IPv6]) AC_DEFINE(IPV6_SPECIAL_SPLITSTACK,0,[Enable support for IPv6 on split-stack implementations]) AC_DEFINE(IPV6_SPECIAL_LOCALHOST,0,[Convert IPv4-localhost requests to IPv6. Default: Keep seperate.]) @@ -2059,7 +2057,7 @@ fi AC_ARG_ENABLE(zph-qos, AC_HELP_STRING([--enable-zph-qos],[Enable ZPH QOS support]), [ if test "$enableval" = "yes" ; then - echo "ZPH QOS enabled" + AC_MSG_NOTICE([ZPH QOS enabled]) AC_DEFINE(USE_ZPH_QOS,1, [ Define this to use Squid's ZPH (Zero Penalty Hit) QOS features. When enabled, Squid will alter TOS field of HIT responses for better QOS on intermediate routing/shaping devices.]) @@ -2152,12 +2150,12 @@ AC_ARG_WITH(filedescriptors, AC_PATH_PROG(CPPUNITCONFIG, cppunit-config, false) if $CPPUNITCONFIG --help >/dev/null; then - echo "using system installed cppunit" + AC_MSG_NOTICE([using system installed cppunit]) SQUID_CPPUNIT_LIBS="`$CPPUNITCONFIG --libs`" SQUID_CPPUNIT_LA='' SQUID_CPPUNIT_INC="`$CPPUNITCONFIG --cflags`" else - echo "cppunit does not appear to be installed. squid does not require this, but code testing with 'make check' will fail." + AC_MSG_WARN([cppunit does not appear to be installed. squid does not require this, but code testing with 'make check' will fail.]) SQUID_CPPUNIT_LA='' SQUID_CPPUNIT_LIBS='' SQUID_CPPUNIT_INC='' @@ -2168,13 +2166,13 @@ AC_ARG_WITH(cppunit-basedir, [Path where the cppunit headers are libraries are found for unit testing.]), [ if test -f $withval/include/cppunit/TestCase.h; then - echo "Using cppunit includes from $withval" + AC_MSG_NOTICE([Using cppunit includes from $withval]) SQUID_CPPUNIT_INC="-I${withval}/include" else AC_MSG_ERROR(Cannot find cppunit at $withval) fi if test -f $withval/lib/libcppunit.la; then - echo "Using cppunit lib from $withval" + AC_MSG_NOTICE([Using cppunit lib from $withval]) SQUID_CPPUNIT_LA="${withval}/lib/libcppunit.la" SQUID_CPPUNIT_LIBS='$(SQUID_CPPUNIT_LA)' else @@ -2191,14 +2189,14 @@ AC_SUBST(SQUID_CPPUNIT_INC) case "$host" in alpha-dec-osf*) if test "$ac_cv_prog_CC" = "cc" ; then - echo "adding '-std1' to cc args for $host" + AC_MSG_NOTICE([adding '-std1' to cc args for $host]) CC="cc -std1"; ac_cv_prog_CC="$CC" fi ;; *-hp-hpux*) if test "$ac_cv_prog_CC" = "cc" ; then - echo "adding '-Ae' to cc args for $host" + AC_MSG_NOTICE([adding '-Ae' to cc args for $host]) CC="cc -Ae"; ac_cv_prog_CC="$CC" fi @@ -2221,14 +2219,12 @@ dnl automake handles this AC_PATH_PROG(MAKEDEPEND, makedepend, $TRUE) AC_PATH_PROG(AR, ar, $FALSE) if test "$ac_cv_path_PERL" = "none"; then - echo "Perl is required to compile Squid" - echo "Please install Perl and then re-run configure" - exit 1 + AC_MSG_FAILURE([Perl is required to compile Squid. Please install Perl and then re-run configure ]) fi case "$host" in *-hp-hpux*) - echo "Disabling 'ranlib' for HP-UX..." + AC_MSG_NOTICE([Disabling 'ranlib' for HP-UX...]) RANLIB=":" ;; esac @@ -2409,7 +2405,7 @@ case "$host_os" in mingw|mingw32) AC_DEFINE(HAVE_STRUCT_RUSAGE) ac_cv_func_getrusage='yes' - echo "Using own rusage on Windows." + AC_MSG_NOTICE([Using own rusage on Windows.]) ;; *) AC_CHECK_TYPE(struct rusage,AC_DEFINE(HAVE_STRUCT_RUSAGE,1,[The system provides struct rusage]),,[ @@ -2659,17 +2655,17 @@ dnl end rip AC_CHECK_LIB(gnumalloc, main) if test "$ac_cv_lib_gnumalloc_main" = "yes"; then - echo "Disabling extended malloc functions when using gnumalloc" + AC_MSG_NOTICE([Disabling extended malloc functions when using gnumalloc]) ac_cv_func_mallinfo=no ac_cv_func_mallocblksize=no ac_cv_func_mallopt=no else case "$host" in *-sun-solaris*) - echo "skipping libmalloc check for $host" + AC_MSG_NOTICE([skipping libmalloc check for $host]) ;; i386-*-freebsd*) - echo "skipping libmalloc check for $host" + AC_MSG_NOTICE([skipping libmalloc check for $host]) ;; *) @@ -2684,7 +2680,7 @@ AC_CHECK_LIB(bind, gethostbyname) if test $ac_cv_lib_bind_gethostbyname = "no" ; then case "$host" in i386-*-freebsd*) - echo "skipping libresolv checks for $host" + AC_MSG_NOTICE([skipping libresolv checks for $host]) ;; *) AC_CHECK_LIB(resolv, main) @@ -2693,7 +2689,7 @@ if test $ac_cv_lib_bind_gethostbyname = "no" ; then fi case "$host_os" in mingw|mingw32) - echo "Use MSVCRT for math functions." + AC_MSG_NOTICE([Use MSVCRT for math functions.]) ;; *) AC_CHECK_LIB(m, main) @@ -2704,10 +2700,8 @@ dnl Check for libcrypt dnl Some of our helpers use crypt(3) which may be in libc, or in dnl libcrypt (eg FreeBSD) AC_CHECK_LIB(crypt, crypt, [CRYPTLIB="-lcrypt"]) - dnl Solaris10 provides MD5 natively through libmd5 AC_CHECK_LIB(md5, MD5Init, [CRYPTLIB="$CRYPTLIB -lmd5"]) - AC_SUBST(CRYPTLIB) dnl Check for libdl, used by auth_modules/PAM @@ -2772,24 +2766,24 @@ dnl case "$host" in i386-*-solaris2.*) if test "$GCC" = "yes"; then - echo "Removing -O for gcc on $host" + AC_MSG_NOTICE([Removing -O for gcc on $host]) CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`" fi ;; *-sgi-irix*) - echo "Removing -lsocket for IRIX..." + AC_MSG_NOTICE([Removing -lsocket for IRIX...]) LIBS=`echo $LIBS | sed -e s/-lsocket//` - echo "Removing -lnsl for IRIX..." + AC_MSG_NOTICE([Removing -lnsl for IRIX...]) LIBS=`echo $LIBS | sed -e s/-lnsl//` ac_cv_lib_nsl_main=no - echo "Removing -lbsd for IRIX..." + AC_MSG_NOTICE([Removing -lbsd for IRIX...]) LIBS=`echo $LIBS | sed -e s/-lbsd//` ;; dnl From: c0032033@ws.rz.tu-bs.de (Joerg Schumacher) dnl Date: Thu, 17 Oct 1996 04:09:30 +0200 dnl Please change your configure script. AIX doesn't need -lbsd. *-ibm-aix*) - echo "Removing -lbsd for AIX..." + AC_MSG_NOTICE([Removing -lbsd for AIX...]) LIBS=`echo $LIBS | sed -e s/-lbsd//` ;; *m88k*) @@ -2811,7 +2805,7 @@ if test "$GCC" = "yes"; then GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'` case "$GCCVER" in [2.95.[123]]) - echo "Removing -O for gcc on $host with GCC $GCCVER" + AC_MSG_NOTICE([Removing -O for gcc on $host with GCC $GCCVER]) CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`" ;; esac @@ -2821,7 +2815,7 @@ fi case "$host" in *-univel-sysv4.2MP) if test `uname -v` = "2.03"; then - echo "disabling mallinfo for $host" + AC_MSG_NOTICE([disabling mallinfo for $host]) ac_cv_func_mallinfo=no fi ;; @@ -2834,12 +2828,12 @@ if test -z "$ac_cv_func_poll"; then case "$host" in [alpha-dec-osf3.*]) # John Kay (jkay@nlanr.net) 19970818 - echo "disabling poll for $host..." + AC_MSG_NOTICE([disabling poll for $host...]) ac_cv_func_poll='no' ;; [*-hp-hpux*.*]) # Duane Wessels - echo "disabling poll for $host..." + AC_MSG_NOTICE([disabling poll for $host...]) ac_cv_func_poll='no' ;; [*-linux-*]) @@ -2848,19 +2842,19 @@ if test -z "$ac_cv_func_poll"; then # by default until Linux gets it right. rev=`uname -r | awk -F. '{printf "%03d%03d",$1,$2}'` if test $rev -lt 002002; then - echo "disabling poll for $host < 2.2..." + AC_MSG_NOTICE([disabling poll for $host < 2.2...]) ac_cv_func_poll='no' fi ;; [powerpc-ibm-aix4.1.*]) # Mike Laster (mlaster@metavillage.com) 19981021 - echo "disabling poll for $host..." + AC_MSG_NOTICE([disabling poll for $host...]) ac_cv_func_poll='no' ;; [*-pc-sco3.2*]) # Robert Side # Mon, 18 Jan 1999 17:48:00 GMT - echo "disabling poll for $host..." + AC_MSG_NOTICE([disabling poll for $host...]) ac_cv_func_poll='no' ;; esac @@ -2979,13 +2973,13 @@ elif test -z "$disable_select" && test "$ac_cv_func_select" = "yes" ; then ;; esac else - echo "Eep! Can't find poll, kqueue, epoll, or select!" - echo "I'll try select and hope for the best." + AC_MSG_WARN([Eep! Can't find poll, kqueue, epoll, or select!]) + AC_MSG_WARN([I'll try select and hope for the best.]) SELECT_TYPE="select" AC_DEFINE(USE_SELECT,1) fi -echo "Using ${SELECT_TYPE} for the IO loop." +AC_MSG_NOTICE([Using ${SELECT_TYPE} for the IO loop.]) AM_CONDITIONAL([USE_POLL], [test $SELECT_TYPE = poll]) AM_CONDITIONAL([USE_EPOLL], [test $SELECT_TYPE = epoll]) @@ -3149,8 +3143,8 @@ if test "$IPF_TRANSPARENT" ; then AC_MSG_RESULT($IPF_TRANSPARENT) fi if test "$IPF_TRANSPARENT" = "no" ; then - echo "WARNING: Cannot find necessary IP-Filter header files" - echo " Transparent Proxy support WILL NOT be enabled" + AC_MSG_WARN([Cannot find necessary IP-Filter header files]) + AC_MSG_WARN([Transparent Proxy support WILL NOT be enabled]) sleep 10 elif test "$IPF_TRANSPARENT" = "yes" ; then dnl On Solaris Ipfilter includes expect that SOLARIS2 is defined with the @@ -3180,8 +3174,8 @@ if test "$PF_TRANSPARENT" ; then AC_MSG_RESULT($PF_TRANSPARENT) fi if test "$PF_TRANSPARENT" = "no" ; then - echo "WARNING: Cannot find necessary PF header file" - echo " Transparent Proxy support WILL NOT be enabled" + AC_MSG_WARN([Cannot find necessary PF header file]) + AC_MSG_WARN([Transparent Proxy support WILL NOT be enabled]) sleep 10 fi @@ -3200,8 +3194,8 @@ if test "$LINUX_NETFILTER" ; then AC_MSG_RESULT($LINUX_NETFILTER) fi if test "$LINUX_NETFILTER" = "no" ; then - echo "WARNING: Cannot find necessary Linux kernel (Netfilter) header files" - echo " Linux Transparent and Intercepting Proxy support WILL NOT be enabled" + AC_MSG_WARN([Cannot find necessary Linux kernel (Netfilter) header files]) + AC_MSG_WARN([Linux Transparent and Intercepting Proxy support WILL NOT be enabled]) sleep 10 fi @@ -3219,10 +3213,10 @@ if test "$LINUX_TPROXY2" ; then fi AC_MSG_RESULT($LINUX_TPROXY2) if test "$LINUX_TPROXY2" = "no" && test "$LINUX_NETFILTER" = "yes"; then - echo "WARNING: Cannot find TPROXY v2 headers, you need to patch the kernel with " - echo "tproxy package from:" - echo " - lynx http://www.balabit.com/downloads/files/tproxy/" - echo "Or select the '--enable-linux-netfilter' option instead for Netfilter support." + AC_MSG_WARN([Cannot find TPROXY v2 headers, you need to patch the kernel with ]) + AC_MSG_WARN([tproxy package from:]) + AC_MSG_WARN([ - lynx http://www.balabit.com/downloads/files/tproxy/]) + AC_MSG_WARN([Or select the '--enable-linux-netfilter' option instead for Netfilter support.]) sleep 10 fi fi @@ -3383,17 +3377,16 @@ main() { fi AC_DEFINE_UNQUOTED(SQUID_MAXFD, $SQUID_MAXFD,[Maximum number of open filedescriptors]) if test "$SQUID_MAXFD" -lt 512 ; then - echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your" - echo " cache will be very busy. Please see the FAQ page" - echo " http://wiki.squid-cache.org/SquidFaq/TroubleShooting" - echo " on how to increase your filedescriptor limit" + AC_MSG_WARN([$SQUID_MAXFD may not be enough filedescriptors if your]) + AC_MSG_WARN([cache will be very busy. Please see the FAQ page]) + AC_MSG_WARN([http://wiki.squid-cache.org/SquidFaq/TroubleShooting]) + AC_MSG_WARN([on how to increase your filedescriptor limit]) sleep 10 fi LDFLAGS="$TLDFLAGS" if test `expr $SQUID_MAXFD % 64` != 0; then - echo "WARNING: $SQUID_MAXFD is not an multiple of 64. This may cause issues" - echo " on certain platforms." + AC_MSG_WARN([$SQUID_MAXFD is not an multiple of 64. This may cause issues on certain platforms.]) sleep 10 fi @@ -3525,7 +3518,7 @@ SQUID_TCP_SO_SNDBUF=16384, SQUID_TCP_SO_SNDBUF=16384) AC_MSG_RESULT($SQUID_TCP_SO_SNDBUF) if test $SQUID_TCP_SO_SNDBUF -gt 32768; then - echo "Limiting send buffer size to 32K" + AC_MSG_NOTICE([Limiting send buffer size to 32K]) SQUID_TCP_SO_SNDBUF=32768 fi AC_DEFINE_UNQUOTED(SQUID_TCP_SO_SNDBUF, $SQUID_TCP_SO_SNDBUF,[TCP send buffer size]) @@ -3572,7 +3565,7 @@ SQUID_TCP_SO_RCVBUF=16384, SQUID_TCP_SO_RCVBUF=16384) AC_MSG_RESULT($SQUID_TCP_SO_RCVBUF) if test $SQUID_TCP_SO_RCVBUF -gt 65535; then - echo "Limiting receive buffer size to 64K" + AC_MSG_NOTICE([Limiting receive buffer size to 64K]) SQUID_TCP_SO_RCVBUF=65535 fi AC_DEFINE_UNQUOTED(SQUID_TCP_SO_RCVBUF, $SQUID_TCP_SO_RCVBUF,[TCP receive buffer size]) @@ -3618,14 +3611,14 @@ else AC_MSG_RESULT("no") case "$host_os" in mingw|mingw32) - echo "Using Win32 resolver instead." + AC_MSG_NOTICE([Using Win32 resolver instead.]) ;; *) - echo "Will use our own inet_ntoa()." + AC_MSG_NOTICE([Will use our own inet_ntoa().]) AC_LIBOBJ(inet_ntoa) -# echo "WARNING: This looks bad, and probably prevents Squid from working." -# echo " If you're on IRIX and using GCC 2.8, you probably need" -# echo " to use the IRIX C compiler instead." +# AC_MSG_WARN([This looks bad, and probably prevents Squid from working.]) +# AC_MSG_WARN([If you're on IRIX and using GCC 2.8, you probably need]) +# AC_MSG_WARN([to use the IRIX C compiler instead.]) # sleep 10 ;; esac @@ -3778,10 +3771,10 @@ AC_ARG_ENABLE(auto-locale, fi ]) if test "$use_errlocale" = "yes" ; then - echo "Enabling Multi-Language Support" + AC_MSG_NOTICE([Enabling Multi-Language Support]) AC_DEFINE(USE_ERR_LOCALES,1,[Use multi-language support on error pages]) else - echo "Disabling Multi-Language Support" + AC_MSG_WARN([Disabling Multi-Language Support]) AC_DEFINE(USE_ERR_LOCALES,0,[Use multi-language support on error pages]) dnl So we don't want to even attempt translation if its forcibly disabled. PO2HTML="off"