summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorlumag <lumag@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-05 17:15:09 +0000
committerlumag <lumag@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-05 17:15:09 +0000
commit388a665982919d5a84e4afd97afc55d431c51c5f (patch)
tree369a78c664248b1eb1d95e6717201043c7b1ce29 /configure
parent43d31502fcb77284e9145dff581d271cc85a4cf2 (diff)
downloadmpv-388a665982919d5a84e4afd97afc55d431c51c5f.tar.bz2
mpv-388a665982919d5a84e4afd97afc55d431c51c5f.tar.xz
Improve flac detection a bit. Now you can safely remove all files from
libmpflac subdir, except this ones: defs.h dither.c dither.h private_fast_float_math_hack.h replaygain_synthesis.c replaygain_synthesis.h They are necessary to playback. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11022 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 11 insertions, 3 deletions
diff --git a/configure b/configure
index 019ed83ea6..f086ac33dc 100755
--- a/configure
+++ b/configure
@@ -1098,7 +1098,7 @@ _faad=auto
_faad_local=yes
_xmms=no
_flac=auto
-_external_flac=no
+_external_flac=auto
_css=auto
# dvdnav disabled, it does not work
#_dvdnav=no
@@ -5246,8 +5246,16 @@ fi
echores "$_xmms"
echocheck "FLAC support"
-if test "$_flac" = auto ; then
- if test "$_external_flac" = yes ; then
+if ! test "$_flac" = "no" ; then
+ if ! test -f libmpflac/dither.c ; then
+ _flac=no
+ echores "no (necessary files missing)"
+ break
+ fi
+ if ! test -f libmpflac/stream_decoder.c ; then
+ _external_flac=yes
+ fi
+ if test "$_external_flac" = "yes" ; then
cat > $TMPC << EOF
#include <FLAC/stream_decoder.h>
#include <stdlib.h>