Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b89910f

Browse files
committed
Merged revisions 74072 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r74072 | alexandre.vassalotti | 2009-07-17 20:31:06 -0400 (Fri, 17 Jul 2009) | 5 lines Add a check to ensure the correct autoconf version is used for generating the configure script. Original idea by Martin von Löwis. ........
1 parent 8094660 commit b89910f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

configure.in

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@ dnl NOTE: autoconf 2.64 doesn't seem to work (use 2.61).
66
# Set VERSION so we only need to edit in one place (i.e., here)
77
m4_define(PYTHON_VERSION, 3.2)
88

9+
dnl Some m4 magic to ensure that the configure script is generated
10+
dnl by the correct autoconf version.
11+
m4_define([version_required],
12+
[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]), [$1]), 0,
13+
[],
14+
[m4_fatal([Autoconf version $1 is required for Python], 63)])
15+
])
16+
version_required(2.61)
17+
918
AC_REVISION($Revision$)
10-
AC_PREREQ(2.61)
1119
AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/)
1220
AC_CONFIG_SRCDIR([Include/object.h])
1321
AC_CONFIG_HEADER(pyconfig.h)

0 commit comments

Comments
 (0)