build: Remove NM_CONFIG_KEYFILE_PATH_DEFAULT from config.h
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 26 Nov 2015 16:34:52 +0000 (17:34 +0100)
committerLubomir Rintel <lkundrak@v3.sk>
Fri, 27 Nov 2015 09:04:10 +0000 (10:04 +0100)
Can't just substitute sysconfdir into a header file -- it's meant to be
expanded in a Makefile. Otherwise, unexpanded ${prefix} will end up in a
header file.

We do that for NMCONFDIR already, let's use it here too.

Fixes: 2144457fab9138c9f5ddac9759f48e2a8735dcfb

configure.ac
src/settings/plugins/keyfile/utils.c

index fd5a47c..3d28b14 100644 (file)
@@ -138,9 +138,6 @@ if test "$enable_ifcfg_rh" = "yes"; then
 fi
 AC_SUBST(DISTRO_NETWORK_SERVICE)
 
-AC_SUBST(NM_CONFIG_KEYFILE_PATH_DEFAULT, "${sysconfdir}/$PACKAGE/system-connections", [The keyfile directory])
-AC_DEFINE_UNQUOTED(NM_CONFIG_KEYFILE_PATH_DEFAULT, "$NM_CONFIG_KEYFILE_PATH_DEFAULT", [The keyfile directory])
-
 # Code coverage
 GNOME_CODE_COVERAGE
 
index de538bc..48795ff 100644 (file)
@@ -29,6 +29,8 @@
 #include <nm-setting-wireless-security.h>
 #include "nm-config.h"
 
+#define NM_CONFIG_KEYFILE_PATH_DEFAULT NMCONFDIR "/system-connections"
+
 static const char temp_letters[] =
 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";