diff options
author | Bill Eldridge <bill@rfa.org> | 2002-12-20 22:40:41 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-12-20 22:40:41 +0000 |
commit | 732d9245c936a2e1ed298e4fae9c31e53bfde777 (patch) | |
tree | e02598dbbccbd325427000bc47e1289fdbc450e3 /configure | |
parent | 1cef9527318ac5eef94043f47f70bc0986d73ccb (diff) | |
download | ffmpeg-732d9245c936a2e1ed298e4fae9c31e53bfde777.tar.gz |
mingw32 configure patch by (Bill Eldridge <bill at rfa dot org>)
Originally committed as revision 1351 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -59,6 +59,7 @@ vorbis="no" a52="yes" a52bin="no" win32="no" +mingw32="no" cygwin="no" lshared="no" extralibs="-lm" @@ -148,6 +149,13 @@ CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer -mdynamic-no-pic" ;; esac ;; +MINGW32*) +v4l="no" +audio_oss="no" +ffserver="no" +network="no" +mingw32="yes" +;; CYGWIN*) v4l="no" audio_oss="yes" @@ -272,6 +280,8 @@ for opt do ;; --enable-win32) win32="yes" ;; + --enable-mingw32) mingw32="yes" + ;; --enable-shared) lshared="yes" ;; --disable-mpegaudio-hp) mpegaudio_hp="no" @@ -343,6 +353,13 @@ if test "$win32" = "yes" ; then network="no" fi +if test "$mingw32" = "yes" ; then + cross_prefix="" + v4l="no" + audio_oss="no" + network="no" +fi + cc="${cross_prefix}${cc}" ar="${cross_prefix}${ar}" ranlib="${cross_prefix}${ranlib}" @@ -465,6 +482,7 @@ echo " --prefix=PREFIX install in PREFIX [$prefix]" echo " --enable-mp3lame enable mp3 encoding via libmp3lame [default=no]" echo " --enable-vorbis enable vorbis support via libvorbisenc [default=no]" echo " --enable-win32 enable win32 cross compile" +echo " --enable-mingw32 enable mingw32 native windows compile" echo " --disable-a52 disable GPL'ed A52 support [default=no]" echo " --enable-a52bin open liba52.so.0 at runtime [default=no]" echo " --enable-shared build shared libraries [default=no]" @@ -673,6 +691,13 @@ if test "$win32" = "yes" ; then echo "CONFIG_WIN32=yes" >> config.mak fi +if test "$mingw32" = "yes" ; then + echo "#define CONFIG_WIN32 1" >> $TMPH + echo "CONFIG_WIN32=yes" >> config.mak + echo "#define __MINGW32__ 1" >> $TMPH + echo "__MINGW32__=1" >> config.mak +fi + if test "$cygwin" = "yes" ; then # setup correct exesuffix echo "CONFIG_WIN32=yes" >> config.mak |