root/configure.ac

Revision 7a60425e90946bbfc713a81f656fd6532385deee, 2.7 KB (checked in by Aleksandar Krsteski <alekrsteski@…>, 13 months ago)

Now we depend on gtk+-3.0 and pygobject-2.0

  • Property mode set to 100644
Line 
1# Copyright (C) 2007-2009 Lincoln de Sousa <lincoln@minaslivre.org>
2# Copyright (C) 2007 Gabriel Falcão <gabrielteratos@gmail.com>
3#
4# This program is free software; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License as
6# published by the Free Software Foundation; either version 2 of the
7# License, or (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12# General Public License for more details.
13#
14# You should have received a copy of the GNU General Public
15# License along with this program; if not, write to the
16# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17# Boston, MA 02111-1307, USA.
18
19AC_INIT([guake], [0.4.2], [http://guake.org/])
20
21AC_CONFIG_HEADERS([config.h])
22
23AC_CONFIG_MACRO_DIR([m4])
24
25AM_INIT_AUTOMAKE([-Wall -Werror])
26
27AC_PROG_LIBTOOL
28
29AC_PROG_CC
30
31AC_PROG_INTLTOOL([0.35.0])
32AM_GLIB_GNU_GETTEXT
33
34dnl python checks
35AM_PATH_PYTHON(2.5.0)
36
37PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
38PYTHON_LIBS="-lpython$PYTHON_VERSION"
39PYTHON_CFLAGS="-I$PY_PREFIX/include/python$PYTHON_VERSION"
40
41AC_SUBST([PYTHON_LIBS])
42AC_SUBST([PYTHON_CFLAGS])
43
44dnl gtk dependencie
45GTK_REQUIRED=2.99.3
46PYGOBJECT_REQUIRED=2.27.0
47PKG_CHECK_MODULES([DEPENDENCIES], [
48    gtk+-3.0 >= $GTK_REQUIRED
49    pygobject-2.0 >= $PYGOBJECT_REQUIRED
50    x11
51])
52AC_SUBST([DEPENDENCIES_CFLAGS])
53AC_SUBST([DEPENDENCIES_LIBS])
54
55dnl expanding useful variables
56AS_AC_EXPAND(LIBDIR, ${libdir})
57AS_AC_EXPAND(BINDIR, ${bindir})
58AS_AC_EXPAND(DATADIR, ${datarootdir})
59
60dnl Checking python-vte
61AC_MSG_CHECKING([for the python-vte package])
62ac_pvte_result=`$PYTHON -c 'try:
63    from gi.repository import Vte
64except Exception, e:
65    print str(e)' 2> /dev/null`
66
67if test -z "$ac_pvte_result"; then
68    AC_MSG_RESULT([yes])
69else
70    AC_MSG_RESULT([no])
71    AC_MSG_ERROR([cannot import Python module "Vte".
72    Please check if you have python-vte installed. The error was:
73    $ac_pvte_result])
74fi
75
76dnl gconf
77AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
78if test x"$GCONFTOOL" = xno; then
79    AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
80fi
81AM_GCONF_SOURCE_2
82
83dnl Internationalization
84GETTEXT_PACKAGE=guake
85ALL_LINGUAS="pt_BR ja es ru pl no de it fa hu el zh_CN fr"
86
87AC_SUBST([GETTEXT_PACKAGE])
88AC_SUBST([ALL_LINGUAS])
89
90dnl output files
91AC_CONFIG_FILES([
92    Makefile
93    data/Makefile
94    data/guake.desktop
95    data/guake-prefs.desktop
96    data/org.guake.Guake.service
97    data/pixmaps/Makefile
98    po/Makefile.in
99    src/Makefile
100    src/globalhotkeys/Makefile
101    src/globals.py
102])
103
104AC_OUTPUT
Note: See TracBrowser for help on using the browser.