File: configure.ac

package info (click to toggle)
m17n-im-config 0.9.0-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 1,948 kB
  • sloc: sh: 9,377; ansic: 1,631; makefile: 25; sed: 16
file content (77 lines) | stat: -rw-r--r-- 2,352 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
dnl configure.ac -- autoconf script for the m17n-im-config package.

dnl Copyright (C) 2007
dnl   National Institute of Advanced Industrial Science and Technology (AIST)
dnl   Registration Number H15PRO112

dnl This file is part of the m17n-im-config package; a sub-part of the
dnl m17n library..

dnl The m17n library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public License
dnl as published by the Free Software Foundation; either version 2.1 of
dnl the License, or (at your option) any later version.

dnl The m17n library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
dnl Lesser General Public License for more details.

dnl You should have received a copy of the GNU Lesser General Public
dnl License along with the m17n library; if not, write to the Free
dnl Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
dnl Boston, MA 02110-1301, USA.

dnl Process this file with autoconf to produce a configure script.

AC_INIT([m17n-im-config], [0.9.0], [m17n-lib-bug@m17n.org])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_GNU_SOURCE

AM_INIT_AUTOMAKE([subdir-objects])
AM_CONFIG_HEADER([src/config.h])

AM_GNU_GETTEXT([external], [need-ngettext])
AM_GNU_GETTEXT_VERSION([0.14.4])
GETTEXTDIR="$datadir/locale"
AC_SUBST(GETTEXTDIR)

dnl Checks for library
AC_ENABLE_STATIC
AC_ENABLE_SHARED
LT_INIT([dlopen])

dnl Checks for programs for compiling.
AC_PROG_CC
AM_PROG_LIBTOOL

dnl Checks for standard header files.
AC_HEADER_STDC

dnl Checks for the M17N library.
PKG_CHECK_MODULES(M17NLIB, [m17n-shell >= 1.3.4])
PKG_CHECK_MODULES(M17NDB, [m17n-db >= 1.3.4])
AC_SUBST(M17NLIB_CFLAGS)
AC_SUBST(M17NLIB_LDFLAGS)

dnl Check for Gtk+ library.
PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.4.0])

AC_ARG_ENABLE(program,
	      AC_HELP_STRING([--enable-program],
			     [enable a standalone program m17n-im-config (default is YES)]))
AM_CONDITIONAL(ENABLE_PROG, test x$enable_program != xno)

AC_CONFIG_FILES([Makefile po/Makefile.in po/Makefile
		 m17n-im-config.pc			  
                 src/Makefile
		 ])

AC_OUTPUT

dnl Local Variables:
dnl comment-start: "dnl "
dnl comment-end: ""
dnl comment-start-skip: "\\bdnl\\b\\s *"
dnl End: