nm: Version bumb to 1.3.2
[strongswan.git] / src / frontends / gnome / configure.ac
1 AC_PREREQ(2.52)
2
3 AC_INIT(NetworkManager-strongswan, 1.3.2, martin@strongswan.org, NetworkManager-strongswan)
4 AM_INIT_AUTOMAKE([subdir-objects])
5 AM_MAINTAINER_MODE
6
7 AC_CONFIG_MACRO_DIR([m4])
8 AC_CONFIG_HEADERS([config.h])
9
10 dnl
11 dnl Require programs
12 dnl
13 AC_PROG_CC
14 AM_PROG_CC_C_O
15 AC_PROG_INSTALL
16 AC_PROG_LIBTOOL
17 PKG_PROG_PKG_CONFIG
18
19 dnl
20 dnl Required headers
21 dnl
22 AC_HEADER_STDC
23 AC_CHECK_HEADERS(fcntl.h paths.h sys/ioctl.h sys/time.h syslog.h unistd.h)
24
25 dnl
26 dnl Checks for typedefs, structures, and compiler characteristics.
27 dnl
28 AC_TYPE_MODE_T
29 AC_TYPE_PID_T
30 AC_HEADER_TIME
31
32 dnl
33 dnl Checks for library functions.
34 dnl
35 AC_PROG_GCC_TRADITIONAL
36 AC_FUNC_MEMCMP
37 AC_CHECK_FUNCS(select socket uname)
38
39 GETTEXT_PACKAGE=NetworkManager-strongswan
40 AC_SUBST(GETTEXT_PACKAGE)
41 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
42
43 IT_PROG_INTLTOOL([0.35])
44 AM_GLIB_GNU_GETTEXT
45
46 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6)
47 PKG_CHECK_MODULES(LIBGNOMEUI, libgnomeui-2.0)
48 PKG_CHECK_MODULES(LIBSECRET, libsecret-1)
49 PKG_CHECK_EXISTS([libnm-glib],
50         [PKG_CHECK_MODULES(NM_UTILS, NetworkManager >= 0.9.0 libnm-util libnm-glib libnm-glib-vpn)],
51         [PKG_CHECK_MODULES(NM_UTILS, NetworkManager >= 0.9.0 libnm-util libnm_glib libnm_glib_vpn)]
52 )
53
54 AC_ARG_WITH(
55         [charon],
56         AS_HELP_STRING([--with-charon=file],[path to the strongSwan charon NetworkManager backend"]),
57         [AC_SUBST(charon, "$withval")],
58         [AC_SUBST(charon, "${libexecdir}/ipsec/charon-nm")]
59 )
60 AC_ARG_ENABLE(
61         [nm-absolute-paths],
62         AS_HELP_STRING([--enable-nm-absolute-paths],[use absolute paths for NM plugins in the .name file])
63 )
64
65 nm_libexecdir=$($PKG_CONFIG --variable=libgnome_serverdir NetworkManager)
66 AC_SUBST(nm_libexecdir)
67 nm_plugindir=$($PKG_CONFIG --variable=plugindir NetworkManager)
68 AC_SUBST(nm_plugindir)
69 test x"$enable_nm_absolute_paths" = x"yes" && nm_plugindir_abs="$(nm_plugindir)/"
70 AC_SUBST(nm_plugindir_abs)
71
72 NM_COMPILER_WARNINGS
73
74 AC_CONFIG_FILES([
75 Makefile
76 properties/Makefile
77 auth-dialog/Makefile
78 po/Makefile.in
79 ])
80 AC_OUTPUT