From d98d0d6387d30d13221914154e72ab6d97e5b933 Mon Sep 17 00:00:00 2001 From: Kamal Mostafa Date: Thu, 21 Mar 2013 13:04:35 -0700 Subject: [PATCH] (portability) link with -lm explicitly We need to explicitly link with -lm since we actually call lroundf() and sin(). --- config.h.in | 3 +++ configure.ac | 2 ++ 2 files changed, 5 insertions(+) diff --git a/config.h.in b/config.h.in index 1dfb8cf..6c364e9 100644 --- a/config.h.in +++ b/config.h.in @@ -1,5 +1,8 @@ /* config.h.in. Generated from configure.ac by autoheader. */ +/* Define to 1 if you have the `m' library (-lm). */ +#undef HAVE_LIBM + /* Name of package */ #undef PACKAGE diff --git a/configure.ac b/configure.ac index b50a70b..306c9f2 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,8 @@ AC_PROG_CC # Configure dependency libs +AC_CHECK_LIB([m],[lroundf]) + # fftw3f deps_packages+=" fftw3f"