aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-06-18 21:42:38 +0000
committerMåns Rullgård <mans@mansr.com>2007-06-18 21:42:38 +0000
commitf32adb22def9af695add203baa63cf8b18816d9c (patch)
treeb1496de523d61859a049bbff26b010797363b023 /configure
parent7a68f7fa22861be70e983db01dad9960a762031a (diff)
downloadffmpeg-f32adb22def9af695add203baa63cf8b18816d9c.tar.gz
move lrintf() check before external lib checks to prevent runtime
errors from these interfering with lrintf() test Originally committed as revision 9364 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/configure b/configure
index 424938e19a..d0a1e58378 100755
--- a/configure
+++ b/configure
@@ -1561,6 +1561,13 @@ for thread in $THREADS_LIST; do
fi
done
+# test for lrintf in math.h
+check_exec <<EOF && lrintf=yes || lrintf=no
+#define _ISOC9X_SOURCE 1
+#include <math.h>
+int main( void ) { return (lrintf(3.999f) > 0)?0:1; }
+EOF
+
enabled_any libamr_nb libamr_wb && enable libamr
# these are off by default, so fail if requested and not available
@@ -1581,13 +1588,6 @@ enabled libfaac && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaa
enabled libfaad && require2 libfaad faad.h faacDecOpen -lfaad
enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lvfw32
-# test for lrintf in math.h
-check_exec <<EOF && lrintf=yes || lrintf=no
-#define _ISOC9X_SOURCE 1
-#include <math.h>
-int main( void ) { return (lrintf(3.999f) > 0)?0:1; }
-EOF
-
_restrict=
for restrict_keyword in restrict __restrict__ __restrict; do
check_cc <<EOF && _restrict=$restrict_keyword && break