summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/common/sys/Makefile2
-rw-r--r--pttbbs/pttbbs.mk2
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)