nm: Automatically determine NM plugin directory
authorTobias Brunner <tobias@strongswan.org>
Fri, 29 Jul 2016 16:22:19 +0000 (18:22 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 5 Sep 2016 13:28:54 +0000 (15:28 +0200)
src/frontends/gnome/configure.ac
src/frontends/gnome/properties/Makefile.am

index 13c3579..1a7df20 100644 (file)
@@ -78,6 +78,8 @@ AC_ARG_WITH(
 )
 nm_libexecdir=$($PKG_CONFIG --variable=libgnome_serverdir NetworkManager)
 AC_SUBST(nm_libexecdir)
+nm_plugindir=$($PKG_CONFIG --variable=plugindir NetworkManager)
+AC_SUBST(nm_plugindir)
 
 NM_COMPILER_WARNINGS
 
index 1b7fbb9..66f2d51 100644 (file)
@@ -1,5 +1,4 @@
-plugindir = $(libdir)/NetworkManager
-plugin_LTLIBRARIES = libnm-strongswan-properties.la
+nm_plugin_LTLIBRARIES = libnm-strongswan-properties.la
 
 libnm_strongswan_properties_la_SOURCES = \
        nm-strongswan.c \