Blame m4/ax_require_defined.m4

Packit 130fc8
# ===========================================================================
Packit 130fc8
#    http://www.gnu.org/software/autoconf-archive/ax_require_defined.html
Packit 130fc8
# ===========================================================================
Packit 130fc8
#
Packit 130fc8
# SYNOPSIS
Packit 130fc8
#
Packit 130fc8
#   AX_REQUIRE_DEFINED(MACRO)
Packit 130fc8
#
Packit 130fc8
# DESCRIPTION
Packit 130fc8
#
Packit 130fc8
#   AX_REQUIRE_DEFINED is a simple helper for making sure other macros have
Packit 130fc8
#   been defined and thus are available for use.  This avoids random issues
Packit 130fc8
#   where a macro isn't expanded.  Instead the configure script emits a
Packit 130fc8
#   non-fatal:
Packit 130fc8
#
Packit 130fc8
#     ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found
Packit 130fc8
#
Packit 130fc8
#   It's like AC_REQUIRE except it doesn't expand the required macro.
Packit 130fc8
#
Packit 130fc8
#   Here's an example:
Packit 130fc8
#
Packit 130fc8
#     AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG])
Packit 130fc8
#
Packit 130fc8
# LICENSE
Packit 130fc8
#
Packit 130fc8
#   Copyright (c) 2014 Mike Frysinger <vapier@gentoo.org>
Packit 130fc8
#
Packit 130fc8
#   Copying and distribution of this file, with or without modification, are
Packit 130fc8
#   permitted in any medium without royalty provided the copyright notice
Packit 130fc8
#   and this notice are preserved. This file is offered as-is, without any
Packit 130fc8
#   warranty.
Packit 130fc8
Packit 130fc8
#serial 1
Packit 130fc8
Packit 130fc8
AC_DEFUN([AX_REQUIRE_DEFINED], [dnl
Packit 130fc8
  m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])])
Packit 130fc8
])dnl AX_REQUIRE_DEFINED