]> git.videolan.org Git - x264.git/commitdiff
Add GPAC version check
authorYusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Tue, 16 Feb 2010 19:05:21 +0000 (11:05 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 23 Feb 2010 09:46:09 +0000 (01:46 -0800)
configure

index 25f54588da123e373e7d7b9cdb382e6b59427b23..d0ff43ad35a7eab3e29db84d927a445044a9eebb 100755 (executable)
--- a/configure
+++ b/configure
@@ -584,7 +584,13 @@ if [ $SYS = MINGW ]; then
 fi
 if [ "$mp4_output" = "auto" ] ; then
     mp4_output="no"
-    cc_check gpac/isomedia.h "$MP4_LDFLAGS" && mp4_output="yes"
+    if cc_check gpac/isomedia.h "$MP4_LDFLAGS" ; then
+        if cc_check gpac/isomedia.h "$MP4_LDFLAGS" "gf_isom_set_pixel_aspect_ratio(0,0,0,0,0);" ; then
+            mp4_output="yes"
+        else
+            echo "Warning: gpac is too old, update to 2007-06-21 UTC or later"
+        fi
+    fi
 fi
 if [ "$mp4_output" = "yes" ] ; then
     define MP4_OUTPUT