ref: 7de750134aef4f2ef38b7c975f02aeff540dffef
parent: 6b48b2586d74e7aa37d305fc60d1987428a5a618
author: menno <menno>
date: Mon Aug 20 14:03:23 EDT 2007
Small patch for including DRM compile
--- a/configure.in
+++ b/configure.in
@@ -6,6 +6,7 @@
AM_CONFIG_HEADER(config.h)
AC_ARG_WITH( mp4v2, [ --with-mp4v2 compile libmp4v2],WITHMP4V2=$withval, WITHMP4V2=yes)
+AC_ARG_ENABLE( drm, [ --enable-drm Digital Radio Mondiale support], enable_drm=$enableval, enable_drm=no)
AC_DEFUN(MY_DEFINE, [ AC_DEFINE($1, 1, [define if needed]) ])
@@ -46,6 +47,15 @@
fi
fi
+dnl Check for DRM mode
+if test "x$enable_drm" = "xyes"; then
+ AC_DEFINE(DRM, 1, [Define if you want to encode for DRM])
+ AM_CONDITIONAL(USE_DRM, true)
+ CFLAGS="$CFLAGS -DDRM"
+else
+ AM_CONDITIONAL(USE_DRM, false)
+fi
+
AC_C_BIGENDIAN
dnl Checks for header files required for mp4.h
@@ -72,4 +82,4 @@
libfaac/Makefile
frontend/Makefile
include/Makefile
-Makefile])
\ No newline at end of file
+Makefile])
--- a/libfaac/Makefile.am
+++ b/libfaac/Makefile.am
@@ -1,6 +1,10 @@
lib_LTLIBRARIES = libfaac.la
-libfaac_la_SOURCES = aacquant.c bitstream.c fft.c frame.c midside.c psychkni.c util.c backpred.c channels.c filtbank.c huffman.c ltp.c tns.c
+main_SOURCES = aacquant.c bitstream.c fft.c frame.c midside.c psychkni.c util.c backpred.c channels.c filtbank.c huffman.c ltp.c tns.c
+if USE_DRM
+drm_SOURCES = kiss_fft/kiss_fftr.c kiss_fft/kiss_fft.c
+endif
+libfaac_la_SOURCES = $(main_SOURCES) $(drm_SOURCES)
libfaac_la_INCLUDES = aacquant.h channels.h filtbank.h hufftab.h psych.h backpred.h coder.h frame.h midside.h tns.h bitstream.h fft.h huffman.h ltp.h util.h
libfaac_la_LIBADD = -lm