Version changed to 0.9.4.
[m17n/m17n-pango.git] / configure.ac
1 dnl configure.ac -- autoconf script for pango-m17n.
2
3 dnl Copyright (C) 2006, 2007, 2008
4 dnl   National Institute of Advanced Industrial Science and Technology (AIST)
5 dnl   Registration Number H16PRO276
6
7 dnl This file is part of the pango-m17n library.
8
9 dnl The pango-m17n library is free software; you can redistribute it
10 dnl and/or modify it under the terms of the GNU Lesser General Public
11 dnl License as published by the Free Software Foundation; either
12 dnl version 2.1 of the License, or (at your option) any later version.
13
14 dnl The pango-m17n library is distributed in the hope that it will be
15 dnl useful, but WITHOUT ANY WARRANTY; without even the implied
16 dnl warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 dnl See the GNU Lesser General Public License for more details.
18
19 dnl You should have received a copy of the GNU Lesser General Public
20 dnl License along with the pango-m17n library; if not, write to the
21 dnl Free Software Foundation, Inc., 59 Temple Place, Suite 330,
22 dnl Boston, MA 02111-1307, USA.
23
24 dnl Process this file with autoconf to produce a configure script.
25
26 AC_INIT(pango-m17n, 0.9.4, m17n-lib-bug@m17n.org)
27 AM_INIT_AUTOMAKE
28 AM_CONFIG_HEADER(config.h)
29
30 dnl Checks for programs for compiling.
31 AC_PROG_CC
32 AM_DISABLE_STATIC
33 AM_PROG_LIBTOOL
34
35 dnl Checks for standard header files.
36 AC_HEADER_STDC
37
38 dnl Check for m17n-lib.
39 PKG_CHECK_MODULES(M17N, m17n-flt >= 1.5.1)
40
41 dnl Check for Pango.
42 PKG_CHECK_MODULES(PANGO, pango >= 1.16)
43 PKG_CHECK_MODULES(PANGOFT2, pangoft2 >= 1.16)
44 AC_CHECK_PROG(HAVE_PANGO_QUERYMODULE, pango-querymodules, yes)
45 if test "x$HAVE_PANGO_QUERYMODULE" == "xyes"; then
46   PANGO_QUERYMODULES=pango-querymodules
47 else
48   AC_CHECK_PROG(HAVE_PANGO_QMODULE, pango-querymodules-32, yes)
49   if test "x$HAVE_PANGO_QMODULE" == "xyes"; then
50     PANGO_QUERYMODULES=pango-querymodules-32
51   else
52     echo "pango-querymodules[-32] doesn't exist!"
53     exit 1
54   fi
55 fi
56 AC_SUBST(PANGO_QUERYMODULES)
57
58 AC_CONFIG_FILES([Makefile])
59
60 AC_OUTPUT
61
62 dnl Local Variables:
63 dnl comment-start: "dnl "
64 dnl comment-end: ""
65 dnl comment-start-skip: "\\bdnl\\b\\s *"
66 dnl End: