VMS INDENTIFICATION should only have the version number
[openssl.git] / util / domd
index f224b50e0f5e6c6efbe87bf314d938277e354462..e39d3e304ea7ab5cb5ad38747c91104d77e2364c 100755 (executable)
--- a/util/domd
+++ b/util/domd
@@ -8,13 +8,16 @@ if [ "$1" = "-MD" ]; then
     shift
     MAKEDEPEND=$1
     shift
+    if [ "$MAKEDEPEND" = "ccache" ]; then
+        MAKEDEPEND="$MAKEDEPEND $1"
+        shift
+    fi
 fi
 if [ "$MAKEDEPEND" = "" ]; then MAKEDEPEND=makedepend; fi
 
 cp Makefile Makefile.save
-# fake the presence of Kerberos
-touch $TOP/krb5.h
-if expr "$MAKEDEPEND" : 'cc' > /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
@@ -32,7 +35,5 @@ else
     RC=$?
 fi
 mv Makefile.new Makefile
-# unfake the presence of Kerberos
-rm $TOP/krb5.h
 
 exit $RC