# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
-#
-# The (generated) configure script should be called with
-# --build=<your-build-system> --target=pic16
-# to force cross-compilation mode; rather use the wrapper
-# ./configure.gnu instead of ./configure directly.
-#
-
AC_PREREQ(2.61)
AC_INIT([pic16lib], [0.3], [tecodev AT users sourceforge net])
AM_INIT_AUTOMAKE
libdir=$libdir/pic16
+AC_SUBST([USE_FLOATS], ["-DUSE_FLOATS=0"])
+AC_ARG_ENABLE(
+ [floats],
+ AS_HELP_STRING([--enable-floats], [Enable output of float-values via printf().]),
+ [if test "yes" = $enableval; then USE_FLOATS="-DUSE_FLOATS=1"; fi]
+)
+
# Checks for programs.
# The default architecture can be selected at configure time by setting the