summaryrefslogtreecommitdiffstats
path: root/m4 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Improve detection of -fzero-call-used-regs=used.Darren Tucker2024-03-251-0/+3
| | | | | | | Should better detect problems with gcc 13 on m68k. bz#3673 from Colin Watson via bz#3673 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 Signed-off-by: Darren Tucker <dtucker@dtucker.net>
* better detection of broken -fzero-call-used-regsDamien Miller2023-12-221-3/+9
| | | | | | | | | | | | | gcc 13.2.0 on ppc64le refuses to compile some function, including cipher.c:compression_alg_list() with an error: > sorry, unimplemented: argument ‘used’ is not supportedcw > for ‘-fzero-call-used-regs’ on this target This extends the autoconf will-it-work test with a similarly- structured function that seems to catch this. Spotted/tested by Colin Watson; bz3645
* better detection of broken -fzero-call-used-regsDamien Miller2023-12-181-1/+13
| | | | | | | Use OSSH_CHECK_CFLAG_LINK() for detection of these flags and extend test program to exercise varargs, which seems to catch more stuff. ok dtucker@
* Use non-zero arg in compiler test program.Darren Tucker2023-11-241-1/+1
| | | | | Now that we're running the test program, passing zero to the test function can cause divide-by-zero exceptions which might show up in logs.
* Check return value from write to prevent warning.Darren Tucker2023-11-231-1/+1
| | | | | ... and since we're testing for flags with -Werror, this caused configure to mis-detect compiler flags.
* Run compiler test program when compiling natively.Darren Tucker2023-11-231-6/+27
| | | | ok djm@
* Factor out compiler test program into a macro.Darren Tucker2023-11-231-49/+24
| | | | ok djm@
* Expand -fzero-call-used-regs test to cover gcc 11.Darren Tucker2023-11-211-1/+7
| | | | | | | | It turns out that gcc also has some problems with -fzero-call-used-regs, at least v11 on mips. Previously the test in OSSH_CHECK_CFLAG_COMPILE was sufficient to catch it with "=all", but not sufficient for "=used". Expand the testcase and include it in the other tests for good measure. See bz#3629. ok djm@.
* Improve detection of -fzero-call-used-regs=all supportColin Watson2022-02-251-0/+3
| | | | | GCC doesn't tell us whether this option is supported unless it runs into the situation where it would need to emit corresponding code.
* Replace AC_TRY_COMPILE obsoleted in autoconf 2.70.Darren Tucker2020-11-061-8/+9
| | | | Replace with the equivalent AC_COMPILE_IFELSE.
* Quote the definition of OSSH_CHECK_HEADER_FOR_FIELDSebastian Andrzej Siewior2020-09-111-1/+1
| | | | | | | | | | autoreconf complains about underquoted definition of OSSH_CHECK_HEADER_FOR_FIELD after aclocal.m4 has been and now is beeing recreated. Quote OSSH_CHECK_HEADER_FOR_FIELD as suggested. Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
* Move the local m4 macrosSebastian Andrzej Siewior2020-09-111-0/+199
The `aclocal' step is skipped during `autoreconf' because aclocal.m4 is present. Move the current aclocal.m4 which contains local macros into the m4/ folder. With this change the aclocal.m4 will be re-created during changes to the m4/ macro. This is needed so the `aclocal' can fetch m4 macros from the system if they are references in the configure script. This is a prerequisite to use PKG_CHECK_MODULES. Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>