From de7b2f4d2a7e78db363cb26a66df4da1f9524e25 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 1 Jan 2023 11:11:10 +0300
Subject: [PATCH] autotools: GNU sort isn't required, we just need the -V
option to be supported.
---
configure | 3 ++-
configure.ac | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 385755aa..f35e6f02 100755
--- a/configure
+++ b/configure
@@ -16336,7 +16336,8 @@ test -n "$SORT" || SORT="false"
if ! "$SORT" -V </dev/null >/dev/null
then :
- as_fn_error $? "GNU sort(1) is required" "$LINENO" 5
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
+printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
fi
case "$host" in
diff --git a/configure.ac b/configure.ac
index 6a497136..70aa1ed1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,7 +80,7 @@ if [ test -z "$AWK" ]; then
fi
AC_CHECK_PROGS([SORT], [gsort sort], [false])
-AS_IF([! "$SORT" -V </dev/null >/dev/null], [AC_MSG_ERROR([GNU sort(1) is required])])
+AS_IF([! "$SORT" -V </dev/null >/dev/null], [AC_MSG_WARN([sort(1) that supports the -V option is required to find dynamic libraries])])
dnl Set up the compiler and linker flags
case "$host" in