From 49d37f0cc7121a8386e4a8f21e5e0f7b614922b1 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Nov 10 2011 16:21:40 +0000 Subject: 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])