mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
configure: check for _beginthreadex
fixes thread support detection in e.g., cross-compiles/mingw installs without libpthread, the behavior is unchanged in mingw installs with libpthread. in the latter case although libpthread is detected the windows api (_beginthreadex) path is being used. Change-Id: Ie5f39f15f380731a1006a2497496d627f08fa103
This commit is contained in:
parent
1549d62067
commit
40b086f78a
@ -161,7 +161,11 @@ if test "$enable_threading" = "yes"; then
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
CC="$PTHREAD_CC"
|
||||
],
|
||||
[enable_threading=no])
|
||||
[AC_CHECK_FUNC([_beginthreadex],
|
||||
[AC_DEFINE([WEBP_USE_THREAD], [1],
|
||||
[Undefine this to disable thread
|
||||
support.])],
|
||||
[enable_threading=no])])
|
||||
fi
|
||||
AC_MSG_NOTICE([checking if threading is enabled... ${enable_threading-no}])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user