How to reproduce:
git clone https://git.code.sf.net/p/sox/code sox-code
cd sox-code
autoreconf -i
./configure
./configure: line 4368: syntax error near unexpected token `-Wl,--as-needed'
./configure: line 4368: `AX_APPEND_LINK_FLAGS(-Wl,--as-needed)'
SoX version:
git log -1
commit 4dd0666438f6dc7fc0cd2d4f77b39e4155892cff (HEAD -> master, origin/master, origin/HEAD)
Author: Mans Rullgard <mans@mansr.com>
Date: Wed Aug 5 16:03:50 2020 +0100
sox: exit with non-zero status on error [bug #212]
Tested under OS: Fedora 32 (64-bit)
You need to install the autoconf-archive: https://www.gnu.org/software/autoconf-archive/
Yes, autoconf is really poor at diagnosing such problems.
Thanks for the quick answer.
After installing autoconf-archive, configure was OK.