From: Miroslav Lichvar Date: Thu, 10 Nov 2011 16:21:40 +0000 (+0100) Subject: fix configure to work with multiple python versions (#737998) X-Git-Tag: r0-52-14~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=49d37f0cc7121a8386e4a8f21e5e0f7b614922b1;p=thirdparty%2Fnewt.git fix configure to work with multiple python versions (#737998) --- diff --git a/configure.ac b/configure.ac index b972805..ff78d2b 100644 --- a/configure.ac +++ b/configure.ac @@ -59,7 +59,7 @@ if test "x$with_python" = "xno"; then AC_MSG_RESULT([skipped]) PYTHONVERS= else - PYTHONVERS=$(ls /usr/include/python*/Python.h 2> /dev/null | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null) + PYTHONVERS=$(ls /usr/include/python2.*/Python.h 2> /dev/null | sed 's|/usr/include/\([[^/]]*\)/Python.h|\1|g' | tr '\n' ' ') AC_MSG_RESULT([$PYTHONVERS]) fi AC_SUBST([PYTHONVERS])