AC_CHECK_PROG(LAUNCHD, [launchd], [yes], [no], [$PATH$PATH_SEPARATOR/sbin])
authorJeremy Huddleston <jeremyhu@apple.com>
Mon, 12 Jul 2010 23:53:53 +0000 (16:53 -0700)
committerJeremy Huddleston <jeremyhu@apple.com>
Mon, 12 Jul 2010 23:53:53 +0000 (16:53 -0700)
launchd: Explicitly search /sbin

Previously, launchd wasn't found if /sbin wasn't in the user's PATH.
https://bugs.freedesktop.org/show_bug.cgi?id=29028

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
configure.ac

index 0851ec2..71be9d6 100644 (file)
@@ -155,7 +155,7 @@ XCB_EXTENSION(XvMC, "yes")
 AC_ARG_WITH(launchd, AS_HELP_STRING([--with-launchd], [Build with support for Apple's launchd (default: auto)]), [LAUNCHD=$withval], [LAUNCHD=auto])
 if test "x$LAUNCHD" = xauto; then
        unset LAUNCHD
-       AC_CHECK_PROG(LAUNCHD, [launchd], [yes], [no])
+       AC_CHECK_PROG(LAUNCHD, [launchd], [yes], [no], [$PATH$PATH_SEPARATOR/sbin])
 fi
 
 if test "x$LAUNCHD" = xyes ; then