configure.ac 2.13 KB
Newer Older
dkirov's avatar
dkirov committed
1
AC_INIT([Gajim - A Jabber Instant Messager],
Yann Leboulanger's avatar
Yann Leboulanger committed
2
		[0.13.3],[http://trac.gajim.org/],[gajim])
dkirov's avatar
dkirov committed
3
AC_PREREQ([2.59])
4

dkirov's avatar
dkirov committed
5
AC_CONFIG_HEADER(config.h)
6
AC_CONFIG_AUX_DIR(config)
dkirov's avatar
dkirov committed
7
AC_CONFIG_MACRO_DIR([m4])
8 9

AM_INIT_AUTOMAKE([1.8])
dkirov's avatar
dkirov committed
10 11
AM_MAINTAINER_MODE

12 13 14
dnl Make Objective-C work with automake
AM_CONDITIONAL([am__fastdepOBJC], false)

dkirov's avatar
dkirov committed
15
IT_PROG_INTLTOOL([0.35.0])
dkirov's avatar
dkirov committed
16
PKG_PROG_PKG_CONFIG([0.19])
dkirov's avatar
dkirov committed
17 18 19 20 21 22 23 24 25 26

AM_DISABLE_STATIC
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)

AC_ISC_POSIX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
dkirov's avatar
dkirov committed
27 28
AC_C_CONST
AC_CHECK_HEADERS([libintl.h])
dkirov's avatar
dkirov committed
29
AC_PATH_X
dkirov's avatar
dkirov committed
30

dkirov's avatar
dkirov committed
31

dkirov's avatar
dkirov committed
32 33 34 35
GETTEXT_PACKAGE=gajim
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"], [Gettext package])
AM_GLIB_GNU_GETTEXT
dkirov's avatar
dkirov committed
36
AM_NLS
dkirov's avatar
dkirov committed
37 38


dkirov's avatar
dkirov committed
39 40 41
dnl ****
dnl pygtk and gtk+
dnl ****
42
PKG_CHECK_MODULES([PYGTK], [gtk+-2.0 >= 2.12.0 pygtk-2.0 >= 2.12.0])
dkirov's avatar
dkirov committed
43 44 45 46 47
AC_SUBST(PYGTK_CFLAGS)
AC_SUBST(PYGTK_LIBS)
PYGTK_DEFS=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
AC_SUBST(PYGTK_DEFS)

48
AM_PATH_PYTHON([2.5])
dkirov's avatar
dkirov committed
49 50 51 52
if test "x$PYTHON" = "x:"; then
	AC_MSG_ERROR([Python not found])
fi

dkirov's avatar
dkirov committed
53 54 55 56
dnl ****
dnl tray icon
dnl ****
AC_ARG_ENABLE(trayicon,
jimpp's avatar
jimpp committed
57
  [  --disable-trayicon      do not build trayicon module [default yes]],
dkirov's avatar
dkirov committed
58 59 60 61
  enable_trayicon=$enableval, enable_trayicon=yes)
test "x$enable_trayicon" = "xyes" && have_trayicon=true || have_trayicon=false
AM_CONDITIONAL(BUILD_TRAYICON, $have_trayicon)

dkirov's avatar
dkirov committed
62 63 64
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
AC_SUBST(ACLOCAL_AMFLAGS)

dkirov's avatar
dkirov committed
65
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
dkirov's avatar
dkirov committed
66
AC_SUBST([PYTHON_INCLUDES])
dkirov's avatar
dkirov committed
67

dkirov's avatar
dkirov committed
68
AS_AC_EXPAND(DATADIR, "${datadir}")
69
AS_AC_EXPAND(LIBDIR, "${libdir}")
dkirov's avatar
dkirov committed
70
AS_AC_EXPAND(DOCDIR, "${docdir}")
71
AS_AC_EXPAND(LOCALEDIR, "${localedir}")
dkirov's avatar
dkirov committed
72 73 74 75

AC_SUBST(VERSION)
AC_SUBST(PACKAGE)

dkirov's avatar
dkirov committed
76
AC_CONFIG_FILES([ 
dkirov's avatar
dkirov committed
77 78 79 80 81 82
	Makefile
	data/Makefile
	data/glade/Makefile
	data/emoticons/Makefile
	data/pixmaps/Makefile
	data/iconsets/Makefile
js's avatar
js committed
83
	data/moods/Makefile
84
	data/activities/Makefile
dkirov's avatar
dkirov committed
85
	data/gajim.desktop.in
dkirov's avatar
dkirov committed
86
	data/defs.py
dkirov's avatar
dkirov committed
87 88
	src/Makefile
	scripts/gajim
89 90
	scripts/gajim-remote:scripts/gajim.in
	scripts/gajim-history-manager:scripts/gajim.in
dkirov's avatar
dkirov committed
91 92 93
	po/Makefile.in
])
AC_OUTPUT
dkirov's avatar
dkirov committed
94 95 96 97 98
echo " 
***************************** 
  Build features:
    trayicon ......... ${have_trayicon}
*****************************"