[Ffmpeg-cvslog] r7037 - trunk/configure
mru
subversion
Tue Nov 14 03:27:36 CET 2006
Author: mru
Date: Tue Nov 14 03:27:35 2006
New Revision: 7037
Modified:
trunk/configure
Log:
clean up setting of HAVE_*THREADS
Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Tue Nov 14 03:27:35 2006
@@ -402,6 +402,7 @@
HAVE_LIST='
altivec_h
+ beosthreads
byteswap_h
dcbzl
dlfcn
@@ -414,8 +415,12 @@
malloc_h
memalign
mlib
+ os2threads
+ pthreads
sdl
sdl_video_size
+ threads
+ w32threads
'
# set temporary file name
@@ -618,6 +623,7 @@
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
@@ -761,7 +767,7 @@
ffserver="no"
vhook="no"
os2="yes"
-
+os2threads="yes"
;;
*)
targetos="${targetos}-UNKNOWN"
@@ -1019,6 +1025,9 @@
dc1394="no"
ffserver="no"
network="no"
+ if enabled mingw32; then
+ w32threads="yes"
+ fi
if test "$mingwce" = "yes"; then
protocols="no"
fi
@@ -1931,11 +1940,6 @@
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
@@ -1979,13 +1983,12 @@
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
@@ -2000,15 +2003,6 @@
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
More information about the ffmpeg-cvslog
mailing list