diff options
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 84 |
1 files changed, 56 insertions, 28 deletions
diff --git a/configure.in b/configure.in index d1a156b51..bb57b83e1 100644 --- a/configure.in +++ b/configure.in @@ -15,7 +15,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. dnl Process this file with autoconf to produce a configure script. -AC_REVISION($Revision: 7495 $) +AC_REVISION($Revision: 7627 $) AC_PREREQ(2.0) AC_INIT(src/common.h) @@ -273,7 +273,7 @@ rm -f conftest.out conftest.py]) # Check for some other uid to use than `mailman' AC_MSG_CHECKING(for --with-username) AC_ARG_WITH(username, dnl -[ --with-username specify a user name other than \"mailman\"]) +[ --with-username specify a user name other than "mailman"]) if test -z "$with_username" then @@ -303,7 +303,7 @@ AC_MSG_RESULT(okay) # Check for some other gid to use than `mailman' AC_MSG_CHECKING(for --with-groupname) AC_ARG_WITH(groupname, dnl -[ --with-groupname specify a group name other than \"mailman\"]) +[ --with-groupname specify a group name other than "mailman"]) if test -z "$with_groupname" then @@ -507,6 +507,57 @@ fi AC_MSG_RESULT($URLHOST) rm -f conftest.out conftest.py +# i18n --with-languages +ALL_LINGUAS=`(cd ${srcdir}/messages && ls | grep '^..\(_..\)*$' | tr '\n' ' ')` +AC_SUBST(LANGUAGES) +AC_MSG_CHECKING(for --with-languages) +AC_ARG_WITH(languages, dnl +[ --with-languages add i18n languages: specify "none" for English only.]) +if test -z "$with_languages" +then + LANGUAGES="$ALL_LINGUAS" +elif test "$with_languages" = "none" +then + LANGUAGES="" +else + LANGUAGES="$with_languages" +fi +AC_MSG_RESULT($with_languages) + +# check CJKCodecs +AC_MSG_CHECKING(for CJK codecs) +changequote(,) +cat > conftest.py <<EOF +langs = "$LANGUAGES".split() +cset = {'ja': 'euc-jp', 'ko': 'euc-kr', + 'zh_CN': 'gb2312', 'zh_TW': 'big5'} +s = 'Not required' +for lang in cset.keys(): + if lang in langs: + try: + s = unicode('OK', cset[lang]).encode('us-ascii') + except LookupError: + s = '' + break +fp = open("conftest.out", "w") +fp.write("%s\n" % s) +fp.close() +EOF +changequote([, ]) +$PYTHON conftest.py +cjkok=`cat conftest.out` +rm -f conftest.out conftest.py +if test -z "$cjkok" +then + AC_MSG_ERROR([ +***** At least one of the CJK codecs missing! +***** You have included ja, ko, or zh_* in --with-languages +***** but valid codecs are not installed. You should +***** either install CJKCodecs from http://cjkpython.i18n.org/ +***** or use Python 2.4 in which CJK languages are supported.]) +fi +AC_MSG_RESULT($cjkok) + # Checks for libraries. AC_CHECK_FUNCS(strerror setregid syslog) if test $ac_cv_func_syslog = no; then @@ -579,6 +630,8 @@ bin/version \ bin/withlist \ bin/b4b5-archfix \ bin/rb-archfix \ +bin/templ2pot.py \ +bin/po2templ.py \ contrib/check_perms_grsecurity.py \ contrib/qmail-to-mailman.py \ contrib/rotatelogs.py \ @@ -626,28 +679,3 @@ AC_OUTPUT([misc/paths.py Mailman/Defaults.py Mailman/mm_cfg.py.dist # Make sure all the build scripts are executable. chmod -R +x build -# Test for the Chinese codecs. -dnl AC_MSG_CHECKING(for Python Chinese Unicode codecs) -dnl cat > conftest.py <<EOF -dnl try: -dnl unicode("abc", "big5-tw") -dnl print "found" -dnl except LookupError: -dnl print "not found" -dnl EOF -dnl chinese=`$PYTHON conftest.py 2>/dev/null` -dnl rm -f conftest.py -dnl AC_MSG_RESULT($chinese) -dnl if test "x$chinese" != "xfound" -dnl then -dnl AC_MSG_WARN([ - -dnl ***** Python Unicode codecs for Chinese not found. -dnl ***** Chinese emails generated by or manipulated in Mailman will not -dnl ***** be sent in the correct encoding and may be unreadable. -dnl ***** Please uncompress and install the Chinese codecs from: -dnl ***** http://sourceforge.net/projects/python-codecs/ -dnl ***** -dnl ***** Note: Everything else will work just fine. -dnl ]) -dnl fi |
