diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-15 15:28:29 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-15 15:28:29 +0100 |
commit | 607d346e969776e6aee8042590f588ba66831b62 (patch) | |
tree | c0b655df01e3101bd6443aa5758b5c4faa5d2f10 | |
parent | b23e24329da58e15cc5098c569e90bd3c32cca33 (diff) | |
download | xine-lib-607d346e969776e6aee8042590f588ba66831b62.tar.gz xine-lib-607d346e969776e6aee8042590f588ba66831b62.tar.bz2 |
autoconf 2.59 mishandles AC_DEFINE([ASMALIGN(ZEROBITS)], ...). Work around it.
-rw-r--r-- | configure.ac | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 952c55327..b43bd1b8f 100644 --- a/configure.ac +++ b/configure.ac @@ -2084,10 +2084,14 @@ dnl --------------------------------------------- dnl ASM ALIGN is power of two ? dnl Used by internal FFmpeg and Planar postprocess dnl --------------------------------------------- -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ asm (".align 3"); ]])],[ - AC_DEFINE([ASMALIGN(ZEROBITS)], [".align " #ZEROBITS "\n\t"], "asmalign power of two") -],[ - AC_DEFINE([ASMALIGN(ZEROBITS)], [".align 1<<" #ZEROBITS "\n\t"], "asmalign power of two") +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ asm (".align 3"); ]])], + AC_DEFINE([ASMALIGN_1SLN], [1], [define if '.align n' means alignment to (1<<n)-byte boundaries]), + :) +AH_BOTTOM([#ifdef ASMALIGN_1SLN +# define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\n\t" +#else +# define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t" +#endif ]) dnl --------------------------------------------- |