12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #! /bin/sh
- . test-init.sh
- unset PYTHON
- cat >>configure.ac <<'EOF'
- m4_define([_AM_PYTHON_INTERPRETER_LIST], [IShouldNotExist1 IShouldNotExist2])
- AM_PATH_PYTHON
- echo PYTHON = $PYTHON
- test "$PYTHON" = : || exit 1
- EOF
- : > Makefile.am
- $ACLOCAL
- $AUTOCONF
- ./configure >stdout 2>stderr && { cat stdout; cat stderr >&2; exit 1; }
- cat stdout
- cat stderr >&2
- grep 'checking for IShouldNotExist1' stdout
- grep 'checking for IShouldNotExist2' stdout
- grep 'no suitable Python interpreter found' stderr
- sed 's/AM_PATH_PYTHON/AM_PATH_PYTHON(,,:)/' configure.ac >configure.tmp
- mv -f configure.tmp configure.ac
- $ACLOCAL --force
- $AUTOCONF --force
- ./configure
- ./configure PYTHON=foo >stdout && { cat stdout; exit 1; }
- cat stdout
- grep 'PYTHON = foo' stdout
- :
|