Change-Id: Ic1fa5c891cd2db2fc47794435a110b8489d460bf
AM_INIT_AUTOMAKE(anthy, 9100h)
AM_CONFIG_HEADER(config.h)
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
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AM_PROG_CC_C_O
AM_CONDITIONAL(ELISP, test x$lispdir != x)
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.
dnl without emacs. install-lispLISP does mkdir /anthy
dnl dirty hack to avoid it.
./mkworddic -f ./dict.args
./mkworddic -f ./dict.args
+if ANTHY_INSTALL_ZIPCODE_DICT
# To install
pkgdata_DATA = zipcode.t
# To install
pkgdata_DATA = zipcode.t
%reconfigure --disable-static --with-pic
%__make %{?_smp_mflags}
%reconfigure --disable-static --with-pic
%__make %{?_smp_mflags}
+%configure --disable-zipcode