summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2020-11-04 21:27:39 +0100
committerOleg Oshmyan <chortos@inbox.lv>2020-11-14 01:34:54 +0200
commit168caa3d68331a4f2e948334cf462ea138d27e4a (patch)
tree48648e16226c5bd7c5429e045864e866c354ae7b
parent57e262c5fbb170f5bcaa5a0bf90f0e4ebf90a31d (diff)
downloadlibass-168caa3d68331a4f2e948334cf462ea138d27e4a.tar.bz2
libass-168caa3d68331a4f2e948334cf462ea138d27e4a.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)
-rw-r--r--configure.ac15
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