diff --git a/configure.ac b/configure.ac
index d497a46584e628f566562ed4758dc075eebde538..aa63f8411d08659b5e47ac9e574686c4577fe1e6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -839,6 +839,14 @@ AS_IF([test "$enable_dot_product" = "no"], [
        AC_DEFINE([DISABLE_DOT_PROD], [1], [Disable dot product instructions])
 ])
 
+AC_ARG_ENABLE([dnn-debug-float],
+	      AS_HELP_STRING([--enable-dnn-debug-float], [Use floating-point DNN computation everywhere]),,
+  enable_dnn_debug_float=no)
+
+AS_IF([test "$enable_dnn_debug_float" = "no"], [
+       AC_DEFINE([DISABLE_DEBUG_FLOAT], [1], [Disable DNN debug float])
+])
+
 AM_CONDITIONAL([HAVE_DOXYGEN], [test "$HAVE_DOXYGEN" = "yes"])
 
 AC_ARG_ENABLE([extra-programs],