diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-06-05 12:55:26 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-06-05 12:56:17 -0700 |
commit | 1e80c6d2361cf4e4c8891c4af35c84a630b622e7 (patch) | |
tree | e006f607c2fc0d0ee88dd694f4dfdc1d56c0e381 /configure.ac | |
parent | ba28ea06d5ca18e47d8252cb8c677d79e62b7554 (diff) | |
download | spike-1e80c6d2361cf4e4c8891c4af35c84a630b622e7.zip spike-1e80c6d2361cf4e4c8891c4af35c84a630b622e7.tar.gz spike-1e80c6d2361cf4e4c8891c4af35c84a630b622e7.tar.bz2 |
Configure should fail if device-tree-compiler is not installed
Fixes #107
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ea64de7..e361877 100644 --- a/configure.ac +++ b/configure.ac @@ -51,7 +51,8 @@ AC_PROG_CC AC_PROG_CXX AC_CHECK_TOOL([AR],[ar]) AC_CHECK_TOOL([RANLIB],[ranlib]) -AC_PATH_PROG([DTC],[dtc]) +AC_PATH_PROG([DTC],[dtc],[no]) +AS_IF([test x"$DTC" == xno],AC_MSG_ERROR([device-tree-compiler not found])) AC_DEFINE_UNQUOTED(DTC, ["$DTC"], [Path to the device-tree-compiler]) AC_C_BIGENDIAN(AC_MSG_ERROR([Spike requires a little-endian host])) |