##
-## This file is part of the fx2lafw project.
+## This file is part of the sigrok-firmware-fx2lafw project.
##
## Copyright (C) 2013 Uwe Hermann <uwe@hermann-uwe.de>
##
# We require at least autoconf 2.63 (AC_INIT format changed there).
AC_PREREQ([2.63])
-AC_INIT([sigrok-firmware-fx2lafw], [0.1.0],
+AC_INIT([sigrok-firmware-fx2lafw], [0.1.1],
[sigrok-devel@lists.sourceforge.net],
[sigrok-firmware-fx2lafw], [http://www.sigrok.org])
AC_CONFIG_HEADER([config.h])
# On Fedora, all sdcc tools have an 'sdcc-' prefix in the filename.
AC_CHECK_PROGS([SDCC], [sdcc sdcc-sdcc])
-AC_CHECK_PROGS([SDCCLIB], [sdcclib sdcc-sdcc])
+if test "x$SDCC" == "x"; then
+ AC_MSG_ERROR([cannot find sdcc.])
+fi
+AC_CHECK_PROGS([SDCCLIB], [sdcclib sdcc-sdcclib])
+if test "x$SDCCLIB" == "x"; then
+ AC_MSG_ERROR([cannot find sdcclib.])
+fi
AC_CHECK_PROGS([OBJCOPY], [objcopy])
AC_CHECK_PROGS([MAKEBIN], [makebin sdcc-makebin])
+if test "x$OBJCOPY" == "x" && test "x$MAKEBIN" == "x"; then
+ AC_MSG_ERROR([cannot find objcopy or makebin.])
+fi
AM_CONDITIONAL([FOUND_OBJCOPY], [test "x$OBJCOPY" != "x"])
AM_CONDITIONAL([FOUND_MAKEBIN], [test "x$MAKEBIN" != "x"])
# Newer sdcc, Fedora: sdcc-sdas8051
# Older sdcc: asx8051
AC_CHECK_PROGS([SDAS8051], [sdas8051 sdcc-sdas8051 asx8051])
+if test "x$SDAS8051" == "x"; then
+ AC_MSG_ERROR([cannot find sdas8051.])
+fi
AC_SUBST(SDCC_FLAGS, "--code-size 0x1c00 --xram-size 0x0200 --xram-loc 0x1c00 -Wl\"-b DSCR_AREA=0x1e00\" -Wl\"-b INT2JT=0x1f00\"")
AC_SUBST(FIRMWARE_DIR, "$datadir/sigrok-firmware")