Change internal way of making Makefile to know if need to compile modperl or not.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2195 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
darthgandalf
2010-12-22 14:51:49 +00:00
parent 600cbac913
commit c7c0d1714c
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -21,6 +21,7 @@ LDFLAGS := @LDFLAGS@
# LIBS are not and should not be used in here.
# The znc binary links already against those.
# LIBS := @LIBS@
PERL_ON := @PERL@
PERL := @PERL_BINARY@
SWIG := @SWIG_BINARY@
MODDIR := @MODDIR@
@@ -65,7 +66,7 @@ FILES := $(foreach file, $(FILES), \
))
endif
ifneq "$(PERL)" ""
ifeq "$(PERL_ON)" "yes"
# We execute this now so that we see the 'beauty' of these flags in make's output
PERLCOMMON := $(shell $(PERL) -MExtUtils::Embed -e perl_inc -e ldopts)
# Perl API is ugly, casting string literals to char* and redeclaring functions :(