done
IFS=$as_save_IFS
+ test -z "$ac_cv_path_DTC" && ac_cv_path_DTC="no"
;;
esac
fi
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"
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]))