summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--src/conf_macros.m43
2 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e4fc849f2..9405de144 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,6 +69,9 @@ AC_ARG_ENABLE([pammoddir], [AS_HELP_STRING([--enable-pammoddir],
[pammoddir=$libdir/security])
AC_SUBST(pammoddir)
+#Include here cause WITH_INIT_DIR requires $osname set in platform.m4
+m4_include([src/external/platform.m4])
+
m4_include(src/conf_macros.m4)
WITH_DB_PATH
WITH_PLUGIN_PATH
@@ -87,7 +90,6 @@ WITH_NSCD
WITH_SEMANAGE
WITH_LIBNL
-m4_include([src/external/platform.m4])
m4_include([src/external/pkg.m4])
m4_include([src/external/libpopt.m4])
m4_include([src/external/libtalloc.m4])
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index cb4b32557..5898bc7f1 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -108,6 +108,9 @@ AC_DEFUN([WITH_INIT_DIR],
]
)
initdir="${sysconfdir}/rc.d/init.d"
+ if test x$osname == xgentoo; then
+ initdir="${sysconfdir}/init.d"
+ fi
if test x"$with_init_dir" != x; then
initdir=$with_init_dir
fi