diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:53:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:53:20 +0000 |
commit | e5a812082ae033afb1eed82c0f2df3d0f6bdc93f (patch) | |
tree | a6716c9275b4b413f6c9194798b34b91affb3cc7 /m4/REQUIRE_LIB.m4 | |
parent | Initial commit. (diff) | |
download | pacemaker-e5a812082ae033afb1eed82c0f2df3d0f6bdc93f.tar.xz pacemaker-e5a812082ae033afb1eed82c0f2df3d0f6bdc93f.zip |
Adding upstream version 2.1.6.upstream/2.1.6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'm4/REQUIRE_LIB.m4')
-rw-r--r-- | m4/REQUIRE_LIB.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/REQUIRE_LIB.m4 b/m4/REQUIRE_LIB.m4 new file mode 100644 index 0000000..1c874eb --- /dev/null +++ b/m4/REQUIRE_LIB.m4 @@ -0,0 +1,15 @@ +# +# Copyright 2021 the Pacemaker project contributors +# +# The version control history for this file may have further details. +# +# This source code is licensed under the GNU General Public License version 2 +# or later (GPLv2+) WITHOUT ANY WARRANTY. + +# REQUIRE_LIB(LIBRARY, FUNCTION) +# +# Error if a C library can't be found or doesn't contain a specified function +# +AC_DEFUN([REQUIRE_LIB], [ + AC_CHECK_LIB([$1],[$2],,[AC_MSG_FAILURE([Unable to find required C library lib$1])]) +]) |