diff options
| author | Romain Chantereay <rchantereau@entrouvert.com> | 2004-09-07 14:51:23 +0000 |
|---|---|---|
| committer | Romain Chantereay <rchantereau@entrouvert.com> | 2004-09-07 14:51:23 +0000 |
| commit | a187ddc0d8a257f34b9adaa19a170d48594782cb (patch) | |
| tree | 4ed7b01669bb49f2c42caeedb7c05d76dd0b4744 | |
| parent | 5fe9c9cbc9bee3718441b310cbccc30d548010cb (diff) | |
Firsts fixes in order to compile Python binding under Darwin.
| -rw-r--r-- | configure.ac | 8 | ||||
| -rw-r--r-- | python/Makefile.am | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 3f45a9a9..86e2af95 100644 --- a/configure.ac +++ b/configure.ac @@ -37,6 +37,7 @@ dnl Perform host specific configuration dnl ========================================================================== NULL= MINGW=0 +DARWIN=0 dnl For java sun environment automagic include subdir guessing. (dirty ? No...) SUN_EXTRA_INCLUDE= case "${host}" in @@ -81,6 +82,9 @@ dnl fi *linux*) SUN_EXTRA_INCLUDE="linux" ;; + *Darwin*) + DARWIN=1 + ;; esac @@ -619,9 +623,9 @@ AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) -dnl Temporaly +dnl Dirty system often means dirty hacks... AM_CONDITIONAL(MINGW, test $MINGW == 1) -AM_CONDITIONAL(WITH_PYTHON, test 1 -eq 0) +AM_CONDITIONAL(DARWIN, test $DARWIN == 1) dnl ========================================================================== diff --git a/python/Makefile.am b/python/Makefile.am index 893f623d..273c99a3 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -7,8 +7,11 @@ python_LTLIBRARIES = _lasso.la _lasso_la_SOURCES = lasso_wrap.c _lasso_la_CFLAGS = $(LASSO_CFLAGS) -DSWIG_COBJECT_TYPES $(PY_CFLAGS) _lasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la $(LASSO_LIBS) +if DARWIN +_lasso_la_LDFLAGS = -no-undefined -module -avoid-version -Wl,-F. -Wl,-F. -bundle -framework Python +else _lasso_la_LDFLAGS = -no-undefined -module -avoid-version - +endif lasso_wrap.c lasso.py: $(top_srcdir)/swig/Lasso.i $(SWIG) -v -python -module lasso -o lasso_wrap.c $< |
