shithub: aubio

Download patch

ref: 5ddcdf2ecee62c5889e9d07d4e0d84cf75ef5859
parent: 2b4d006de9ceab82bf89ff90c66a5e6d23b787e0
author: Paul Brossier <piem@piem.org>
date: Sun Nov 15 10:31:11 EST 2009

configure.ac: add AUBIO_LIBS, now needs only -lm (closes: #553930)

--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,9 @@
 
 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]]]),
@@ -231,6 +234,7 @@
 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
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -1,6 +1,6 @@
 # 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 = \