1 # Copyright (C) 2003, 2004, 2005
2 # National Institute of Advanced Industrial Science and Technology (AIST)
3 # Registration Number H15PRO112
5 # This file is part of the m17n database; a sub-part of the m17n
8 # The m17n library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public License
10 # as published by the Free Software Foundation; either version 2.1 of
11 # the License, or (at your option) any later version.
13 # The m17n library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Lesser General Public License for more details.
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with the m17n library; if not, write to the Free
20 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
23 # Process this file with autoconf to produce a configure script.
24 AC_INIT(m17n-db, 1.3.0, bugs-m17n-db@m17n.org)
25 AM_INIT_AUTOMAKE(m17n-db, 1.3.0)
27 # Checks for programs.
31 # Checks for source data files.
33 [ --with-charmaps=DIR Directory of source files for charset maps.],
40 if test "x$CHARMAPS" = "x"; then
41 if test -d ./charmaps; then
43 elif test -d /usr/share/i18n/charmaps; then
44 CHARMAPS=/usr/share/i18n/charmaps
51 if test "x$CHARMAPS" != "x"; then
52 if test -r "$CHARMAPS/EUC-JP.gz"; then
55 elif test -r "$CHARMAPS/EUC-JP"; then
65 AC_CONFIG_FILES([Makefile mapconv m17n-db])
68 # Print configuration message.
69 if test "x$CHARMAPS" != "x"; then
70 echo "------------------------------------------------------------"
71 echo "Charset maps are generated from files under thie directory:"
73 echo "------------------------------------------------------------"
75 echo "-----------ERROR-----------ERROR-----------ERROR------------"
76 echo "Can't find source files for generating charset maps."
77 echo "Run the script \"./get-glibc.sh\", and try again."
78 echo "Or, read the installation procedure in the file README."
79 echo " --with-charmaps=--DIRECTORY-OF-GLIBC-SOURCE--/localedata/charmaps"
80 echo "-----------ERROR-----------ERROR-----------ERROR------------"