HomeClusterLabs Projects

Build: configure: require getopt() to be available

Description

Build: configure: require getopt() to be available

Previously, we checked for getopt()'s existence, which would create cache
variables indicating that, but we did nothing with the variables, and we
use getopt() unconditionally in the code.

Now, define a REQUIRE_FUNC() m4 macro for reuse, that errors out if a function
isn't available in the standard C library (actually the LIBS available at that
point). Use that to require getopt().

Details

Provenance
kgaillotAuthored on Jan 13 2021, 2:12 PM
Parents
rP3e8d0631f818: Build: Makefile: distribute more m4 macros
Branches
Unknown
Tags
Unknown

Event Timeline