~mailman-coders/mailman/2.1

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Barry Warsaw
  • Date: 2008-11-30 17:10:18 UTC
  • Revision ID: barry@python.org-20081130171018-pzms2h2cl3is2jc7
Python 2.4 is a minimum.  Also, fix some autoconf complaints and remove
deprecation warnings regarding string exceptions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
 
1
# Copyright (C) 1998-2008 by the Free Software Foundation, Inc.
2
2
#
3
3
# This program is free software; you can redistribute it and/or
4
4
# modify it under the terms of the GNU General Public License
61
61
    v = sys.hexversion
62
62
except AttributeError:
63
63
    v = 0
64
 
if v >= 0x2030000:
 
64
if v >= 0x2040000:
65
65
    s = sys.version.split()[0]
66
66
else:
67
67
    s = ""
78
78
    AC_MSG_ERROR([
79
79
 
80
80
***** $PYTHON is too old (or broken)
81
 
***** Python 2.3 or newer is required])
 
81
***** Python 2.4 or newer is required])
82
82
fi
83
83
AC_MSG_RESULT($version)
84
84
 
93
93
    res = "not ok"
94
94
else:
95
95
    provided = (2, 5, 8)
96
 
    version = tuple([int(v) for v in email.__version__.split('.')])
 
96
    version = tuple(int(v) for v in email.__version__.split('.'))
97
97
    if provided > version:
98
98
        res = "not ok"
99
99
    else:
249
249
fi
250
250
 
251
251
# new macro for finding group names
252
 
AC_DEFUN(MM_FIND_GROUP_NAME, [
 
252
AC_DEFUN([MM_FIND_GROUP_NAME], [
253
253
# $1 == variable name
254
254
# $2 == user id to check for
255
255
AC_SUBST($1)
281
281
 
282
282
 
283
283
# new macro for finding UIDs
284
 
AC_DEFUN(MM_FIND_USER_NAME, [
 
284
AC_DEFUN([MM_FIND_USER_NAME], [
285
285
# $1 == variable name
286
286
# $2 == user id to check for
287
287
AC_SUBST($1)
583
583
 
584
584
dnl Expand PYTHON path in the scripts, output into build/scriptname
585
585
 
586
 
AC_DEFUN(MM_SCRIPTS, [dnl
 
586
AC_DEFUN([MM_SCRIPTS], [dnl
587
587
bin/add_members \
588
588
bin/arch \
589
589
bin/change_pw \