From: Alex Rousskov Date: Tue, 15 Dec 2009 06:06:36 +0000 (-0700) Subject: Remove the following ./configure warnings: X-Git-Tag: SQUID_3_2_0_1~511 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cf1e8b61b6279a9820bd118afb9d8af3c140441;p=thirdparty%2Fsquid.git Remove the following ./configure warnings: conftest.cpp:34:1: warning: "USE_DISKIO_AIO" redefined conftest.cpp:35:1: warning: "USE_DISKIO_DISKTHREADS" redefined The patch allows Squid v3.1 to build on RHEL 5.4 which has autoconf v2.59. Without the patch, USE_DISKIO_AIO is zero but the corresponding AIO files are compiled, leading to errors. I do not know if other platforms are affected. --- diff --git a/configure.in b/configure.in index f43a1a7e20..2961018875 100644 --- a/configure.in +++ b/configure.in @@ -492,8 +492,6 @@ AC_ARG_ENABLE(disk-io, fi ]) dnl Some autoconf.h defines we might enable later... -AC_DEFINE(USE_DISKIO_AIO, 0, [Whether POSIX AIO support is needed. Automatic]) -AC_DEFINE(USE_DISKIO_DISKTHREADS, 0, [Whether pthreads support is needed. Automatic]) USE_AIOPS_WIN32=0 use_aio= use_diskthreads= @@ -659,6 +657,7 @@ for module in $MAYBE_DISK_MODULES none; do ;; esac else + AC_DEFINE(USE_DISKIO_AIO, 0, [Whether POSIX AIO support is needed. Automatic]) AC_MSG_NOTICE([AIO DiskIO Module disabled. Missing POSIX AIO support.]) fi ;;