Add support to check for a valid autoconf for RTEMS.

This commit is contained in:
Chris Johns 2013-04-23 16:03:25 +10:00
parent 1869040e16
commit 86b2b4fe63
2 changed files with 10 additions and 0 deletions

View File

@ -4,9 +4,17 @@
%include %{_configdir}/checks.cfg
%include %{_configdir}/base.cfg
%include %{_configdir}/versions.cfg
%define rtems_kernel_version 4.11
#
# Check the version of autoconf.
#
%if %{__autoconf_ver} <= 2.68
%error Autoconf version 2.69 or higher is needed.
%endif
#
# Pull the latest changes from git each build. Override if this is not what you
# want.

View File

@ -1,5 +1,7 @@
# Generate version strings.
%define __makeinfo_ver %(%{__makeinfo} --version | %{__awk} 'NR==1 {print $NF}')
%define __autoconf_ver %(%{__autoconf} --version | %{__awk} 'NR==1 {print $NF}')
%define __automake_ver %(%{__automake} --version | %{__awk} 'NR==1 {print $NF}')