Fix-configure-issue.

This commit is contained in:
Peter Fordham 2022-11-30 06:08:00 +00:00
parent 324ee5a3a4
commit b4bdf194d6
2 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,23 @@
Avoid an undeclared exit function call in obscure configure check.
This improves compatibility with strict(er) C99 compilers, which may
not support implicit function declarations because they were removed
from the C language in 1999.
Not submitted upstream as regeneration of configure with new autoconf
would fix.
diff --git a/configure b/configure
index b81fdff..49bcfc6 100755
--- a/configure
+++ b/configure
@@ -3850,8 +3850,8 @@ main ()
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
|| toupper (i) != TOUPPER (i))
- exit(2);
- exit (0);
+ return 2;
+ return 0;
}
_ACEOF
rm -f conftest$ac_exeext

View File

@ -1,13 +1,14 @@
Summary: Small test program for liba52
Name: a52dec
Version: 0.7.4
Release: 43%{?dist}
Release: 44%{?dist}
License: GPLv2
URL: http://liba52.sourceforge.net
Source0: %{url}/files/%{name}-%{version}.tar.gz
Patch0: a52dec-configure-optflags.patch
Patch1: a52dec-0.7.4-rpath64.patch
Patch2: liba52-silence.patch
Patch3: a52dec-configure-c99.patch
BuildRequires: gcc
BuildRequires: make
@ -90,6 +91,9 @@ done
%changelog
* Wed Nov 30 2022 Peter Fordham <peter.fordham@gmail.com> - 0.7.4-44
- Port configure script to C99
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.4-43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild