AUBIO_CFLAGS=
+AC_CHECK_LIB(m, floorf)
+AUBIO_LIBS="-lm"
+
dnl Enable double precision (no)
AC_ARG_ENABLE(double,
AC_HELP_STRING([--enable-double],[compile in double precision [[default=no]]]),
AM_CONDITIONAL(COMPILE_TESTS,test "${with_testprogs}" != "no")
AC_SUBST(AUBIO_CFLAGS)
+AC_SUBST(AUBIO_LIBS)
dnl Check for swig and python
dnl should check for swig version and python headers
# global flags
AM_CFLAGS = -DAUBIO_PREFIX=\"$(prefix)\" -DPACKAGE=\"@PACKAGE@\" -I$(top_srcdir)/src @AUBIO_CFLAGS@ @LASH_CFLAGS@ @SNDFILE_CFLAGS@ @JACK_CFLAGS@
-AM_LDFLAGS = -L$(top_builddir)/src -laubio @LASH_LIBS@
+AM_LDFLAGS = -L$(top_builddir)/src -laubio @AUBIO_LIBS@ @LASH_LIBS@
# add your programs to this list
bin_PROGRAMS = \