[Mplayer-cvslog] CVS: main configure,1.270,1.271

Alex Beregszaszi alex at mplayer.dev.hu
Mon Nov 19 16:54:45 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv30515

Modified Files:
	configure 
Log Message:
added shm detection

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.270
retrieving revision 1.271
diff -u -r1.270 -r1.271
--- configure	19 Nov 2001 14:55:36 -0000	1.270
+++ configure	19 Nov 2001 15:54:43 -0000	1.271
@@ -671,6 +671,7 @@
 _largefiles=no
 _vo2=no
 _language=en
+_shm=auto
 
 
 for ac_option do
@@ -767,6 +768,8 @@
   --disable-largefiles)	_largefiles=no	;;
   --enable-vo2)		_vo2=yes	;;
   --disable-vo2)	_vo2=no		;;
+  --enable-shm)		_shm=yes	;;
+  --disable-shm)	_shm=no         ;;
 
   --enable-select)	_def_select='#define HAVE_AUDIO_SELECT'	;;
   --disable-select)	_def_select='#undef HAVE_AUDIO_SELECT'	;;
@@ -1080,6 +1083,7 @@
 fi
 echores "$_dl"
 
+
 echocheck "pthread"
 cat > $TMPC << EOF
 #include <pthread.h>
@@ -1131,6 +1135,20 @@
 echores "$_termcap"
 
 
+echocheck "shm"
+cat > $TMPC << EOF
+#include <sys/shm.h>
+int main(void) { shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0); return 0; }
+EOF
+cc_check && _shm=yes
+if test "$_shm" = yes ; then
+  _def_shm='#define HAVE_SHM 1'
+else
+  _def_shm='#undef HAVE_SHM'
+fi
+echores "$_shm"
+
+
 echocheck "3dfx"
 if test "$_3dfx" = yes ; then
   _def_3dfx='#define HAVE_3DFX 1'
@@ -2440,6 +2458,9 @@
 
 /* Define this if you have zlib */
 $_def_zlib
+
+/* Define this if you have shm support */
+$_def_shm
 
 /* Define this if your system has vsscanf */
 $_def_vsscanf




More information about the MPlayer-cvslog mailing list