File: REQUIRE_FUNC.m4

package info (click to toggle)
pacemaker 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 68,576 kB
  • sloc: xml: 160,564; ansic: 143,744; python: 5,670; sh: 2,969; makefile: 2,426
file content (16 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)])
])