configure.ac: Fix lrint/lrintf checks to actually work. These functions are in libm...
authorSebastian Dröge <slomo@circular-chaos.org>
Fri, 21 Mar 2008 13:27:47 +0000 (13:27 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 21 Mar 2008 13:27:47 +0000 (13:27 +0000)
Original commit message from CVS:
* configure.ac:
Fix lrint/lrintf checks to actually work. These functions are
in libm on Linux at least so try to link to it.

ChangeLog
common
configure.ac

index 20b52b8fd5a02740cf1bcb1d80c2418c6a796842..5193230a51e7f539cec3fc1cf8678c10a55b1866 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-21  Sebastian Dröge  <slomo@circular-chaos.org>
+
+       * configure.ac:
+       Fix lrint/lrintf checks to actually work. These functions are
+       in libm on Linux at least so try to link to it.
+
 2008-03-21  Jan Schmidt  <jan.schmidt@sun.com>
 
        * configure.ac:
diff --git a/common b/common
index 170f8e91adc7157f6e708ffa58ca22d10e4e45da..9a358e5cc3977fd6121f12dd25a358081fd77041 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 170f8e91adc7157f6e708ffa58ca22d10e4e45da
+Subproject commit 9a358e5cc3977fd6121f12dd25a358081fd77041
index 983b052754f6b7b16cb1a621ad5626e3450e0417..17364d74ed75ae086858714cb4c5b89be635b528 100644 (file)
@@ -230,8 +230,11 @@ AC_FUNC_FSEEKO
 
 dnl Check for fast float to int casting as defined in C99
 dnl used in gst-libs/gst/floatcast/floatcast.h
+save_libs=$LIBS
+LIBS="$LIBS $LIBM"
 AC_C99_FUNC_LRINT
 AC_C99_FUNC_LRINTF
+LIBS=$save_libs
 
 dnl Check for a way to display the function name in debug output
 AG_GST_CHECK_FUNCTION