smr_required_lib.m4

来自「KNN algorithm, and related」· M4 代码 · 共 42 行

M4
42
字号
dnl @synopsis smr_REQUIRED_LIB(LIBRARY,FUNCTION,HEADER-FILE,[OTHER-LIBRARIES],[INCLUDES])dnldnl @version $Id: smr_REQUIRED_LIB.m4,v 1.2 2001/07/25 04:22:49 stever Exp $dnl @author Steve M. Robbins <smr@debian.org>AC_DEFUN([smr_REQUIRED_LIB],[  dnl Define convenient aliases for the arguments since there are so  dnl many of them and I keep confusing myself whenever I have to edit  dnl this macro.  pushdef([smr_library],     $1)  pushdef([smr_function],    $2)  pushdef([smr_header],      $3)  pushdef([smr_other_libs],  $4)  pushdef([smr_includes],    $5)  # Raise error if [smr_header] cannot be found.  AC_CHECK_HEADER(smr_header,,	          AC_MSG_ERROR(cannot find required header),		  smr_includes)  # Raise error if [smr_library] cannot be found.  dnl 2001-07-24 - smr  dnl If I quote the first argument ([smr_library]), it is passed verbatim  dnl into the configure script, unlike all the other quoted smr_* names.  dnl Where is the bug?  AC_CHECK_LIB(smr_library,smr_function,,	       AC_MSG_ERROR(cannot find required library),	       smr_other_libs)  popdef([smr_library])  popdef([smr_function])  popdef([smr_header])  popdef([smr_other_libs])  popdef([smr_includes])])

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?