]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/frontends/gnome/configure.ac
nm: Version bump to 1.5.1
[thirdparty/strongswan.git] / src / frontends / gnome / configure.ac
CommitLineData
39c0ae37
MW
1AC_PREREQ(2.52)
2
ecf18750 3AC_INIT(NetworkManager-strongswan, 1.5.1, info@strongswan.org, NetworkManager-strongswan)
39c0ae37
MW
4AM_INIT_AUTOMAKE([subdir-objects])
5AM_MAINTAINER_MODE
6
9e2d7f96
MW
7AC_CONFIG_MACRO_DIR([m4])
8AC_CONFIG_HEADERS([config.h])
39c0ae37
MW
9
10dnl
11dnl Require programs
12dnl
13AC_PROG_CC
14AM_PROG_CC_C_O
15AC_PROG_INSTALL
16AC_PROG_LIBTOOL
97939530 17PKG_PROG_PKG_CONFIG
39c0ae37
MW
18
19dnl
20dnl Required headers
21dnl
22AC_HEADER_STDC
23AC_CHECK_HEADERS(fcntl.h paths.h sys/ioctl.h sys/time.h syslog.h unistd.h)
24
25dnl
26dnl Checks for typedefs, structures, and compiler characteristics.
27dnl
28AC_TYPE_MODE_T
29AC_TYPE_PID_T
30AC_HEADER_TIME
31
32dnl
33dnl Checks for library functions.
34dnl
35AC_PROG_GCC_TRADITIONAL
36AC_FUNC_MEMCMP
37AC_CHECK_FUNCS(select socket uname)
38
39GETTEXT_PACKAGE=NetworkManager-strongswan
40AC_SUBST(GETTEXT_PACKAGE)
41AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
42
43IT_PROG_INTLTOOL([0.35])
44AM_GLIB_GNU_GETTEXT
45
7714c631 46PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.0)
a88831a0 47PKG_CHECK_MODULES(LIBSECRET, libsecret-1)
0fa98633 48
994ed353
MW
49AC_ARG_WITH(
50 [charon],
9c4e4b5e 51 AS_HELP_STRING([--with-charon=file],[path to the strongSwan charon NetworkManager backend]),
994ed353 52 [AC_SUBST(charon, "$withval")],
37d93343 53 [AC_SUBST(charon, "${libexecdir}/ipsec/charon-nm")]
994ed353 54)
9c4e4b5e
TB
55AC_ARG_WITH(
56 [nm-libexecdir],
57 AS_HELP_STRING([--nm-libexecdir=path],[use custom path where the auth dialog is installed]),
58 [nm_libexecdir="$withval"], []
59)
60AC_ARG_WITH(
61 [nm-plugindir],
62 AS_HELP_STRING([--nm-plugindir=path],[use custom path where the NM plugin is installed]),
63 [nm_plugindir="$withval"], []
64)
1cddc4da
LR
65AC_ARG_ENABLE(
66 [nm-absolute-paths],
67 AS_HELP_STRING([--enable-nm-absolute-paths],[use absolute paths for NM plugins in the .name file])
68)
ee22e808
LR
69AC_ARG_WITH(
70 [libnm-glib],
b3ab7a48 71 AS_HELP_STRING([--without-libnm-glib], [build NetworkManager-strongswan without libnm-glib compatibility]),
ee22e808
LR
72 [with_libnm_glib=no],
73 [with_libnm_glib=yes]
74)
75
76AM_CONDITIONAL(WITH_LIBNM_GLIB, test "$with_libnm_glib" != no)
77
78PKG_CHECK_MODULES(LIBNM, libnm >= 1.1.0)
79LIBNM_CFLAGS="$LIBNM_CFLAGS -DNM_VERSION_MIN_REQUIRED=NM_VERSION_1_2"
80LIBNM_CFLAGS="$LIBNM_CFLAGS -DNM_VERSION_MAX_ALLOWED=NM_VERSION_1_2"
81PKG_CHECK_MODULES(LIBNMA, libnma >= 1.1.0)
82
83if test x"$with_libnm_glib" != xno; then
84 PKG_CHECK_MODULES(LIBNM_GLIB, NetworkManager >= 1.1.0 libnm-util libnm-glib libnm-glib-vpn)
85 PKG_CHECK_MODULES(LIBNM_GTK, libnm-gtk >= 1.1.0)
9c4e4b5e
TB
86 if test -z "$nm_libexecdir"; then
87 nm_libexecdir=$($PKG_CONFIG --variable=libgnome_serverdir NetworkManager)
88 fi
89 if test -z "$nm_plugindir"; then
90 nm_plugindir=$($PKG_CONFIG --variable=plugindir NetworkManager)
91 fi
92else
93 if test -z "$nm_libexecdir"; then
94 nm_libexecdir=$($PKG_CONFIG --variable=exec_prefix libnm)/lib/NetworkManager
95 fi
96 if test -z "$nm_plugindir"; then
97 nm_plugindir=$($PKG_CONFIG --variable=libdir libnm)/NetworkManager
98 fi
ee22e808 99fi
1cddc4da 100
97939530 101AC_SUBST(nm_libexecdir)
49b3d818 102AC_SUBST(nm_plugindir)
1cddc4da
LR
103test x"$enable_nm_absolute_paths" = x"yes" && nm_plugindir_abs="$(nm_plugindir)/"
104AC_SUBST(nm_plugindir_abs)
994ed353 105
6e5c00b7
TB
106nmvpnservicedir=$($PKG_CONFIG --variable=vpnservicedir libnm)
107AC_SUBST(nmvpnservicedir)
108
9e2d7f96 109NM_COMPILER_WARNINGS
39c0ae37 110
9e2d7f96 111AC_CONFIG_FILES([
39c0ae37
MW
112Makefile
113properties/Makefile
ec249871 114auth-dialog/Makefile
39c0ae37
MW
115po/Makefile.in
116])
9e2d7f96 117AC_OUTPUT