]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blobdiff - configure.ac
scopes: Unify code-base, remove duplicate code/files.
[sigrok-firmware-fx2lafw.git] / configure.ac
index 0a9259763f8750246f34369d5b6097ea4ea2a167..91daa5127b436fdf11390219fee356e6851c8907 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.5],
        [sigrok-devel@lists.sourceforge.net],
        [sigrok-firmware-fx2lafw], [http://www.sigrok.org])
 AC_CONFIG_AUX_DIR([autostuff])
@@ -42,6 +41,10 @@ AC_CHECK_PROGS([SDCCLIB], [sdcclib sdcc-sdcclib])
 AS_IF([test "x$SDCCLIB" = x],
        [AC_MSG_ERROR([cannot find sdcclib.])])
 
+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], [2.9.0],
+       [AC_MSG_ERROR([At least version 2.9.0 of sdcc is required.])])
+
 AC_CHECK_PROGS([OBJCOPY], [objcopy])
 AC_CHECK_PROGS([MAKEBIN], [makebin sdcc-makebin])
 AS_IF([test "x$OBJCOPY$MAKEBIN" = x],
@@ -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