aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJamie Bullock <jamie@postlude.co.uk>2007-09-04 19:07:55 +0000
committerJamie Bullock <jamie@postlude.co.uk>2007-09-04 19:07:55 +0000
commit280bf6f6ba2c6ad6d4f470573ca23d72541813c1 (patch)
tree7c969fa59f5cee115b7a405ad45221d52f9ed1b2 /configure.in
parente80ffb5d91cd3e017b5549e912a4e93f7bf03572 (diff)
downloadLibXtract-280bf6f6ba2c6ad6d4f470573ca23d72541813c1.tar.gz
LibXtract-280bf6f6ba2c6ad6d4f470573ca23d72541813c1.tar.bz2
LibXtract-280bf6f6ba2c6ad6d4f470573ca23d72541813c1.zip
Added basic SWIG wrapper generator (use ./configure --enable-swig etc)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in34
1 files changed, 29 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index 9c4abbe..285ab37 100644
--- a/configure.in
+++ b/configure.in
@@ -4,13 +4,13 @@ m4_define(libxtract_major_version, 0)
# Increment for feature additions and enhancements
m4_define(libxtract_minor_version, 4)
# Increment for fixes
-m4_define(libxtract_fix_version, 7)
+m4_define(libxtract_fix_version, 8)
m4_define(libxtract_version, libxtract_major_version.libxtract_minor_version.libxtract_fix_version)
PACKAGE=libxtract
-AC_INIT(libxtract, libxtract_version, bugs@postlude.co.uk)
+AC_INIT(libxtract, libxtract_version, libxtract-devel@lists.sourceforge.net)
AC_DEFINE(LIBXTRACT_VERSION, libxtract_version, [LibXtract Version])
AM_INIT_AUTOMAKE($PACKAGE, $LIBXTRACT_VERSION)
AM_CONFIG_HEADER(config.h)
@@ -64,7 +64,7 @@ AC_ARG_ENABLE(simpletest,
# age to 0.
XTRACT_SO_VERSION=0:0:0
-CFLAGS="$CFLAGS -pedantic -ansi -Wall -Werror -std=c99 -I/usr/local/include"
+CFLAGS="$CFLAGS -pedantic -ansi -fno-strict-aliasing -Wall -std=c99 -I/usr/local/include"
LDFLAGS="$LDFLAGS -lm"
AC_ARG_WITH(pd_dir,
@@ -124,6 +124,7 @@ fi
AM_CONDITIONAL(BUILD_PD_EXAMPLE, test "x${pd_example}" = 'xtrue')
+
dnl Enable debugging (no)
AC_ARG_ENABLE(debug,
[ --enable-debug[[=value]] compile with debug [[default=no]]],
@@ -135,6 +136,25 @@ then
CFLAGS="$CFLAGS -O0 -ggdb -g"
fi
+AC_ARG_ENABLE(swig,
+ [ --enable-swig Generate swig bindings],
+ [case "${enableval}" in
+ yes) swig=true ;;
+ no) swig=false ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-swig) ;;
+ esac],[swig=false])
+
+
+dnl SWIG stuff
+if [[ "$swig" = "true" ]] ; then
+ AC_PROG_SWIG(1.3.21)
+ AM_PATH_PYTHON
+ SWIG_PYTHON
+ AC_DEFINE([BUILD_SWIG], [1], [Build the swig bindings])
+fi
+
+AM_CONDITIONAL(BUILD_SWIG, test "x${swig}" = 'xtrue')
+
dnl ------------------------------------------
dnl ---- do some magic to gues the host opsys
dnl ---- taken from libvorbis configure.in
@@ -212,7 +232,7 @@ AC_SUBST(PD_SOURCES)
AC_CONFIG_FILES([doc/documentation.doxygen
libxtract.pc])
-AC_OUTPUT(Makefile src/Makefile xtract/Makefile doc/Makefile examples/Makefile examples/puredata/Makefile examples/simpletest/Makefile)
+AC_OUTPUT(Makefile src/Makefile xtract/Makefile doc/Makefile examples/Makefile examples/puredata/Makefile examples/simpletest/Makefile swig/Makefile)
echo
echo "**************************************************************"
@@ -240,7 +260,11 @@ if test "$pd_example" = "true"; then
else
echo "PD external: no"
fi
-
+if test "$swig" == "true"; then
+ echo "SWIG Python bindings: yes"
+else
+ echo "SWIG Python bindings: no"
+fi
echo
echo "**************************************************************"
echo