comparison m4/ax_python.m4 @ 224:d9ba8fa961e7

fix ax_python as done in libtorrent
author Carl Byington <carl@five-ten-sg.com>
date Tue, 23 Jun 2009 16:08:39 -0700
parents 06d759f640f6
children bfc35fd55254
comparison
equal deleted inserted replaced
223:a60af76317ab 224:d9ba8fa961e7
57 57
58 AC_DEFUN([AX_PYTHON], 58 AC_DEFUN([AX_PYTHON],
59 [AC_MSG_CHECKING(for python build information) 59 [AC_MSG_CHECKING(for python build information)
60 AC_MSG_RESULT([]) 60 AC_MSG_RESULT([])
61 for python in python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do 61 for python in python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
62 AC_CHECK_PROGS(PYTHON_BIN, [$python]) 62 AC_CHECK_PROGS(PYTHON_BIN, [$python])
63 ax_python_bin=$PYTHON_BIN 63 ax_python_bin=$PYTHON_BIN
64 if test x$ax_python_bin != x; then 64 if test x$ax_python_bin != x; then
65 AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=$ax_python_bin, ax_python_lib=no) 65 AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=$ax_python_bin, ax_python_lib=no)
66 AC_CHECK_HEADER([$ax_python_bin/Python.h], 66 AC_CHECK_HEADER([$ax_python_bin/Python.h],
67 [[ax_python_header=`locate $ax_python_bin/Python.h | sed -e s,/Python.h,,`]], 67 [[ax_python_header=$includedir/$ax_python_bin]],
68 ax_python_header=no) 68 ax_python_header=no)
69 if test $ax_python_lib != no; then 69 if test $ax_python_lib != no; then
70 if test $ax_python_header != no; then 70 if test $ax_python_header != no; then
71 break; 71 break;
72 fi 72 fi
73 fi 73 fi
74 fi 74 fi
75 done 75 done
76 if test x$ax_python_bin = x; then 76 if test x$ax_python_bin = x; then
77 ax_python_bin=no 77 ax_python_bin=no
78 fi 78 fi
79 if test x$ax_python_header = x; then 79 if test x$ax_python_header = x; then