2011-06-29 06:57:17 -04:00
|
|
|
--- configure.in.orig Thu Feb 5 01:55:38 2009
|
|
|
|
+++ configure.in Wed Jun 29 11:36:58 2011
|
|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
AC_PREREQ(2.50)
|
|
|
|
AC_INIT(FAAC, 1.28, faac-dev@lists.sourceforge.net)
|
|
|
|
AC_CONFIG_AUX_DIR(.)
|
|
|
|
-AM_INIT_AUTOMAKE
|
|
|
|
+AM_INIT_AUTOMAKE(faac, 1.25)
|
|
|
|
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
2008-09-15 18:00:38 -04:00
|
|
|
@@ -10,8 +10,6 @@ AC_ARG_ENABLE( drm, [ --enable-drm Digita
|
2006-07-13 12:18:40 -04:00
|
|
|
|
2011-06-29 06:57:17 -04:00
|
|
|
AC_DEFUN([MY_DEFINE], [ AC_DEFINE($1, 1, [define if needed]) ])
|
2006-07-13 12:18:40 -04:00
|
|
|
|
|
|
|
-CFLAGS=${CFLAGS:-"-O2 -Wall"}
|
|
|
|
-
|
|
|
|
AC_PROG_CC
|
2008-09-15 18:00:38 -04:00
|
|
|
AC_PROG_CXX
|
2006-07-13 12:18:40 -04:00
|
|
|
AM_PROG_LIBTOOL
|
2008-09-15 18:00:38 -04:00
|
|
|
@@ -31,7 +29,7 @@ AM_CONDITIONAL(WITH_MP4V2, false)
|
2006-07-13 12:18:40 -04:00
|
|
|
|
2008-09-15 18:00:38 -04:00
|
|
|
AC_CHECK_DECLS([MP4Create, MP4MetadataDelete],
|
|
|
|
AC_CHECK_LIB(mp4v2, MP4MetadataDelete, external_mp4v2=yes,
|
|
|
|
- external_mp4v2=no, -lstdc++),
|
|
|
|
+ external_mp4v2=no, -lstdc++ -lm),
|
|
|
|
external_mp4v2=no, [#include <mp4.h>])
|
2006-07-13 12:18:40 -04:00
|
|
|
|
2008-09-15 18:00:38 -04:00
|
|
|
if test x$external_mp4v2 = xyes; then
|
|
|
|
@@ -39,12 +37,17 @@ if test x$external_mp4v2 = xyes; then
|
|
|
|
else
|
|
|
|
if test x$WITHMP4V2 = xyes; then
|
|
|
|
AC_MSG_NOTICE([*** Building with internal mp4v2 ***])
|
|
|
|
- AM_CONDITIONAL(WITH_MP4V2, true)
|
|
|
|
- AC_CONFIG_LINKS(common/mp4v2/mpeg4ip_config.h:config.h)
|
|
|
|
- MY_DEFINE(HAVE_LIBMP4V2)
|
|
|
|
else
|
|
|
|
AC_MSG_NOTICE([*** Building WITHOUT mp4v2 ***])
|
|
|
|
fi
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+if test x$external_mp4v2 = xyes -o x$WITHMP4V2 = xyes; then
|
|
|
|
+ AM_CONDITIONAL(WITH_MP4V2, true)
|
|
|
|
+ if test x$external_mp4v2 != xyes; then
|
|
|
|
+ AC_CONFIG_LINKS(common/mp4v2/mpeg4ip_config.h:config.h)
|
|
|
|
+ fi
|
|
|
|
+ MY_DEFINE(HAVE_LIBMP4V2)
|
|
|
|
fi
|
2006-07-13 12:18:40 -04:00
|
|
|
|
2008-09-15 18:00:38 -04:00
|
|
|
dnl Check for DRM mode
|