diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:16:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:16:24 +0000 |
commit | 9221dca64f0c8b5de72727491e41cf63e902eaab (patch) | |
tree | d8cbbf520eb4b5c656a54b2e36947008dcb751ad /m4/man-arg-setuid.m4 | |
parent | Initial commit. (diff) | |
download | man-db-9221dca64f0c8b5de72727491e41cf63e902eaab.tar.xz man-db-9221dca64f0c8b5de72727491e41cf63e902eaab.zip |
Adding upstream version 2.8.5.upstream/2.8.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'm4/man-arg-setuid.m4')
-rw-r--r-- | m4/man-arg-setuid.m4 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/m4/man-arg-setuid.m4 b/m4/man-arg-setuid.m4 new file mode 100644 index 0000000..2190541 --- /dev/null +++ b/m4/man-arg-setuid.m4 @@ -0,0 +1,32 @@ +# man-arg-setuid.m4 serial 3 +dnl MAN_ARG_SETUID +dnl Add an --enable-setuid option. + +AC_DEFUN([MAN_ARG_SETUID], +[ +AC_ARG_ENABLE([setuid], +[AS_HELP_STRING([--enable-setuid], [install man setuid]) +AS_HELP_STRING([--disable-setuid], [don't install man setuid])], + [if test "$enableval" = "yes" + then + if test -z "$man_owner" + then + AC_MSG_ERROR([--enable-setuid is incompatible with --disable-cache-owner]) + fi + man_mode="6755" + AC_MSG_NOTICE([Man will be installed setuid $man_owner]) + elif test "$enableval" = "no" + then + man_mode="755" + AC_MSG_NOTICE([Man will not be installed setuid]) + else + AC_MSG_ERROR([--enable-setuid=$enableval is no longer valid; consider --enable-cache-owner=$enableval --enable-setuid instead]) + fi], + [if test -z "$man_owner" + then + man_mode="755" + else + man_mode="6755" + fi]) +AC_SUBST([man_mode]) +]) |