11cb0ef41Sopenharmony_ci# =========================================================================== 21cb0ef41Sopenharmony_ci# https://www.gnu.org/software/autoconf-archive/ax_require_defined.html 31cb0ef41Sopenharmony_ci# =========================================================================== 41cb0ef41Sopenharmony_ci# 51cb0ef41Sopenharmony_ci# SYNOPSIS 61cb0ef41Sopenharmony_ci# 71cb0ef41Sopenharmony_ci# AX_REQUIRE_DEFINED(MACRO) 81cb0ef41Sopenharmony_ci# 91cb0ef41Sopenharmony_ci# DESCRIPTION 101cb0ef41Sopenharmony_ci# 111cb0ef41Sopenharmony_ci# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have 121cb0ef41Sopenharmony_ci# been defined and thus are available for use. This avoids random issues 131cb0ef41Sopenharmony_ci# where a macro isn't expanded. Instead the configure script emits a 141cb0ef41Sopenharmony_ci# non-fatal: 151cb0ef41Sopenharmony_ci# 161cb0ef41Sopenharmony_ci# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found 171cb0ef41Sopenharmony_ci# 181cb0ef41Sopenharmony_ci# It's like AC_REQUIRE except it doesn't expand the required macro. 191cb0ef41Sopenharmony_ci# 201cb0ef41Sopenharmony_ci# Here's an example: 211cb0ef41Sopenharmony_ci# 221cb0ef41Sopenharmony_ci# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) 231cb0ef41Sopenharmony_ci# 241cb0ef41Sopenharmony_ci# LICENSE 251cb0ef41Sopenharmony_ci# 261cb0ef41Sopenharmony_ci# Copyright (c) 2014 Mike Frysinger <vapier@gentoo.org> 271cb0ef41Sopenharmony_ci# 281cb0ef41Sopenharmony_ci# Copying and distribution of this file, with or without modification, are 291cb0ef41Sopenharmony_ci# permitted in any medium without royalty provided the copyright notice 301cb0ef41Sopenharmony_ci# and this notice are preserved. This file is offered as-is, without any 311cb0ef41Sopenharmony_ci# warranty. 321cb0ef41Sopenharmony_ci 331cb0ef41Sopenharmony_ci#serial 2 341cb0ef41Sopenharmony_ci 351cb0ef41Sopenharmony_ciAC_DEFUN([AX_REQUIRE_DEFINED], [dnl 361cb0ef41Sopenharmony_ci m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])]) 371cb0ef41Sopenharmony_ci])dnl AX_REQUIRE_DEFINED 38