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>
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
}