aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-07-01 23:21:30 +0000
committerMåns Rullgård <mans@mansr.com>2010-07-01 23:21:30 +0000
commita49d302590f55f80cb7db95536fe12cf3ab2e56d (patch)
tree029ced0f41fedbf0be4f200b999ce45443c18db0
parent2f0c136e1f584a0d6c7826376ce4809a39ec81c9 (diff)
downloadffmpeg-a49d302590f55f80cb7db95536fe12cf3ab2e56d.tar.gz
Check for GNU assembler, use gas-preprocessor on darwin
Originally committed as revision 23953 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index c9fb27886e..1ea64cf70b 100755
--- a/configure
+++ b/configure
@@ -988,6 +988,7 @@ HAVE_LIST="
GetProcessMemoryInfo
GetProcessTimes
getrusage
+ gnu_as
struct_rusage_ru_maxrss
ibm_asm
inet_aton
@@ -2116,6 +2117,7 @@ case $target_os in
;;
darwin)
enable malloc_aligned
+ as="gas-preprocessor.pl $cc"
SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR) -Wl,-read_only_relocs,suppress'
strip="${strip} -x"
FFLDFLAGS="-Wl,-dynamic,-search_paths_first"
@@ -2306,6 +2308,9 @@ unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
EOF
od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
+check_asm gnu_as '".macro m n\n\\n:.int 0\n.endm\nm x"' ||
+ warn "GNU assembler not found, install gas-preprocessor"
+
if enabled alpha; then
check_cflags -mieee