summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authormosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-12 21:59:40 +0000
committermosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-12 21:59:40 +0000
commitb692eed5eb33642474d2d4a75193c3650ab42e4e (patch)
tree47798c73e7026200c51ddbc957aa8b3d91eab539 /configure
parentcfb890259e8246fc9625a069496b3908ef75bb0e (diff)
downloadmpv-b692eed5eb33642474d2d4a75193c3650ab42e4e.tar.bz2
mpv-b692eed5eb33642474d2d4a75193c3650ab42e4e.tar.xz
Fix for the faad2 compilation test which needs config.h to be present. Patch by Bernd Ernesti <mplayer@lists.veego.de>.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10863 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index f2833de851..d8813b554a 100755
--- a/configure
+++ b/configure
@@ -4309,6 +4309,13 @@ EOF
else
_inc_faad="-I`pwd`/libfaad2"
_faad=yes
+ # the faad check needs a config.h file
+ if test -f "config.h" ; then
+ _rm_config_h=no
+ else
+ _rm_config_h=yes
+ echo "" > config.h
+ fi
# internal faad: check if our dear gcc is able to compile it...
echo "$_cc -c -O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer $CFLAGS $_inc_faad $_inc_extra `pwd`/libfaad2/cfft.c -o $TMPO" >> "$TMPLOG"
if ( $_cc -c -O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer $CFLAGS $_inc_faad $_inc_extra "`pwd`/libfaad2/cfft.c" -o "$TMPO" ) >> "$TMPLOG" 2>&1 ; then
@@ -4317,6 +4324,10 @@ else
_faad=no
echores "no (broken gcc)"
fi
+ # remove a temporarily config.h, which was needed for the faad compile check
+ if test "$_rm_config_h" = yes; then
+ rm config.h
+ fi
fi
fi