shithub: aubio

Download patch

ref: d09cad2754dc34e0ba8e4d4d0df34c9e675055d2
parent: 80c0417c84d6f98064b7aa2ac5d9b22c496e68df
author: Paul Brossier <piem@altern.org>
date: Mon May 30 04:07:40 EDT 2005

fix compilation of swig/python on macosx

--- a/configure.ac
+++ b/configure.ac
@@ -161,6 +161,20 @@
 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")