diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-04 12:26:50 -0500 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-04 12:26:50 -0500 |
commit | d814c5d2832e721d1740631ae41fc4268445b372 (patch) | |
tree | 4ea812796ad5dca8a82b7d76f20921e707a12055 | |
parent | 8f466274d3bfc1e14503fef02be1a5ffc6ed6d64 (diff) | |
download | opus-d814c5d2832e721d1740631ae41fc4268445b372.tar.gz |
Exposes --disable-float-api in autoconf
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.ac | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index edbcc42e..20286f84 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,7 +22,10 @@ else 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) diff --git a/configure.ac b/configure.ac index 2d4896bd..e511558d 100644 --- a/configure.ac +++ b/configure.ac @@ -138,6 +138,17 @@ AS_IF([test "$enable_fixed_point_debug" = "yes"],[ 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]) |