From 8da17586c547f365ae667eb2608ba89a1c375afc Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Thu, 18 Nov 2010 07:01:56 -0700 Subject: autoconf.inc: Use 'which' to find m4 We need to make sure that if m4-native is built, it's used here as there are hosts that otherwise have too old of an m4. When @M4@ is replaced here it's not used in conjunction with #! so this is safe. Signed-off-by: Tom Rini --- recipes/autoconf/autoconf.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'recipes/autoconf') diff --git a/recipes/autoconf/autoconf.inc b/recipes/autoconf/autoconf.inc index 79a81082e9..ca6504fcfb 100644 --- a/recipes/autoconf/autoconf.inc +++ b/recipes/autoconf/autoconf.inc @@ -21,8 +21,9 @@ SUBDIRS = "bin . lib" do_configure_prepend () { if ${@['true', 'false'][bb.data.inherits_class('native', d)]} then + M4=`which m4` 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_path_M4="${ac_cv_path_M4=${M4}}" export ac_cv_prog_gnu_m4="${ac_cv_prog_gnu_m4=yes}" fi } -- cgit 1.2.3-korg