Do not assume that only SunOS has pkill because other systems (e.g.

2006-07-22  Julio M. Merino Vidal  <jmmv@NetBSD.org>

	* configure.in: Do not assume that only SunOS has pkill because
	other systems (e.g. NetBSD) also have it.  Fix the check that
	looks for an utility to kill a process by name to properly detect
	either pkill or killall.  Fixes bug #336853.

svn path=/trunk/; revision=32386
This commit is contained in:
Julio M. Merino Vidal
2006-07-22 11:58:10 +00:00
committed by Harish Krishnaswamy
parent ad08df17c1
commit bbbfb5e4ab
2 changed files with 12 additions and 13 deletions

View File

@ -1,3 +1,10 @@
2006-07-22 Julio M. Merino Vidal <jmmv@NetBSD.org>
* configure.in: Do not assume that only SunOS has pkill because
other systems (e.g. NetBSD) also have it. Fix the check that
looks for an utility to kill a process by name to properly detect
either pkill or killall. Fixes bug #336853.
2006-07-13 Andre Klapper <a9016009@gmx.de>
* configure.in:

View File

@ -1014,20 +1014,12 @@ dnl *****************
dnl killall or pkill?
dnl *****************
AC_MSG_CHECKING(for command to kill processes)
if test `uname -s` = "SunOS" ; then
KILL_PROCESS_CMD="pkill";
AC_PATH_PROGS(KILL_PROCESS_CMD, killall pkill)
if test -z "$KILL_PROCESS_CMD"; then
AC_MSG_WARN([Could not find a command to kill a process by name])
else
KILL_PROCESS_CMD="killall";
fi
KILL_PROCESS_CMD=`which $KILL_PROCESS_CMD`
if test -z "$KILL_PROCESS_CMD" ; then
AC_MSG_RESULT(none)
else
AC_MSG_RESULT($KILL_PROCESS_CMD)
AC_DEFINE_UNQUOTED([KILL_PROCESS_CMD], "$KILL_PROCESS_CMD", [Command to kill processes by name])
AC_DEFINE_UNQUOTED([KILL_PROCESS_CMD], "$KILL_PROCESS_CMD",
[Command to kill processes by name])
fi
dnl ******************************