-
-
Notifications
You must be signed in to change notification settings - Fork 192
/
configure.ac
366 lines (305 loc) · 11.1 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
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
AC_PREREQ(2.61)
AC_INIT([blueman], [2.4.3], [https://github.com/blueman-project/blueman/issues])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIRS([m4])
AM_INIT_AUTOMAKE([1.16.3 foreign dist-xz])
AM_MAINTAINER_MODE([enable])
AC_PROG_CC
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG
dnl ==========================================================================
dnl define PKG_CHECK_VAR for old pkg-config <= 0.28
m4_ifndef([PKG_CHECK_VAR], [
AC_DEFUN([PKG_CHECK_VAR],
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
AS_VAR_COPY([$1], [pkg_cv_][$1])
AS_VAR_IF([$1], [""], [$5], [$4])dnl
])dnl PKG_CHECK_VAR
])
dnl ==========================================================================
GETTEXT_PACKAGE="blueman"
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [The gettext package])
AM_GNU_GETTEXT_VERSION([0.19.7])
AM_GNU_GETTEXT([external])
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
AM_PATH_PYTHON([3.8])
PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}])
AC_SUBST(PYTHON_LIBS)
AC_SUBST(PYTHON_CFLAGS)
AC_SUBST(PYTHON)
AC_ARG_ENABLE([runtime_deps_check],
AS_HELP_STRING([--disable-runtime-deps-check], [Disable runtime dependency check (for package maintainers)]),
[enable_runtime_deps_check=$enableval], [enable_runtime_deps_check=yes])
if test "x$enable_runtime_deps_check" = "xyes"; then
AC_CHECK_PROGS([NETWORKTOOLS],[ifconfig ip],[no])
if test "x$NETWORKTOOLS" = "xno"; then
AC_MSG_ERROR([ifconfig or ip not found, install net-tools or iproute2])
fi
fi
PKG_CHECK_MODULES([PYGOBJECT],[pygobject-3.0 >= 3.27.2])
AC_SUBST([PYGOBJECT_CFLAGS])
AC_SUBST([PYGOBJECT_LIBS])
AC_ARG_VAR([CYTHONEXEC], [Cython compiler])
if test "x$CYTHONEXEC" = "x"; then
AC_PATH_PROGS([CYTHONEXEC],[cython3 cython])
fi
AC_SUBST([CYTHONEXEC])
AC_MSG_CHECKING([for cython executable])
AC_MSG_RESULT([${CYTHONEXEC}])
if test "x$CYTHONEXEC" = "x"; then
AC_MSG_ERROR(["Fatal: cython not found.
Get Cython from
* your system's packages (recommended)
* upstream at http://www.cython.org/
"])
fi
if test "$sysconfdir" = "\${prefix}/etc" \
&& { test "$prefix" = "NONE" || test "$prefix" = "/usr" \
|| test "$prefix" = "/usr/" ; } ; then
if test "$( (uname -s) )" = "Linux" ; then
sysconfdir=/etc
fi
(
prefix=$ac_default_prefix
sysconfdir=`eval echo "$sysconfdir"`
AC_MSG_NOTICE([configuration directory is "$sysconfdir".])
AC_MSG_NOTICE([use --sysconfdir to override.])
)
fi
dnl ----------------------------------
dnl - Various paths and other defines
dnl ----------------------------------
AC_SUBST(VERSION)
AC_SUBST(PACKAGE)
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
AC_SUBST(SYSCONFDIR)
AS_AC_EXPAND(BINDIR, $bindir)
AC_SUBST(BINDIR)
AS_AC_EXPAND(DATADIR, $datarootdir)
AC_SUBST(DATADIR)
AS_AC_EXPAND(PYTHONDIR, $pythondir)
AC_SUBST(PYTHONDIR)
AS_AC_EXPAND(PKGLIBDIR, $libdir/blueman)
AC_SUBST(PKGLIBDIR)
AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
AC_SUBST(LIBEXECDIR)
dnl AS_AC_EXPAND([PREFIX], $prefix)
AC_SUBST(prefix)
pkgdatadir="${DATADIR}/${PACKAGE}"
AC_SUBST(pkgdatadir)
icondir="${DATADIR}/icons"
AC_SUBST(icondir)
AS_AC_EXPAND(LOCALEDIR, $datarootdir/locale)
AC_SUBST(LOCALEDIR)
AS_AC_EXPAND(DOCDIR, $docdir)
AC_SUBST(DOCDIR)
dnl ---------------------------------
dnl dhcp config file location
dnl ---------------------------------
AC_ARG_WITH([dhcp_config],
AS_HELP_STRING([--with-dhcp-config=PATH], [Set dhcp3 server configuration path]),
[dhconfig="$withval"], [dhconfig='/etc/dhcp3/dhcpd.conf'])
AC_SUBST([dhconfig])
dnl ---------------------------------
AC_ARG_WITH([bluetoothd_path],
AS_HELP_STRING([--with-bluetoothd-path=PATH], [Set bluetooth daemon path]),
[bluetoothd_path="$withval"], [bluetoothd_path='/usr/libexec/bluetoothd'])
AC_SUBST([bluetoothd_path])
AC_ARG_ENABLE([polkit],
AS_HELP_STRING([--enable-polkit], [Enable policykit support]),
[enable_polkit=$enableval],[enable_polkit=yes])
AS_IF([test "x$enable_polkit" = "xyes"],
[PKG_CHECK_MODULES([POLKIT], [polkit-agent-1], [have_polkit=yes], [have_polkit=no])],
[have_polkit=no])
AM_CONDITIONAL([HAVE_POLKIT], [test "x$have_polkit" = "xyes"])
AS_IF([test "x$have_polkit" = "xyes"],
[POLKIT=True],
[POLKIT=False])
AC_SUBST([POLKIT])
AC_ARG_ENABLE([caja-sendto],
AS_HELP_STRING([--enable-caja-sendto], [Enable caja-sendto installation]),
[enable_caja=$enableval], [enable_caja=yes])
AS_IF([test "x$enable_caja" = "xyes"],
[PKG_CHECK_EXISTS([caja-python], [have_caja_python=yes], [have_caja_python=no])],
[have_caja_python=no])
AM_CONDITIONAL([HAVE_CAJA_PYTHON], [test "x$have_caja_python" = "xyes"])
AC_ARG_ENABLE([nemo-sendto],
AS_HELP_STRING([--enable-nemo-sendto], [Enable nemo-sendto installation]),
[enable_nemo=$enableval], [enable_nemo=yes])
AS_IF([test "x$enable_nemo" = "xyes"],
[PKG_CHECK_EXISTS([nemo-python], [have_nemo_python=yes], [have_nemo_python=no])],
[have_nemo_python=no])
AM_CONDITIONAL([HAVE_NEMO_PYTHON], [test "x$have_nemo_python" = "xyes"])
AC_ARG_ENABLE([nautilus-sendto],
AS_HELP_STRING([--enable-nautilus-sendto], [Enable nautilus-sendto installation]),
[enable_nautilus=$enableval], [enable_nautilus=yes])
AS_IF([test "x$enable_nautilus" = "xyes"],
[PKG_CHECK_EXISTS([nautilus-python], [have_nautilus_python=yes], [have_nautilus_python=no])],
[have_nautilus_python=no])
AM_CONDITIONAL([HAVE_NAUTILUS_PYTHON], [test "x$have_nautilus_python" = "xyes"])
AC_ARG_ENABLE([thunar-sendto],
AS_HELP_STRING([--enable-thunar-sendto], [Enable thunar-sendto installation]),
[have_thunar=$enableval], [have_thunar=yes])
AM_CONDITIONAL([HAVE_THUNAR], [test "x$have_thunar" = "xyes"])
AC_ARG_ENABLE(settings-integration,
AS_HELP_STRING([--enable-settings-integration], [Enable settings manager integration with xfce and mate]),
[have_settings=$enableval], [have_settings=yes])
AM_CONDITIONAL([HAVE_SETTINGS], [test "x$have_settings" = "xyes"])
dnl ----------------------------
PKG_CHECK_MODULES([BLUEZ], [bluez >= 5.0 gthread-2.0 >= 2.32])
AC_SUBST([BLUEZ_CFLAGS])
AC_SUBST([BLUEZ_LIBS])
dnl ----------------------------
AC_ARG_ENABLE([pulseaudio],
AS_HELP_STRING([--disable-pulseaudio], [Disable PulseAudio support]),
[use_pulseaudio=$enableval], [use_pulseaudio=yes])
AM_CONDITIONAL([HAVE_PULSEAUDIO], [test "x$use_pulseaudio" = "xyes"])
dnl ----------------------------
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=PATH],
[Directory for systemd system unit files]
[[default=/usr/lib/systemd/system]]),
[systemd_system_unit_dir="$withval"],
[PKG_CHECK_VAR([systemd_system_unit_dir], [systemd], [systemdsystemunitdir],
[], [systemd_system_unit_dir='/usr/lib/systemd/system'])])
AC_SUBST([systemd_system_unit_dir])
AM_CONDITIONAL([SYSTEMD_SYSTEM_UNIT_DIR], [test "x$systemd_system_unit_dir" != "xno"])
AC_ARG_WITH([systemduserunitdir],
AS_HELP_STRING([--with-systemduserunitdir=PATH],
[Directory for systemd user unit files]
[[default=/usr/lib/systemd/user]]),
[systemd_user_unit_dir="$withval"],
[PKG_CHECK_VAR([systemd_user_unit_dir], [systemd], [systemduserunitdir],
[], [systemd_user_unit_dir='/usr/lib/systemd/user'])])
AC_SUBST([systemd_user_unit_dir])
AM_CONDITIONAL([SYSTEMD_USER_UNIT_DIR], [test "x$systemd_user_unit_dir" != "xno"])
# GSettings related settings
GLIB_GSETTINGS
AC_OUTPUT([
Makefile
apps/Makefile
apps/blueman-adapters
apps/blueman-applet
apps/blueman-manager
apps/blueman-mechanism
apps/blueman-rfcomm-watcher
apps/blueman-sendto
apps/blueman-services
apps/blueman-tray
blueman/Makefile
blueman/Constants.py
blueman/bluez/Makefile
blueman/bluez/obex/Makefile
blueman/config/Makefile
blueman/gui/Makefile
blueman/gui/applet/Makefile
blueman/gui/manager/Makefile
blueman/plugins/Makefile
blueman/plugins/services/Makefile
blueman/plugins/applet/Makefile
blueman/plugins/mechanism/Makefile
blueman/plugins/manager/Makefile
blueman/main/Makefile
blueman/main/applet/Makefile
blueman/main/indicators/Makefile
blueman/services/Makefile
blueman/services/meta/Makefile
data/Makefile
data/configs/Makefile
data/icons/Makefile
data/icons/hicolor/Makefile
data/icons/hicolor/16x16/Makefile
data/icons/hicolor/16x16/devices/Makefile
data/icons/hicolor/16x16/status/Makefile
data/icons/hicolor/16x16/apps/Makefile
data/icons/hicolor/22x22/Makefile
data/icons/hicolor/22x22/status/Makefile
data/icons/hicolor/22x22/apps/Makefile
data/icons/hicolor/24x24/Makefile
data/icons/hicolor/24x24/status/Makefile
data/icons/hicolor/24x24/apps/Makefile
data/icons/hicolor/32x32/Makefile
data/icons/hicolor/32x32/status/Makefile
data/icons/hicolor/32x32/apps/Makefile
data/icons/hicolor/48x48/Makefile
data/icons/hicolor/48x48/status/Makefile
data/icons/hicolor/48x48/apps/Makefile
data/icons/hicolor/64x64/Makefile
data/icons/hicolor/64x64/status/Makefile
data/icons/hicolor/64x64/apps/Makefile
data/icons/hicolor/72x72/Makefile
data/icons/hicolor/72x72/status/Makefile
data/icons/hicolor/72x72/apps/Makefile
data/icons/hicolor/96x96/Makefile
data/icons/hicolor/96x96/status/Makefile
data/icons/hicolor/96x96/apps/Makefile
data/icons/hicolor/128x128/Makefile
data/icons/hicolor/128x128/status/Makefile
data/icons/hicolor/128x128/apps/Makefile
data/icons/hicolor/192x192/Makefile
data/icons/hicolor/192x192/status/Makefile
data/icons/hicolor/192x192/apps/Makefile
data/icons/hicolor/256x256/Makefile
data/icons/hicolor/256x256/status/Makefile
data/icons/hicolor/256x256/apps/Makefile
data/icons/hicolor/scalable/Makefile
data/icons/hicolor/scalable/devices/Makefile
data/icons/hicolor/scalable/emblems/Makefile
data/icons/hicolor/scalable/actions/Makefile
data/icons/hicolor/scalable/status/Makefile
data/icons/hicolor/scalable/apps/Makefile
data/icons/pixmaps/Makefile
data/ui/Makefile
data/man/Makefile
data/configs/blueman-applet.service
data/configs/blueman-manager.service
data/configs/blueman-mechanism.service
data/configs/org.blueman.Applet.service
data/configs/org.blueman.Manager.service
data/configs/org.blueman.Mechanism.service
module/Makefile
po/Makefile.in
sendto/Makefile
test/Makefile
test/apps/Makefile
test/bluez/Makefile
test/bluez/obex/Makefile
test/gui/Makefile
test/gui/applet/Makefile
test/gui/manager/Makefile
test/main/Makefile
test/main/applet/Makefile
test/main/indicators/Makefile
test/module/Makefile
test/plugins/Makefile
test/plugins/applet/Makefile
test/plugins/manager/Makefile
test/plugins/mechanism/Makefile
test/plugins/services/Makefile
test/services/Makefile
test/services/meta/Makefile
test/testhelpers/Makefile
])
echo
echo $PACKAGE $VERSION
echo
echo Prefix: $prefix
echo System configuration directory: $sysconfdir
echo Python version: $PYTHON_VERSION
echo Policykit-1 Enabled: $have_polkit
echo Thunar sendto installation enabled: $have_thunar
echo Caja sendto: $have_caja_python
echo Nemo sendto: $have_nemo_python
echo Nautilus sendto: $have_nautilus_python
echo Settings menu integration enabled: $have_settings
echo Dhcpd 3 configuration file: $dhconfig
echo Bluetooth daemon path: $bluetoothd_path
echo PulseAudio support: $use_pulseaudio
echo Systemd system unit dir: ${systemd_system_unit_dir}
echo Systemd user unit dir: ${systemd_user_unit_dir}
echo Icon theme: gnome-icon-theme, mate-icon-theme, adwaita-icon-theme, elementary-xfce, or Papirus
echo