smr_with_build_path.m4

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

M4
29
字号
dnl @synopsis smr_WITH_BUILD_PATHdnldnl This macro adds a "--with-build-path" option to the configure script.dnl This configure option provides a convenient way to add "-I" optionsdnl to CPPFLAGS and "-L" options to LDFLAGS, at configure time.dnldnl Invoking "./configure --with-build-path=DIR" results indnl "-I DIR/include" being added to CPPFLAGS if DIR/include exists,dnl and "-L DIR/lib" being added to LDFLAGS if DIR/lib exists.dnldnl Separate multiple directories using colons; e.g.dnl "--with-build-path=DIR1:DIR2:DIR3".dnldnl @version $Id: smr_WITH_BUILD_PATH.m4,v 1.3 2004/04/07 14:20:09 bert Exp $dnl @author Steve M. Robbins <smr@debian.org>AC_DEFUN([smr_WITH_BUILD_PATH],[    AC_ARG_WITH([build-path],    [  --with-build-path=DIR   build using DIR/include and DIR/lib],    [	for d in `echo $withval | tr : ' '`; do            test -d $d || AC_MSG_ERROR([build path $d not found.])	    test -d $d/include && CPPFLAGS="$CPPFLAGS -I$d/include"	    test -d $d/lib && LDFLAGS="$LDFLAGS -L$d/lib"	done    ])])

⌨️ 快捷键说明

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