[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Stop using "which" in ./configure
From: |
Stefan Weil |
Subject: |
Re: [Qemu-devel] Stop using "which" in ./configure |
Date: |
Tue, 19 Jan 2010 18:42:40 +0100 |
User-agent: |
Mozilla-Thunderbird 2.0.0.22 (X11/20090707) |
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 executable in the PATH. This also replaces all uses of "which" in
>> ./configure. (This should be applied on top of the sdl-config patch.)
>>
>
> Please find attached a new version of the patch with a simpler version
> of path_of() which uses IFS instead of the ${foo#bar} and ${foo%%bar}
> constructs. It also removes the special casing of an empty PATH.
I did not test the whole patch, but I think this would be better:
+ type "$local_command" >/dev/null 2>&1
(type sends error messages to stderr, we don't want to see them)
- [Qemu-devel] [PATCH] Check for sdl-config before calling it, Loïc Minier, 2010/01/17
- [Qemu-devel] Re: [PATCH] Check for sdl-config before calling it, Måns Rullgård, 2010/01/17
- Re: [Qemu-devel] Re: [PATCH] Check for sdl-config before calling it, Stefan Weil, 2010/01/17
- [Qemu-devel] Re: Stop using "which" in ./configure, Måns Rullgård, 2010/01/19
- Re: [Qemu-devel] Re: Stop using "which" in ./configure, Loïc Minier, 2010/01/20
- [Qemu-devel] Re: Stop using "which" in ./configure, Paolo Bonzini, 2010/01/20
- Re: [Qemu-devel] Re: Stop using "which" in ./configure, Loïc Minier, 2010/01/20
- [Qemu-devel] Re: Stop using "which" in ./configure, Paolo Bonzini, 2010/01/20
- Re: [Qemu-devel] Re: Stop using "which" in ./configure, Loïc Minier, 2010/01/20
- [Qemu-devel] Re: Stop using "which" in ./configure, Måns Rullgård, 2010/01/20
- Re: [Qemu-devel] Re: Stop using "which" in ./configure, Loïc Minier, 2010/01/21
- [Qemu-devel] Re: Stop using "which" in ./configure, Juan Quintela, 2010/01/21