summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorzuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-16 06:34:51 +0000
committerzuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-16 06:34:51 +0000
commitc240bcd5aa5920f97b70033917770a2fb5ba7ec2 (patch)
tree081f97c9212b7e0b87f5e3ae880dcab7a3fbb55a /configure
parent40b96432a1e0e27d92c946ba901d8374a3e94f3d (diff)
downloadmpv-c240bcd5aa5920f97b70033917770a2fb5ba7ec2.tar.bz2
mpv-c240bcd5aa5920f97b70033917770a2fb5ba7ec2.tar.xz
Use native Windows thread API when pthreads isn't available.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23788 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure b/configure
index 0f63f3d599..23051f0663 100755
--- a/configure
+++ b/configure
@@ -270,6 +270,7 @@ Optional features:
--disable-ftp disable FTP support [enabled]
--disable-vstream disable TiVo vstream client support [autodetect]
--disable-pthreads disable Posix threads support [autodetect]
+ --disable-w32threads disable Win32 threads support [autodetect]
--disable-ass disable internal SSA/ASS subtitle support [autodetect]
--enable-rpath enable runtime linker path for extra libs [disabled]
@@ -644,6 +645,7 @@ _ftp=yes
_musepack=auto
_vstream=auto
_pthreads=auto
+_w32threads=auto
_ass=auto
_rpath=no
_asmalign_pot=auto
@@ -1061,6 +1063,8 @@ for ac_option do
--disable-vstream) _vstream=no ;;
--enable-pthreads) _pthreads=yes ;;
--disable-pthreads) _pthreads=no ;;
+ --enable-w32threads) _w32threads=yes ;;
+ --disable-w32threads) _w32threads=no ;;
--enable-ass) _ass=yes ;;
--disable-ass) _ass=no ;;
--enable-rpath) _rpath=yes ;;
@@ -3046,6 +3050,18 @@ else
fi
echores "$_pthreads"
+echocheck "w32threads"
+if test "$_pthreads" = yes ; then
+ _res_comment="using pthread instead"
+ _w32threads=no
+fi
+if test "$_w32threads" = auto ; then
+ _w32threads=no
+ mingw32 && _w32threads=yes
+fi
+test "$_w32threads" = yes && _def_threads='#define HAVE_THREADS 1'
+echores "$_w32threads"
+
echocheck "rpath"
netbsd &&_rpath=yes
if test "$_rpath" = yes ; then
@@ -7403,6 +7419,7 @@ EXTRALIBS_MENCODER = $_libs_mencoder
HAVE_MLIB = $_mlib
HAVE_PTHREADS = $_pthreads
+HAVE_W32THREADS = $_w32threads
HAVE_XVMC_ACCEL = $_xvmc