summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch')
-rw-r--r--meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch75
1 files changed, 75 insertions, 0 deletions
diff --git a/meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch b/meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch
new file mode 100644
index 0000000000..ba51d87d22
--- /dev/null
+++ b/meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch
@@ -0,0 +1,75 @@
1The older GPLv2 m4 does not work well with newer autoconf. It causes the
2circular dependency as seen bellow.
3 Removing this m4 file which was needed only forl older autoconf
4
5| configure.ac:34: error: AC_REQUIRE: circular dependency of AC_GNU_SOURCE
6| /build_disk/poky_build/build1/tmp/work/i586-poky-linux/m4-1.4.9-r0/m4-1.4.9/m4/extensions.m4:19: AC_USE_SYSTEM_EXTENSIONS is expanded from...
7| ../../lib/autoconf/specific.m4:310: AC_GNU_SOURCE is expanded from...
8| /build_disk/poky_build/build1/tmp/work/i586-poky-linux/m4-1.4.9-r0/m4-1.4.9/m4/gnulib-comp.m4:21: M4_EARLY is expanded from...
9| configure.ac:34: the top level
10| autom4te: /build_disk/poky_build/build1/tmp/sysroots/x86_64-linux/usr/bin/m4 failed with exit status: 1
11| aclocal: /build_disk/poky_build/build1/tmp/sysroots/x86_64-linux/usr/bin/autom4te failed with exit status: 1
12| autoreconf: aclocal failed with exit status: 1
13
14Nitin A Kamble <nitin.a.kamble@intel.com>
152011/03/16
16
17Index: m4-1.4.9/m4/extensions.m4
18===================================================================
19--- m4-1.4.9.orig/m4/extensions.m4
20+++ m4-1.4.9/m4/extensions.m4
21@@ -6,53 +6,10 @@
22 # gives unlimited permission to copy and/or distribute it,
23 # with or without modifications, as long as this notice is preserved.
24
25-# This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from CVS
26-# Autoconf. Perhaps we can remove this once we can assume Autoconf
27-# 2.61 or later everywhere, but since CVS Autoconf mutates rapidly
28-# enough in this area it's likely we'll need to redefine
29-# AC_USE_SYSTEM_EXTENSIONS for quite some time.
30-
31-# AC_USE_SYSTEM_EXTENSIONS
32-# ------------------------
33-# Enable extensions on systems that normally disable them,
34-# typically due to standards-conformance issues.
35-AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS],
36-[
37- AC_BEFORE([$0], [AC_COMPILE_IFELSE])
38- AC_BEFORE([$0], [AC_RUN_IFELSE])
39-
40- AC_REQUIRE([AC_GNU_SOURCE])
41- AC_REQUIRE([AC_AIX])
42- AC_REQUIRE([AC_MINIX])
43-
44- AH_VERBATIM([__EXTENSIONS__],
45-[/* Enable extensions on Solaris. */
46-#ifndef __EXTENSIONS__
47-# undef __EXTENSIONS__
48-#endif
49-#ifndef _POSIX_PTHREAD_SEMANTICS
50-# undef _POSIX_PTHREAD_SEMANTICS
51-#endif
52-#ifndef _TANDEM_SOURCE
53-# undef _TANDEM_SOURCE
54-#endif])
55- AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
56- [ac_cv_safe_to_define___extensions__],
57- [AC_COMPILE_IFELSE(
58- [AC_LANG_PROGRAM([
59-# define __EXTENSIONS__ 1
60- AC_INCLUDES_DEFAULT])],
61- [ac_cv_safe_to_define___extensions__=yes],
62- [ac_cv_safe_to_define___extensions__=no])])
63- test $ac_cv_safe_to_define___extensions__ = yes &&
64- AC_DEFINE([__EXTENSIONS__])
65- AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
66- AC_DEFINE([_TANDEM_SOURCE])
67-])
68
69 # gl_USE_SYSTEM_EXTENSIONS
70 # ------------------------
71 # Enable extensions on systems that normally disable them,
72 # typically due to standards-conformance issues.
73 AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS],
74- [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])])
75+ [])