[Mplayer-cvslog] CVS: main configure,1.517,1.518

Arpi of Ize arpi at mplayerhq.hu
Sat Jul 6 17:20:13 CEST 2002


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

Modified Files:
	configure 
Log Message:
detectin of __restrict keyword - patch by Falk Hueffner <falk.hueffner at student.uni-tuebingen.de>

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.517
retrieving revision 1.518
diff -u -r1.517 -r1.518
--- configure	3 Jul 2002 22:17:33 -0000	1.517
+++ configure	6 Jul 2002 15:20:10 -0000	1.518
@@ -1430,6 +1430,19 @@
 fi
 echores "$_runtime_cpudetection"
 
+echocheck "restrict keyword"
+for restrict_keyword in restrict __restrict __restrict__ ; do
+  echo "void foo(char * $restrict_keyword p); int main(){}" > $TMPC
+  if cc_check; then
+    _def_restrict_keyword=$restrict_keyword
+    break;
+  fi
+done
+if [ -n "$_def_restrict_keyword" ]; then
+  echores "$_def_restrict_keyword"
+else
+  echores "none"
+fi
 
 echocheck "kstat"
 cat > $TMPC << EOF
@@ -4130,6 +4143,9 @@
 
 /* Runtime Cpudetection */
 $_def_runtime_cpudetection
+
+/* "restrict" keyword */
+#define restrict $_def_restrict_keyword
 
 #define PREFIX "$_prefix"
 




More information about the MPlayer-cvslog mailing list