From: Paul Brossier Date: Mon, 30 May 2005 08:07:40 +0000 (+0000) Subject: fix compilation of swig/python on macosx X-Git-Tag: bzr2git~894 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d09cad2754dc34e0ba8e4d4d0df34c9e675055d2;p=aubio.git fix compilation of swig/python on macosx --- diff --git a/configure.ac b/configure.ac index 77d81898..002ecd17 100644 --- a/configure.ac +++ b/configure.ac @@ -161,6 +161,20 @@ AM_CONDITIONAL(SWIGFOUND, test "${SWIG}" != "no") AM_PATH_PYTHON AM_CONDITIONAL(PYTHONFOUND, test "${PYTHON}" != "no") +#if PYTHONFOUND +case "${host_os}" in +darwin*) + SWCFLAGS="-Wno-long-double" + SWLDFLAGS="-bundle -framework python -L${prefix}/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}" + ;; +*) + SWLDFLAGS="-shared" + ;; +esac + +AC_SUBST(SWCFLAGS) +AC_SUBST(SWLDFLAGS) + AC_PATH_PROG(DOCBOOK_TO_MAN,docbook-to-man,no) AM_CONDITIONAL(DOCBOOKFOUND, test "${DOCBOOK_TO_MAN}" != "no")