Delete the code that adapts to lib/autoconf/c.m4

This commit is contained in:
fly_fzc 2024-06-13 10:55:48 +08:00
parent d2489513a2
commit 851e929cc5

View File

@ -3,7 +3,7 @@
Name: autoconf Name: autoconf
Version: 2.71 Version: 2.71
Release: 5 Release: 6
Summary: An extensible package to automatically configure software source code packages Summary: An extensible package to automatically configure software source code packages
License: GPLv2+ and GPLv3+ and GFDL-1.3-only License: GPLv2+ and GPLv3+ and GFDL-1.3-only
URL: https://www.gnu.org/software/%{name}/ URL: https://www.gnu.org/software/%{name}/
@ -34,13 +34,6 @@ can use, in the form of M4 macro calls.
%prep %prep
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
echo 'main() {}' | g++ -E -v - > g++.log 2>&1
grep -rn -m 1 COLLECT_GCC_OPTIONS g++.log > option.log
GCC_OPTION=`cat option.log`
if [[ $GCC_OPTION != *"fsigned-char"* ]];then
sed -i "s|((char) -1) < 0|((unsigned char) -1) < 0|g" lib/autoconf/c.m4
fi
rm -rf g++.log option.log
%build %build
export EMACS=%{_bindir}/emacs export EMACS=%{_bindir}/emacs
@ -80,6 +73,9 @@ fi
%changelog %changelog
* Thu Jun 13 2024 fuanan <fuanan3@h-partners.com> - 2.71-6
- Delete the code that adapts to lib/autoconf/c.m4
* Tue May 14 2024 Ge Wang <wang__ge@126.com> - 2.71-5 * Tue May 14 2024 Ge Wang <wang__ge@126.com> - 2.71-5
- Adapt signed-char check macro for default unsigned evironment - Adapt signed-char check macro for default unsigned evironment