forked from eucalyptus/eucalyptus
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't blow up when python 3 happens to be installed
- Loading branch information
Showing
3 changed files
with
58 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#! /bin/sh | ||
# Guess values for system-dependent variables and create Makefiles. | ||
# Generated by GNU Autoconf 2.67 for Eucalyptus eee-3.0.0. | ||
# Generated by GNU Autoconf 2.66 for Eucalyptus eee-3.0.0. | ||
# | ||
# Report bugs to <[email protected]>. | ||
# | ||
|
@@ -767,9 +767,8 @@ do | |
fi | ||
|
||
case $ac_option in | ||
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
*=) ac_optarg= ;; | ||
*) ac_optarg=yes ;; | ||
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
*) ac_optarg=yes ;; | ||
esac | ||
|
||
# Accept the important Cygnus configure options, so we can diagnose typos. | ||
|
@@ -1412,7 +1411,7 @@ test -n "$ac_init_help" && exit $ac_status | |
if $ac_init_version; then | ||
cat <<\_ACEOF | ||
Eucalyptus configure eee-3.0.0 | ||
generated by GNU Autoconf 2.67 | ||
generated by GNU Autoconf 2.66 | ||
Copyright (C) 2010 Free Software Foundation, Inc. | ||
This configure script is free software; the Free Software Foundation | ||
|
@@ -1484,7 +1483,7 @@ $as_echo "$ac_try_echo"; } >&5 | |
mv -f conftest.er1 conftest.err | ||
fi | ||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
test $ac_status = 0; } > conftest.i && { | ||
test $ac_status = 0; } >/dev/null && { | ||
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
test ! -s conftest.err | ||
}; then : | ||
|
@@ -1547,7 +1546,7 @@ if ac_fn_c_try_cpp "$LINENO"; then : | |
else | ||
ac_header_preproc=no | ||
fi | ||
rm -f conftest.err conftest.i conftest.$ac_ext | ||
rm -f conftest.err conftest.$ac_ext | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
$as_echo "$ac_header_preproc" >&6; } | ||
|
@@ -1888,7 +1887,7 @@ This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | ||
It was created by Eucalyptus $as_me eee-3.0.0, which was | ||
generated by GNU Autoconf 2.67. Invocation command line was | ||
generated by GNU Autoconf 2.66. Invocation command line was | ||
$ $0 $@ | ||
|
@@ -2146,7 +2145,7 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "failed to load site script $ac_site_file | ||
See \`config.log' for more details" "$LINENO" 5 ; } | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
fi | ||
done | ||
|
@@ -2545,7 +2544,7 @@ fi | |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "no acceptable C compiler found in \$PATH | ||
See \`config.log' for more details" "$LINENO" 5 ; } | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
# Provide some information about the compiler. | ||
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
|
@@ -2660,7 +2659,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 | |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error 77 "C compiler cannot create executables | ||
See \`config.log' for more details" "$LINENO" 5 ; } | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
$as_echo "yes" >&6; } | ||
|
@@ -2703,7 +2702,7 @@ else | |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
See \`config.log' for more details" "$LINENO" 5 ; } | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
fi | ||
rm -f conftest conftest$ac_cv_exeext | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
|
@@ -2762,7 +2761,7 @@ $as_echo "$ac_try_echo"; } >&5 | |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "cannot run C compiled programs. | ||
If you meant to cross compile, use \`--host'. | ||
See \`config.log' for more details" "$LINENO" 5 ; } | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
fi | ||
fi | ||
fi | ||
|
@@ -2814,7 +2813,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 | |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
See \`config.log' for more details" "$LINENO" 5 ; } | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
fi | ||
rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
fi | ||
|
@@ -3077,7 +3076,7 @@ else | |
# Broken: fails on valid input. | ||
continue | ||
fi | ||
rm -f conftest.err conftest.i conftest.$ac_ext | ||
rm -f conftest.err conftest.$ac_ext | ||
# OK, works on sane cases. Now check whether nonexistent headers | ||
# can be detected and how. | ||
|
@@ -3093,11 +3092,11 @@ else | |
ac_preproc_ok=: | ||
break | ||
fi | ||
rm -f conftest.err conftest.i conftest.$ac_ext | ||
rm -f conftest.err conftest.$ac_ext | ||
done | ||
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
rm -f conftest.i conftest.err conftest.$ac_ext | ||
rm -f conftest.err conftest.$ac_ext | ||
if $ac_preproc_ok; then : | ||
break | ||
fi | ||
|
@@ -3136,7 +3135,7 @@ else | |
# Broken: fails on valid input. | ||
continue | ||
fi | ||
rm -f conftest.err conftest.i conftest.$ac_ext | ||
rm -f conftest.err conftest.$ac_ext | ||
# OK, works on sane cases. Now check whether nonexistent headers | ||
# can be detected and how. | ||
|
@@ -3152,18 +3151,18 @@ else | |
ac_preproc_ok=: | ||
break | ||
fi | ||
rm -f conftest.err conftest.i conftest.$ac_ext | ||
rm -f conftest.err conftest.$ac_ext | ||
done | ||
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
rm -f conftest.i conftest.err conftest.$ac_ext | ||
rm -f conftest.err conftest.$ac_ext | ||
if $ac_preproc_ok; then : | ||
else | ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
See \`config.log' for more details" "$LINENO" 5 ; } | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
fi | ||
ac_ext=c | ||
|
@@ -3544,7 +3543,7 @@ fi | |
$as_echo "$ac_cv_build" >&6; } | ||
case $ac_cv_build in | ||
*-*-*) ;; | ||
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | ||
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||
esac | ||
build=$ac_cv_build | ||
ac_save_IFS=$IFS; IFS='-' | ||
|
@@ -3711,7 +3710,7 @@ if test "${am_cv_pathless_PYTHON+set}" = set; then : | |
$as_echo_n "(cached) " >&6 | ||
else | ||
for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do | ||
for am_cv_pathless_PYTHON in python python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do | ||
test "$am_cv_pathless_PYTHON" = none && break | ||
prog="import sys | ||
# split strings by '.' and convert to numeric. Append some zeros | ||
|
@@ -3900,11 +3899,28 @@ $as_echo "$am_cv_python_pyexecdir" >&6; } | |
fi | ||
if ! echo "$PYTHON_VERSION" | grep -q '^2\.'; then | ||
# We picked up python 3 | ||
echo "Found Python version $PYTHON_VERSION; expected version 2.x" | ||
echo "Specify a path to Python 2 with the PYTHON environment variable." | ||
exit 1 | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is < 3.0" >&5 | ||
$as_echo_n "checking whether $PYTHON version is < 3.0... " >&6; } | ||
prog="import sys | ||
# split strings by '.' and convert to numeric. Append some zeros | ||
# because we need at least 4 digits for the hex conversion. | ||
# map returns an iterator in Python 3.0 and a list in 2.x | ||
minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0] | ||
minverhex = 0 | ||
# xrange is not present in Python 3.0 and range returns an iterator | ||
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] | ||
sys.exit(sys.hexversion < minverhex)" | ||
if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 | ||
($PYTHON -c "$prog") >&5 2>&5 | ||
ac_status=$? | ||
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
(exit $ac_status); }; then : | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
$as_echo "no" >&6; } | ||
as_fn_error $? "Python >= 3.0 is not supported" "$LINENO" 5 | ||
else | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
$as_echo "yes" >&6; } | ||
fi | ||
# Fix the paths for includes and libraries | ||
|
@@ -4288,7 +4304,7 @@ fi | |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
as_fn_error $? "no acceptable C compiler found in \$PATH | ||
See \`config.log' for more details" "$LINENO" 5 ; } | ||
See \`config.log' for more details" "$LINENO" 5; } | ||
# Provide some information about the compiler. | ||
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
|
@@ -7923,7 +7939,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
# values after options handling. | ||
ac_log=" | ||
This file was extended by Eucalyptus $as_me eee-3.0.0, which was | ||
generated by GNU Autoconf 2.67. Invocation command line was | ||
generated by GNU Autoconf 2.66. Invocation command line was | ||
CONFIG_FILES = $CONFIG_FILES | ||
CONFIG_HEADERS = $CONFIG_HEADERS | ||
|
@@ -7985,7 +8001,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
ac_cs_version="\\ | ||
Eucalyptus config.status eee-3.0.0 | ||
configured by $0, generated by GNU Autoconf 2.67, | ||
configured by $0, generated by GNU Autoconf 2.66, | ||
with options \\"\$ac_cs_config\\" | ||
Copyright (C) 2010 Free Software Foundation, Inc. | ||
|
@@ -8005,16 +8021,11 @@ ac_need_defaults=: | |
while test $# != 0 | ||
do | ||
case $1 in | ||
--*=?*) | ||
--*=*) | ||
ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
ac_shift=: | ||
;; | ||
--*=) | ||
ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
ac_optarg= | ||
ac_shift=: | ||
;; | ||
*) | ||
ac_option=$1 | ||
ac_optarg=$2 | ||
|
@@ -8036,7 +8047,6 @@ do | |
$ac_shift | ||
case $ac_optarg in | ||
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
'') as_fn_error $? "missing file argument" ;; | ||
esac | ||
as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
ac_need_defaults=false;; | ||
|
@@ -8116,7 +8126,7 @@ do | |
"tools/eucalyptus-cloud") CONFIG_FILES="$CONFIG_FILES tools/eucalyptus-cloud:tools/eucalyptus-cloud.in" ;; | ||
"tools/eucalyptus-nc") CONFIG_FILES="$CONFIG_FILES tools/eucalyptus-nc:tools/eucalyptus-nc.in" ;; | ||
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | ||
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | ||
esac | ||
done | ||
|
@@ -8431,7 +8441,7 @@ do | |
esac | ||
case $ac_mode$ac_tag in | ||
:[FHL]*:*);; | ||
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | ||
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | ||
:[FH]-) ac_tag=-:-;; | ||
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
esac | ||
|
@@ -8459,7 +8469,7 @@ do | |
[\\/$]*) false;; | ||
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
esac || | ||
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | ||
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | ||
esac | ||
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
as_fn_append ac_file_inputs " '$ac_f'" | ||
|
@@ -8486,7 +8496,7 @@ $as_echo "$as_me: creating $ac_file" >&6;} | |
case $ac_tag in | ||
*:-:* | *:-) cat >"$tmp/stdin" \ | ||
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
esac | ||
;; | ||
esac | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters