xz/m4
Lasse Collin 7bb46f2b7b Build: Use AC_LINK_IFELSE to handle implicit function declarations
It's more robust in case the compiler allows pre-C99 implicit function
declarations. If an x86 intrinsic is missing and gets treated as
implicit function, the linking step will very probably fail. This
isn't the only way to workaround implicit function declarations but
it might be the simplest and cleanest.

The problem hasn't been observed in the wild.

There are a couple more AC_COMPILE_IFELSE uses in configure.ac.
Of these, Landlock check calls prctl() and in theory could have
the same problem. In practice it doesn't as the check program
looks for several other things too. However, it was changed to
AC_LINK_IFELSE still to look more correct.

Similarly, m4/tuklib_cpucores.m4 and m4/tuklib_physmem.m4 were
updated although they haven't given any trouble either. They
have worked all these years because those check programs rely
on specific headers and types: if headers or types are missing,
compilation will fail. Using the linker makes these checks more
similar to the ones in cmake/tuklib_*.cmake which always link.
2024-06-26 15:48:56 +03:00
..
.gitignore Update m4/.gitignore. 2024-02-15 22:26:43 +08:00
ax_pthread.m4 Add SPDX license identifiers to GPL, LGPL, and FSFULLR files. 2024-02-14 18:31:16 +02:00
getopt.m4 Add SPDX license identifiers to GPL, LGPL, and FSFULLR files. 2024-02-14 18:31:16 +02:00
posix-shell.m4 Add SPDX license identifiers to GPL, LGPL, and FSFULLR files. 2024-02-14 18:31:16 +02:00
tuklib_common.m4 Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_cpucores.m4 Build: Use AC_LINK_IFELSE to handle implicit function declarations 2024-06-26 15:48:56 +03:00
tuklib_integer.m4 Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_mbstr.m4 Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_physmem.m4 Build: Use AC_LINK_IFELSE to handle implicit function declarations 2024-06-26 15:48:56 +03:00
tuklib_progname.m4 Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
visibility.m4 Build: Update visibility.m4 from Gnulib 2024-05-07 16:21:15 +03:00