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

From: @fly_fzc 
Reviewed-by: @jiayi0118 
Signed-off-by: @jiayi0118
This commit is contained in:
openeuler-ci-bot 2024-06-13 09:09:23 +00:00 committed by Gitee
commit 18948a931c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,7 @@
Name: autoconf
Version: 2.71
Release: 5
Release: 6
Summary: An extensible package to automatically configure software source code packages
License: GPLv2+ and GPLv3+ and GFDL-1.3-only
URL: https://www.gnu.org/software/%{name}/
@ -34,13 +34,6 @@ can use, in the form of M4 macro calls.
%prep
%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
export EMACS=%{_bindir}/emacs
@ -80,6 +73,9 @@ fi
%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
- Adapt signed-char check macro for default unsigned evironment