diff options
author | pfaedit <pfaedit> | 2007-08-22 20:27:30 +0000 |
---|---|---|
committer | pfaedit <pfaedit> | 2007-08-22 20:27:30 +0000 |
commit | 7202959583ce20f71baa8f68c453240ed4ff5c46 (patch) | |
tree | 59b4fcea24292ccc2eef7ee10d30a114568ba97c /configure.in | |
parent | 9de9aee531b7919c31d96256fa5b239f0795d2a1 (diff) |
Someone complained that ff wouldn't compile with 2.2 python. It compiles fine on my system with 2.2 python (it knows not to use python then), but make the version check even stronger.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.in b/configure.in index f6348f28..37cd6cd1 100644 --- a/configure.in +++ b/configure.in @@ -149,7 +149,9 @@ if test "$python" = "yes" ; then PySubVersion=`echo $PyVersion |sed -e 's/2.//'` PyInc=`python -c "import distutils.sysconfig ; print '%s' % distutils.sysconfig.get_config_var('INCLUDEPY')"` PyLib=`python -c "import distutils.sysconfig ; print '%s/%s' % (distutils.sysconfig.get_config_var('LIBPL'),distutils.sysconfig.get_config_var('LDLIBRARY'))"` - if test "$PySubVersion" \!= "" -a "$PySubVersion" -ge 3 -a -e $PyLib -a -e $PyInc; then + if test "$PySubVersion" \!= "" -a "$PySubVersion" -le 2 ; then + python="no" + elif test "$PySubVersion" \!= "" -a "$PySubVersion" -ge 3 -a -e $PyLib -a -e $PyInc; then PyIncs=`python -c "import distutils.sysconfig ; print '-I%s' % distutils.sysconfig.get_config_var('INCLUDEPY')"` PyLibs=`python -c "import distutils.sysconfig ; print '%s/%s %s' % (distutils.sysconfig.get_config_var('LIBPL'),distutils.sysconfig.get_config_var('LDLIBRARY'),distutils.sysconfig.get_config_var('LIBS'))"` LIBS="$LIBS $PyLibs" |