diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-03-22 23:32:05 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-03-22 23:32:05 +0000 |
commit | 4d0e0a887efb69fcd9a21db83d169cf99de1892d (patch) | |
tree | f9b62f3db454f1f769569ee06b15aca25161e24b /configure.ac | |
parent | 47361c6f2681b09009a4ec07e36149047a99b3b9 (diff) | |
download | xine-lib-4d0e0a887efb69fcd9a21db83d169cf99de1892d.tar.gz xine-lib-4d0e0a887efb69fcd9a21db83d169cf99de1892d.tar.bz2 |
Instead of defining HAVE_ASMALIGN_POT during configure and then creating the macro ASMALIGN(ZEROBITS) in ffmpeg's code, define it directly at configure, this way it can be used for the planar postplugin, that will then build with Apple's AS.
CVS patchset: 8742
CVS date: 2007/03/22 23:32:05
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 45ebdf457..ce672cf46 100644 --- a/configure.ac +++ b/configure.ac @@ -2063,13 +2063,13 @@ AC_DEFINE_UNQUOTED(restrict, $restrict, [restrict keyword]) dnl --------------------------------------------- dnl ASM ALIGN is power of two ? +dnl Used by internal FFmpeg and Planar postprocess dnl --------------------------------------------- -asmalign_pot="unknown" -if test $asmalign_pot = "unknown"; then - AC_TRY_COMPILE([], [ asm (".align 3"); ],[ - AC_DEFINE([HAVE_ASMALIGN_POT], 1, "asmalign power of two")],[ - AC_DEFINE([HAVE_ASMALIGN_POT], 0, "asmalign power of two")]) -fi +AC_TRY_COMPILE([], [ 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") +]) dnl --------------------------------------------- dnl Some extra checks. |