--- /dev/null
+--- otp-OTP-24.1.2/otp_build.orig 2021-10-04 17:12:13.000000000 +0200
++++ otp-OTP-24.1.2/otp_build 2021-10-25 21:32:32.099541733 +0200
+@@ -197,20 +197,6 @@ do_update_configure ()
+ {
+ get_do_commit $1
+
+- ac_ver_blob=`autoconf --version`
+- if [ $? -ne 0 ]; then
+- echo "ERROR: Failed to check autoconf version! You need to have autoconf of version $USE_AUTOCONF_VERSION in path." 1>&2
+- exit 1
+- fi
+- ac_ver=`echo $ac_ver_blob | sed "s|[^0-9]*\([0-9][^ \t\n]*\).*|\1|"`
+- case $ac_ver in
+- $USE_AUTOCONF_VERSION)
+- ;;
+- *)
+- echo "ERROR: autoconf of version $ac_ver found in path! You need to have autoconf of version $USE_AUTOCONF_VERSION in path." 1>&2
+- exit 1;;
+- esac
+-
+ out_files=
+
+ for dir in $aclocal_dirs; do
# disable pdf docs (require libxslt-progs and fop > 1.0, with -cache option)
Patch2: %{name}-no-fop.patch
Patch3: ssl.patch
+Patch4: %{name}-ac.patch
URL: http://www.erlang.org/
%{?with_java:BuildRequires: /usr/bin/jar}
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.69
BuildRequires: automake
BuildRequires: flex
%{?with_java:BuildRequires: jdk >= 1.2}
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
-./otp_build autoconf
+./otp_build update_configure --no-commit
%configure \
%ifarch sparc
%attr(755,root,root) %{_libdir}/%{name}/bin/typer
%{_libdir}/%{name}/bin/start*.*
%dir %{_libdir}/%{name}/erts-%{erts_version}
+%{_libdir}/%{name}/erts-%{erts_version}/info
%{_libdir}/%{name}/erts-%{erts_version}/man
%{_libdir}/%{name}/erts-%{erts_version}/src
%{_libdir}/%{name}/erts-%{erts_version}/include
+%dir %{_libdir}/%{name}/erts-%{erts_version}/lib
+%{_libdir}/%{name}/erts-%{erts_version}/lib/liberts*.a
+%dir %{_libdir}/%{name}/erts-%{erts_version}/lib/internal
+%{_libdir}/%{name}/erts-%{erts_version}/lib/internal/liberts_internal*.a
+%{_libdir}/%{name}/erts-%{erts_version}/lib/internal/libethread.a
#%{_libdir}/%{name}/erts-%{erts_version}/*.ear
%dir %{_libdir}/%{name}/erts-%{erts_version}/bin
%attr(755,root,root) %{_libdir}/%{name}/erts-%{erts_version}/bin/beam*