diff options
Diffstat (limited to 'm4/REQUIRE_FUNC.m4')
-rw-r--r-- | m4/REQUIRE_FUNC.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/m4/REQUIRE_FUNC.m4 b/m4/REQUIRE_FUNC.m4 new file mode 100644 index 0000000..2b6986a --- /dev/null +++ b/m4/REQUIRE_FUNC.m4 @@ -0,0 +1,16 @@ +# REQUIRE_FUNC([FUNC]) +# +# Error if a standard C library function can't be found +# +dnl +dnl Copyright 2021 the Pacemaker project contributors +dnl +dnl The version control history for this file may have further details. +dnl +dnl This source code is licensed under the GNU General Public License version 2 +dnl or later (GPLv2+) WITHOUT ANY WARRANTY. + +dnl Usage: REQUIRE_FUNC(function-name) +AC_DEFUN([REQUIRE_FUNC], [ + AC_CHECK_FUNC([$1], [], [AC_MSG_ERROR(Could not find required C function $1)]) +]) |