]> git.sesse.net Git - ffmpeg/commitdiff
configure: properly check for mingw-w64 through installed headers.
authorRamiro Polla <ramiro.polla@gmail.com>
Sat, 10 Jul 2010 04:08:02 +0000 (04:08 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Sat, 10 Jul 2010 04:08:02 +0000 (04:08 +0000)
mingw-w64 can also target 32-bit code.

Originally committed as revision 24156 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 091f9078ed3a2fe96f466973e8f2a4e76bca6911..c35e3e29ec27ca9ba2283285a19c180e7fd9026f 100755 (executable)
--- a/configure
+++ b/configure
@@ -2271,7 +2271,7 @@ case $target_os in
         objformat="win32"
         enable dos_paths
         check_cflags -fno-common
-        if ! enabled x86_64; then
+        if ! check_cpp_condition _mingw.h "defined (__MINGW64_VERSION_MAJOR)"; then
             check_cpp_condition _mingw.h "(__MINGW32_MAJOR_VERSION > 3) || (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" ||
                 die "ERROR: MinGW runtime version must be >= 3.15."
             enabled_any avisynth vfwcap_indev &&