# HG changeset patch # User diego # Date 1279032691 0 # Node ID 02d92c137407176da6e69c4aad005529ec501699 # Parent 0850cb05c836a58660f7793090e4d6f5f81e13e7 Port GNU assembler check from FFmpeg. diff -r 0850cb05c836 -r 02d92c137407 configure --- a/configure Tue Jul 13 12:08:50 2010 +0000 +++ b/configure Tue Jul 13 14:51:31 2010 +0000 @@ -2800,6 +2800,16 @@ EOF cc_check && ibm_asm=yes && def_ibm_asm='#define HAVE_IBM_ASM 1' echores "$ibm_asm" + +def_gnu_as='#define HAVE_GNU_AS 0' +gnu_as=no +echocheck "GNU assembler" +cat > $TMPC << EOF +int main(void) { __asm__ volatile (".macro m n\n\\n:.int 0\n.endm\nm x"); return 0; } +EOF +cc_check && gnu_as=yes && def_gnu_as='#define HAVE_GNU_AS 1' +echores "$gnu_as" + fi if arm ; then @@ -8792,7 +8802,7 @@ CONFIG_XVMC = $_xvmc CONFIG_ZLIB = $_zlib -HAVE_GNU_AS = yes +HAVE_GNU_AS = $gnu_as HAVE_PTHREADS = $_pthreads HAVE_SHM = $_shm HAVE_W32THREADS = $_w32threads @@ -9231,6 +9241,7 @@ $def_exp2f $def_fast_64bit $def_fast_unaligned +$def_gnu_as $def_hardcoded_tables $def_ibm_asm $def_libavcodec_mpegaudio_hp @@ -9273,7 +9284,6 @@ #define HAVE_ATTRIBUTE_PACKED 1 #define HAVE_GETHRTIME 0 -#define HAVE_GNU_AS 1 #define HAVE_INLINE_ASM 1 #define HAVE_ISATTY 0 #define HAVE_LDBRX 0