Disable zipcode dictionary 15/91515/2 accepted/tizen/common/20161031.121847 accepted/tizen/ivi/20161101.004756 accepted/tizen/mobile/20161101.004636 accepted/tizen/tv/20161101.004711 accepted/tizen/wearable/20161101.004733 submit/tizen/20161031.051052
authorLi Zhang <li2012.zhang@samsung.com>
Mon, 10 Oct 2016 03:39:20 +0000 (11:39 +0800)
committerLi Zhang <li2012.zhang@samsung.com>
Mon, 10 Oct 2016 03:46:28 +0000 (11:46 +0800)
Change-Id: Ic1fa5c891cd2db2fc47794435a110b8489d460bf

configure.ac
mkworddic/Makefile.am
packaging/anthy.spec

index bc8ce17..db9216c 100755 (executable)
@@ -4,6 +4,11 @@ AC_INIT(src-main/main.c)
 AM_INIT_AUTOMAKE(anthy, 9100h)
 AM_CONFIG_HEADER(config.h)
 
+AC_ARG_ENABLE(zipcode,
+ [  --disable-zipcode       do not install zipcode dictionary],
+ disable_zipcode_dict=yes,
+ disable_zipcode_dict=no)
+
 dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_CPP
@@ -12,6 +17,7 @@ AM_PATH_LISPDIR
 AM_PROG_CC_C_O
 
 AM_CONDITIONAL(ELISP, test x$lispdir != x)
+AM_CONDITIONAL(ANTHY_INSTALL_ZIPCODE_DICT, test "$disable_zipcode_dict" = "no")
 
 dnl without emacs. install-lispLISP does mkdir /anthy
 dnl dirty hack to avoid it.
index 09e1295..ea90e72 100755 (executable)
@@ -36,5 +36,7 @@ anthy.wdic : mkworddic $(DIC_FILES)
           ./mkworddic -f ./dict.args
 
 
+if ANTHY_INSTALL_ZIPCODE_DICT
 # To install
 pkgdata_DATA = zipcode.t
+endif
index 837a6e1..f90869b 100644 (file)
@@ -39,7 +39,7 @@ cp %{SOURCE1001} .
 %reconfigure --disable-static --with-pic
 %__make %{?_smp_mflags}
 
-%configure
+%configure --disable-zipcode
 
 make