aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorEugene Sandulenko2004-01-14 02:29:49 +0000
committerEugene Sandulenko2004-01-14 02:29:49 +0000
commit05b9f4ddf6d519b467280a1dd129054d83075242 (patch)
treec0e8da35f110c364184ad6a45aec574261d93414 /configure
parent683a1561a25133841db1f2ee1a65907dfabf2523 (diff)
downloadscummvm-rg350-05b9f4ddf6d519b467280a1dd129054d83075242.tar.gz
scummvm-rg350-05b9f4ddf6d519b467280a1dd129054d83075242.tar.bz2
scummvm-rg350-05b9f4ddf6d519b467280a1dd129054d83075242.zip
Fix libmpeg2 version check. FreeBSD ports collection usually lags with
newer package version, so current one has libmpeg2 0.3.1. Although it got passed by configure script. Now it is fixed. svn-id: r12366
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure b/configure
index 3a9a792bed..91edb0baef 100755
--- a/configure
+++ b/configure
@@ -567,14 +567,17 @@ else
fi
echo "$_zlib"
-echocheck "mpeg2"
+echocheck "mpeg2 - version >= 0.4.0"
if test "$_mpeg2" = auto ; then
_mpeg2=no
cat > $TMPC << EOF
#include <inttypes.h>
#include <mpeg2dec/mpeg2.h>
-int main(void) {
- #ifdef MPEG2_RELEASE
+int main(void) {
+ /* mpeg2_state_t first appears in 0.4.0 */
+ mpeg2_state_t state;
+
+ #ifdef MPEG2_RELEASE
if (MPEG2_RELEASE >= MPEG2_VERSION(0, 4, 0))
return 0;
#endif