From bbbfb5e4ab6b1192c176ec51660cd09eb68c0d92 Mon Sep 17 00:00:00 2001 From: "Julio M. Merino Vidal" Date: Sat, 22 Jul 2006 11:58:10 +0000 Subject: Do not assume that only SunOS has pkill because other systems (e.g. 2006-07-22 Julio M. Merino Vidal * 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 --- ChangeLog | 7 +++++++ configure.in | 18 +++++------------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7be23c6c7e..178f7e06a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-07-22 Julio M. Merino Vidal + + * 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 * configure.in: diff --git a/configure.in b/configure.in index 3cacc1564e..9bf5e0e61f 100644 --- a/configure.in +++ b/configure.in @@ -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"; -else - KILL_PROCESS_CMD="killall"; -fi - -KILL_PROCESS_CMD=`which $KILL_PROCESS_CMD` -if test -z "$KILL_PROCESS_CMD" ; then - AC_MSG_RESULT(none) +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 - 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 ****************************** -- cgit v1.2.3