History

configure: add check for w32threads to enable it automatically

Janne Grunau committed 15 years ago

Commit ff3755c1 parent 704af3e1 file · +4 −1Browse files

Unified · Split

configure+4−1
@@ -2447,7 +2447,6 @@ case $target_os in · 2446 unmodified lines
24472447 disable network
24482448 else
24492449 target_os=mingw32
2450− enable_weak w32threads
24512450 fi
24522451 LIBTARGET=i386
24532452 if enabled x86_64; then
@@ -2852,6 +2851,10 @@ check_struct dxva2api.h DXVA_PictureParameters wDecodedPictureIndex · 398 unmodified lines
28522851 disabled zlib || check_lib zlib.h zlibVersion -lz || disable zlib
28532852 disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib
28542853
2854+if ! disabled w32threads && ! enabled pthreads; then
2855+ check_func _beginthreadex && enable w32threads
2856+fi
2857+
28552858 # check for some common methods of building with pthread support
28562859 # do this before the optional library checks as some of them require pthreads
28572860 if ! disabled pthreads && ! enabled w32threads; then

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t