]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blobdiff - configure.ac
NEWS: Add list of user-visible changes so far.
[sigrok-firmware-fx2lafw.git] / configure.ac
index 0a9259763f8750246f34369d5b6097ea4ea2a167..ae165f4992b97807a9e1c5c1d8520d1f02b138f7 100644 (file)
 ## GNU General Public License for more details.
 ##
 ## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+## along with this program; if not, see <http://www.gnu.org/licenses/>.
 ##
 
 # We require at least autoconf 2.63 (AC_INIT format changed there).
 AC_PREREQ([2.63])
 
-AC_INIT([sigrok-firmware-fx2lafw], [0.1.2],
+AC_INIT([sigrok-firmware-fx2lafw], [0.1.6],
        [sigrok-devel@lists.sourceforge.net],
        [sigrok-firmware-fx2lafw], [http://www.sigrok.org])
 AC_CONFIG_AUX_DIR([autostuff])
@@ -38,9 +37,13 @@ AC_CHECK_PROGS([SDCC], [sdcc sdcc-sdcc])
 AS_IF([test "x$SDCC" = x],
        [AC_MSG_ERROR([cannot find sdcc.])])
 
-AC_CHECK_PROGS([SDCCLIB], [sdcclib sdcc-sdcclib])
-AS_IF([test "x$SDCCLIB" = x],
-       [AC_MSG_ERROR([cannot find sdcclib.])])
+AC_CHECK_PROGS([SDAR], [sdar sdcc-sdar])
+AS_IF([test "x$SDAR" = x],
+       [AC_MSG_ERROR([cannot find sdar.])])
+
+sf_sdcc_version=`$SDCC --version | sed -n 's/.* \([[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\) .*/\1/p;q' 2>&AS_MESSAGE_LOG_FD`
+AS_VERSION_COMPARE([$sf_sdcc_version], [3.4.0],
+       [AC_MSG_ERROR([At least version 3.4.0 of sdcc is required.])])
 
 AC_CHECK_PROGS([OBJCOPY], [objcopy])
 AC_CHECK_PROGS([MAKEBIN], [makebin sdcc-makebin])
@@ -59,6 +62,16 @@ AS_IF([test "x$SDAS8051" = x],
        [AC_MSG_ERROR([cannot find sdas8051.])])
 
 AC_CONFIG_FILES([Makefile])
-
 AC_OUTPUT
 
+cat >&AS_MESSAGE_FD <<_EOF
+
+sigrok-firmware-fx2lafw configuration summary:
+ - Package version................. $PACKAGE_VERSION
+ - Prefix.......................... $prefix
+
+Compile configuration:
+ - C compiler...................... $SDCC
+ - C compiler version.............. $sf_sdcc_version
+
+_EOF