summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-02 15:37:42 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-02 15:37:42 +0000
commitd825f9ccd99b0b74278c8773ee6fba2d7974a1a9 (patch)
tree27d57109b43fc3f090be810a30901307e106cfda /configure.ac
parent9c3523a5786f8e961edf791eb9c2c6cc2149a60c (diff)
fixing #1820
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c12b2f414..148c827bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -676,6 +676,27 @@ AC_SUBST(DLLDIR)
AC_SUBST(EXT_LIB_PATH)
+# 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")
+ case $with_sudo in
+ no)
+ SUDO_BINARY=
+ ;;
+ yes)
+ SUDO_BINARY=sudo
+ ;;
+ *)
+ SUDO_BINARY=$with_sudo
+ ;;
+ esac
+ ],
+ [AC_MSG_RESULT([no])])
+AC_SUBST(SUDO_BINARY)
+
+
# should 'make check' run tests?
AC_MSG_CHECKING(whether to run tests)
AC_ARG_ENABLE([testruns],