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