mirror of
https://github.com/encounter/SDL.git
synced 2025-12-21 18:59:15 +00:00
Allow emscripten platform to build without threads
This commit is contained in:
11
configure.ac
11
configure.ac
@@ -526,11 +526,12 @@ fi
|
||||
#AC_ARG_ENABLE(threads,
|
||||
#[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
|
||||
# , enable_threads=yes)
|
||||
#if test x$enable_threads != xyes; then
|
||||
# AC_DEFINE(SDL_THREADS_DISABLED, 1, [ ])
|
||||
#else
|
||||
# SUMMARY_modules="${SUMMARY_modules} threads"
|
||||
#fi
|
||||
enable_threads=yes
|
||||
if test x$enable_threads != xyes; then
|
||||
AC_DEFINE(SDL_THREADS_DISABLED, 1, [ ])
|
||||
else
|
||||
SUMMARY_modules="${SUMMARY_modules} threads"
|
||||
fi
|
||||
AC_ARG_ENABLE(timers,
|
||||
[AS_HELP_STRING([--enable-timers], [Enable the timer subsystem [default=yes]])],
|
||||
, enable_timers=yes)
|
||||
|
||||
Reference in New Issue
Block a user