cxx_add_cxx_flags.m4

来自「FreeFEM is an implementation of the GFEM」· M4 代码 · 共 60 行

M4
60
字号
dnl -*- Mode: m4 -*-dnldnl SUMMARY:      dnldnl AUTHOR:       Christophe Prud'hommednl ORG:          Christophe Prud'hommednl E-MAIL:       Christophe.Prudhomme@ann.jussieu.frdnldnl ORIG-DATE:    26-Apr-99 at 20:44:49dnl LAST-MOD:     13-Jun-00 at 17:52:24 by Christophe Prud'hommednldnl DESCRIPTION: dnl This program is free software; you can redistribute it and/or modifydnl  it under the terms of the GNU General Public License as published bydnl  the Free Software Foundation; either version 2 of the License, ordnl  (at your option) any later version.dnl  dnl  This program is distributed in the hope that it will be useful,dnl  but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thednl  GNU General Public License for more details.dnldnl  You should have received a copy of the GNU General Public Licensednl  along with this program; if not, write to the Free Softwarednl  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. dnldnl DESCRIP-END.dnlAC_DEFUN(CXX_ADD_CXX_FLAGS,[dnldnl gives some extra warning if under gcc/g++dnlif test "$CXX" = "g++" || test "$host_os" = "linux" ; then  CXXFLAGS="${CXXFLAGS}  -ftemplate-depth-30 -fstrict-aliasing"  if test $ac_cv_prog_cxx_g = yes; then        CXXFLAGS="${CXXFLAGS} -g3 -ggdb"  fifidnldnl gives some extra warning if aCCdnlif test "$CXX" = "aCC"; then  CXXFLAGS="+inst_close +O2 -s +Olibcalls"fidnldnl gives some extra warning if KCCdnlif test "$CXX" = "KCC"; then  CXXFLAGS="--restrict --strict_warnings"  if test $ac_cv_prog_cxx_g = yes; then        CXXFLAGS="${CXXFLAGS} -g +K0"  fi  CPPFLAGS="${CPPFLAGS} -DDDEC_DEFINE_NAMESPACE_STD=1"fi])

⌨️ 快捷键说明

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