File 3023-Update-configure-scripts.patch of Package erlang
From c99f1d8192416f50e8f812d9d118ca8556178713 Mon Sep 17 00:00:00 2001
From: Rickard Green <rickard@erlang.org>
Date: Tue, 25 Jan 2022 13:00:24 +0100
Subject: [PATCH 3/3] Update configure scripts
---
erts/config.h.in | 2 +-
erts/configure | 12 ++---
lib/erl_interface/config.h.in | 6 ---
lib/erl_interface/configure | 96 +++++++++++++++++++++++------------
4 files changed, 71 insertions(+), 45 deletions(-)
diff --git a/erts/config.h.in b/erts/config.h.in
index 340688ed39..50bf993e94 100644
--- a/erts/config.h.in
+++ b/erts/config.h.in
@@ -107,7 +107,7 @@
/* Define if bigendian */
#undef ETHR_BIGENDIAN
-/* Define if gcc wont let you clobber ebx with cmpxchg8b and position
+/* Define if gcc won't let you clobber ebx with cmpxchg8b and position
independent code */
#undef ETHR_CMPXCHG8B_PIC_NO_CLOBBER_EBX
diff --git a/erts/configure b/erts/configure
index d3e168c6f5..0a1a50c142 100755
--- a/erts/configure
+++ b/erts/configure
@@ -1564,11 +1564,11 @@ Optional Features:
into the main binary. It is also possible to give a
list of nifs that should be linked statically. The
list should be a comma separated and contain the
- absolute path to a .a archive for each nif lib
- that is to be statically linked. Note that you have
- to link any external dependencies, that the nifs have,
- to the main binary. So for the crypto nifs
- you want to pass LIBS=-lcrypto to configure.
+ absolute path to a .a archive for each nif that is
+ to be statically linked. Note that you have to link
+ any external dependencies, that the nifs have, to
+ the main binary. So for the crypto nifs you want to
+ pass LIBS=-lcrypto to configure.
--enable-static-drivers comma separated list of linked-in drivers to link
statically with the main binary. The list should
contain the absolute path to a .a archive for each
diff --git a/lib/erl_interface/config.h.in b/lib/erl_interface/config.h.in
index a0e4efe262..aba0e2ec91 100644
--- a/lib/erl_interface/config.h.in
+++ b/lib/erl_interface/config.h.in
@@ -117,18 +117,12 @@
/* Define to 1 if you have the `gmp' library (-lgmp). */
#undef HAVE_LIBGMP
-/* Define to 1 if you have the `nsl' library (-lnsl). */
-#undef HAVE_LIBNSL
-
/* Define to 1 if you have the `resolv' library (-lresolv). */
#undef HAVE_LIBRESOLV
/* Define to 1 if you have the `rt' library (-lrt). */
#undef HAVE_LIBRT
-/* Define to 1 if you have the `socket' library (-lsocket). */
-#undef HAVE_LIBSOCKET
-
/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
--
2.31.1