Commit c3167549 authored by michaelni's avatar michaelni

mingw32 configure patch by (Bill Eldridge <bill at rfa dot org>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1351 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a623d18e
...@@ -59,6 +59,7 @@ vorbis="no" ...@@ -59,6 +59,7 @@ vorbis="no"
a52="yes" a52="yes"
a52bin="no" a52bin="no"
win32="no" win32="no"
mingw32="no"
cygwin="no" cygwin="no"
lshared="no" lshared="no"
extralibs="-lm" extralibs="-lm"
...@@ -148,6 +149,13 @@ CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer -mdynamic-no-pic" ...@@ -148,6 +149,13 @@ CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer -mdynamic-no-pic"
;; ;;
esac esac
;; ;;
MINGW32*)
v4l="no"
audio_oss="no"
ffserver="no"
network="no"
mingw32="yes"
;;
CYGWIN*) CYGWIN*)
v4l="no" v4l="no"
audio_oss="yes" audio_oss="yes"
...@@ -272,6 +280,8 @@ for opt do ...@@ -272,6 +280,8 @@ for opt do
;; ;;
--enable-win32) win32="yes" --enable-win32) win32="yes"
;; ;;
--enable-mingw32) mingw32="yes"
;;
--enable-shared) lshared="yes" --enable-shared) lshared="yes"
;; ;;
--disable-mpegaudio-hp) mpegaudio_hp="no" --disable-mpegaudio-hp) mpegaudio_hp="no"
...@@ -343,6 +353,13 @@ if test "$win32" = "yes" ; then ...@@ -343,6 +353,13 @@ if test "$win32" = "yes" ; then
network="no" network="no"
fi fi
if test "$mingw32" = "yes" ; then
cross_prefix=""
v4l="no"
audio_oss="no"
network="no"
fi
cc="${cross_prefix}${cc}" cc="${cross_prefix}${cc}"
ar="${cross_prefix}${ar}" ar="${cross_prefix}${ar}"
ranlib="${cross_prefix}${ranlib}" ranlib="${cross_prefix}${ranlib}"
...@@ -465,6 +482,7 @@ echo " --prefix=PREFIX install in PREFIX [$prefix]" ...@@ -465,6 +482,7 @@ echo " --prefix=PREFIX install in PREFIX [$prefix]"
echo " --enable-mp3lame enable mp3 encoding via libmp3lame [default=no]" echo " --enable-mp3lame enable mp3 encoding via libmp3lame [default=no]"
echo " --enable-vorbis enable vorbis support via libvorbisenc [default=no]" echo " --enable-vorbis enable vorbis support via libvorbisenc [default=no]"
echo " --enable-win32 enable win32 cross compile" 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 " --disable-a52 disable GPL'ed A52 support [default=no]"
echo " --enable-a52bin open liba52.so.0 at runtime [default=no]" echo " --enable-a52bin open liba52.so.0 at runtime [default=no]"
echo " --enable-shared build shared libraries [default=no]" echo " --enable-shared build shared libraries [default=no]"
...@@ -673,6 +691,13 @@ if test "$win32" = "yes" ; then ...@@ -673,6 +691,13 @@ if test "$win32" = "yes" ; then
echo "CONFIG_WIN32=yes" >> config.mak echo "CONFIG_WIN32=yes" >> config.mak
fi 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 if test "$cygwin" = "yes" ; then
# setup correct exesuffix # setup correct exesuffix
echo "CONFIG_WIN32=yes" >> config.mak echo "CONFIG_WIN32=yes" >> config.mak
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment