------------------------------------------------------------ revno: 13345 revision-id: squid3@treenet.co.nz-20140408155258-m5k42j0p501rfbbn parent: squid3@treenet.co.nz-20140408153512-wqa3s6qc8hpvtcm2 committer: Amos Jeffries branch nick: trunk timestamp: Wed 2014-04-09 03:52:58 +1200 message: Cleanup: Polish Windows automake conditionals Squid coding guidelines are that AM_CONDITIONAL definitions are named ENABLE_*. ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20140408155258-m5k42j0p501rfbbn # target_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/ # testament_sha1: 5191cab54d2c00d6f4964252bd7254caeca16c09 # timestamp: 2014-04-08 16:53:48 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/ # base_revision_id: squid3@treenet.co.nz-20140408153512-\ # wqa3s6qc8hpvtcm2 # # Begin patch === modified file 'configure.ac' --- configure.ac 2014-04-08 15:35:12 +0000 +++ configure.ac 2014-04-08 15:52:58 +0000 @@ -206,7 +206,7 @@ AM_CONDITIONAL(ENABLE_WIN32SPECIFIC, [test "x$squid_host_os" = "xmingw" -o "x$squid_host_os" = "xcygwin"]) -AM_CONDITIONAL(USE_IPC_WIN32,[test "x$squid_host_os" = "xmingw"]) +AM_CONDITIONAL(ENABLE_WIN32_IPC,[test "x$squid_host_os" = "xmingw"]) case "$squid_host_os" in mingw) @@ -536,7 +536,7 @@ AC_ARG_WITH(aio, AS_HELP_STRING([--without-aio],[Do not use POSIX AIO. Default: auto-detect])) AH_TEMPLATE(USE_DISKIO_AIO, [Whether POSIX AIO support is needed. Automatic]) AH_TEMPLATE(USE_DISKIO_DISKTHREADS, [Whether pthreads support is needed. Automatic]) -USE_AIOPS_WIN32=0 +ENABLE_WIN32_AIOPS=0 squid_opt_use_aio= squid_opt_use_diskthreads= AIOLIB= @@ -579,7 +579,7 @@ dnl REF: http://autoconf-archive.cryp.to/acx_pthread.html case "$squid_host_os" in mingw) - USE_AIOPS_WIN32=1 + ENABLE_WIN32_AIOPS=1 AC_MSG_NOTICE([Windows threads support automatically enabled]) ;; freebsd) @@ -691,7 +691,7 @@ DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/AIO/AIODiskIOModule.o" case "$squid_host_os" in mingw) - USE_AIO_WIN32=1 + ENABLE_WIN32_AIO=1 AC_MSG_NOTICE([Replacing AIO DiskIO module with: Windows overlapped I/O support]) ;; *) @@ -750,8 +750,8 @@ AC_SUBST(DISK_PROGRAMS) AC_SUBST(DISK_LINKOBJS) AC_SUBST(DISK_OS_LIBS) -AM_CONDITIONAL([USE_AIOPS_WIN32], [test "$USE_AIOPS_WIN32" = "1"]) -AM_CONDITIONAL([USE_AIO_WIN32], [test "$USE_AIO_WIN32" = "1"]) +AM_CONDITIONAL([ENABLE_WIN32_AIOPS], [test "$ENABLE_WIN32_AIOPS" = "1"]) +AM_CONDITIONAL([ENABLE_WIN32_AIO], [test "$ENABLE_WIN32_AIO" = "1"]) dnl Check what Storage formats are wanted. === modified file 'src/Makefile.am' --- src/Makefile.am 2014-03-31 04:46:50 +0000 +++ src/Makefile.am 2014-04-08 15:52:58 +0000 @@ -173,7 +173,7 @@ WINSVC_SOURCE = endif -if USE_IPC_WIN32 +if ENABLE_WIN32_IPC IPC_SOURCE = SquidIpc.h ipc_win32.cc else IPC_SOURCE = SquidIpc.h ipc.cc @@ -182,13 +182,13 @@ AIO_WIN32_ALL_SOURCES = \ DiskIO/AIO/aio_win32.cc \ DiskIO/AIO/aio_win32.h -if USE_AIO_WIN32 +if ENABLE_WIN32_AIO AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES) else AIO_WIN32_SOURCES = endif -if USE_AIOPS_WIN32 +if ENABLE_WIN32_AIOPS AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \ DiskIO/DiskThreads/CommIO.cc \ DiskIO/DiskThreads/CommIO.h