config: Check the path for a valid autoconf.

This commit is contained in:
Chris Johns 2013-08-08 11:43:52 +10:00
parent 84a3494c5f
commit ff0fc8eed0
2 changed files with 6 additions and 1 deletions

View File

@ -13,8 +13,10 @@
#
%if %{__autoreconf_ver} <= 2.68
%if %{__autoreconf_bindir_ver} <= 2.68
%if %{__autoreconf_path_ver} <= 2.68
%error Autoconf (autoreconf) version 2.69 or higher is needed.
%endif
%endif
%endif
#

View File

@ -3,7 +3,10 @@
%define __makeinfo_ver %(test -x %{__makeinfo} && %{__makeinfo} --version | %{__awk} 'NR==1 {print $NF}' || echo "0")
%define __autoconf_ver %(test -x %{__autoconf} && %{__autoconf} --version | %{__awk} 'NR==1 {print $NF}' || echo "0")
%define __autoconf_bindir_ver %(test -x %{_bindir}/autoconf && %{_bindir}/autoconf --version | %{__awk} 'NR==1 {print $NF}' || echo "0")
%define __autoconf_path_rver %(autoconf --version | %{__awk} 'NR==1 {print $NF}' || echo "0")
%define __autoreconf_ver %(test -x %{__autoreconf} && %{__autoreconf} --version | %{__awk} 'NR==1 {print $NF}' || echo "0")
%define __autoreconf_bindir_ver %(test -x %{_bindir}/autoreconf && %{_bindir}/autoreconf --version | %{__awk} 'NR==1 {print $NF}' || echo "0")
%define __autoreconf_path_ver %(autoreconf --version | %{__awk} 'NR==1 {print $NF}' || echo "0")
%define __automake_ver %(test -x %{__automake} && %{__automake} --version | %{__awk} 'NR==1 {print $NF}' || echo "0")
%define __automake_bindir_ver %(test -x %{_bindir}/automake && %{_bindir}/automake --version | %{__awk} 'NR==1 {print $NF}' || echo "0")
%define __automake_path_ver %(automake --version | %{__awk} 'NR==1 {print $NF}' || echo "0")