⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ax_check_compiler_flags.m4

📁 麻省理工的计算光子晶体的程序
💻 M4
字号:
dnl @synopsis AX_CHECK_COMPILER_FLAGS(FLAGS, [ACTION-SUCCESS], [ACTION-FAILURE])dnl @summary check whether FLAGS are accepted by the compilerdnl @category Miscdnldnl Check whether the given compiler FLAGS work with the current language'sdnl compiler, or whether they give an error.  (Warnings, however, arednl ignored.)dnldnl ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute ondnl success/failure.dnldnl @version 2005-05-30dnl @license GPLWithACExceptiondnl @author Steven G. Johnson <stevenj@alum.mit.edu> and Matteo Frigo.AC_DEFUN([AX_CHECK_COMPILER_FLAGS],[AC_PREREQ(2.59) dnl for _AC_LANG_PREFIXAC_MSG_CHECKING([whether _AC_LANG compiler accepts $1])dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname:AS_LITERAL_IF([$1],  [AC_CACHE_VAL(AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1), [      ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS      _AC_LANG_PREFIX[]FLAGS="$1"      AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],         AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)=yes,        AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)=no)      _AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])],  [ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS   _AC_LANG_PREFIX[]FLAGS="$1"   AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],      eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)=yes,     eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)=no)   _AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])eval ax_check_compiler_flags=$AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)AC_MSG_RESULT($ax_check_compiler_flags)if test "x$ax_check_compiler_flags" = xyes; then	m4_default([$2], :)else	m4_default([$3], :)fi])dnl AX_CHECK_COMPILER_FLAGS

⌨️ 快捷键说明

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