Originally committed as revision 20408 to svn://svn.ffmpeg.org/ffmpeg/trunk
return $err
}
+check_host_cc(){
+ log check_host_cc "$@"
+ cat > $TMPC
+ log_file $TMPC
+ check_cmd $host_cc $host_cflags "$@" -c -o $TMPO $TMPC
+}
+
+check_host_cflags(){
+ log check_host_cflags "$@"
+ check_host_cc "$@" <<EOF && append host_cflags "$@"
+int x;
+EOF
+}
+
apply(){
file=$1
shift
CC_O='-o $@'
-host_cflags='-O3 -g -Wall'
+host_cflags='-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -O3 -g -Wall'
host_libs='-lm'
target_path='.'
#include <stdlib.h>
EOF
+check_host_cflags -std=c99
+
case "$arch" in
alpha)
arch="alpha"