2 # Copyright (C) 2015 Mitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published
6 # by the Free Software Foundation; either version 2 of the License,
7 # or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty
11 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 # See the GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program;
16 # if not, write to the Free Software Foundation, Inc.,
17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 # Process this file with autoconf to produce a configure script.
22 AC_INIT([canna-yubin], [0.3.0.20141226.0],
23 [canna-yubin-misc@lists.sourceforge.jp])
29 [--with-canna build Canna dictionary [[default=/var/lib/canna/dic/canna/]]],
32 AC_ARG_WITH([wnn], [--with-wnn build Wnn dictionary [[default=no]]], [],
35 case "x$with_canna" in
37 'xyes') CANNADICDIR='/var/lib/canna/dic/canna/' ;;
38 *) CANNADICDIR="$with_canna" ;;
43 'xyes') WNNDICDIR='/usr/local/lib/wnn/ja_JP/dic/yubin/' ;;
44 *) WNNDICDIR="$with_wnn" ;;
51 # Checks for programs.
55 case "x$with_canna" in
58 AC_CHECK_PROGS(MKBINDIC, [mkbindic], [])
60 'x') AC_MSG_ERROR([could not find mkbindic. Did you install Canna?]) ;;
68 AC_CHECK_PROGS(ATOD, [atod], [])
71 AC_MSG_ERROR([could not find atod. Did you install Wnn and set your PATH? FreeWnn default, atod is installed /usr/local/bin/Wnn4/!])
77 # Checks for libraries.
79 # Checks for header files.
81 # Checks for typedefs, structures, and compiler characteristics.
83 # Checks for library functions.