fi
fi
+dnl Squid will usually attempt to translate when packaging or building from VCS
+use_translate="yes"
+AC_ARG_ENABLE(translation,
+ AC_HELP_STRING([--disable-translation],
+ [Prevent Squid generating localized error page templates and manuals.
+ Which is usually tried, but may not be needed.])
+[ if test "$enableval" = "no" ; then
+ use_translation=no
+ fi
+])
dnl Squid now has .po translation capability, given the right toolkit
-AX_WITH_PROG([PO2HTML],[po2html])
+if test "$use_translation" = "yes" ; then
+ AX_WITH_PROG([PO2HTML],[po2html])
+else
+ PO2HTML="off"
+fi
+AC_SUBST(PO2HTML)
dnl Squid now has limited locale handling ...
dnl on error pages
else
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"
fi
-AC_SUBST(PO2HTML)
dnl Need the debugging version of malloc if available
XTRA_OBJS=''
<tag>--disable-loadable-modules</tag>
<p>Build without support for loadable modules.
+ <tag>--disable-translation</tag>
+ <p>Prevent Squid generating localized error page templates and manuals.
+ Which is usually tried, but may not be needed.
+ <p>This is a development optimization for building from VCS when localization is
+ not needed. Has no effect on pre-translated source bundles.
+
<tag>--with-dns-cname</tag>
<p>Enable CNAME recursion within the Internal DNS resolver stub squid uses.
This has no effect on the external DNS helper.