------------------------------------------------------------ revno: 13780 revision-id: squid3@treenet.co.nz-20150321075049-ruuyv4hdkhaycpnt parent: squid3@treenet.co.nz-20150321074843-i4s921u2rk1ys6me fixes bug: http://bugs.squid-cache.org/show_bug.cgi?id=4204 committer: Amos Jeffries branch nick: 3.5 timestamp: Sat 2015-03-21 00:50:49 -0700 message: Bug 4204: ./configure does not abort when required helpers cannot be built ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20150321075049-ruuyv4hdkhaycpnt # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.5 # testament_sha1: e53893acb432655dfc5bb8585bb26e9cd967dd8c # timestamp: 2015-03-21 08:17:37 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.5 # base_revision_id: squid3@treenet.co.nz-20150321074843-\ # i4s921u2rk1ys6me # # Begin patch === modified file 'helpers/basic_auth/modules.m4' --- helpers/basic_auth/modules.m4 2015-01-13 09:13:49 +0000 +++ helpers/basic_auth/modules.m4 2015-03-21 07:50:49 +0000 @@ -19,8 +19,10 @@ AC_MSG_ERROR([Basic auth requested but auth disabled]) fi #define list of modules to build +auto_auth_basic_modules=no if test "x$enable_auth_basic" = "xyes" ; then SQUID_LOOK_FOR_MODULES([$srcdir/helpers/basic_auth],[enable_auth_basic]) + auto_auth_basic_modules=yes fi #handle the "none" special case if test "x$enable_auth_basic" = "xnone" ; then @@ -87,7 +89,11 @@ if test -d "$srcdir/helpers/basic_auth/$helper"; then if test "$BUILD_HELPER" != "$helper"; then - AC_MSG_NOTICE([Basic auth helper $helper ... found but cannot be built]) + if test "x$auto_auth_basic_modules" = "xyes"; then + AC_MSG_NOTICE([Basic auth helper $helper ... found but cannot be built]) + else + AC_MSG_ERROR([Basic auth helper $helper ... found but cannot be built]) + fi else BASIC_AUTH_HELPERS="$BASIC_AUTH_HELPERS $BUILD_HELPER" fi === modified file 'helpers/digest_auth/modules.m4' --- helpers/digest_auth/modules.m4 2015-01-13 09:13:49 +0000 +++ helpers/digest_auth/modules.m4 2015-03-21 07:50:49 +0000 @@ -19,8 +19,10 @@ AC_MSG_ERROR([Digest auth requested but auth disabled]) fi #define list of modules to build +auto_auth_digest_modules=no if test "x$enable_auth_digest" = "xyes" ; then SQUID_LOOK_FOR_MODULES([$srcdir/helpers/digest_auth],[enable_auth_digest]) + auto_auth_digest_modules=yes fi #handle the "none" special case if test "x$enable_auth_digest" = "xnone" ; then @@ -53,7 +55,11 @@ if test -d "$srcdir/helpers/digest_auth/$helper"; then if test "$BUILD_HELPER" != "$helper"; then - AC_MSG_NOTICE([Digest auth helper $helper ... found but cannot be built]) + if test "x$auto_auth_digest_modules" = "xyes"; then + AC_MSG_NOTICE([Digest auth helper $helper ... found but cannot be built]) + else + AC_MSG_ERROR([Digest auth helper $helper ... found but cannot be built]) + fi else DIGEST_AUTH_HELPERS="$DIGEST_AUTH_HELPERS $BUILD_HELPER" fi === modified file 'helpers/external_acl/modules.m4' --- helpers/external_acl/modules.m4 2015-01-13 09:13:49 +0000 +++ helpers/external_acl/modules.m4 2015-03-21 07:50:49 +0000 @@ -11,8 +11,10 @@ # FIXME: de-duplicate $enable_external_acl_helpers list containing double entries. #define list of modules to build +auto_ext_acl_modules=no if test "x${enable_external_acl_helpers:=yes}" = "xyes" ;then SQUID_LOOK_FOR_MODULES([$srcdir/helpers/external_acl],[enable_external_acl_helpers]) + auto_ext_acl_modules=yes fi if test "x$enable_external_acl_helpers" = "xnone" ; then enable_external_acl_helpers="" @@ -68,7 +70,11 @@ if test -d "$srcdir/helpers/external_acl/$helper"; then if test "$BUILD_HELPER" != "$helper"; then - AC_MSG_NOTICE([external acl helper $helper ... found but cannot be built]) + if test "x$auto_ext_acl_modules" = "xyes"; then + AC_MSG_NOTICE([external acl helper $helper ... found but cannot be built]) + else + AC_MSG_ERROR([external acl helper $helper ... found but cannot be built]) + fi else EXTERNAL_ACL_HELPERS="$EXTERNAL_ACL_HELPERS $BUILD_HELPER" fi === modified file 'helpers/log_daemon/modules.m4' --- helpers/log_daemon/modules.m4 2015-01-13 09:13:49 +0000 +++ helpers/log_daemon/modules.m4 2015-03-21 07:50:49 +0000 @@ -11,9 +11,11 @@ # FIXME: de-duplicate $enable_log_daemon_helpers list containing double entries. #define list of modules to build +auto_logdaemon_modules=no if test "x${enable_log_daemon_helpers:=yes}" = "xyes" ;then enable_log_daemon_helpers="" SQUID_LOOK_FOR_MODULES([$srcdir/helpers/log_daemon],[enable_log_daemon_helpers]) + auto_logdaemon_modules=yes fi if test "x$enable_log_daemon_helpers" = "xnone" ; then enable_log_daemon_helpers="" @@ -40,7 +42,11 @@ if test -d "$srcdir/helpers/log_daemon/$helper"; then if test "$BUILD_HELPER" != "$helper"; then - AC_MSG_NOTICE([Log daemon helper $helper ... found but cannot be built]) + if test "x$auto_logdaemon_modules" = "xyes"; then + AC_MSG_NOTICE([Log daemon helper $helper ... found but cannot be built]) + else + AC_MSG_ERROR([Log daemon helper $helper ... found but cannot be built]) + fi else LOG_DAEMON_HELPERS="$LOG_DAEMON_HELPERS $BUILD_HELPER" fi === modified file 'helpers/negotiate_auth/modules.m4' --- helpers/negotiate_auth/modules.m4 2015-01-13 09:13:49 +0000 +++ helpers/negotiate_auth/modules.m4 2015-03-21 07:50:49 +0000 @@ -19,8 +19,10 @@ AC_MSG_ERROR([Negotiate auth requested but auth disabled]) fi #define list of modules to build +auto_auth_negotiate_modules=no if test "x$enable_auth_negotiate" = "xyes" ; then SQUID_LOOK_FOR_MODULES([$srcdir/helpers/negotiate_auth],[enable_auth_negotiate]) + auto_auth_negotiate_modules=yes fi #handle the "none" special case if test "x$enable_auth_negotiate" = "xnone" ; then @@ -53,7 +55,11 @@ if test -d "$srcdir/helpers/negotiate_auth/$helper"; then if test "$BUILD_HELPER" != "$helper"; then - AC_MSG_NOTICE([Negotiate auth helper $helper ... found but cannot be built]) + if test "x$auto_auth_negotiate_modules" = "xyes"; then + AC_MSG_NOTICE([Negotiate auth helper $helper ... found but cannot be built]) + else + AC_MSG_ERROR([Negotiate auth helper $helper ... found but cannot be built]) + fi else NEGOTIATE_AUTH_HELPERS="$NEGOTIATE_AUTH_HELPERS $BUILD_HELPER" fi === modified file 'helpers/ntlm_auth/modules.m4' --- helpers/ntlm_auth/modules.m4 2015-01-13 09:13:49 +0000 +++ helpers/ntlm_auth/modules.m4 2015-03-21 07:50:49 +0000 @@ -19,8 +19,10 @@ AC_MSG_ERROR([NTLM auth requested but auth disabled]) fi #define list of modules to build +auto_auth_ntlm_modules=no if test "x$enable_auth_ntlm" = "xyes" ; then SQUID_LOOK_FOR_MODULES([$srcdir/helpers/ntlm_auth],[enable_auth_ntlm]) + auto_auth_ntlm_modules=yes fi #handle the "none" special case if test "x$enable_auth_ntlm" = "xnone" ; then @@ -54,7 +56,11 @@ if test -d "$srcdir/helpers/ntlm_auth/$helper"; then if test "$BUILD_HELPER" != "$helper"; then - AC_MSG_NOTICE([NTLM auth helper $helper ... found but cannot be built]) + if test "x$auto_auth_ntlm_modules" = "xyes"; then + AC_MSG_NOTICE([NTLM auth helper $helper ... found but cannot be built]) + else + AC_MSG_ERROR([NTLM auth helper $helper ... found but cannot be built]) + fi else NTLM_AUTH_HELPERS="$NTLM_AUTH_HELPERS $BUILD_HELPER" fi === modified file 'helpers/storeid_rewrite/modules.m4' --- helpers/storeid_rewrite/modules.m4 2015-01-13 09:13:49 +0000 +++ helpers/storeid_rewrite/modules.m4 2015-03-21 07:50:49 +0000 @@ -11,8 +11,10 @@ # FIXME: de-duplicate $enable_storeid_rewrite_helpers list containing double entries. #define list of modules to build +auto_storeid_modules=no if test "x${enable_storeid_rewrite_helpers:=yes}" = "xyes" ; then SQUID_LOOK_FOR_MODULES([$srcdir/helpers/storeid_rewrite],[enable_storeid_rewrite_helpers]) + auto_storeid_modules=yes fi enable_storeid_rewrite_helpers="`echo $enable_storeid_rewrite_helpers| sed -e 's/,/ /g;s/ */ /g'`" @@ -34,7 +36,11 @@ if test -d "$srcdir/helpers/storeid_rewrite/$helper"; then if test "$BUILD_HELPER" != "$helper"; then - AC_MSG_NOTICE([Store-ID rewrite helper $helper ... found but cannot be built]) + if test "x$auto_storeid_modules" = "xyes"; then + AC_MSG_NOTICE([Store-ID rewrite helper $helper ... found but cannot be built]) + else + AC_MSG_ERROR([Store-ID rewrite helper $helper ... found but cannot be built]) + fi else STOREID_REWRITE_HELPERS="$STOREID_REWRITE_HELPERS $BUILD_HELPER" fi === modified file 'helpers/url_rewrite/modules.m4' --- helpers/url_rewrite/modules.m4 2015-01-13 09:13:49 +0000 +++ helpers/url_rewrite/modules.m4 2015-03-21 07:50:49 +0000 @@ -11,8 +11,10 @@ # FIXME: de-duplicate $enable_url_rewrite_helpers list containing double entries. #define list of modules to build +auto_urlrewrite_modules=no if test "x${enable_url_rewrite_helpers:=yes}" = "xyes" ; then SQUID_LOOK_FOR_MODULES([$srcdir/helpers/url_rewrite],[enable_url_rewrite_helpers]) + auto_urlrewrite_modules=yes fi enable_url_rewrite_helpers="`echo $enable_url_rewrite_helpers| sed -e 's/,/ /g;s/ */ /g'`" @@ -34,7 +36,11 @@ if test -d "$srcdir/helpers/url_rewrite/$helper"; then if test "$BUILD_HELPER" != "$helper"; then - AC_MSG_NOTICE([URL rewrite helper $helper ... found but cannot be built]) + if test "x$auto_urlrewrite_modules" = "xyes"; then + AC_MSG_NOTICE([URL rewrite helper $helper ... found but cannot be built]) + else + AC_MSG_ERROR([URL rewrite helper $helper ... found but cannot be built]) + fi else URL_REWRITE_HELPERS="$URL_REWRITE_HELPERS $BUILD_HELPER" fi