3 | 3 |
export SHELL=/bin/bash
|
4 | 4 |
export CONFIG_SHELL=/bin/sh
|
5 | 5 |
|
|
6 |
#
|
|
7 |
# the configure code already checks a lot, but it does not catch
|
|
8 |
# all cases. We have now two ways to test for where to build.
|
|
9 |
# One by disabling on the other platforms, one by whitelisting
|
|
10 |
# and building only on some platforms.
|
6 | 11 |
LUAJIT_FAIL_ARCHS := s390x hppa arm64 ppc64 ppc64el x32 mips64 mips64el m68k
|
|
12 |
LUAJIT_GOOD_ARCHS := amd64 armel armhf hurd-i386 i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc
|
7 | 13 |
|
8 | 14 |
# In case one wants to build with old automake (<< 1.13.1), the following
|
9 | 15 |
# variable has to be set. By default the debian/control requires high
|
|
15 | 21 |
ifeq ($(DEB_HOST_ARCH), alpha)
|
16 | 22 |
export LDFLAGS = -Wl,--no-relax
|
17 | 23 |
endif
|
18 | |
ifneq (,$(filter $(DEB_HOST_ARCH), $(LUAJIT_FAIL_ARCHS)))
|
19 | |
DISABLE_JIT=--disable-luajittex
|
|
24 |
|
|
25 |
# for blacklisting bad archs
|
|
26 |
#ifneq (,$(filter $(DEB_HOST_ARCH), $(LUAJIT_FAIL_ARCHS)))
|
|
27 |
# DISABLE_JIT=--disable-luajittex
|
|
28 |
#endif
|
|
29 |
|
|
30 |
# for whitelisting good archs
|
|
31 |
ifeq (,$(filter $(DEB_HOST_ARCH), $(LUAJIT_GOOD_ARCHS)))
|
|
32 |
# it is not in the list of good archs -> disable luajittex
|
|
33 |
BUILDLUAJITTEX=--disable-luajittex
|
|
34 |
else
|
|
35 |
# not necessary, but for completeness
|
|
36 |
BUILDLUAJITTEX=--enable-luajittex
|
20 | 37 |
endif
|
21 | 38 |
|
22 | 39 |
#
|
|
77 | 94 |
--with-x \
|
78 | 95 |
--with-mf-x-toolkit \
|
79 | 96 |
--with-xdvi-x-toolkit=xaw \
|
80 | |
$(DISABLE_JIT) \
|
|
97 |
$(BUILDLUAJITTEX) \
|
81 | 98 |
--disable-lcdf-typetools \
|
82 | 99 |
--disable-biber \
|
83 | 100 |
--disable-dvipng \
|