summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/autoconf/autoconf
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/autoconf/autoconf')
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/autoheader-nonfatal-warnings.patch15
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/autoreconf-exclude.patch139
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/autoreconf-foreign.patch13
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/autoreconf-gnuconfigize.patch38
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/autoreconf-include.patch14
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/autotest-automake-result-format.patch136
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/check-automake-cross-warning.patch34
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/config_site.patch40
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/fix_path_xtra.patch120
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/preferbash.patch23
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/program_prefix.patch20
-rw-r--r--meta/recipes-devtools/autoconf/autoconf/remove-usr-local-lib-from-m4.patch29
12 files changed, 621 insertions, 0 deletions
diff --git a/meta/recipes-devtools/autoconf/autoconf/autoheader-nonfatal-warnings.patch b/meta/recipes-devtools/autoconf/autoconf/autoheader-nonfatal-warnings.patch
new file mode 100644
index 0000000000..8ae6d5c8aa
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf/autoheader-nonfatal-warnings.patch
@@ -0,0 +1,15 @@
1Upstream-Status: Pending
2
3--- autoconf-2.59/bin/autoheader.in~ 2003-10-10 14:52:56.000000000 +0100
4+++ autoconf-2.59/bin/autoheader.in 2004-05-03 01:36:45.000000000 +0100
5@@ -272,8 +272,8 @@
6 }
7
8 }
9- exit 1
10- if keys %symbol;
11+# exit 1
12+# if keys %symbol;
13 }
14
15 update_file ("$tmp/config.hin", "$config_h_in");
diff --git a/meta/recipes-devtools/autoconf/autoconf/autoreconf-exclude.patch b/meta/recipes-devtools/autoconf/autoconf/autoreconf-exclude.patch
new file mode 100644
index 0000000000..d1bd3a2a31
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf/autoreconf-exclude.patch
@@ -0,0 +1,139 @@
1Upstream-Status: Pending
2
3Index: autoconf-2.63/bin/autoreconf.in
4===================================================================
5--- autoconf-2.63.orig/bin/autoreconf.in 2008-12-31 17:39:01.000000000 +0000
6+++ autoconf-2.63/bin/autoreconf.in 2008-12-31 17:43:38.000000000 +0000
7@@ -76,6 +76,7 @@
8 -i, --install copy missing auxiliary files
9 --no-recursive don't rebuild sub-packages
10 -s, --symlink with -i, install symbolic links instead of copies
11+ -x, --exclude=STEPS steps we should not run
12 -m, --make when applicable, re-run ./configure && make
13 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [syntax]
14
15@@ -136,6 +137,13 @@
16 # Recurse into subpackages
17 my $recursive = 1;
18
19+# Steps to exclude
20+my @exclude;
21+my @ex;
22+
23+my $uses_gettext;
24+my $configure_ac;
25+
26 ## ---------- ##
27 ## Routines. ##
28 ## ---------- ##
29@@ -153,6 +161,7 @@
30 'B|prepend-include=s' => \@prepend_include,
31 'i|install' => \$install,
32 's|symlink' => \$symlink,
33+ 'x|exclude=s' => \@exclude,
34 'm|make' => \$run_make,
35 'recursive!' => \$recursive);
36
37@@ -162,6 +171,8 @@
38 parse_WARNINGS;
39 parse_warnings '--warnings', @warning;
40
41+ @exclude = map { split /,/ } @exclude;
42+
43 # Even if the user specified a configure.ac, trim to get the
44 # directory, and look for configure.ac again. Because (i) the code
45 # is simpler, and (ii) we are still able to diagnose simultaneous
46@@ -255,6 +266,11 @@
47 {
48 my ($aclocal, $flags) = @_;
49
50+ @ex = grep (/^aclocal$/, @exclude);
51+ if ($#ex != -1) {
52+ return;
53+ }
54+
55 # aclocal 1.8+ does all this for free. It can be recognized by its
56 # --force support.
57 if ($aclocal_supports_force)
58@@ -368,7 +384,10 @@
59 }
60 else
61 {
62- xsystem_hint ("autopoint is needed because this package uses Gettext", "$autopoint");
63+ @ex = grep (/^autopoint$/, @exclude);
64+ if ($#ex == -1) {
65+ xsystem_hint ("autopoint is needed because this package uses Gettext", "$autopoint");
66+ }
67 }
68
69
70@@ -532,16 +551,17 @@
71 {
72 $libtoolize .= " --ltdl";
73 }
74- xsystem_hint ("libtoolize is needed because this package uses Libtool", $libtoolize);
75- $rerun_aclocal = 1;
76+ @ex = grep (/^libtoolize$/, @exclude);
77+ if ($#ex == -1) {
78+ xsystem_hint ("libtoolize is needed because this package uses Libtool", $libtoolize);
79+ $rerun_aclocal = 1;
80+ }
81 }
82 else
83 {
84 verb "$configure_ac: not running libtoolize: --install not given";
85 }
86
87-
88-
89 # ------------------- #
90 # Rerunning aclocal. #
91 # ------------------- #
92@@ -572,7 +592,10 @@
93 # latter runs the former, and (ii) autoconf is stricter than
94 # autoheader. So all in all, autoconf should give better error
95 # messages.
96- xsystem ($autoconf);
97+ @ex = grep (/^autoconf$/, @exclude);
98+ if ($#ex == -1) {
99+ xsystem ("$autoconf");
100+ }
101
102
103 # -------------------- #
104@@ -593,7 +616,10 @@
105 }
106 else
107 {
108- xsystem ($autoheader);
109+ @ex = grep (/^autoheader$/, @exclude);
110+ if ($#ex == -1) {
111+ xsystem ("$autoheader");
112+ }
113 }
114
115
116@@ -610,7 +636,10 @@
117 # We should always run automake, and let it decide whether it shall
118 # update the file or not. In fact, the effect of `$force' is already
119 # included in `$automake' via `--no-force'.
120- xsystem ($automake);
121+ @ex = grep (/^automake$/, @exclude);
122+ if ($#ex == -1) {
123+ xsystem ("$automake");
124+ }
125 }
126
127
128@@ -634,7 +663,10 @@
129 }
130 else
131 {
132- xsystem ("$make");
133+ @ex = grep (/^make$/, @exclude);
134+ if ($#ex == -1) {
135+ xsystem ("$make");
136+ }
137 }
138 }
139 }
diff --git a/meta/recipes-devtools/autoconf/autoconf/autoreconf-foreign.patch b/meta/recipes-devtools/autoconf/autoconf/autoreconf-foreign.patch
new file mode 100644
index 0000000000..88f750195d
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf/autoreconf-foreign.patch
@@ -0,0 +1,13 @@
1Upstream-Status: Pending
2
3--- autoconf-2.59/bin/autoreconf.in~autoreconf-foreign 2004-05-09 20:55:06.000000000 -0400
4+++ autoconf-2.59/bin/autoreconf.in 2004-05-09 20:55:55.000000000 -0400
5@@ -184,6 +184,8 @@
6
7 $aclocal_supports_force = `$aclocal --help` =~ /--force/;
8
9+ $automake .= ' --foreign';
10+
11 # Dispatch autoreconf's option to the tools.
12 # --include;
13 $autoconf .= join (' --include=', '', @include);
diff --git a/meta/recipes-devtools/autoconf/autoconf/autoreconf-gnuconfigize.patch b/meta/recipes-devtools/autoconf/autoconf/autoreconf-gnuconfigize.patch
new file mode 100644
index 0000000000..5ff18c2350
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf/autoreconf-gnuconfigize.patch
@@ -0,0 +1,38 @@
1Upstream-Status: Pending
2
3#
4# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
5#
6
7Index: autoconf-2.63/bin/autoreconf.in
8===================================================================
9--- autoconf-2.63.orig/bin/autoreconf.in 2008-12-31 17:43:55.000000000 +0000
10+++ autoconf-2.63/bin/autoreconf.in 2008-12-31 17:46:16.000000000 +0000
11@@ -58,7 +58,7 @@
12 $help = "Usage: $0 [OPTION]... [DIRECTORY]...
13
14 Run `autoconf' (and `autoheader', `aclocal', `automake', `autopoint'
15-(formerly `gettextize'), and `libtoolize' where appropriate)
16+(formerly `gettextize'), `libtoolize', and `gnu-configize' where appropriate)
17 repeatedly to remake the GNU Build System files in specified
18 DIRECTORIES and their subdirectories (defaulting to `.').
19
20@@ -115,6 +115,7 @@
21 my $libtoolize = $ENV{'LIBTOOLIZE'} || 'libtoolize';
22 my $autopoint = $ENV{'AUTOPOINT'} || 'autopoint';
23 my $make = $ENV{'MAKE'} || 'make';
24+my $gnuconfigize = $ENV{'GNUCONFIGIZE'} || 'gnu-configize';
25
26 # --install -- as --add-missing in other tools.
27 my $install = 0;
28@@ -644,6 +645,10 @@
29 }
30 }
31
32+ @ex = grep (/^gnu-configize$/, @exclude);
33+ if ($#ex == -1) {
34+ xsystem ("$gnuconfigize");
35+ }
36
37 # -------------- #
38 # Running make. #
diff --git a/meta/recipes-devtools/autoconf/autoconf/autoreconf-include.patch b/meta/recipes-devtools/autoconf/autoconf/autoreconf-include.patch
new file mode 100644
index 0000000000..31326f0bc8
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf/autoreconf-include.patch
@@ -0,0 +1,14 @@
1Upstream-Status: Pending
2
3Index: autoconf-2.63/bin/autoreconf.in
4===================================================================
5--- autoconf-2.63.orig/bin/autoreconf.in 2008-08-28 03:08:10.000000000 +0100
6+++ autoconf-2.63/bin/autoreconf.in 2008-12-31 17:38:40.000000000 +0000
7@@ -190,6 +190,7 @@
8 $autoconf .= join (' --prepend-include=', '', map { shell_quote ($_) } @prepend_include);
9 $autoheader .= join (' --include=', '', map { shell_quote ($_) } @include);
10 $autoheader .= join (' --prepend-include=', '', map { shell_quote ($_) } @prepend_include);
11+ $aclocal .= join (' -I ', '', map { shell_quote ($_) } @include);
12
13 # --install and --symlink;
14 if ($install)
diff --git a/meta/recipes-devtools/autoconf/autoconf/autotest-automake-result-format.patch b/meta/recipes-devtools/autoconf/autoconf/autotest-automake-result-format.patch
new file mode 100644
index 0000000000..b5e8174efd
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf/autotest-automake-result-format.patch
@@ -0,0 +1,136 @@
1From a7e722f974e2529d3e564d8d94c86cc8bdbc40e7 Mon Sep 17 00:00:00 2001
2From: Radu Patriu <radu.patriu@enea.com>
3Date: Mon, 24 Mar 2014 16:33:19 +0200
4Subject: [PATCH] autotest: new testsuite option to enable automake test
5 result format
6
7* lib/autotest/general.m4: added "--am-fmt | -A" command line
8parameter for testsuite script to enable "RESULT: testname" output;
9will be used by yocto ptest packages.
10
11Upstream-Status: Pending
12
13Signed-off-by: Radu Patriu <radu.patriu@enea.com>
14---
15 lib/autotest/general.m4 | 39 +++++++++++++++++++++++++++++----------
16 1 file changed, 29 insertions(+), 10 deletions(-)
17
18diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4
19index 60c0352..c1f5a9b 100644
20--- a/lib/autotest/general.m4
21+++ b/lib/autotest/general.m4
22@@ -412,6 +412,9 @@ at_recheck=
23 # Whether a write failure occurred
24 at_write_fail=0
25
26+# Automake result format "result: testname"
27+at_am_fmt=false
28+
29 # The directory we run the suite in. Default to . if no -C option.
30 at_dir=`pwd`
31 # An absolute reference to this testsuite script.
32@@ -530,6 +533,10 @@ do
33 at_check_filter_trace=at_fn_filter_trace
34 ;;
35
36+ --am-fmt | -A )
37+ at_am_fmt=:
38+ ;;
39+
40 [[0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9]])
41 at_fn_validate_ranges at_option
42 AS_VAR_APPEND([at_groups], ["$at_option$as_nl"])
43@@ -718,10 +725,10 @@ m4_divert_push([HELP_MODES])dnl
44 cat <<_ATEOF || at_write_fail=1
45
46 Operation modes:
47- -h, --help print the help message, then exit
48- -V, --version print version number, then exit
49- -c, --clean remove all the files this test suite might create and exit
50- -l, --list describes all the tests, or the selected TESTS
51+ -h, --help print the help message, then exit
52+ -V, --version print version number, then exit
53+ -c, --clean remove all the files this test suite might create and exit
54+ -l, --list describes all the tests, or the selected TESTS
55 _ATEOF
56 m4_divert_pop([HELP_MODES])dnl
57 m4_wrap([m4_divert_push([HELP_TUNING_BEGIN])dnl
58@@ -747,6 +754,7 @@ Execution tuning:
59 -d, --debug inhibit clean up and top-level logging
60 [ default for debugging scripts]
61 -x, --trace enable tests shell tracing
62+ -A, --am-fmt automake result format "result: testname"
63 _ATEOF
64 m4_divert_pop([HELP_TUNING_BEGIN])])dnl
65 m4_divert_push([HELP_END])dnl
66@@ -1162,7 +1170,9 @@ at_fn_group_banner ()
67 [*]) at_desc_line="$[1]: " ;;
68 esac
69 AS_VAR_APPEND([at_desc_line], ["$[3]$[4]"])
70- $at_quiet AS_ECHO_N(["$at_desc_line"])
71+ if ! $at_am_fmt; then
72+ $at_quiet AS_ECHO_N(["$at_desc_line"])
73+ fi
74 echo "# -*- compilation -*-" >> "$at_group_log"
75 }
76
77@@ -1188,42 +1198,51 @@ _ATEOF
78 case $at_xfail:$at_status in
79 yes:0)
80 at_msg="UNEXPECTED PASS"
81+ at_am_msg="XPASS"
82 at_res=xpass
83 at_errexit=$at_errexit_p
84 at_color=$at_red
85 ;;
86 no:0)
87 at_msg="ok"
88+ at_am_msg="PASS"
89 at_res=pass
90 at_errexit=false
91 at_color=$at_grn
92 ;;
93 *:77)
94 at_msg='skipped ('`cat "$at_check_line_file"`')'
95+ at_am_msg="SKIP"
96 at_res=skip
97 at_errexit=false
98 at_color=$at_blu
99 ;;
100 no:* | *:99)
101 at_msg='FAILED ('`cat "$at_check_line_file"`')'
102+ at_am_msg="FAIL"
103 at_res=fail
104 at_errexit=$at_errexit_p
105 at_color=$at_red
106 ;;
107 yes:*)
108 at_msg='expected failure ('`cat "$at_check_line_file"`')'
109+ at_am_msg="XFAIL"
110 at_res=xfail
111 at_errexit=false
112 at_color=$at_lgn
113 ;;
114 esac
115 echo "$at_res" > "$at_job_dir/$at_res"
116- # In parallel mode, output the summary line only afterwards.
117- if test $at_jobs -ne 1 && test -n "$at_verbose"; then
118- AS_ECHO(["$at_desc_line $at_color$at_msg$at_std"])
119+ if $at_am_fmt; then
120+ AS_ECHO(["$at_am_msg: $at_desc"])
121 else
122- # Make sure there is a separator even with long titles.
123- AS_ECHO([" $at_color$at_msg$at_std"])
124+ # In parallel mode, output the summary line only afterwards.
125+ if test $at_jobs -ne 1 && test -n "$at_verbose"; then
126+ AS_ECHO(["$at_desc_line $at_color$at_msg$at_std"])
127+ else
128+ # Make sure there is a separator even with long titles.
129+ AS_ECHO([" $at_color$at_msg$at_std"])
130+ fi
131 fi
132 at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
133 case $at_status in
134--
1351.7.9.5
136
diff --git a/meta/recipes-devtools/autoconf/autoconf/check-automake-cross-warning.patch b/meta/recipes-devtools/autoconf/autoconf/check-automake-cross-warning.patch
new file mode 100644
index 0000000000..73394d7d52
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf/check-automake-cross-warning.patch
@@ -0,0 +1,34 @@
1Use --warning=cross only if supported by automake
2
3Upstream-Status: Inappropriate [configuration]
4
5Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
6
7--- a/bin/autoreconf.in
8+++ b/bin/autoreconf.in
9@@ -127,6 +127,8 @@ my $aclocal_supports_warnings = 0;
10 my $automake_supports_force_missing = 0;
11 # Does automake support -Wfoo?
12 my $automake_supports_warnings = 0;
13+# Does automake support --warning=cross
14+my $automake_supports_cross_warning = 0;
15
16 my @prepend_include;
17 my @include;
18@@ -191,6 +193,7 @@ sub parse_args ()
19 $aclocal_supports_warnings = $aclocal_help =~ /--warnings/;
20 $automake_supports_force_missing = $automake_help =~ /--force-missing/;
21 $automake_supports_warnings = $automake_help =~ /--warnings/;
22+ $automake_supports_cross_warning = $automake_help =~ /cross/;
23
24 # Dispatch autoreconf's option to the tools.
25 # --include;
26@@ -244,6 +247,8 @@ sub parse_args ()
27 $libtoolize .= ' --debug';
28 }
29 # --warnings;
30+ @warning = grep { $_ ne "cross" } @warning
31+ if ! $automake_supports_cross_warning;
32 if (@warning)
33 {
34 my $warn = ' --warnings=' . join (',', @warning);
diff --git a/meta/recipes-devtools/autoconf/autoconf/config_site.patch b/meta/recipes-devtools/autoconf/autoconf/config_site.patch
new file mode 100644
index 0000000000..9f044404dd
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf/config_site.patch
@@ -0,0 +1,40 @@
1Upstream-Status: Pending
2
3Poky provides a list of site files in CONFIG_SITE whereas autoconf
4only expects one file. This patch changes autoconf to accept a list of
5them.
6
7RP 1/2/10
8
9Updated for 2.68 version: the CONFIG_SITE var was not getting used at all
10fixed the 2.68 code
11Nitin A Kamble <nitin.a.kamble@intel.com> 2011/05/27
12
13Index: autoconf-2.68/lib/autoconf/general.m4
14===================================================================
15--- autoconf-2.68.orig/lib/autoconf/general.m4
16+++ autoconf-2.68/lib/autoconf/general.m4
17@@ -1878,7 +1878,6 @@ AU_DEFUN([AC_VALIDATE_CACHED_SYSTEM_TUPL
18 m4_define([AC_SITE_LOAD],
19 [# Prefer an explicitly selected file to automatically selected ones.
20 ac_site_file1=NONE
21-ac_site_file2=NONE
22 if test -n "$CONFIG_SITE"; then
23 # We do not want a PATH search for config.site.
24 case $CONFIG_SITE in @%:@((
25@@ -1886,14 +1885,8 @@ if test -n "$CONFIG_SITE"; then
26 */*) ac_site_file1=$CONFIG_SITE;;
27 *) ac_site_file1=./$CONFIG_SITE;;
28 esac
29-elif test "x$prefix" != xNONE; then
30- ac_site_file1=$prefix/share/config.site
31- ac_site_file2=$prefix/etc/config.site
32-else
33- ac_site_file1=$ac_default_prefix/share/config.site
34- ac_site_file2=$ac_default_prefix/etc/config.site
35 fi
36-for ac_site_file in "$ac_site_file1" "$ac_site_file2"
37+for ac_site_file in $ac_site_file1
38 do
39 test "x$ac_site_file" = xNONE && continue
40 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
diff --git a/meta/recipes-devtools/autoconf/autoconf/fix_path_xtra.patch b/meta/recipes-devtools/autoconf/autoconf/fix_path_xtra.patch
new file mode 100644
index 0000000000..65df88f8f9
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf/fix_path_xtra.patch
@@ -0,0 +1,120 @@
1Upstream-Status: Pending
2
3We don't build xmkmf so any values returned from it are going to be wrong.
4Using any paths in /usr/ for x headers/libs is a bad idea when cross compiling.
5This patch removes them to stop any confusion.
6
7RP - 20071115
8
9Index: autoconf-2.68/lib/autoconf/libs.m4
10===================================================================
11--- autoconf-2.68.orig/lib/autoconf/libs.m4
12+++ autoconf-2.68/lib/autoconf/libs.m4
13@@ -159,53 +159,6 @@ m4_popdef([AC_Lib_Name])dnl
14 # --------------------- #
15
16
17-# _AC_PATH_X_XMKMF
18-# ----------------
19-# Internal subroutine of _AC_PATH_X.
20-# Set ac_x_includes and/or ac_x_libraries.
21-m4_define([_AC_PATH_X_XMKMF],
22-[AC_ARG_VAR(XMKMF, [Path to xmkmf, Makefile generator for X Window System])dnl
23-rm -f -r conftest.dir
24-if mkdir conftest.dir; then
25- cd conftest.dir
26- cat >Imakefile <<'_ACEOF'
27-incroot:
28- @echo incroot='${INCROOT}'
29-usrlibdir:
30- @echo usrlibdir='${USRLIBDIR}'
31-libdir:
32- @echo libdir='${LIBDIR}'
33-_ACEOF
34- if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
35- # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
36- for ac_var in incroot usrlibdir libdir; do
37- eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
38- done
39- # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
40- for ac_extension in a so sl dylib la dll; do
41- if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
42- test -f "$ac_im_libdir/libX11.$ac_extension"; then
43- ac_im_usrlibdir=$ac_im_libdir; break
44- fi
45- done
46- # Screen out bogus values from the imake configuration. They are
47- # bogus both because they are the default anyway, and because
48- # using them would break gcc on systems where it needs fixed includes.
49- case $ac_im_incroot in
50- /usr/include) ac_x_includes= ;;
51- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
52- esac
53- case $ac_im_usrlibdir in
54- /usr/lib | /usr/lib64 | /lib | /lib64) ;;
55- *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
56- esac
57- fi
58- cd ..
59- rm -f -r conftest.dir
60-fi
61-])# _AC_PATH_X_XMKMF
62-
63-
64 # _AC_PATH_X_DIRECT
65 # -----------------
66 # Internal subroutine of _AC_PATH_X.
67@@ -213,44 +166,7 @@ fi
68 m4_define([_AC_PATH_X_DIRECT],
69 [# Standard set of common directories for X headers.
70 # Check X11 before X11Rn because it is often a symlink to the current release.
71-ac_x_header_dirs='
72-/usr/X11/include
73-/usr/X11R7/include
74-/usr/X11R6/include
75-/usr/X11R5/include
76-/usr/X11R4/include
77-
78-/usr/include/X11
79-/usr/include/X11R7
80-/usr/include/X11R6
81-/usr/include/X11R5
82-/usr/include/X11R4
83-
84-/usr/local/X11/include
85-/usr/local/X11R7/include
86-/usr/local/X11R6/include
87-/usr/local/X11R5/include
88-/usr/local/X11R4/include
89-
90-/usr/local/include/X11
91-/usr/local/include/X11R7
92-/usr/local/include/X11R6
93-/usr/local/include/X11R5
94-/usr/local/include/X11R4
95-
96-/usr/X386/include
97-/usr/x386/include
98-/usr/XFree86/include/X11
99-
100-/usr/include
101-/usr/local/include
102-/usr/unsupported/include
103-/usr/athena/include
104-/usr/local/x11r5/include
105-/usr/lpp/Xamples/include
106-
107-/usr/openwin/include
108-/usr/openwin/share/include'
109+ac_x_header_dirs=''
110
111 if test "$ac_x_includes" = no; then
112 # Guess where to find include files, by looking for Xlib.h.
113@@ -299,7 +215,6 @@ AC_DEFUN([_AC_PATH_X],
114 [AC_CACHE_VAL(ac_cv_have_x,
115 [# One or both of the vars are not set, and there is no cached value.
116 ac_x_includes=no ac_x_libraries=no
117-_AC_PATH_X_XMKMF
118 _AC_PATH_X_DIRECT
119 case $ac_x_includes,$ac_x_libraries in #(
120 no,* | *,no | *\'*)
diff --git a/meta/recipes-devtools/autoconf/autoconf/preferbash.patch b/meta/recipes-devtools/autoconf/autoconf/preferbash.patch
new file mode 100644
index 0000000000..41a623ac56
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf/preferbash.patch
@@ -0,0 +1,23 @@
1This value is used to determine CONFIG_SHELL and SHELL which may get exported into
2scripts shared via sstate onto other systems.
3
4Some systems have /bin/sh -> dash and others /bin/sh -> bash. Bash is preferred
5but sometimes we can sometimes end up exporting /bin/sh yet use bashisms.
6
7This patch puts bash first in the search results which avoids the bash/dash confusion.
8
9RP 2012/9/23
10
11Index: autoconf-2.69/lib/m4sugar/m4sh.m4
12===================================================================
13--- autoconf-2.69.orig/lib/m4sugar/m4sh.m4 2012-03-07 17:35:26.000000000 +0000
14+++ autoconf-2.69/lib/m4sugar/m4sh.m4 2013-09-23 16:12:38.853597515 +0000
15@@ -229,7 +229,7 @@
16 [_AS_PATH_WALK([/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH],
17 [case $as_dir in @%:@(
18 /*)
19- for as_base in sh bash ksh sh5; do
20+ for as_base in bash sh ksh sh5; do
21 # Try only shells that exist, to save several forks.
22 as_shell=$as_dir/$as_base
23 AS_IF([{ test -f "$as_shell" || test -f "$as_shell.exe"; } &&
diff --git a/meta/recipes-devtools/autoconf/autoconf/program_prefix.patch b/meta/recipes-devtools/autoconf/autoconf/program_prefix.patch
new file mode 100644
index 0000000000..978a401f0a
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf/program_prefix.patch
@@ -0,0 +1,20 @@
1Upstream-Status: Pending
2
3#
4# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
5#
6
7--- autoconf-2.57/lib/autoconf/general.m4~program_prefix
8+++ autoconf-2.57/lib/autoconf/general.m4
9@@ -1676,8 +1676,9 @@
10 # The aliases save the names the user supplied, while $host etc.
11 # will get canonicalized.
12 test -n "$target_alias" &&
13- test "$program_prefix$program_suffix$program_transform_name" = \
14- NONENONEs,x,x, &&
15+ test "$target_alias" != "$host_alias" &&
16+ test "$program_prefix$program_suffix$program_transform_name" = \
17+ NONENONEs,x,x, &&
18 program_prefix=${target_alias}-[]dnl
19 ])# AC_CANONICAL_TARGET
20
diff --git a/meta/recipes-devtools/autoconf/autoconf/remove-usr-local-lib-from-m4.patch b/meta/recipes-devtools/autoconf/autoconf/remove-usr-local-lib-from-m4.patch
new file mode 100644
index 0000000000..55d2e2fe7e
--- /dev/null
+++ b/meta/recipes-devtools/autoconf/autoconf/remove-usr-local-lib-from-m4.patch
@@ -0,0 +1,29 @@
1We have problem using hardcoded directories like /usr/local here
2which will be checked for cross builds. This is a special case which
3is valid for AIX only. We do not have AIX as one of our supported
4build host or target. Therefore we get rid of the hardcoded paths
5and make life easier for cross compilation process.
6
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8
9Upstream-Status: Inappropriate [Upstream does care for AIX while we may not]
10Index: autoconf-2.68/lib/autoconf/functions.m4
11===================================================================
12--- autoconf-2.68.orig/lib/autoconf/functions.m4 2010-09-22 14:52:19.000000000 -0700
13+++ autoconf-2.68/lib/autoconf/functions.m4 2011-08-03 11:57:05.822199513 -0700
14@@ -749,15 +749,6 @@ if test $ac_have_func = no; then
15 [LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes])
16 fi
17
18-if test $ac_have_func = no; then
19- # There is a commonly available library for RS/6000 AIX.
20- # Since it is not a standard part of AIX, it might be installed locally.
21- ac_getloadavg_LIBS=$LIBS
22- LIBS="-L/usr/local/lib $LIBS"
23- AC_CHECK_LIB(getloadavg, getloadavg,
24- [LIBS="-lgetloadavg $LIBS"], [LIBS=$ac_getloadavg_LIBS])
25-fi
26-
27 # Make sure it is really in the library, if we think we found it,
28 # otherwise set up the replacement function.
29 AC_CHECK_FUNCS(getloadavg, [],