+if test "x$HAVE_ARM_M0_CC" = "xno"; then
+ AC_MSG_WARN([No cortex-m0 arm compiler found, LPC11U14 binaries will not be built])
+fi
+
+#
+# Configure AVR compiler
+#
+
+AC_ARG_WITH([avr-cc],
+ [AS_HELP_STRING([--with-avr-cc],
+ [Name of AVR C compiler])],
+ [],
+ [with_avr_cc=auto])
+
+if test "x$with_avr_cc" != "xno"; then
+ if test "x$with_avr_cc" = "xauto"; then
+ with_avr_cc="avr-gcc"
+ AC_CHECK_PROG([HAVE_AVR_CC],[$with_avr_cc], yes, no)
+ else
+ HAVE_AVR_CC=yes
+ fi
+else
+ HAVE_AVR_CC=no
+fi
+
+AC_ARG_WITH([avr-objcopy],
+ [AS_HELP_STRING([--with-avr-objcopy],
+ [Name of AVR objcopy])],
+ [],
+ [with_avr_objcopy=auto])
+
+if test "x$with_avr_objcopy" != "xno"; then
+ if test "x$with_avr_objcopy" = "xauto"; then
+ with_avr_objcopy="avr-objcopy"
+ AC_CHECK_PROG([HAVE_AVR_OBJCOPY],[$with_avr_objcopy], yes, no)
+ else
+ HAVE_AVR_OBJCOPY=yes
+ fi
+else
+ HAVE_AVR_OBJCOPY=no
+fi
+
+if test "x$HAVE_AVR_CC" = "xno" -o "x$HAVE_AVR_OBJCOPY" = "xno"; then
+ AC_MSG_WARN([AVR compiler and objcopy not found, atmel binaries will not be built])
+ HAVE_AVR_CC=no
+else
+ AVR_CC=$with_avr_cc
+ AVR_OBJCOPY=$with_avr_objcopy
+fi
+
+AC_SUBST(AVR_CC)
+AC_SUBST(AVR_OBJCOPY)
+AC_SUBST(HAVE_AVR_CC)
+