summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-25 18:33:44 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-25 18:33:44 +0000
commit0801ea46a6175cd36225b848d0f53c6486435424 (patch)
tree5beca03c445ed98098ba5e0c50fa91580e11c77c /configure
parent999ac17eba3379c4e6c7f725d366503345ee60e5 (diff)
downloadmpv-0801ea46a6175cd36225b848d0f53c6486435424.tar.bz2
mpv-0801ea46a6175cd36225b848d0f53c6486435424.tar.xz
set HAVE_LRINTF and C99/GNU_SOURCE during internal FAAD compile test
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15817 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure b/configure
index 55716ccfd3..5f0565ec7a 100755
--- a/configure
+++ b/configure
@@ -5486,11 +5486,14 @@ _inc_faad="-I`pwd`/libfaad2"
if test "$_faad_internal" = auto ; then
# the faad check needs a config.h file
if not test -f "config.h" ; then
- > config.h
+ cat > config.h << EOF
+/* C99 lrintf function available */
+$_def_lrintf
+EOF
fi
# internal faad: check if our dear gcc is able to compile it...
cp "`pwd`/libfaad2/cfft.c" $TMPC
- if ( cc_check -c -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer $_inc_faad ); then
+ if ( cc_check -c -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer $_opt_gnu99 -D_GNU_SOURCE $_inc_faad ); then
_faad_internal=yes
else
_faad_internal="no (broken gcc)"