ref: d814c5d2832e721d1740631ae41fc4268445b372
parent: 8f466274d3bfc1e14503fef02be1a5ffc6ed6d64
author: Jean-Marc Valin <[email protected]>
date: Mon Nov 4 07:26:50 EST 2013
Exposes --disable-float-api in autoconf
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,7 +22,10 @@
SILK_SOURCES += $(SILK_SOURCES_FLOAT)
endif
+if DISABLE_FLOAT_API
+else
OPUS_SOURCES += $(OPUS_SOURCES_FLOAT)
+endif
if CPU_ARM
CELT_SOURCES += $(CELT_SOURCES_ARM)
--- a/configure.ac
+++ b/configure.ac
@@ -138,6 +138,17 @@
AC_DEFINE([FIXED_DEBUG], [1], [Debug fixed-point implementation])
])
+AC_ARG_ENABLE([float_api],
+ [AS_HELP_STRING([--disable-float-api],
+ [compile without the floating point API (for machines with no float library)])],,
+ [enable_float_api=yes])
+
+AM_CONDITIONAL([DISABLE_FLOAT_API], [test "$enable_float_api" = "no"])
+
+AS_IF([test "$enable_float_api" = "no"],[
+ AC_DEFINE([DISABLE_FLOAT_API], [1], [Do not build the float API])
+])
+
AC_ARG_ENABLE([custom-modes],
[AS_HELP_STRING([--enable-custom-modes], [enable non-Opus modes, e.g. 44.1 kHz & 2^n frames])],,
[enable_custom_modes=no])