diff options
author | Tom Rini <tom_rini@mentor.com> | 2010-11-18 07:01:56 -0700 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2010-11-18 07:29:23 -0700 |
commit | 8da17586c547f365ae667eb2608ba89a1c375afc (patch) | |
tree | 8f2009b8ccbcd5076a17be7f9a5b5e9151cb3b7e /recipes/autoconf | |
parent | c63403cb9c02641476f9e275fb2e63bb54f5e46d (diff) | |
download | openembedded-8da17586c547f365ae667eb2608ba89a1c375afc.tar.gz |
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 <tom_rini@mentor.com>
Diffstat (limited to 'recipes/autoconf')
-rw-r--r-- | recipes/autoconf/autoconf.inc | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |