From 4cb0f24c27ab3a943e7a216a086961a6fb8630e7 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 17 Apr 2011 14:30:51 +0000 Subject: improve 'CONVERT' config probing git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5341 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/common/sys/Makefile | 2 +- pttbbs/pttbbs.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pttbbs/common/sys/Makefile b/pttbbs/common/sys/Makefile index 0fd27d47..8b587a3b 100644 --- a/pttbbs/common/sys/Makefile +++ b/pttbbs/common/sys/Makefile @@ -6,7 +6,7 @@ SRCROOT= ../.. SRCS:= daemon.c file.c lock.c log.c net.c sort.c string.c time.c \ crypt.c record.c vector.c telnet.c vbuf.c vtkbd.c -.if $(WANTS_CONVERT) != "NO" +.if $(WITH_CONVERT) != "NO" SRCS+= utf8.c big5.c .endif diff --git a/pttbbs/pttbbs.mk b/pttbbs/pttbbs.mk index 92cfc49b..cb4ce2b9 100644 --- a/pttbbs/pttbbs.mk +++ b/pttbbs/pttbbs.mk @@ -10,7 +10,7 @@ OSTYPE!= uname CC:= gcc CXX:= g++ CCACHE!= which ccache|sed -e 's/^.*\///' -WANTS_CONVERT!= sh -c 'grep "^\#define CONVERT" $(SRCROOT)/pttbbs.conf || echo NO' +WITH_CONVERT!= sh -c 'grep -w "^[\t ]*\#define[ \t]*CONVERT" $(SRCROOT)/pttbbs.conf || echo NO' .if $(CCACHE) CC:= ccache $(CC) -- cgit v1.2.3