X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=configure.ac;h=bef2418ed73d8982e90fa8670bc4a2d901e306bf;hb=f9941a4b94f6ee3c4f5906c32821f82aa3c6e2b1;hp=a41cf41a2df174f728786ab52b10a43bc30fcd65;hpb=4c2b0e4e423fe73fafef10a5efa6fb778784cebc;p=elogind.git diff --git a/configure.ac b/configure.ac index a41cf41a2..bef2418ed 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ AC_PREREQ(2.63) -AC_INIT([systemd],[41],[systemd-devel@lists.freedesktop.org]) +AC_INIT([systemd],[42],[systemd-devel@lists.freedesktop.org]) AC_CONFIG_SRCDIR([src/main.c]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_HEADERS([config.h]) @@ -605,11 +605,18 @@ AC_ARG_WITH([pamlibdir], [], [with_pamlibdir=${with_rootlibdir}/security]) -have_split_usr=no -if test "x${ac_default_prefix}" != "x${with_rootprefix}" ; then +AC_ARG_ENABLE([split-usr], + AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]), + [], + [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [ + enable_split_usr=yes + ], [ + enable_split_usr=no + ])]) + +AS_IF([test "x${enable_split_usr}" = "xyes"], [ AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr]) - have_split_usr=yes -fi +]) AC_SUBST([dbuspolicydir], [$with_dbuspolicydir]) AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir]) @@ -659,6 +666,6 @@ AC_MSG_RESULT([ D-Bus session dir: ${with_dbussessionservicedir} D-Bus system dir: ${with_dbussystemservicedir} D-Bus interfaces dir: ${with_dbusinterfacedir} - Split /usr: ${have_split_usr} + Split /usr: ${enable_split_usr} Build man pages: ${have_manpages} ])