Build system: implement REUSE with SPDX identifiers
[lttng-ust.git] / m4 / ax_require_defined.m4
CommitLineData
e03d7c66
MJ
1# SPDX-License-Identifier: FSFAP
2#
31c7a68a
MJ
3# ===========================================================================
4# https://www.gnu.org/software/autoconf-archive/ax_require_defined.html
5# ===========================================================================
6#
7# SYNOPSIS
8#
9# AX_REQUIRE_DEFINED(MACRO)
10#
11# DESCRIPTION
12#
13# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have
14# been defined and thus are available for use. This avoids random issues
15# where a macro isn't expanded. Instead the configure script emits a
16# non-fatal:
17#
18# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found
19#
20# It's like AC_REQUIRE except it doesn't expand the required macro.
21#
22# Here's an example:
23#
24# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG])
25#
26# LICENSE
27#
28# Copyright (c) 2014 Mike Frysinger <vapier@gentoo.org>
29#
30# Copying and distribution of this file, with or without modification, are
31# permitted in any medium without royalty provided the copyright notice
32# and this notice are preserved. This file is offered as-is, without any
33# warranty.
34
35#serial 2
36
37AC_DEFUN([AX_REQUIRE_DEFINED], [dnl
38 m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])])
39])dnl AX_REQUIRE_DEFINED
This page took 0.026263 seconds and 4 git commands to generate.