aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-03-05 21:20:04 +0000
committerMåns Rullgård <mans@mansr.com>2009-03-05 21:20:04 +0000
commitf65883c81264548f1f0a31f7c8cf8512924f8456 (patch)
treeffe7ea1cc93445b1f8292f07f97ccda9c3244113 /configure
parent313c46a61004a589f44094d6b3ed9b9be933b936 (diff)
downloadffmpeg-f65883c81264548f1f0a31f7c8cf8512924f8456.tar.gz
configure: check asm support using $as
Originally committed as revision 17828 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 11 insertions, 2 deletions
diff --git a/configure b/configure
index f030528688..d59d81e6e3 100755
--- a/configure
+++ b/configure
@@ -525,12 +525,19 @@ check_cpp(){
check_cmd $cc $CFLAGS "$@" -E -o $TMPO $TMPC
}
+check_as(){
+ log check_as "$@"
+ cat > $TMPC
+ log_file $TMPC
+ check_cmd $as $CFLAGS "$@" -c -o $TMPO $TMPC
+}
+
check_asm(){
log check_asm "$@"
name="$1"
asm="$2"
shift 2
- check_cc "$@" <<EOF && enable $name || disable $name
+ check_as "$@" <<EOF && enable $name || disable $name
void foo(void){ __asm__ volatile($asm); }
EOF
}
@@ -1798,7 +1805,9 @@ EOF
sym=$($nm -P -g $TMPO | grep ff_extern)
extern_prefix=${sym%%ff_extern*}
-check_asm inline_asm '""'
+check_cc <<EOF && enable inline_asm
+void foo(void) { __asm__ volatile ("" ::); }
+EOF
if enabled x86; then
# check whether EBP is available on x86