summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-05-05 02:16:37 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-05-05 02:17:22 (GMT)
commit81c4ba29a22999edced573e449e6003c80b0c2fd (patch)
tree7de309ac6cf7d9c273290c15b0e56476e3c7d249
parent3abf74d0d02b97a6427347f01d2fb19d1cdcfbe6 (diff)
downloadmxe-81c4ba29a22999edced573e449e6003c80b0c2fd.zip
mxe-81c4ba29a22999edced573e449e6003c80b0c2fd.tar.gz
mxe-81c4ba29a22999edced573e449e6003c80b0c2fd.tar.bz2
lame: make autotools files compatible with automake >= 1.12
Fixes #399. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
-rw-r--r--src/lame-2-update-autotools.patch107
1 files changed, 107 insertions, 0 deletions
diff --git a/src/lame-2-update-autotools.patch b/src/lame-2-update-autotools.patch
new file mode 100644
index 0000000..0bc1707
--- /dev/null
+++ b/src/lame-2-update-autotools.patch
@@ -0,0 +1,107 @@
+This file is part of MXE.
+See index.html for further information.
+
+This patch has been taken from:
+https://github.com/rbrito/lame/commit/a6552b532919dcc2fbfb32d1dfdaab80c1534200
+
+From a6552b532919dcc2fbfb32d1dfdaab80c1534200 Mon Sep 17 00:00:00 2001
+From: Rogério Brito <rbrito@ime.usp.br>
+Date: Wed, 12 Jun 2013 09:16:29 +0000
+Subject: [PATCH] Make autotools files compatible with automake >= 1.12
+
+Newer autotools versions don't seem to support ansi2knr, which is probably
+not a problem, given the last decades of compilers accepting ANSI C (and the
+rest of the LAME code being written in ANSI C itself).
+
+This fixes ticket #60, with a patch of Brennan Shacklett, from the Gentoo
+community.
+---
+ aclocal.m4 | 17 -----------------
+ configure.in | 3 ---
+ doc/html/Makefile.am | 2 +-
+ doc/man/Makefile.am | 3 +--
+ libmp3lame/i386/Makefile.am | 2 +-
+ 5 files changed, 3 insertions(+), 24 deletions(-)
+
+diff --git a/aclocal.m4 b/aclocal.m4
+index fc53243..4d9ad71 100644
+--- a/aclocal.m4
++++ b/aclocal.m4
+@@ -10530,23 +10530,6 @@ AC_DEFUN([_AM_IF_OPTION],
+
+ # serial 5
+
+-AC_DEFUN([AM_C_PROTOTYPES],
+-[AC_REQUIRE([AC_C_PROTOTYPES])
+-if test "$ac_cv_prog_cc_stdc" != no; then
+- U= ANSI2KNR=
+-else
+- U=_ ANSI2KNR=./ansi2knr
+-fi
+-# Ensure some checks needed by ansi2knr itself.
+-AC_REQUIRE([AC_HEADER_STDC])
+-AC_CHECK_HEADERS([string.h])
+-AC_SUBST([U])dnl
+-AC_SUBST([ANSI2KNR])dnl
+-_AM_SUBST_NOTMAKE([ANSI2KNR])dnl
+-])
+-
+-AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
+-
+ # Check to make sure that the build environment is sane. -*- Autoconf -*-
+
+ # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
+diff --git a/configure.in b/configure.in
+index 24ca884..6f5c1c6 100644
+--- a/configure.in
++++ b/configure.in
+@@ -77,9 +77,6 @@ if test "${GCC}" = "yes"; then
+ AC_MSG_RESULT(${GCC_version})
+ fi
+
+-dnl more automake stuff
+-AM_C_PROTOTYPES
+-
+ AC_CHECK_HEADER(dmalloc.h)
+ if test "${ac_cv_header_dmalloc_h}" = "yes"; then
+ AM_WITH_DMALLOC
+diff --git a/doc/html/Makefile.am b/doc/html/Makefile.am
+index aa76785..09d26c2 100644
+--- a/doc/html/Makefile.am
++++ b/doc/html/Makefile.am
+@@ -1,6 +1,6 @@
+ ## $Id$
+
+-AUTOMAKE_OPTIONS = foreign ansi2knr
++AUTOMAKE_OPTIONS = foreign
+
+ docdir = $(datadir)/doc
+ pkgdocdir = $(docdir)/$(PACKAGE)
+diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
+index 05182b5..dac00a3 100644
+--- a/doc/man/Makefile.am
++++ b/doc/man/Makefile.am
+@@ -1,7 +1,6 @@
+ ## $Id$
+
+-AUTOMAKE_OPTIONS = foreign ansi2knr
++AUTOMAKE_OPTIONS = foreign
+
+ man_MANS = lame.1
+ EXTRA_DIST = ${man_MANS}
+-
+diff --git a/libmp3lame/i386/Makefile.am b/libmp3lame/i386/Makefile.am
+index 032c2b2..c51912e 100644
+--- a/libmp3lame/i386/Makefile.am
++++ b/libmp3lame/i386/Makefile.am
+@@ -1,6 +1,6 @@
+ ## $Id$
+
+-AUTOMAKE_OPTIONS = foreign $(top_srcdir)/ansi2knr
++AUTOMAKE_OPTIONS = foreign
+
+ DEFS = @DEFS@ @CONFIG_DEFS@
+
+--
+1.9.1
+