aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-06-05 12:55:26 -0700
committerAndrew Waterman <andrew@sifive.com>2017-06-05 12:56:17 -0700
commit1e80c6d2361cf4e4c8891c4af35c84a630b622e7 (patch)
treee006f607c2fc0d0ee88dd694f4dfdc1d56c0e381 /configure
parentba28ea06d5ca18e47d8252cb8c677d79e62b7554 (diff)
downloadriscv-isa-sim-1e80c6d2361cf4e4c8891c4af35c84a630b622e7.zip
riscv-isa-sim-1e80c6d2361cf4e4c8891c4af35c84a630b622e7.tar.gz
riscv-isa-sim-1e80c6d2361cf4e4c8891c4af35c84a630b622e7.tar.bz2
Configure should fail if device-tree-compiler is not installed
Fixes #107
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 77bab30..015f63e 100755
--- a/configure
+++ b/configure
@@ -3409,6 +3409,7 @@ done
done
IFS=$as_save_IFS
+ test -z "$ac_cv_path_DTC" && ac_cv_path_DTC="no"
;;
esac
fi
@@ -3422,6 +3423,9 @@ $as_echo "no" >&6; }
fi
+if test x"$DTC" == xno; then :
+ as_fn_error $? "device-tree-compiler not found" "$LINENO" 5
+fi
cat >>confdefs.h <<_ACEOF
#define DTC "$DTC"