I'm trying to get autofoo to test for a *maximum* version of Python rather than a minimum. Example:

```
AC_REQUIRE([AM_PATH_PYTHON([2.7])])

```

... will test for Python >= 2.7, and will probably turn up with /usr/bin/python3. I want it to return nothing greater than python2.7, however.

Is there a straightforward way to do this? I asked around, and so far the best response I've gotten is, "rewrite the macro."

Thanks in advance!