diff configure @ 6658:64cf429bd7eb

detectin of __restrict keyword - patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
author arpi
date Sat, 06 Jul 2002 15:20:10 +0000
parents d2c224cf5468
children 2377a525addd
line wrap: on
line diff
--- a/configure	Sat Jul 06 15:19:08 2002 +0000
+++ b/configure	Sat Jul 06 15:20:10 2002 +0000
@@ -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
@@ -4131,6 +4144,9 @@
 /* Runtime Cpudetection */
 $_def_runtime_cpudetection
 
+/* "restrict" keyword */
+#define restrict $_def_restrict_keyword
+
 #define PREFIX "$_prefix"
 
 /* define this to use simple idct with patched libavcodec */