diff options
author | Oneric <oneric@oneric.stub> | 2020-11-04 21:27:39 +0100 |
---|---|---|
committer | Oneric <oneric@oneric.stub> | 2020-11-05 23:55:56 +0100 |
commit | 26aa46f1b1e384c92f0588834212d9f023ea405c (patch) | |
tree | 90a2411a05dffc25e05f71682613b429bc21823d /configure.ac | |
parent | c65b2f8fa81182ee6a36912d33b4929347335e9e (diff) | |
download | libass-26aa46f1b1e384c92f0588834212d9f023ea405c.tar.bz2 libass-26aa46f1b1e384c92f0588834212d9f023ea405c.tar.xz |
configure: add Haiku NASM support
And print an error on attempts to use ASM on an unrecognized system as
NASM would very likely produce borked files anyway.
(erroring out can still be avoided with --disable-asm)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index cff3fe8..02c081c 100644 --- a/configure.ac +++ b/configure.ac @@ -86,7 +86,7 @@ AS_IF([test x$enable_asm != xno], [ AS_CASE([$host], [*darwin*], [ ASFLAGS="$ASFLAGS -f macho$BITTYPE -DPREFIX -DHAVE_ALIGNED_STACK=1" ], - [*linux*|*dragonfly*|*bsd*|*solaris*], [ + [*linux*|*dragonfly*|*bsd*|*solaris*|*haiku*], [ ASFLAGS="$ASFLAGS -f elf$BITTYPE -DHAVE_ALIGNED_STACK=1" ], [*cygwin*|*mingw*], [ ASFLAGS="$ASFLAGS -f win$BITTYPE" @@ -95,7 +95,18 @@ AS_IF([test x$enable_asm != xno], [ ], [ ASFLAGS="$ASFLAGS -DHAVE_ALIGNED_STACK=0 -DPREFIX" ]) - ]) + ], + [ #default + AC_MSG_ERROR(m4_text_wrap(m4_normalize([ + Please contact libass upstream to figure out if ASM + support for your platform can be added. + In the meantime you will need to use --disable-asm.]), + [ ], + [could not identify NASM format for $host !], + [78]) + ) + ] + ) ASFLAGS="$ASFLAGS -DHAVE_CPUNOP=0 -Dprivate_prefix=ass" AC_MSG_CHECKING([if $AS supports vpmovzxwd]) echo "vpmovzxwd ymm0, xmm0" > conftest.asm |