Fixed some build warnings
[platform/upstream/connman.git] / configure.ac
1 AC_PREREQ(2.60)
2 AC_INIT(connman, 1.35)
3
4 AC_CONFIG_MACRO_DIR([m4])
5
6 AM_INIT_AUTOMAKE([foreign subdir-objects color-tests])
7 AC_CONFIG_HEADERS([config.h])
8
9 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
10
11 AM_MAINTAINER_MODE
12
13 AC_PREFIX_DEFAULT(/usr/local)
14
15 PKG_PROG_PKG_CONFIG
16
17 COMPILER_FLAGS
18
19 AC_SUBST(abs_top_srcdir)
20 AC_SUBST(abs_top_builddir)
21
22 AC_LANG_C
23
24 AC_PROG_CC
25 AM_PROG_CC_C_O
26 AC_PROG_CC_PIE
27 AC_PROG_INSTALL
28 AC_PROG_MKDIR_P
29
30 m4_define([_LT_AC_TAGCONFIG], [])
31 m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
32
33 AC_DISABLE_STATIC
34 AC_PROG_LIBTOOL
35
36 gl_CONFIGMAKE_PREP
37
38 AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optimization],
39                         [disable code optimization through compiler]), [
40         if (test "${enableval}" = "no"); then
41                 CFLAGS="$CFLAGS -O0 -U_FORTIFY_SOURCE"
42         fi
43 ])
44
45 AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
46                         [enable compiling with debugging information]), [
47         if (test "${enableval}" = "yes" &&
48                                 test "${ac_cv_prog_cc_g}" = "yes"); then
49                 CFLAGS="$CFLAGS -g"
50         fi
51 ])
52
53 AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie],
54                         [enable position independent executables flag]), [
55         if (test "${enableval}" = "yes" &&
56                                 test "${ac_cv_prog_cc_pie}" = "yes"); then
57                 CFLAGS="$CFLAGS -fPIE"
58                 LDFLAGS="$LDFLAGS -pie"
59         fi
60 ])
61
62 AC_ARG_ENABLE(hh2serial-gps,
63         AC_HELP_STRING([--enable-hh2serial-gps], [enable hh2serial GPS support]),
64                         [enable_hh2serial_gps=${enableval}], [enable_hh2serial_gps="no"])
65 AM_CONDITIONAL(HH2SERIAL_GPS, test "${enable_hh2serial_gps}" != "no")
66 AM_CONDITIONAL(HH2SERIAL_GPS_BUILTIN, test "${enable_hh2serial_gps}" = "builtin")
67
68 AC_ARG_ENABLE(telephony,
69         AC_HELP_STRING([--enable-telephony], [enable Telephony support]),
70                         [enable_telephony=${enableval}], [enable_telephony="yes"])
71 AM_CONDITIONAL(TELEPHONY, test "${enable_telephony}" != "no")
72 AM_CONDITIONAL(TELEPHONY_BUILTIN, test "${enable_telephony}" = "builtin")
73
74 AC_ARG_ENABLE(tizen-ext,
75         AC_HELP_STRING([--enable-tizen-ext], [enable TIZEN extensions]),
76                         [if (test "${enableval}" = "yes"); then
77                                 CFLAGS="$CFLAGS -DTIZEN_EXT"
78                                 LIBS="$LIBS -lsmack"
79                         fi])
80 AM_CONDITIONAL(TIZEN_EXT, test "${enable-tizen-ext}" != "no")
81
82 AC_ARG_ENABLE(tizen-ext-wifi-mesh,
83         AC_HELP_STRING([--enable-tizen-ext-wifi-mesh], [enable TIZEN extensions for Wi-Fi Mesh]),
84                         [CFLAGS="$CFLAGS -DTIZEN_EXT_WIFI_MESH"], [enable_tizen_ext_wifi_mesh="no"])
85 AM_CONDITIONAL(TIZEN_EXT_WIFI_MESH, test "${enable_tizen_ext_wifi_mesh}" != "no")
86
87 AC_ARG_WITH(openconnect, AC_HELP_STRING([--with-openconnect=PROGRAM],
88         [specify location of openconnect binary]), [path_openconnect=${withval}])
89
90 AC_ARG_ENABLE(openconnect,
91         AC_HELP_STRING([--enable-openconnect], [enable openconnect support]),
92                         [enable_openconnect=${enableval}], [enable_openconnect="no"])
93 if (test "${enable_openconnect}" != "no"); then
94         if (test -z "${path_openconnect}"); then
95                 AC_PATH_PROG(OPENCONNECT, [openconnect], [], $PATH:/bin:/usr/bin)
96                 if (test -z "${OPENCONNECT}"); then
97                         AC_MSG_ERROR(openconnect binary not found)
98                 fi
99         else
100                 OPENCONNECT="${path_openconnect}"
101                 AC_SUBST(OPENCONNECT)
102         fi
103 fi
104 AM_CONDITIONAL(OPENCONNECT, test "${enable_openconnect}" != "no")
105 AM_CONDITIONAL(OPENCONNECT_BUILTIN, test "${enable_openconnect}" = "builtin")
106
107 AC_ARG_WITH(openvpn, AC_HELP_STRING([--with-openvpn=PROGRAM],
108         [specify location of openvpn binary]), [path_openvpn=${withval}])
109
110 AC_ARG_ENABLE(openvpn,
111         AC_HELP_STRING([--enable-openvpn], [enable openvpn support]),
112                         [enable_openvpn=${enableval}], [enable_openvpn="no"])
113 if (test "${enable_openvpn}" != "no"); then
114         if (test -z "${path_openvpn}"); then
115                 AC_PATH_PROG(OPENVPN, [openvpn], [/usr/bin/openvpn], $PATH:/bin:/usr/bin)
116                 if (test -z "${OPENVPN}"); then
117                         AC_MSG_ERROR(openvpn binary not found)
118                 fi
119         else
120                 OPENVPN="${path_openvpn}"
121                 AC_SUBST(OPENVPN)
122         fi
123 fi
124 AM_CONDITIONAL(OPENVPN, test "${enable_openvpn}" != "no")
125 AM_CONDITIONAL(OPENVPN_BUILTIN, test "${enable_openvpn}" = "builtin")
126
127 AC_ARG_WITH(ipsec, AC_HELP_STRING([--with-ipsec=PROGRAM],
128         [specify location of ipsec binary]), [path_ipsec=${withval}])
129
130 AC_ARG_ENABLE(ipsec,
131         AC_HELP_STRING([--enable-ipsec], [enable ipsec support]),
132                         [enable_ipsec=${enableval}], [enable_ipsec="no"])
133 if (test "${enable_ipsec}" != "no"); then
134         PKG_CHECK_MODULES(GIO, gio-2.0 >= 2.28, dummy=yes,
135                                         AC_MSG_ERROR(GIO >= 2.28 is required))
136         AC_SUBST(GIO_CFLAGS)
137         AC_SUBST(GIO_LIBS)
138         if (test -z "${path_ipsec}"); then
139                 AC_PATH_PROG(IPSEC, [charon], [/usr/bin/charon], $PATH:/usr/bin)
140                 if (test -z "${IPSEC}"); then
141                         AC_MSG_ERROR(ipsec binary not found)
142                 fi
143         else
144                 IPSEC="${path_ipsec}"
145                 AC_SUBST(IPSEC)
146         fi
147 fi
148 AM_CONDITIONAL(IPSEC, test "${enable_ipsec}" != "no")
149 AM_CONDITIONAL(IPSEC_BUILTIN, test "${enable_ipsec}" = "builtin")
150
151 AC_ARG_WITH(vpnc, AC_HELP_STRING([--with-vpnc=PROGRAM],
152         [specify location of vpnc binary]), [path_vpnc=${withval}])
153
154 AC_ARG_ENABLE(vpnc,
155         AC_HELP_STRING([--enable-vpnc], [enable vpnc support]),
156                 [enable_vpnc=${enableval}], [enable_vpnc="no"])
157 if (test "${enable_vpnc}" != "no"); then
158         if (test -z "${path_vpnc}"); then
159                 AC_PATH_PROG(VPNC, [vpnc], [], $PATH:/bin:/usr/bin)
160                 if (test -z "${VPNC}"); then
161                         AC_MSG_ERROR(vpnc binary not found)
162                 fi
163         else
164                 VPNC="${path_vpnc}"
165                 AC_SUBST(VPNC)
166         fi
167 fi
168 AM_CONDITIONAL(VPNC, test "${enable_vpnc}" != "no")
169 AM_CONDITIONAL(VPNC_BUILTIN, test "${enable_vpnc}" = "builtin")
170
171 AC_ARG_WITH(l2tp, AC_HELP_STRING([--with-l2tp=PROGRAM],
172         [specify location of l2tp binary]), [path_l2tp=${withval}])
173
174 AC_ARG_ENABLE(l2tp,
175         AC_HELP_STRING([--enable-l2tp], [enable l2tp support]),
176                         [enable_l2tp=${enableval}], [enable_l2tp="no"])
177 if (test "${enable_l2tp}" != "no"); then
178         if (test -z "${path_pppd}"); then
179                 AC_PATH_PROG(PPPD, [pppd], [/usr/bin/pppd], $PATH:/bin:/usr/bin)
180         else
181                 PPPD="${path_pppd}"
182                 AC_SUBST(PPPD)
183         fi
184         AC_CHECK_HEADERS(pppd/pppd.h, dummy=yes,
185                         AC_MSG_ERROR(ppp header files are required))
186         if (test -z "${path_l2tp}"); then
187                 AC_PATH_PROG(L2TP, [xl2tpd], [/usr/bin/xl2tpd], $PATH:/bin:/usr/bin)
188         else
189                 L2TP="${path_l2tp}"
190                 AC_SUBST(L2TP)
191         fi
192 fi
193 AM_CONDITIONAL(L2TP, test "${enable_l2tp}" != "no")
194 AM_CONDITIONAL(L2TP_BUILTIN, test "${enable_l2tp}" = "builtin")
195
196 AC_ARG_WITH(pptp, AC_HELP_STRING([--with-pptp=PROGRAM],
197         [specify location of pptp binary]), [path_pptp=${withval}])
198
199 AC_ARG_ENABLE(pptp,
200         AC_HELP_STRING([--enable-pptp], [enable pptp support]),
201                         [enable_pptp=${enableval}], [enable_pptp="no"])
202 if (test "${enable_pptp}" != "no"); then
203         if (test -z "${path_pppd}"); then
204                 AC_PATH_PROG(PPPD, [pppd], [/usr/bin/pppd], $PATH:/bin:/usr/bin)
205         else
206                 PPPD="${path_pppd}"
207                 AC_SUBST(PPPD)
208         fi
209         AC_CHECK_HEADERS(pppd/pppd.h, dummy=yes,
210                         AC_MSG_ERROR(ppp header files are required))
211         if (test -z "${path_pptp}"); then
212                 AC_PATH_PROG(PPTP, [pptp], [/usr/bin/pptp], $PATH:/bin:/usr/bin)
213         else
214                 PPTP="${path_pptp}"
215                 AC_SUBST(PPTP)
216         fi
217 fi
218 AM_CONDITIONAL(PPTP, test "${enable_pptp}" != "no")
219 AM_CONDITIONAL(PPTP_BUILTIN, test "${enable_pptp}" = "builtin")
220
221 AC_CHECK_HEADERS(resolv.h, dummy=yes,
222         AC_MSG_ERROR(resolver header files are required))
223 AC_CHECK_LIB(resolv, ns_initparse, dummy=yes, [
224         AC_CHECK_LIB(resolv, __ns_initparse, dummy=yes,
225                 AC_MSG_ERROR(resolver library support is required))
226 ])
227
228 AC_CHECK_FUNC(signalfd, dummy=yes,
229                         AC_MSG_ERROR(signalfd support is required))
230
231 AC_CHECK_LIB(dl, dlopen, dummy=yes,
232                         AC_MSG_ERROR(dynamic linking loader is required))
233
234 AC_ARG_ENABLE(iospm, AC_HELP_STRING([--enable-iospm],
235                 [enable Intel OSPM support]), [enable_iospm=${enableval}])
236 AM_CONDITIONAL(IOSPM, test "${enable_iospm}" = "yes")
237
238 AC_ARG_ENABLE(tist,
239         AC_HELP_STRING([--enable-tist], [enable TI Shared Transport support]),
240                         [enable_tist=${enableval}], [enable_tist="no"])
241 AM_CONDITIONAL(TIST, test "${enable_tist}" != "no")
242 AM_CONDITIONAL(TIST_BUILTIN, test "${enable_tist}" = "builtin")
243
244 AC_ARG_ENABLE(session-policy-local,
245         AC_HELP_STRING([--enable-session-policy-local], [enable local file Session policy configuration support]),
246                         [enable_session_policy_local=${enableval}], [enable_session_policy_local="no"])
247 AM_CONDITIONAL(SESSION_POLICY_LOCAL, test "${enable_session_policy_local}" != "no")
248 AM_CONDITIONAL(SESSION_POLICY_LOCAL_BUILTIN, test "${enable_session_policy_local}" = "builtin")
249
250 AC_ARG_WITH(stats-max-file-size, AC_HELP_STRING([--with-stats-max-file-size=SIZE],
251                         [Maximal size of a statistics round robin file]),
252                         [stats_max_file_size=${withval}])
253
254 if (test -z "${stats_max_file_size}"); then
255    # default size is 16 kByte
256    stats_max_file_size="16 * 8 * 128"
257 fi
258
259 AC_DEFINE_UNQUOTED([STATS_MAX_FILE_SIZE], (${stats_max_file_size}), [Maximal size of a statistics round robin file])
260
261 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.28, dummy=yes,
262                                 AC_MSG_ERROR(GLib >= 2.28 is required))
263 AC_SUBST(GLIB_CFLAGS)
264 AC_SUBST(GLIB_LIBS)
265
266 PKG_CHECK_MODULES(LIBSYSTEMD, libsystemd-daemon, dummy=yes,
267                                 AC_MSG_ERROR(libsystemd-daemon library is required))
268 AC_SUBST(LIBSYSTEMD_CFLAGS)
269 AC_SUBST(LIBSYSTEMD_LIBS)
270
271 PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.4, dummy=yes,
272                                 AC_MSG_ERROR(D-Bus >= 1.4 is required))
273 AC_SUBST(DBUS_CFLAGS)
274 AC_SUBST(DBUS_LIBS)
275
276 AC_ARG_WITH(dbusconfdir, AC_HELP_STRING([--with-dbusconfdir=PATH],
277         [path to D-Bus config directory]), [path_dbusconf=${withval}],
278                 [path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"])
279 if (test -z "${path_dbusconf}"); then
280         DBUS_CONFDIR="${sysconfdir}/dbus-1/system.d"
281 else
282         DBUS_CONFDIR="${path_dbusconf}/dbus-1/system.d"
283 fi
284 AC_SUBST(DBUS_CONFDIR)
285
286 AC_ARG_WITH(dbusdatadir, AC_HELP_STRING([--with-dbusdatadir=PATH],
287         [path to D-Bus data directory]), [path_dbusdata=${withval}],
288                 [path_dbusdata="`$PKG_CONFIG --variable=datadir dbus-1`"])
289 if (test -z "${path_dbusdata}"); then
290         DBUS_DATADIR="${datadir}/dbus-1/system-services"
291 else
292         DBUS_DATADIR="${path_dbusdata}/dbus-1/system-services"
293 fi
294 AC_SUBST(DBUS_DATADIR)
295
296 AC_ARG_WITH([systemdunitdir], AC_HELP_STRING([--with-systemdunitdir=DIR],
297         [path to systemd service directory]), [path_systemdunit=${withval}],
298                 [path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"])
299 if (test -n "${path_systemdunit}"); then
300         SYSTEMD_UNITDIR="${path_systemdunit}"
301         AC_SUBST(SYSTEMD_UNITDIR)
302 fi
303 AM_CONDITIONAL(SYSTEMD, test -n "${path_systemdunit}")
304
305 AC_ARG_WITH(firewall, AC_HELP_STRING([--with-firewall=TYPE],
306                         [specify which firewall type is used iptables or nftables [default=iptables]]),
307                 [firewall_type=${withval}],
308                 [firewall_type="iptables"])
309
310 if (test "${firewall_type}" != "iptables" -a \
311                 "${firewall_type}" != "nftables"); then
312         AC_MSG_ERROR(neither nftables nor iptables support enabled)
313 fi
314
315 found_iptables="no"
316 if (test "${firewall_type}" = "iptables"); then
317         PKG_CHECK_MODULES(XTABLES, xtables >= 1.4.11, [found_iptables="yes"],
318                         AC_MSG_ERROR(Xtables library is required))
319         AC_SUBST(XTABLES_CFLAGS)
320         AC_SUBST(XTABLES_LIBS)
321 fi
322 AM_CONDITIONAL(XTABLES, test "${found_iptables}" != "no")
323
324 found_nftables="no"
325 if (test "${firewall_type}" = "nftables"); then
326         PKG_CHECK_MODULES(NFTABLES, [libnftnl >= 1.0.4 libmnl >= 1.0.0], [found_nftables="yes"],
327                 AC_MSG_ERROR([libnftnl >= 1.0.4 or libmnl >= 1.0.0 not found]))
328         AC_SUBST(NFTABLES_CFLAGS)
329         AC_SUBST(NFTABLES_LIBS)
330 fi
331 AM_CONDITIONAL(NFTABLES, test "${found_nftables}" != "no")
332
333 AC_ARG_ENABLE(test, AC_HELP_STRING([--enable-test],
334                 [enable test/example scripts]), [enable_test=${enableval}])
335 AM_CONDITIONAL(TEST, test "${enable_test}" = "yes")
336
337 AC_ARG_ENABLE(nmcompat, AC_HELP_STRING([--enable-nmcompat],
338                                 [enable Network Manager support]),
339                         [enable_nmcompat=${enableval}], [enable_nmcompat="no"])
340 AM_CONDITIONAL(NMCOMPAT, test "${enable_nmcompat}" != "no")
341
342 AC_ARG_ENABLE(polkit, AC_HELP_STRING([--enable-polkit],
343                                 [enable PolicyKit support]),
344                         [enable_polkit=${enableval}], [enable_polkit="no"])
345 if (test "${enable_polkit}" != "no"); then
346         POLKIT_DATADIR="`$PKG_CONFIG --variable=actiondir polkit`"
347         POLKIT_DATADIR=""
348         if (test -z "${POLKIT_DATADIR}"); then
349                 POLKIT_DATADIR="${datadir}/polkit-1/actions"
350         fi
351         AC_SUBST(POLKIT_DATADIR)
352 fi
353 AM_CONDITIONAL(POLKIT, test "${enable_polkit}" != "no")
354
355 AC_ARG_ENABLE(selinux, AC_HELP_STRING([--enable-selinux],
356                                 [enable selinux support]),
357                         [enable_selinux=${enableval}], [enable_selinux="no"])
358 AM_CONDITIONAL(SELINUX, test "${enable_selinux}" != "no")
359
360 AC_ARG_ENABLE(loopback, AC_HELP_STRING([--disable-loopback],
361                                 [disable loopback support]),
362                                         [enable_loopback=${enableval}])
363 AM_CONDITIONAL(LOOPBACK, test "${enable_loopback}" != "no")
364
365 AC_ARG_ENABLE(ethernet, AC_HELP_STRING([--disable-ethernet],
366                                 [disable Ethernet support]),
367                                         [enable_ethernet=${enableval}])
368 AM_CONDITIONAL(ETHERNET, test "${enable_ethernet}" != "no")
369
370 AC_ARG_ENABLE(gadget, AC_HELP_STRING([--disable-gadget],
371                                 [disable USB Gadget support]),
372                                         [enable_gadget=${enableval}])
373 AM_CONDITIONAL(GADGET, test "${enable_gadget}" != "no")
374
375 AC_ARG_ENABLE(wifi, AC_HELP_STRING([--disable-wifi],
376                                 [disable WiFi support]),
377                                         [enable_wifi=${enableval}])
378 AM_CONDITIONAL(WIFI, test "${enable_wifi}" != "no")
379
380 AC_ARG_ENABLE(iwd, AC_HELP_STRING([--enable-iwd],
381                                 [enable iwd support]),
382                                         [enable_iwd=${enableval}])
383 AM_CONDITIONAL(IWD, test "${enable_iwd}" = "yes")
384
385 AC_ARG_ENABLE(bluetooth, AC_HELP_STRING([--disable-bluetooth],
386                                 [disable Bluetooth support]),
387                                         [enable_bluetooth=${enableval}])
388 AM_CONDITIONAL(BLUETOOTH, test "${enable_bluetooth}" != "no")
389
390 AC_ARG_ENABLE(ofono, AC_HELP_STRING([--disable-ofono],
391                                 [disable oFono support]),
392                                         [enable_ofono=${enableval}])
393 AM_CONDITIONAL(OFONO, test "${enable_ofono}" != "no")
394
395 AC_ARG_ENABLE(dundee, AC_HELP_STRING([--disable-dundee],
396                                 [disable dundee support (Bluetooth DUN)]),
397                                         [enable_dundee=${enableval}])
398 AM_CONDITIONAL(DUNDEE, test "${enable_dundee}" != "no")
399
400 AC_ARG_ENABLE(pacrunner, AC_HELP_STRING([--disable-pacrunner],
401                                 [disable PACrunner support]),
402                                         [enable_pacrunner=${enableval}])
403 AM_CONDITIONAL(PACRUNNER, test "${enable_pacrunner}" != "no")
404
405 AC_ARG_ENABLE(neard, AC_HELP_STRING([--disable-neard],
406                                 [disable Neard support]),
407                                         [enable_neard=${enableval}])
408 AM_CONDITIONAL(NEARD, test "${enable_neard}" != "no")
409
410 AC_ARG_ENABLE(wispr, AC_HELP_STRING([--disable-wispr],
411                                 [disable WISPr support]),
412                                         [enable_wispr=${enableval}])
413 AM_CONDITIONAL(WISPR, test "${enable_wispr}" != "no")
414
415 AC_ARG_ENABLE(tools, AC_HELP_STRING([--disable-tools],
416                                 [disable testing tools]),
417                                         [enable_tools=${enableval}])
418 AM_CONDITIONAL(TOOLS, test "${enable_tools}" != "no")
419
420 if (test "${enable_tools}" != "no"); then
421         AC_PATH_PROGS(IPTABLES_SAVE, [iptables-save], [],
422                                                 $PATH:/bin:/usr/bin)
423         IPTABLES_SAVE=$ac_cv_path_IPTABLES_SAVE
424 else
425         IPTABLES_SAVE=""
426 fi
427 AC_SUBST(IPTABLES_SAVE)
428
429 AC_ARG_ENABLE(client, AC_HELP_STRING([--disable-client],
430                                 [disable command line client]),
431                                         [enable_client=${enableval}])
432 AM_CONDITIONAL(CLIENT, test "${enable_client}" != "no")
433
434 if (test "${enable_wispr}" != "no"); then
435         PKG_CHECK_MODULES(GNUTLS, gnutls, dummy=yes,
436                                 AC_MSG_ERROR(GnuTLS library is required))
437 else
438         GNUTLS_CFLAGS=""
439         GNUTLS_LIBS=""
440 fi
441 AC_SUBST(GNUTLS_CFLAGS)
442 AC_SUBST(GNUTLS_LIBS)
443
444 if (test "${enable_loopback}" != "no"); then
445         AC_CHECK_HEADERS(sys/inotify.h, dummy=yes,
446                         AC_MSG_ERROR(inotify header files are required))
447
448         AC_CHECK_LIB(c, inotify_init, dummy=yes,
449                         AC_MSG_ERROR(inotify library support is required))
450 fi
451
452 if (test "${enable_wifi}" != "no"); then
453         AC_PATH_PROG(WPASUPPLICANT, [wpa_supplicant], [],
454                                                 $PATH:/bin:/usr/bin)
455 fi
456
457 AC_ARG_ENABLE(datafiles, AC_HELP_STRING([--disable-datafiles],
458                         [don't install configuration and data files]),
459                                         [enable_datafiles=${enableval}])
460 AM_CONDITIONAL(DATAFILES, test "${enable_datafiles}" != "no")
461
462 if (test "${enable_client}" != "no"); then
463         AC_CHECK_HEADERS(readline/readline.h, dummy=yes,
464                 AC_MSG_ERROR(readline header files are required))
465 fi
466
467 AM_CONDITIONAL(VPN, test "${enable_openconnect}" != "no" -o \
468                         "${enable_openvpn}" != "no" -o \
469                         "${enable_ipsec}" != "no" -o \
470                         "${enable_vpnc}" != "no" -o \
471                         "${enable_l2tp}" != "no" -o \
472                         "${enable_pptp}" != "no")
473
474 AC_OUTPUT(Makefile include/version.h connman.pc src/connman.service src/connman_tv.service vpn/connman-vpn.service)