CFLAGS += -Iinclude
CFLAGS += -I/usr/local/include
CFLAGS += -DI3_VERSION=\"${GIT_VERSION}\"
+CFLAGS += -DSYSCONFDIR=\"${SYSCONFDIR}\"
# Check if pkg-config is installed, because without pkg-config, the following
# check for the version of libxcb cannot be done.
if (path_exists(config_path))
return config_path;
- config_path = strdup("/etc/i3/config");
+ config_path = strdup(SYSCONFDIR "/i3/config");
if (!path_exists(config_path))
die("Neither $XDG_CONFIG_HOME/i3/config, nor "
"$XDG_CONFIG_DIRS/i3/config, nor ~/.i3/config nor "
- "/etc/i3/config exist.");
+ SYSCONFDIR "/i3/config exist.");
return config_path;
}