From 245413041c1ddee4bb7d752f6f1044750b887df8 Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Sun, 17 Jul 2016 00:10:35 +0200 Subject: build: Define PACKAGE_LOAD_PATH in Makefile. Previously PACKAGE_LOAD_PATH was set in config header which wasn't correctly expanded due to the presence of ${prefix} in ${moduledir}. Let 'make' handle the expansion. * Makefile.am (AM_CPPFLAGS): New variable. (cron_CPPFLAGS, crontab_CPPFLAGS, mcron_CPPFLAGS): Use it. * configure.ac (PACKAGE_LOAD_PATH): Undefine it. (AC_CONFIG_HEADER): Remove macro. * src/mcron.c: Adapt to it. --- src/mcron.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/mcron.c') diff --git a/src/mcron.c b/src/mcron.c index 026b077..a52c073 100644 --- a/src/mcron.c +++ b/src/mcron.c @@ -22,7 +22,6 @@ is needed because the crontab personality requires SUID which is not permitted for executable scripts. */ -#include "config.h" #include #include #include -- cgit v1.2.3