]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Include /sbin in PATH for setcap
authorFilippo Giunchedi <filippo@esaurito.net>
Thu, 2 Jul 2009 13:42:18 +0000 (15:42 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 2 Jul 2009 13:42:18 +0000 (15:42 +0200)
Rationale: some distributions don't include /sbin in PATH for regular
users, thus setcap might not be found during configure

Signed-off-by: Filippo Giunchedi <filippo@esaurito.net>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
configure.ac

index 19c980861cee9d7e74b85c7d0f915f7e51212798..6370492779b7792e51e754660ce8b0573c952ffb 100644 (file)
@@ -11,7 +11,7 @@ AC_CANONICAL_HOST
 AM_PROG_CC_C_O
 AC_GNU_SOURCE
 AC_PROG_LIBTOOL
-AC_CHECK_PROG(SETCAP, setcap, yes, no)
+AC_CHECK_PROG(SETCAP, setcap, yes, no, $PATH$PATH_SEPARATOR/sbin)
 AC_CHECK_PROG(DOCBOOK, docbook2man, yes, no)
 AM_CONDITIONAL(ENABLE_DOCBOOK, test x$DOCBOOK = xyes)
 AS_AC_EXPAND(PREFIX, $prefix)