[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 12/20] configure: Replace which(1) with "has"
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 12/20] configure: Replace which(1) with "has" |
Date: |
Thu, 11 Dec 2014 21:16:00 +0300 |
From: Fam Zheng <address@hidden>
Using "has" is more slick because which(1) is not always there.
Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Stefan Weil <address@hidden>
Reviewed-by: Amos Kong <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 47048f0..cae588c 100755
--- a/configure
+++ b/configure
@@ -2727,7 +2727,7 @@ fi
if test "$modules" = yes; then
shacmd_probe="sha1sum sha1 shasum"
for c in $shacmd_probe; do
- if which $c >/dev/null 2>&1; then
+ if has $c; then
shacmd="$c"
break
fi
--
2.1.3
- [Qemu-devel] [PULL 15/20] qapi-schema: fix typo about change-vnc-password, (continued)
- [Qemu-devel] [PULL 15/20] qapi-schema: fix typo about change-vnc-password, Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 07/20] Drop superfluous conditionals around qemu_opts_del(), Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 19/20] hpet: increase spelling precision, Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 14/20] fw_cfg: remove superfluous blank line, Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 01/20] qmp: fix typo in input-send-event examples, Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 13/20] get_maintainer.pl: Remove the --git-chief-penguins option, Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 11/20] util: Use g_new() & friends where that makes obvious sense, Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 18/20] pflash_cfi02.c: associate "cfi.pflash02" to "Storage devices" category, Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 16/20] virtio: remove useless declaration of virtio_net_init(), Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 10/20] util: Fuse g_malloc(); memset() into g_new0(), Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 12/20] configure: Replace which(1) with "has",
Michael Tokarev <=
- [Qemu-devel] [PULL 17/20] vt82c686: fix coverity warning about out-of-bounds write, Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 08/20] Drop superfluous conditionals around g_strdup(), Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 09/20] util: Drop superfluous conditionals around g_free(), Michael Tokarev, 2014/12/11
- [Qemu-devel] [PULL 20/20] Sort include/qemu/typedefs.h, Michael Tokarev, 2014/12/11
- Re: [Qemu-devel] [PULL 00/20] Trivial patches for 2014-12-11, Peter Maydell, 2014/12/11