aboutsummaryrefslogtreecommitdiffstats
path: root/util/domd
diff options
context:
space:
mode:
Diffstat (limited to 'util/domd')
-rwxr-xr-xutil/domd3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/domd b/util/domd
index bab48cb7a27e..6a628c7f96c2 100755
--- a/util/domd
+++ b/util/domd
@@ -14,7 +14,8 @@ if [ "$MAKEDEPEND" = "" ]; then MAKEDEPEND=makedepend; fi
cp Makefile Makefile.save
# fake the presence of Kerberos
touch $TOP/krb5.h
-if expr "$MAKEDEPEND" : '.*gcc$' > /dev/null; then
+if ${MAKEDEPEND} --version 2>&1 | grep -q "clang" ||
+ echo $MAKEDEPEND | grep -q "gcc"; then
args=""
while [ $# -gt 0 ]; do
if [ "$1" != "--" ]; then args="$args $1"; fi