From: Måns Rullgård Date: Wed, 28 Oct 2009 20:19:15 +0000 (+0000) Subject: configure: add C99 flags to HOSTCFLAGS X-Git-Tag: android-x86-4.4-r1~24828 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f0125de9d12dcae05a6eefee04c10bef327de288;p=android-x86%2Fexternal-ffmpeg.git configure: add C99 flags to HOSTCFLAGS Originally committed as revision 20408 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/configure b/configure index 1eb3ba95ff..b221bcc63c 100755 --- a/configure +++ b/configure @@ -778,6 +778,20 @@ check_foo_config(){ 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 +check_host_cflags -std=c99 + case "$arch" in alpha) arch="alpha"