X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=m4%2Fpython.m4;h=d00ac4785c103d78eda7dccc9c366b7668023126;hb=0f16855abc40d8fa7b55032cdce75b2cc472bc17;hp=94a0a4de819411f890c0cf2471c47e87d0a32af7;hpb=7b20aad5bde2d5338e42dadcfe1175b4390744db;p=chaz%2Fopenbox diff --git a/m4/python.m4 b/m4/python.m4 index 94a0a4de..d00ac478 100644 --- a/m4/python.m4 +++ b/m4/python.m4 @@ -10,7 +10,7 @@ AC_DEFUN([PYTHON_DEVEL], python_prefix=${PYTHON%/bin*} # Check for Python include path - AC_MSG_CHECKING([for Python include path]) + AC_MSG_CHECKING([for python include path]) for i in "$python_prefix/include/python$PYTHON_VERSION/" \ "$python_prefix/include/python/" "$python_prefix/" do @@ -26,12 +26,12 @@ AC_DEFUN([PYTHON_DEVEL], then AC_MSG_RESULT([$python_path]) else - AC_MSG_ERROR([cannot find Python include path]) + AC_MSG_ERROR([cannot find python include path]) fi AC_SUBST([PYTHON_CFLAGS], [-I$python_path]) # Check for a Python library - AC_MSG_CHECKING([for Python library]) + AC_MSG_CHECKING([for python library]) PYLIB="" for i in "$python_prefix/lib" \ "$python_prefix/lib/python$PYTHON_VERSION/config" \ @@ -40,12 +40,12 @@ AC_DEFUN([PYTHON_DEVEL], do if test -r "$i/libpython$PYTHON_VERSION.so"; then PYLIB="$i/libpython$PYTHON_VERSION.so" - PYTHON_LIBS="-L$i -l$PYVERSION" + PYTHON_LIBS="-L$i -lpython$PYTHON_VERSION" break else if test -r "$i/lib$PYVERSION.a"; then PYLIB="$i/lib$PYVERSION.a" - PYTHON_LIBS="-L$i -l$PYVERSION -lpthread -ldl -lutil -lm" + PYTHON_LIBS="-L$i -lpython$PYTHON_VERSION -lpthread -ldl -lutil -lm" break else # look for really old versions @@ -61,7 +61,7 @@ AC_DEFUN([PYTHON_DEVEL], then AC_MSG_RESULT([$PYLIB]) else - AC_MSG_ERROR([cannot find Python library]) + AC_MSG_ERROR([cannot find python library]) fi AC_SUBST([PYTHON_LIBS]) ])