From: ng0 Date: Thu, 17 Oct 2019 14:34:23 +0000 (+0000) Subject: maybe improve sudo detection. X-Git-Tag: v0.11.7~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f497ba4fe3c613c04f02378831f43664dbed6601;p=oweals%2Fgnunet.git maybe improve sudo detection. --- diff --git a/configure.ac b/configure.ac index f1c93b309..7e86b6276 100644 --- a/configure.ac +++ b/configure.ac @@ -1358,17 +1358,19 @@ AC_SUBST(DATAROOTDIR) # test for sudo AC_MSG_CHECKING(for sudo) -AC_ARG_WITH(sudo, - [ --with-sudo=PATH path to sudo binary (or just yes)], - [AC_MSG_RESULT("$with_sudo") - AS_CASE([$with_sudo], - [no],[SUDO_BINARY=], - [yes],[SUDO_BINARY=sudo], - [SUDO_BINARY=$with_sudo])], - [AC_MSG_RESULT([no])]) -AC_SUBST(SUDO_BINARY) -AM_CONDITIONAL([HAVE_SUDO], - [test "x$SUDO_BINARY" != "x" -o -w /]) +AC_CHECK_PROGS(SUDO_BINARY, [sudo], false) +AM_CONDITIONAL(HAVE_SUDO, test x$SUDO_BINARY != xfalse) +#AC_ARG_WITH(sudo, +# [ --with-sudo=PATH path to sudo binary (or just yes)], +# [AC_MSG_RESULT("$with_sudo") +# AS_CASE([$with_sudo], +# [no],[SUDO_BINARY=], +# [yes],[SUDO_BINARY=sudo], +# [SUDO_BINARY=$with_sudo])], +# [AC_MSG_RESULT([no])]) +#AC_SUBST(SUDO_BINARY) +#AM_CONDITIONAL([HAVE_SUDO], +# [test "x$SUDO_BINARY" != "x" -o -w /]) # test for doas AC_MSG_CHECKING(for doas)