fix configure scripts to work on mac with updated macports

This commit is contained in:
Arvid Norberg 2009-08-28 15:36:03 +00:00
parent b3372dced6
commit bf84616aca
2 changed files with 18 additions and 12 deletions

View File

@ -1,14 +1,15 @@
#!/bin/sh
rm -f config.cache
rm -fr autom4te.cache
rm -rf config.log
rm -rf Makefile
chmod a-x docs/*.rst docs/*.htm*
/opt/local/bin/autoheader
/opt/local/bin/aclocal -I m4
/opt/local/bin/glibtool -f
/opt/local/bin/automake -ac
/opt/local/bin/autoconf
./configure --enable-python-binding --with-zlib=shipped --enable-examples=yes --enable-tests=yes
# --with-boost-python=mt-1_35 --with-boost-thread=mt-1_35 --with-boost-system=mt-1_35 --with-boost-filesystem=mt-1_35 --with-boost-regex=mt-1_35 --with-boost-program-options=mt-1_35
make dist check
autoheader
aclocal -I m4
glibtoolize -f
automake -ac
autoconf
./configure --enable-python-binding --with-zlib=shipped --enable-examples=yes --enable-tests=yes --with-boost-system=mt --with-boost-python=mt --with-boost-thread=mt --with-boost-filesystem=mt --with-boost-regex=mt --with-boost-program-options=mt
make -j 8 dist check

View File

@ -59,13 +59,18 @@ AC_DEFUN([AX_PYTHON],
[AC_MSG_CHECKING(for python build information)
AC_MSG_RESULT([])
for python in python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
AC_CHECK_PROGS(PYTHON_BIN, [$python])
# AC_CHECK_PROGS(PYTHON_BIN, [$python])
PYTHON_BIN=$python
ax_python_bin=$PYTHON_BIN
if test x$ax_python_bin != x; then
AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=$ax_python_bin, ax_python_lib=no)
AC_CHECK_HEADER([$ax_python_bin/Python.h],
ax_python_header=/usr/include/$ax_python_bin,
ax_python_header=no)
AC_CHECK_HEADER([$ax_python_bin/Python.h], ax_python_header=/usr/include/$ax_python_bin, ax_python_header=no)
if test $ax_python_lib != no; then
if test $ax_python_header != no; then
break;
fi
fi
AC_CHECK_HEADER([$ax_python_bin/Python.h], ax_python_header=/opt/local/include/$ax_python_bin, ax_python_header=no)
if test $ax_python_lib != no; then
if test $ax_python_header != no; then
break;