quit mainloop, when the Panel object be destroyed.
[ibus.git] / configure.ac
blobf1c55558bf728ad642d6a9f5bf4fb4c6edf23b44
1 # vim:set noet ts=4:
3 # ibus - The Input Bus
5 # Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
8 # This library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public
10 # License as published by the Free Software Foundation; either
11 # version 2 of the License, or (at your option) any later version.
13 # This 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
16 # GNU Lesser General Public License for more details.
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with this program; if not, write to the
20 # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21 # Boston, MA  02111-1307  USA
23 # $Id: $
25 AC_INIT([ibus],[0.0.1],[https://bugs.launchpad.net/ibus],[ibus])
26 AM_INIT_AUTOMAKE([1.10])
27 AC_GNU_SOURCE
29 AC_CONFIG_HEADERS([config.h])
30 AC_CONFIG_MACRO_DIR([m4])
32 # define PACKAGE_VERSION_* variables
33 AS_VERSION
34 AS_NANO
35 AM_SANITY_CHECK
36 AM_MAINTAINER_MODE
37 AM_DISABLE_STATIC
38 AC_PROG_CC
39 AM_PROG_CC_C_O
40 AC_PROG_CXX
41 AC_ISC_POSIX
42 AC_HEADER_STDC
43 AM_PROG_LIBTOOL
45 # check inotify
46 AC_CHECK_HEADERS([sys/inotify.h])
48 # check glib2
49 AM_PATH_GLIB_2_0
50 PKG_CHECK_MODULES(GLIB2, [
51         glib-2.0
53 PKG_CHECK_MODULES(GOBJECT2, [
54         gobject-2.0
56 PKG_CHECK_MODULES(PYGOBJECT2, [
57         pygobject-2.0
61 # check gtk & pygtk
62 PKG_CHECK_MODULES(GTK2, [
63         gtk+-2.0
66 PKG_CHECK_MODULES(PYGTK2, [
67         pygtk-2.0
70 # check dbus-glib
71 PKG_CHECK_MODULES(DBUS, [
72         dbus-glib-1
76 AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no)
78 # check python
79 AM_PATH_PYTHON([2.5])
80 PYTHON_CONFIG=`type -p python$PYTHON_VERSION-config`
81 if test "$PYTHON_CONFIG" != ""; then
82     PYTHON_CFLAGS=`$PYTHON_CONFIG --includes`
83     PYTHON_LIBS=`$PYTHON_CONFIG --libs`
84 else
85     PYTHON_CFLAGS=`$PYTHON $srcdir/python-config.py --includes`
86     PYTHON_LIBS=`$PYTHON $srcdir/python-config.py --libs`
88 AC_SUBST(PYTHON_CFLAGS)
89 AC_SUBST(PYTHON_LIBS)
91 # Checks for gtk-doc
92 GTK_DOC_CHECK([1.6])
94 AC_CHECK_PROG(DB2HTML, db2html, true, false)
95 AM_CONDITIONAL(HAVE_DOCBOOK, $DB2HTML)
98 # define GETTEXT_* variables
99 GETTEXT_PACKAGE=ibus
100 AC_SUBST(GETTEXT_PACKAGE)
101 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Package name for gettext])
103 AM_GNU_GETTEXT([external])
104 AM_GNU_GETTEXT_VERSION(0.16.1)
106 # Args for make distcheck
107 DISTCHECK_CONFIGURE_FLAGS="--enable-gtk-doc"
108 AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
110 # OUTPUT files
111 AC_CONFIG_FILES([ po/Makefile.in
112 Makefile
113 gtk2/Makefile
114 m4/Makefile
117 AC_OUTPUT