diff --git a/autoconf.spec b/autoconf.spec index dd90a3b7e385520f9dc2e6b1fab7e7fc2bd2e1f7..d76d9f7653ad67a70a18be90ee22e269a5ed1091 100644 --- a/autoconf.spec +++ b/autoconf.spec @@ -3,7 +3,7 @@ Name: autoconf Version: 2.71 -Release: 3 +Release: 4 Summary: An extensible package to automatically configure software source code packages License: GPLv2+ and GPLv3+ and GFDL URL: https://www.gnu.org/software/%{name}/ @@ -33,6 +33,13 @@ 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 @@ -72,6 +79,12 @@ fi %changelog +* Fri May 24 2024 fuanan - 2.71-4 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:Adapt signed-char check macro for default unsigned evironment + * Sat Oct 22 2022 yixiangzhike - 2.71-3 - Type:bugfix - ID:NA