root/branches/gajim_0.11.3-bugfixes/configure.ac

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

update version to 0.11.4

Line 
1AC_INIT([Gajim - A Jabber Instant Messager],
2                [0.11.4],[http://trac.gajim.org/],[gajim])
3AC_PREREQ([2.59])
4AM_INIT_AUTOMAKE([1.8])
5AC_CONFIG_HEADER(config.h)
6AC_CONFIG_MACRO_DIR([m4])
7AM_MAINTAINER_MODE
8
9IT_PROG_INTLTOOL([0.35.0])
10PKG_PROG_PKG_CONFIG([0.19])
11
12AM_DISABLE_STATIC
13AC_ENABLE_SHARED(yes)
14AC_ENABLE_STATIC(no)
15
16AC_ISC_POSIX
17AC_PROG_CC
18AC_PROG_INSTALL
19AC_PROG_MAKE_SET
20AC_PROG_LIBTOOL
21AC_C_CONST
22AC_CHECK_HEADERS([libintl.h])
23AC_PATH_X
24
25
26GETTEXT_PACKAGE=gajim
27AC_SUBST([GETTEXT_PACKAGE])
28AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
29AM_GLIB_GNU_GETTEXT
30AM_NLS
31
32
33dnl ****
34dnl pygtk and gtk+
35dnl ****
36PKG_CHECK_MODULES([PYGTK], [gtk+-2.0 >= 2.6.0 pygtk-2.0 >= 2.6.0])
37AC_SUBST(PYGTK_CFLAGS)
38AC_SUBST(PYGTK_LIBS)
39PYGTK_DEFS=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
40AC_SUBST(PYGTK_DEFS)
41
42dnl *****
43dnl dbus
44dnl *****
45AC_ARG_ENABLE([remote],
46  [  --disable-remote        enable remote control via DBus [default auto]],
47  enable_remote=$enableval, enable_remote=auto)
48
49if test "x$enable_remote" = "xauto"; then
50         PKG_CHECK_EXISTS([dbus-1],enable_remote=yes,enable_remote=no)
51fi
52
53if 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
58else
59        have_remote=false
60fi
61AM_CONDITIONAL(BUILD_REMOTE_CONTROL, $have_remote)
62
63dnl ****
64dnl gtkspell
65dnl ****
66AC_ARG_ENABLE(gtkspell,
67  [  --disable-gtkspell      build spell checking support [default auto]],
68  enable_gtkspell=$enableval, enable_gtkspell=auto)
69
70if test "x$enable_gtkspell" = "xauto";then
71        PKG_CHECK_EXISTS([gtkspell-2.0], [enable_gtkspell=yes], [enable_gtkspell=no])
72fi
73if 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
78else
79        have_gtkspell=false
80fi
81AM_CONDITIONAL(BUILD_GTKSPELL, $have_gtkspell)
82
83
84dnl ****
85dnl xscreensaver
86dnl ****
87AC_ARG_ENABLE([idle],
88  [  --disable-idle          build idle module [default auto]],
89  enable_idle=$enableval, enable_idle=yes)
90
91if 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
112else
113        have_idle=false
114fi
115AM_CONDITIONAL(BUILD_IDLE, $have_idle)
116
117AM_PATH_PYTHON([2.4])
118if test "x$PYTHON" = "x:"; then
119        AC_MSG_ERROR([Python not found])
120fi
121
122dnl ****
123dnl tray icon
124dnl ****
125AC_ARG_ENABLE(trayicon,
126  [  --disable-trayicon      build trayicon module [default yes]],
127  enable_trayicon=$enableval, enable_trayicon=yes)
128test "x$enable_trayicon" = "xyes" && have_trayicon=true || have_trayicon=false
129AM_CONDITIONAL(BUILD_TRAYICON, $have_trayicon)
130
131ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
132AC_SUBST(ACLOCAL_AMFLAGS)
133
134AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
135AC_SUBST([PYTHON_INCLUDES])
136
137AS_AC_EXPAND(DATADIR, "${datadir}")
138
139AS_AC_EXPAND(LIBDIR, ${libdir})
140
141AS_AC_EXPAND(DOCDIR, "${docdir}")
142
143AC_SUBST(VERSION)
144AC_SUBST(PACKAGE)
145AC_SUBST(DATADIR)
146AC_SUBST(LIBDIR)
147AS_AC_EXPAND(DATADIR, "${DATADIR}")
148AC_SUBST(DOCDIR)
149AS_AC_EXPAND(DOCDIR, "${DOCDIR}")
150
151AC_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])
166AC_OUTPUT
167echo "
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.