autoconf: Dont execute perl and m4 for target builds
authorKhem Raj <raj.khem@gmail.com>
Sat, 19 Sep 2009 23:45:32 +0000 (16:45 -0700)
committerKhem Raj <raj.khem@gmail.com>
Sat, 19 Sep 2009 23:45:32 +0000 (16:45 -0700)
* configure decides to probe perl verison
  dont do that as it wont work when building
  target autoconf. So far it was executing /usr/bin/perl
  and /usr/bin/m4 which is found on most build machines
  however micro change the layout and /bin/perl and /bin/m4
  is now not found. So it brought up a hidden bug.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/autoconf/autoconf-2.61/autoconf-dont-execute-perl.patch [new file with mode: 0644]
recipes/autoconf/autoconf.inc
recipes/autoconf/autoconf_2.61.bb

diff --git a/recipes/autoconf/autoconf-2.61/autoconf-dont-execute-perl.patch b/recipes/autoconf/autoconf-2.61/autoconf-dont-execute-perl.patch
new file mode 100644 (file)
index 0000000..c336bc5
--- /dev/null
@@ -0,0 +1,41 @@
+Index: autoconf-2.61/configure.ac
+===================================================================
+--- autoconf-2.61.orig/configure.ac    2006-11-17 11:04:48.000000000 -0800
++++ autoconf-2.61/configure.ac 2009-09-19 16:37:40.000000000 -0700
+@@ -106,10 +106,6 @@
+ if test "$PERL" = no; then
+   AC_MSG_ERROR([perl is not found])
+ fi
+-$PERL -e 'require 5.005_03;' || {
+-   AC_MSG_ERROR([Perl 5.005_03 or better is required])
+-}
+-
+ ## ------- ##
+ ## Emacs.  ##
+Index: autoconf-2.61/configure
+===================================================================
+--- autoconf-2.61.orig/configure       2006-11-17 11:05:17.000000000 -0800
++++ autoconf-2.61/configure    2009-09-19 16:38:13.000000000 -0700
+@@ -1557,7 +1557,7 @@
+ # Let the site file select an alternate cache file if it wants to.
+ # Prefer explicitly selected file to automatically selected ones.
+ if test -n "$CONFIG_SITE"; then
+-  set x "$CONFIG_SITE"
++  set x $CONFIG_SITE
+ elif test "x$prefix" != xNONE; then
+   set x "$prefix/share/config.site" "$prefix/etc/config.site"
+ else
+@@ -2406,12 +2406,6 @@
+ echo "$as_me: error: perl is not found" >&2;}
+    { (exit 1); exit 1; }; }
+ fi
+-$PERL -e 'require 5.005_03;' || {
+-   { { echo "$as_me:$LINENO: error: Perl 5.005_03 or better is required" >&5
+-echo "$as_me: error: Perl 5.005_03 or better is required" >&2;}
+-   { (exit 1); exit 1; }; }
+-}
+-
+ ## ------- ##
+ ## Emacs.  ##
index 5bdc7e1..2fa1275 100644 (file)
@@ -5,7 +5,7 @@ HOMEPAGE = "http://www.gnu.org/software/autoconf/"
 SECTION = "devel"
 DEPENDS += "m4-native"
 RDEPENDS_${PN} = "m4 perl gnu-config"
-INC_PR = "r7"
+INC_PR = "r8"
 
 SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.bz2 \
           file://program_prefix.patch;patch=1"
@@ -17,5 +17,6 @@ do_configure_prepend () {
        then
                export ac_cv_path_PERL="${ac_cv_path_PERL=${bindir}/perl}"
                export ac_cv_path_M4="${ac_cv_path_M4=${bindir}/m4}"
+               export ac_cv_prog_gnu_m4="${ac_cv_prog_gnu_m4=yes}"
        fi
 }
index c3ccacd..53733a9 100644 (file)
@@ -9,4 +9,6 @@ SRC_URI += "file://autoreconf-include.patch;patch=1 \
           file://autoreconf-foreign.patch;patch=1 \
           file://autoreconf-gnuconfigize.patch;patch=1 \
           file://autoheader-nonfatal-warnings.patch;patch=1 \
-          file://config-site.patch;patch=1 "
+          file://config-site.patch;patch=1 \
+          file://autoconf-dont-execute-perl.patch;patch=1 \
+          "