X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=configure.ac;h=bef2418ed73d8982e90fa8670bc4a2d901e306bf;hb=0de4f055841fe202a85258a56c67751ccb0f8ee2;hp=af48f1ce72db2535ebf74e9ca744c26b8dff0b69;hpb=75db9a77605b33a1b9355eae957f26380441fce6;p=elogind.git diff --git a/configure.ac b/configure.ac index af48f1ce7..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]) @@ -364,7 +364,7 @@ fi AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"]) have_manpages=no -AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpage], [disable manpages])) +AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages])) if test "x$enable_manpages" != "xno"; then have_manpages=yes fi @@ -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} ])