]> git.kaiwu.me - njs.git/commitdiff
Fix compiler detection when CC has a wrapper.
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>
Wed, 22 Mar 2023 13:22:37 +0000 (15:22 +0200)
committerOrgad Shaneh <orgad.shaneh@audiocodes.com>
Wed, 22 Mar 2023 13:22:37 +0000 (15:22 +0200)
For example CC='ccache gcc'.

auto/cc

diff --git a/auto/cc b/auto/cc
index 5323f7daa43983461501454d7f37a596b34bebd9..c8b1b0761a2bfc81b0480aa31723ebada9e26092 100644 (file)
--- a/auto/cc
+++ b/auto/cc
@@ -13,7 +13,7 @@ END
 # Allow error exit status.
 set +e
 
-if [ -z `which $CC` ]; then
+if [ -z "$(which $CC)" ]; then
     echo
     echo $0: error: $CC not found.
     echo