xref: /OK3568_Linux_fs/buildroot/package/dc3dd/0002-fix-autoreconf.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Remove use of AM_C_PROTOTYPES to fix autoreconf
2
3The AM_C_PROTOTYPES macro no longer exists since automake 1.12. It
4existed to support de-ANSI-fication of code using ansi2knr. It was
5simply removed from coreutils m4/jm-macros.m4 in commit
688873501cff9ed937edf969cedd693517ab0a293, but this change was not
7propagated to dc3dd, causing an autoreconf failure:
8
9configure.ac:45: error: automatic de-ANSI-fication support has been removed
10/home/peko/autobuild/instance-0/output/host/usr/share/aclocal-1.15/obsolete.m4:26: AM_C_PROTOTYPES is expanded from...
11m4/jm-macros.m4:124: gl_CHECK_ALL_TYPES is expanded from...
12m4/jm-macros.m4:22: coreutils_MACROS is expanded from...
13configure.ac:45: the top level
14
15Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
16
17Index: b/m4/jm-macros.m4
18===================================================================
19--- a/m4/jm-macros.m4
20+++ b/m4/jm-macros.m4
21@@ -128,11 +128,6 @@
22   dnl whether functions and headers are available, whether they work, etc.
23   AC_REQUIRE([AC_SYS_LARGEFILE])
24
25-  dnl This test must precede tests of compiler characteristics like
26-  dnl that for the inline keyword, since it may change the degree to
27-  dnl which the compiler supports such features.
28-  AC_REQUIRE([AM_C_PROTOTYPES])
29-
30   dnl Checks for typedefs, structures, and compiler characteristics.
31   AC_REQUIRE([AC_C_BIGENDIAN])
32   AC_REQUIRE([AC_C_VOLATILE])
33