summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/Makefile')
-rw-r--r--crawl-ref/source/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/crawl-ref/source/Makefile b/crawl-ref/source/Makefile
index 687be0e6f1..e7db9b0e47 100644
--- a/crawl-ref/source/Makefile
+++ b/crawl-ref/source/Makefile
@@ -586,14 +586,18 @@ ifndef BUILD_LUA
endif
else
ifneq ($(shell $(PKGCONFIG) lua5.1 --exists || echo no),)
- ifneq ($(shell $(PKGCONFIG) lua --exists || echo no),)
- BUILD_LUA = yes
- else
- ifeq ($(shell $(PKGCONFIG) lua --modversion | head -c 3),5.1)
- LUA_PACKAGE = lua
- else
+ ifneq ($(shell $(PKGCONFIG) lua-5.1 --exists || echo no),)
+ ifneq ($(shell $(PKGCONFIG) lua --exists || echo no),)
BUILD_LUA = yes
+ else
+ ifeq ($(shell $(PKGCONFIG) lua --modversion | head -c 3),5.1)
+ LUA_PACKAGE = lua
+ else
+ BUILD_LUA = yes
+ endif
endif
+ else
+ LUA_PACKAGE = lua-5.1
endif
else
LUA_PACKAGE = lua5.1