File: configure.in

package info (click to toggle)
gdesklets 0.36-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 9,604 kB
  • ctags: 2,161
  • sloc: python: 12,197; sh: 9,020; ansic: 1,712; makefile: 807; xml: 324
file content (181 lines) | stat: -rw-r--r-- 5,097 bytes parent folder | download
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.53)
AC_INIT(configure.in)
AM_INIT_AUTOMAKE(gdesklets, 0.36, http://bugzilla.gnome.org/enter_bug.cgi?product=gDesklets)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE

dnl Required programs
AC_PROG_CC
AC_HEADER_STDC
AC_DISABLE_STATIC
AC_PROG_INTLTOOL
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_LN_S
AC_PROG_MAKE_SET

CFLAGS="-Os -g"

AC_ARG_ENABLE(debug,[  --enable-debug  Maximum debugging],
              set_debug="$enableval",[set_debug=no])
AC_MSG_CHECKING(for more debugging including macro expansion)
if test "$GCC" = "yes" -a "$set_debug" != "no"; then
  AC_MSG_RESULT(yes)
  CFLAGS="-O0 -g3"
else
  AC_MSG_RESULT(no)
fi

AC_ARG_ENABLE(more-warnings,[  --enable-more-warnings  More compiler warnings],
              set_more_warnings="$enableval",[set_more_warnings=no])

AC_MSG_CHECKING(for more warnings, including -Werror)
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
    AC_MSG_RESULT(yes)
    CFLAGS="\
    -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
    -Wmissing-declarations -Wredundant-decls -Wunreachable-code \
    -Wpointer-arith -Wcast-align -Wsign-compare -ansi \
    "
else
    AC_MSG_RESULT(no)
fi

AM_PATH_PYTHON([2.3])
PYTHON_PREFIX=`python -c "import sys; print sys.prefix"`
PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION"
AC_CHECK_HEADER([$PYTHON_PREFIX/include/python$PYTHON_VERSION/Python.h],,
    AC_ERROR([Can't find Python.h! You will need python's development package to compile gDesklets.]))
AC_SUBST(PYTHON_CFLAGS)

PKG_CHECK_MODULES(GDESKLETS, pygtk-2.0 >= 2.10.0 pyorbit-2 >= 2.0.1 gnome-python-2.0 >= 2.12.0)
AC_SUBST(GDESKLETS_CFLAGS)
AC_SUBST(GDESKLETS_LIBS)

PKG_CHECK_MODULES(UTILS, glib-2.0 >= 2.10.0 gtk+-2.0 >= 2.10.0 gdk-pixbuf-2.0 >=
2.10.0 pygtk-2.0 >= 2.10.0)
AC_SUBST(UTILS_CFLAGS)
AC_SUBST(UTILS_LIBS)

PKG_CHECK_MODULES(GLIBTOP, pygtk-2.0 >= 2.10.0 libgtop-2.0 >= 2.10.0)
AC_SUBST(GLIBTOP_CFLAGS)
AC_SUBST(GLIBTOP_LIBS)

PKG_CHECK_MODULES(SVG, pygtk-2.0 >= 2.10.0 gtk+-2.0 >= 2.10.0 librsvg-2.0 >= 2.8.0)
AC_SUBST(SVG_CFLAGS)
AC_SUBST(SVG_LIBS)

PKG_CHECK_MODULES(TILING, pygtk-2.0 >= 2.10.0 gtk+-2.0 >= 2.10.0 gdk-pixbuf-2.0 >= 2.10.0)
AC_SUBST(TILING_CFLAGS)
AC_SUBST(TILING_LIBS)

PKG_CHECK_MODULES(X11, pygtk-2.0 >= 2.10.0 gtk+-2.0 >= 2.10.0 gdk-2.0 >= 2.10.0)
AC_SUBST(X11_CFLAGS)
AC_SUBST(X11_LIBS)

PKG_CHECK_MODULES(SHARED_MIME_INFO, shared-mime-info)
AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database)
AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database)

ALL_LINGUAS="ar az bg ca cs de dz el en_CA en_GB es eu fi fr gl he hr hu is it ja ko lt lv ms nb ne nl oc pa pl pt pt_BR ru rw sq sr sr@Latn sv tr uk vi zh_CN zh_HK zh_TW"
AC_SUBST(ALL_LINGUAS)
GETTEXT_PACKAGE=gdesklets
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
AM_GLIB_GNU_GETTEXT

coredir=${libdir}/gdesklets
AC_SUBST(coredir)

PIXMAPDIR=${datadir}/pixmaps
AC_SUBST(PIXMAPDIR)

localedir=${datadir}/locale
AC_SUBST(localedir)

gnulocaledir=${localedir}
AC_SUBST(gnulocaledir)

AC_OUTPUT([
Controls/ArrayBuffer/Makefile
Controls/Calendar/Makefile
Controls/EventPipe/Makefile
Controls/HDDTemp/Makefile
Controls/Makefile
Controls/Sensor/Makefile
Controls/System/Makefile
Controls/Time/Makefile
Controls/URI/Makefile
Makefile
Additions/Makefile
Additions/bg/Makefile
Displays/Makefile
Displays/15pieces/Makefile
Displays/15pieces/gDesklets/Makefile
Displays/15pieces/Globe/Makefile
Displays/15pieces/Gnome/Makefile
Displays/15pieces/Numbers/Makefile
Displays/15pieces/Tux/Makefile
Displays/Calendar/Makefile
Displays/Calendar/months/Makefile
Displays/Clock/Makefile
Displays/Clock/gfx/Makefile
Displays/Quote-of-the-Day/Makefile
Sensors/External/Makefile
Sensors/FontSelector/Makefile
Sensors/Makefile
config/Makefile
data/Makefile
display/Makefile
doc/Makefile
doc/man/Makefile
doc/basic/Makefile
doc/basic/Images/Makefile
factory/Makefile
layout/Makefile
libdesklets/Makefile
libdesklets/controls/Makefile
libdesklets/system/FreeBSD/Makefile
libdesklets/system/Linux/Makefile
libdesklets/system/Makefile
libdesklets/system/NetBSD/Makefile
libdesklets/system/OpenBSD/Makefile
main/Makefile
plugin/Makefile
po/Makefile.in
scripting/Makefile
sensor/Makefile
shell/Makefile
shell/plugins/ControlBrowser/Makefile
shell/plugins/ControlCollection/Makefile
shell/plugins/ControlsView/Makefile
shell/plugins/DisplayBrowser/Makefile
shell/plugins/DisplayCollection/Makefile
shell/plugins/DisplayView/Makefile
shell/plugins/Help/Makefile
shell/plugins/Makefile
shell/plugins/Menu/Makefile
shell/plugins/PackageInstaller/Makefile
shell/plugins/Profiles/Makefile
shell/plugins/Shell/Makefile
shell/plugins/StatusBar/Makefile
shell/plugins/ViewSwitch/Makefile
shell/plugins/gDeskletsClient/Makefile
utils/Makefile
])


echo "
=============
Configuration
=============

  gDesklets version: ${VERSION}
  Python prefix:     ${PYTHON_PREFIX}
  Python version:    ${PYTHON_VERSION}

  Install location:  ${prefix}
  Enable warnings:   ${set_more_warnings}
  Enable debugging:  ${set_debug}
"