[Mplayer-cvslog] CVS: main configure,1.160,1.161

Nick Kurshev nick at mplayer.dev.hu
Thu Sep 13 09:28:25 CEST 2001


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

Modified Files:
	configure 
Log Message:
ffmpeg compatible MEMALIGN definition

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -r1.160 -r1.161
--- configure	9 Sep 2001 18:02:49 -0000	1.160
+++ configure	13 Sep 2001 07:28:11 -0000	1.161
@@ -970,6 +970,7 @@
 EOF
 
 _memalign_def=
+_memalign=no
 _malloc_h=no
 if $_cc -o $TMPO $TMPC 2> /dev/null ; then
 _malloc_h=yes
@@ -984,7 +985,11 @@
 }
 EOF
 _memalign_def='/* #define memalign(a,b) malloc(b) */'
-$_cc -o $TMPO $TMPC 2> /dev/null || _memalign_def='#define memalign(a,b) malloc(b)'
+_memalign=yes
+$_cc -o $TMPO $TMPC 2> /dev/null || _memalign = no 
+if [ "$_memalign" = "no" ]; then
+_memalign_def='#define memalign(a,b) malloc(b)'
+fi
 fi
 
 
@@ -1858,6 +1863,12 @@
  _have_malloc_h='#undef  HAVE_MALLOC_H'
 fi
 
+if [ "$_memalign" = "yes" ]; then
+ _have_memalign='#define HAVE_MEMALIGN 1'
+else
+ _have_memalign='#undef  HAVE_MEMALIGN'
+fi
+
 if [ "$_alloca_h" = "yes" ]; then
  _have_alloca_h='#define HAVE_ALLOCA_H 1'
 else
@@ -2236,6 +2247,7 @@
 
 /* memalign is mapped to malloc here, if unsupported */
 $_memalign_def
+$_have_memalign
 
 /* Define this if your system has the "alloca.h" header file */
 $_have_alloca_h




More information about the MPlayer-cvslog mailing list