From: Nick Bowler Date: Thu, 7 Dec 2023 01:56:24 +0000 (-0500) Subject: DX_AUTOMAKE_COMPAT: Fix compile with newer Automake. X-Git-Url: http://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/7029e258114ecffe7a80be495fba50a70e6ab00c?hp=7029e258114ecffe7a80be495fba50a70e6ab00c DX_AUTOMAKE_COMPAT: Fix compile with newer Automake. Current versions of Automake's compile script depend on shell functions which are not supported by ULTRIX 4.5 /bin/sh. Now ksh does support these and configure does find and use this shell on ULTRIX, but compile starts with #!/bin/sh so when it is executed directly, it is run with /bin/sh instead of the shell we want. This is a bit tricky to work around since Automake updates $CC (if needed) to refer to the compile script, which is used throughout the configure run. So we can't just patch it up whenever, it has to be done early on. AC_BEFORE can be used to at least warn if the patches are ineffective. ---