File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -392,6 +392,17 @@ function buildTEENSY() {
392392 if test "${have_xxd}" = "no" ; then
393393 AC_MSG_ERROR ( [ xxd command not installed: configure failed.] )
394394 fi
395+ AC_CHECK_PROG ( [ ARM_GCC] , [ arm-none-eabi-gcc] , [ yes] , [ no] )
396+ AC_CHECK_PROG ( [ ARM_GXX] , [ arm-none-eabi-g++] , [ yes] , [ no] )
397+ if test "$ARM_GCC" = "no"; then
398+ AC_MSG_ERROR ( [ arm-none-eabi-gcc not found in PATH. Please install gcc-arm-none-eabi.] )
399+ fi
400+ if test "$ARM_GXX" = "no"; then
401+ AC_MSG_ERROR ( [ arm-none-eabi-g++ not found in PATH. Please install g++-arm-none-eabi.] )
402+ fi
403+ PKG_CHECK_MODULES([ LIBUSB] , [ libusb] , [ ] ,
404+ [ AC_MSG_ERROR ( [ libusb not found. Please install libusb-dev] ) ]
405+ )
395406 AM_CONDITIONAL(WITH_CYGWIN_CONSOLE, false)
396407 AC_DEFINE ( _UnixOS , 1 , [ Building under Unix like systems.] )
397408 AC_DEFINE ( _MCU , 1 , [ Micro controller based builds] )
You can’t perform that action at this time.
0 commit comments