gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: maybe improve sudo detectio


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: maybe improve sudo detection.
Date: Thu, 17 Oct 2019 16:37:04 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new f497ba4fe maybe improve sudo detection.
f497ba4fe is described below

commit f497ba4fe3c613c04f02378831f43664dbed6601
Author: ng0 <address@hidden>
AuthorDate: Thu Oct 17 14:34:23 2019 +0000

    maybe improve sudo detection.
---
 configure.ac | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

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)

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]