Re: [Qemu-devel] Stop using "which" in ./configure

2010-01-20 Thread Loïc Minier
On Tue, Jan 19, 2010, Stefan Weil wrote: > I did not test the whole patch, but I think this would be better: > +type "$local_command" >/dev/null 2>&1 Attaching an updated patch Thanks -- Loïc Minier >From 1c0b63fb9fc735a6d367a65a6ed1b998942fb6a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?

Re: [Qemu-devel] Stop using "which" in ./configure

2010-01-19 Thread Stefan Weil
Loïc Minier schrieb: > On Tue, Jan 19, 2010, Loïc Minier wrote: > >> Following the thread on the sdl-config patch, please find attached a >> patch to add a couple of portable shell functions which allow testing >> whehter a command/builtin is available and to find the full pathname of >> an

RE: [Qemu-devel] Stop using "which" in ./configure

2010-01-19 Thread Krumme, Chris
t; Sent: Tuesday, January 19, 2010 4:36 AM > To: l...@dooz.org > Cc: qemu-devel@nongnu.org > Subject: RE: [Qemu-devel] Stop using "which" in ./configure > > >Hi > > > > Following the thread on the sdl-config patch, please find attached a > >

Re: [Qemu-devel] Stop using "which" in ./configure

2010-01-19 Thread Loïc Minier
On Tue, Jan 19, 2010, Loïc Minier wrote: > Following the thread on the sdl-config patch, please find attached a > patch to add a couple of portable shell functions which allow testing > whehter a command/builtin is available and to find the full pathname of > an executable in the PATH. This al

Re: [Qemu-devel] Stop using "which" in ./configure

2010-01-19 Thread Loïc Minier
On Tue, Jan 19, 2010, Laurent Vivier wrote: > Why don't you use "type -P" for "path_of" ?" I don't think that's portable enough: $ sh -c 'type -P ls' -P: not found ls is /bin/ls -- Loïc Minier

RE: [Qemu-devel] Stop using "which" in ./configure

2010-01-19 Thread Laurent Vivier
>Hi > > Following the thread on the sdl-config patch, please find attached a > patch to add a couple of portable shell functions which allow testing > whehter a command/builtin is available and to find the full pathname of > an executable in the PATH. This also replaces all uses of "which"

[Qemu-devel] Stop using "which" in ./configure

2010-01-19 Thread Loïc Minier
Hi Following the thread on the sdl-config patch, please find attached a patch to add a couple of portable shell functions which allow testing whehter a command/builtin is available and to find the full pathname of an executable in the PATH. This also replaces all uses of "which" in .