HAVE_LIST='
altivec_h
+ beosthreads
byteswap_h
dcbzl
dlfcn
malloc_h
memalign
mlib
+ os2threads
+ pthreads
sdl
sdl_video_size
+ threads
+ w32threads
'
# set temporary file name
dv1394="no"
# enable BeOS things
audio_beos="yes"
+beosthreads="yes"
# no need for libm, but the inet stuff
# Check for BONE
if (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); then
ffserver="no"
vhook="no"
os2="yes"
-
+os2threads="yes"
;;
*)
targetos="${targetos}-UNKNOWN"
dc1394="no"
ffserver="no"
network="no"
+ if enabled mingw32; then
+ w32threads="yes"
+ fi
if test "$mingwce" = "yes"; then
protocols="no"
fi
echo "#define HAVE_ALTIVEC 1" >> $TMPH
fi
-if test "$pthreads" = "yes" ; then
- echo "HAVE_PTHREADS=yes" >> config.mak
- echo "#define HAVE_PTHREADS 1" >> $TMPH
- echo "#define HAVE_THREADS 1" >> $TMPH
-fi
if test "$sdl" = "yes" ; then
echo "SDL_LIBS=`"${SDL_CONFIG}" --libs`" >> config.mak
echo "SDL_CFLAGS=`"${SDL_CONFIG}" --cflags`" >> config.mak
enabled_any $MUXER_LIST && enable muxers
enabled_any $DEMUXER_LIST && enable demuxers
+enabled_any pthreads beosthreads os2threads w32threads && enable threads
+
print_config HAVE_ $TMPH config.mak $HAVE_LIST
print_config CONFIG_ $TMPH config.mak $CONFIG_LIST
if test "$mingw32" = "yes" ; then
- echo "HAVE_W32THREADS=yes" >> config.mak
- echo "#define HAVE_W32THREADS 1" >> $TMPH
- echo "#define HAVE_THREADS 1" >> $TMPH
echo "#ifndef __MINGW32__" >> $TMPH
echo "#define __MINGW32__ 1" >> $TMPH
echo "#endif" >> $TMPH
if test "$os2" = "yes" ; then
echo "#define CONFIG_OS2 1" >> $TMPH
- echo "HAVE_OS2THREADS=yes" >> config.mak
- echo "#define HAVE_OS2THREADS 1" >> $TMPH
- echo "#define HAVE_THREADS 1" >> $TMPH
-fi
-
-if test "$targetos" = "BeOS" ; then
- echo "HAVE_BEOSTHREADS=yes" >> config.mak
- echo "#define HAVE_BEOSTHREADS 1" >> $TMPH
- echo "#define HAVE_THREADS 1" >> $TMPH
fi
if test "$targetos" = "Darwin"; then