Module: sip-router
Branch: 3.1
Commit: 6e65634bb10568767700d999437ee5194765d6e8
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6e65634…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Oct 5 23:38:20 2010 +0200
app_lua: fix finding lua libs
- if pkg-config fails to find lua libs, use default values
---
modules/app_lua/Makefile | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/modules/app_lua/Makefile b/modules/app_lua/Makefile
index 74e0460..89fc8d6 100644
--- a/modules/app_lua/Makefile
+++ b/modules/app_lua/Makefile
@@ -16,8 +16,14 @@ ifeq ($(BUILDER),)
DEFS+=-I/usr/include/lua5.1
LIBS= -llua5.1
else
- DEFS+ = $(shell pkg-config --cflags lua)
- LIBS = $(shell pkg-config --libs lua)
+ LUALIBS = $(shell pkg-config --silence-errors --libs lua)
+ ifeq ($(LUALIBS),)
+ DEFS+=-I/usr/include/lua5.1
+ LIBS= -llua5.1
+ else
+ DEFS+ = $(shell pkg-config --cflags lua)
+ LIBS = $(shell pkg-config --libs lua)
+ endif
endif
else
DEFS+ = $(shell lua-config --include)