root/tags/gajim-0.11.4/configure.ac

Revision 9099, 4.0 kB (checked in by asterix, 8 months ago)

update version to 0.11.4

Line 
1 AC_INIT([Gajim - A Jabber Instant Messager],
2                 [0.11.4],[http://trac.gajim.org/],[gajim])
3 AC_PREREQ([2.59])
4 AM_INIT_AUTOMAKE([1.8])
5 AC_CONFIG_HEADER(config.h)
6 AC_CONFIG_MACRO_DIR([m4])
7 AM_MAINTAINER_MODE
8
9 IT_PROG_INTLTOOL([0.35.0])
10 PKG_PROG_PKG_CONFIG([0.19])
11
12 AM_DISABLE_STATIC
13 AC_ENABLE_SHARED(yes)
14 AC_ENABLE_STATIC(no)
15
16 AC_ISC_POSIX
17 AC_PROG_CC
18 AC_PROG_INSTALL
19 AC_PROG_MAKE_SET
20 AC_PROG_LIBTOOL
21 AC_C_CONST
22 AC_CHECK_HEADERS([libintl.h])
23 AC_PATH_X
24
25
26 GETTEXT_PACKAGE=gajim
27 AC_SUBST([GETTEXT_PACKAGE])
28 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
29 AM_GLIB_GNU_GETTEXT
30 AM_NLS
31
32
33 dnl ****
34 dnl pygtk and gtk+
35 dnl ****
36 PKG_CHECK_MODULES([PYGTK], [gtk+-2.0 >= 2.6.0 pygtk-2.0 >= 2.6.0])
37 AC_SUBST(PYGTK_CFLAGS)
38 AC_SUBST(PYGTK_LIBS)
39 PYGTK_DEFS=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
40 AC_SUBST(PYGTK_DEFS)
41
42 dnl *****
43 dnl dbus
44 dnl *****
45 AC_ARG_ENABLE([remote],
46   [  --disable-remote        enable remote control via DBus [default auto]],
47   enable_remote=$enableval, enable_remote=auto)
48
49 if test "x$enable_remote" = "xauto"; then
50          PKG_CHECK_EXISTS([dbus-1],enable_remote=yes,enable_remote=no)
51 fi
52
53 if test "x$enable_remote" = "xyes";then
54         PKG_CHECK_MODULES([DBUS], [dbus-1 >= 0.60])
55         AC_SUBST(DBUS_CFLAGS)
56         AC_SUBST(DBUS_LIBS)
57         have_remote=true
58 else
59         have_remote=false
60 fi
61 AM_CONDITIONAL(BUILD_REMOTE_CONTROL, $have_remote)
62
63 dnl ****
64 dnl gtkspell
65 dnl ****
66 AC_ARG_ENABLE(gtkspell,
67   [  --disable-gtkspell      build spell checking support [default auto]],
68   enable_gtkspell=$enableval, enable_gtkspell=auto)
69
70 if test "x$enable_gtkspell" = "xauto";then
71         PKG_CHECK_EXISTS([gtkspell-2.0], [enable_gtkspell=yes], [enable_gtkspell=no])
72 fi
73 if test "x$enable_gtkspell" = "xyes";then
74         PKG_CHECK_MODULES([GTKSPELL], [gtkspell-2.0])
75         AC_SUBST(GTKSPELL_CFLAGS)
76         AC_SUBST(GTKSPELL_LIBS)
77         have_gtkspell=true
78 else
79         have_gtkspell=false
80 fi
81 AM_CONDITIONAL(BUILD_GTKSPELL, $have_gtkspell)
82
83
84 dnl ****
85 dnl xscreensaver
86 dnl ****
87 AC_ARG_ENABLE([idle],
88   [  --disable-idle          build idle module [default auto]],
89   enable_idle=$enableval, enable_idle=yes)
90
91 if test "x$enable_idle" = "xyes";then
92         PKG_CHECK_EXISTS([xscrnsaver], [have_xscrnsaver=yes], [have_xscrnsaver=no])
93
94         if test "x$have_xscrnsaver" = "xyes";then
95                 PKG_CHECK_MODULES([XSCRNSAVER], xscrnsaver)
96                 AC_SUBST(XSCRNSAVER_LIBS)
97                 have_idle=true
98         else
99                 # Checks for libraries.
100                 LIBS=-L$x_libraries
101                 AC_CHECK_LIB([X11], [XOpenDisplay])
102                 AC_CHECK_LIB([Xext], [XMissingExtension])
103                 AC_CHECK_LIB([Xss], [XScreenSaverAllocInfo])
104                 XSCRNSAVER_LIBS="$LIBS"
105                 AC_SUBST([XSCRNSAVER_LIBS])
106                 if test "x$XSCRNSAVER_LIBS" = "x-L";then
107                         have_idle=false
108                 else
109                         have_idle=true
110                 fi
111         fi
112 else
113         have_idle=false
114 fi
115 AM_CONDITIONAL(BUILD_IDLE, $have_idle)
116
117 AM_PATH_PYTHON([2.4])
118 if test "x$PYTHON" = "x:"; then
119         AC_MSG_ERROR([Python not found])
120 fi
121
122 dnl ****
123 dnl tray icon
124 dnl ****
125 AC_ARG_ENABLE(trayicon,
126   [  --disable-trayicon      build trayicon module [default yes]],
127   enable_trayicon=$enableval, enable_trayicon=yes)
128 test "x$enable_trayicon" = "xyes" && have_trayicon=true || have_trayicon=false
129 AM_CONDITIONAL(BUILD_TRAYICON, $have_trayicon)
130
131 ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
132 AC_SUBST(ACLOCAL_AMFLAGS)
133
134 AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
135 AC_SUBST([PYTHON_INCLUDES])
136
137 AS_AC_EXPAND(DATADIR, "${datadir}")
138
139 AS_AC_EXPAND(LIBDIR, ${libdir})
140
141 AS_AC_EXPAND(DOCDIR, "${docdir}")
142
143 AC_SUBST(VERSION)
144 AC_SUBST(PACKAGE)
145 AC_SUBST(DATADIR)
146 AC_SUBST(LIBDIR)
147 AS_AC_EXPAND(DATADIR, "${DATADIR}")
148 AC_SUBST(DOCDIR)
149 AS_AC_EXPAND(DOCDIR, "${DOCDIR}")
150
151 AC_CONFIG_FILES([
152         Makefile
153         data/Makefile
154         data/glade/Makefile
155         data/emoticons/Makefile
156         data/pixmaps/Makefile
157         data/iconsets/Makefile
158         data/gajim.desktop.in
159         data/defs.py
160         src/Makefile
161         src/common/Makefile
162         scripts/gajim
163         scripts/gajim-remote
164         po/Makefile.in
165 ])
166 AC_OUTPUT
167 echo "
168 *****************************
169   Build features:
170     spell check ...... ${have_gtkspell}
171     idle module ...... ${have_idle}
172     remote control ... ${have_remote}
173     trayicon ......... ${have_trayicon}
174 *****************************"
Note: See TracBrowser for help on using the browser.