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

📄 acinclude.m4

📁 memory test check for embeded linux
💻 M4
字号:
dnl Check if the C compiler is really a C++ compiler.dnl CF_PROG_CC_CPLUSPLUSAC_DEFUN([CF_PROG_CC_CPLUSPLUS],[AC_CACHE_CHECK(if the C compiler (${CC} ${CFLAGS} ${LDFLAGS}) is really a C++ compiler,cf_cv_cc_cplusplus,[AC_REQUIRE([AC_PROG_CC])dnlAC_TRY_COMPILE(, [ int class; ],cf_cv_cc_cplusplus=no, cf_cv_cc_cplusplus=yes)])if test ${cf_cv_cc_cplusplus} = yes; thenAC_MSG_ERROR([Compiler is C++, giving up.  Set CC to a C compiler])fi])dnldnl Determine the order the compiler pushes parameters on the stack.AC_DEFUN([CF_STACK_ORDER],[AC_CACHE_CHECK([order of parameters pushed on stack],               [ac_cv_c_stack_order],[AC_RUN_IFELSE([AC_LANG_SOURCE([intfind_stack_order (param1,param2)int param1;int param2;{   return (&param1 > &param2) ? 1 : -1;}intmain (){  exit (find_stack_order (1, 2) == STACK_DIRECTION);}])],               [ac_cv_c_stack_order=1],               [ac_cv_c_stack_order=-1],               [ac_cv_c_stack_order=0])])dnlAH_VERBATIM([STACK_ORDER],[/*      STACK_ORDER > 0 => right parameter is last on stack        STACK_ORDER < 0 => left parameter is last on stack */@%:@undef STACK_ORDER])dnlAC_DEFINE_UNQUOTED(STACK_ORDER, $ac_cv_c_stack_order)dnl])dnldnl The rest of this isdnl Copied from ncurses.dnl CF_GCC_WARNINGSAC_DEFUN([CF_GCC_WARNINGS],[if test -n "${GCC}"then   changequote(,)dnl   cat > conftest.${ac_ext} <<EOF#line __oline__ "configure"int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }EOF   changequote([,])dnl   AC_MSG_CHECKING([for ${CC} warning options])   EXTRA_CFLAGS="-W -Wall -pedantic"   if test "$enable_aggressive_warn" = yes; then      cf_save_CFLAGS="${CFLAGS}"      for cf_opt in Wwrite-strings Wsign-compare Wbad-function-cast \         Wcast-align Wcast-qual Winline Wmissing-declarations \         Wmissing-prototypes Wnested-externs Wpointer-arith \         Wshadow Wstrict-prototypes      do         CFLAGS="${cf_save_CFLAGS} ${EXTRA_CFLAGS} -${cf_opt}"         AC_COMPILE_IFELSE([],         [test -n "${verbose}" && (AC_MSG_RESULT(... -${cf_opt}))         EXTRA_CFLAGS="${EXTRA_CFLAGS} -${cf_opt}"])      done      rm -f conftest*      CFLAGS="${cf_save_CFLAGS}"   fi   AC_MSG_RESULT([${EXTRA_CFLAGS}])fi])dnl

⌨️ 快捷键说明

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