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

📄 aclocal.m4

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 M4
📖 第 1 页 / 共 4 页
字号:
  sparc-sun-solaris*)           # unix "simulator" port        RTEMS_HOST=Solaris	;;  *) 	;;esacAC_SUBST(RTEMS_HOST)])dnldnldnl $Id: prog-cc.m4,v 1.18.2.2 2004/08/18 07:23:00 ralf Exp $dnl dnl Check for target gccdnlAC_DEFUN([RTEMS_PROG_CC],[AC_BEFORE([$0], [AC_PROG_CPP])dnlAC_BEFORE([$0], [AC_PROG_CC])dnlAC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl_RTEMS_FLAGS([CFLAGS],  ["\$(CPU_CFLAGS) \$(RTEMS_CFLAGS_\$(VARIANT_V)_V) \$(CFLAGS_\$(VARIANT_V)_V) -g"])RTEMS_CHECK_TOOL(CC,gcc)test -z "$CC" && \  AC_MSG_ERROR([no acceptable cc found in \$PATH])AC_PROG_CCAC_PROG_CPPAM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes")])AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],[dnl check target ccRTEMS_PROG_CCdnl check if the compiler supports -isystemRTEMS_GCC_ISYSTEMdnl check if the target compiler may use --pipeRTEMS_GCC_PIPEtest "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"dnl check if the compiler supports --specsRTEMS_GCC_SPECSif test "$GCC" = yes; thenRTEMS_CFLAGS="$RTEMS_CFLAGS -Wall"m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"])fiAS_IF([test x"$rtems_cv_gcc_isystem" = x"yes"],[  RTEMS_CPPFLAGS="-isystem \$(PROJECT_INCLUDE)"],[  RTEMS_CPPFLAGS="-I\$(PROJECT_INCLUDE)"])AC_SUBST(RTEMS_CPPFLAGS)])dnldnl $Id: canonicalize-tools.m4,v 1.16.2.1 2004/08/18 07:23:00 ralf Exp $dnldnl Set target toolsdnlAC_DEFUN([RTEMS_CANONICALIZE_TOOLS],[AC_REQUIRE([RTEMS_PROG_CC])dnldnl FIXME: What shall be done if these tools are not available?  RTEMS_CHECK_TOOL(AR,ar,no)  RTEMS_CHECK_TOOL(AS,as,no)  RTEMS_CHECK_TOOL(LD,ld,no)  RTEMS_CHECK_TOOL(NM,nm,no)dnl special treatment of ranlib  RTEMS_CHECK_TOOL(RANLIB,ranlib,:)dnl NOTE: These may not be available if not using gnutools  RTEMS_CHECK_TOOL(OBJCOPY,objcopy,no)  RTEMS_CHECK_TOOL(SIZE,size,no)  RTEMS_CHECK_TOOL(STRIP,strip,:)])dnl $Id: check-tool.m4,v 1.2.4.1 2004/08/18 07:23:00 ralf Exp $dnl RTEMS_CHECK_TOOL(VARIABLE, PROG-TO-CHECK-FOR[, VALUE-IF-NOT-FOUND [, PATH]])AC_DEFUN([RTEMS_CHECK_TOOL],[  AS_IF([test "x$build_alias" != "x$host_alias"],    [rtems_tool_prefix=${ac_tool_prefix}])  AC_CHECK_PROG($1, ${rtems_tool_prefix}$2, ${rtems_tool_prefix}$2, $3, $4)])AC_DEFUN([_RTEMS_FLAGS],[AS_IF([test -n "[$]{$1}"],  [RTEMS_$1=[$]{$1}],  [RTEMS_$1=$2])AC_SUBST([RTEMS_$1])])dnldnl $Id: gcc-isystem.m4,v 1.1.2.2 2004/08/18 07:23:00 ralf Exp $dnldnl Check whether the gcc accepts -isystemdnlAC_DEFUN([RTEMS_GCC_ISYSTEM],[AC_REQUIRE([RTEMS_PROG_CC])AC_CACHE_CHECK(whether $CC accepts -isystem,rtems_cv_gcc_isystem,[rtems_cv_gcc_isystem=noif test x"$GCC" = x"yes"; thencat << EOF > conftest.hint conftest123();EOFcat << EOF > conftest.c#include <conftest.h>int conftest123() {}EOF  if test -z "`${CC} -isystem./ -c conftest.c 2>&1`";then    rtems_cv_gcc_isystem=yes  fifirm -f conftest*])])dnldnl $Id: gcc-pipe.m4,v 1.8.6.1 2004/08/18 07:23:00 ralf Exp $dnldnl Check whether the target compiler accepts -pipednlAC_DEFUN([RTEMS_GCC_PIPE],[AC_REQUIRE([RTEMS_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST])AC_CACHE_CHECK(whether $CC accepts --pipe,rtems_cv_gcc_pipe,[rtems_cv_gcc_pipe=noif test x"$GCC" = x"yes"; then    echo 'void f(){}' >conftest.c    if test -z "`${CC} --pipe -c conftest.c 2>&1`";then      rtems_cv_gcc_pipe=yes    fi    rm -f conftest*fi])])dnldnl $Id: gcc-specs.m4,v 1.5.6.1 2004/08/18 07:23:00 ralf Exp $dnldnl Check whether the target compiler accepts -specsdnlAC_DEFUN([RTEMS_GCC_SPECS],[AC_REQUIRE([RTEMS_PROG_CC])AC_CACHE_CHECK(whether $CC accepts -specs,rtems_cv_gcc_specs,[rtems_cv_gcc_specs=noif test x"$GCC" = x"yes"; then  touch confspec  echo 'void f(){}' >conftest.c  if test -z "`${CC} -specs confspec -c conftest.c 2>&1`";then    rtems_cv_gcc_specs=yes  fifirm -f confspec conftest*])])dnldnl $Id: prog-cxx.m4,v 1.15.2.1 2004/08/18 07:23:00 ralf Exp $dnl dnl Check for target g++dnl AC_DEFUN([RTEMS_PROG_CXX_FOR_TARGET],[AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnlAC_REQUIRE([RTEMS_ENABLE_CXX])RTEMS_CHECK_TOOL(CXX,g++)if test "$RTEMS_HAS_CPLUSPLUS" = "yes";then_RTEMS_FLAGS([CXXFLAGS],  ["\$(CPU_CFLAGS) \$(RTEMS_CFLAGS_\$(VARIANT_V)_V) \$(CFLAGS_\$(VARIANT_V)_V) -g"])dnl Only accept g++dnl NOTE: This might be too restrictivetest -z "$CXX" \  && AC_MSG_ERROR([no acceptable c++ found in \$PATH])AC_PROG_CXX  if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then    AC_MSG_ERROR([***]     [Inconsistency in compiler configuration:]     [Target C compiler and target C++ compiler]     [must both either be cross compilers or native compilers]     [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )  fielseAM_CONDITIONAL([am__fastdepCXX],[false])fi])dnldnl  $Id: i386-gas-code16.m4,v 1.7.6.1 2004/08/18 07:23:00 ralf Exp $dnl dnl check for i386 gas supporting 16 bit modednl     - binutils 2.9.1.0.7 and higherAC_DEFUN([RTEMS_I386_GAS_CODE16],[ if test "${host_cpu}" = "i386"; then    AC_CACHE_CHECK([for 16 bit mode assembler support],      rtems_cv_prog_gas_code16,      [cat > conftest.s << EOF         .code16         data32         addr32         lgdt 0EOF      if AC_TRY_COMMAND($AS -o conftest.o conftest.s); then        rtems_cv_prog_gas_code16=yes      else        rtems_cv_prog_gas_code16=no      fi])    RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"  fi  AC_SUBST(RTEMS_GAS_CODE16)  if test x"${RTEMS_GAS_CODE16}" = x"yes";  then    AC_DEFINE_UNQUOTED(NEW_GAS,1,[if using 16 bit mode assembler support])  fi])dnldnl $Id: check-multiprocessing.m4,v 1.11.4.1 2004/08/18 07:23:00 ralf Exp $dnlAC_DEFUN([RTEMS_CHECK_MULTIPROCESSING],[dnlAC_REQUIRE([RTEMS_ENABLE_MULTILIB])dnlAC_REQUIRE([RTEMS_ENV_RTEMSBSP])dnlAC_REQUIRE([RTEMS_TOP])dnlAC_REQUIRE([RTEMS_CHECK_CPU])dnlAC_REQUIRE([RTEMS_ENABLE_MULTIPROCESSING])dnlAC_REQUIRE([RTEMS_BSP_ALIAS])dnlAC_CACHE_CHECK([if wanting multiprocessing],  [rtems_cv_want_multiprocessing],  [    AS_IF([test x"$multilib" = x"no"],      [# no cpukit       rtems_cv_want_multiprocessing="$enable_multiprocessing"      ],[#HACK: Should check for RTEMS_MULTIPROCESSING in cpuopts.h, instead       rtems_cv_want_multiprocessing="$enable_multiprocessing"      ])  ])AS_IF([test "$rtems_cv_want_multiprocessing" = "yes"],[  AC_CACHE_CHECK([whether BSP supports multiprocessing],  [rtems_cv_HAS_MP],[    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/shmsupp"; then        rtems_cv_HAS_MP="yes" ;    else        rtems_cv_HAS_MP="no";    fi  ])if test $rtems_cv_HAS_MP = "no"; thenAC_MSG_ERROR([multiprocessing requested but not supported])fi],[rtems_cv_HAS_MP="no";])AC_SUBST(HAS_MP,[$rtems_cv_HAS_MP])])dnl This provides configure definitions used for multilib supportdnl parts of these macros are derived from newlib-1.8.2's multilib supportAC_DEFUN([RTEMS_ENABLE_MULTILIB],[AC_ARG_ENABLE(multilib,AC_HELP_STRING([--enable-multilib],[build many library versions (default=no)]),[case "${enableval}" in  yes) multilib=yes ;;  no)  multilib=no ;;  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;; esac], [multilib=no])dnlAM_CONDITIONAL(MULTILIB,test x"${multilib}" = x"yes")])dnldnl  $Id: bsp-alias.m4,v 1.16.2.3 2005/10/05 19:31:20 joel Exp $dnl dnl _RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)dnl Internal subroutine to RTEMS_BSP_ALIASAC_DEFUN([_RTEMS_BSP_ALIAS],[# account for "aliased" bsps which share source code  case $1 in    simcpu32)     $2=sim68000         ;; # BSVC CPU32 variant    c3xsim)       $2=c4xsim           ;; # TI C3x Simulator in gdb    mcp750)       $2=motorola_powerpc ;; # Motorola PPC board variant    mvme2100)     $2=motorola_powerpc ;; # Motorola PPC board variant    mvme2307)     $2=motorola_powerpc ;; # Motorola PPC board variant    mtx603e)      $2=motorola_powerpc ;; # Motorola PPC board variant    mvme162lx)    $2=mvme162          ;; # m68k - mvme162 board variant    gen68360_040) $2=gen68360         ;; # m68k - 68360 in companion mode    p4600)        $2=p4000            ;; # mips64orion - p4000 board w/IDT 4600    p4650)        $2=p4000            ;; # mips64orion - p4000 board w/IDT 4650    mbx8*)        $2=mbx8xx           ;; # MBX821/MBX860 board    pc386dx)      $2=pc386            ;; # i386 - PC w/o FPU    pc486)        $2=pc386            ;; # i386 - PC with i486DX    pc586)        $2=pc386            ;; # i386 - PC with Pentium    pc686)        $2=pc386            ;; # i386 - PC with PentiumPro    pck6)         $2=pc386            ;; # i386 - PC with K6    bare*)        $2=bare             ;; # EXP: bare-aliases    sis)     	  $2=erc32            ;; # ERC32 SIS simulator    leon2)     	  $2=leon2            ;; # leon with fpu    leon3)     	  $2=leon3            ;; # another leon variant    simsh7032)    $2=shsim            ;; # SH7032 simulator    simsh7045)    $2=shsim            ;; # SH7045 simulator    *)            $2=$1;;  esac])dnl RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)dnl convert a bsp alias $1 into its bsp directory RTEMS_BSP_FAMILYAC_DEFUN([RTEMS_BSP_ALIAS],[_RTEMS_BSP_ALIAS(m4_if([$1],,[$RTEMS_BSP],[$1]),  m4_if([$2],,[RTEMS_BSP_FAMILY],[$2]))])dnl $Id: check-posix.m4,v 1.8.4.1 2004/08/18 07:23:00 ralf Exp $dnlAC_DEFUN([RTEMS_CHECK_POSIX_API],[dnlAC_REQUIRE([RTEMS_CHECK_CPU])dnlAC_REQUIRE([RTEMS_ENABLE_POSIX])dnlAC_CACHE_CHECK([whether CPU supports libposix],  rtems_cv_HAS_POSIX_API,  [dnl    case "$RTEMS_CPU" in    unix*)      rtems_cv_HAS_POSIX_API="no"      ;;    *)      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then        rtems_cv_HAS_POSIX_API="yes";      else        rtems_cv_HAS_POSIX_API="disabled";      fi      ;;    esac])if test "$rtems_cv_HAS_POSIX_API" = "yes"; then  HAS_POSIX_API="yes";else  HAS_POSIX_API="no";fiAC_SUBST(HAS_POSIX_API)dnl])AC_DEFUN([RTEMS_DEFINE_POSIX_API],[AC_REQUIRE([RTEMS_CHECK_POSIX_API])dnlAS_IF(  [test x"${HAS_POSIX_API}" = x"yes"],  [AC_DEFINE_UNQUOTED(RTEMS_POSIX_API,1,[if posix api is supported])])])dnl $Id: check-cxx.m4,v 1.4.6.2 2004/08/18 07:23:00 ralf Exp $dnlAC_DEFUN([RTEMS_CHECK_CXX],[dnlAC_REQUIRE([RTEMS_CHECK_CPU])dnlAC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnlAC_REQUIRE([RTEMS_PROG_CXX_FOR_TARGET])dnlAC_CACHE_CHECK([whether to build rtems++],  rtems_cv_HAS_CPLUSPLUS,  [ if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then      if test -n "$CXX"; then        rtems_cv_HAS_CPLUSPLUS="yes"      else        rtems_cv_HAS_CPLUSPLUS="no"      fi    else      rtems_cv_HAS_CPLUSPLUS="no"    fi])HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS";AC_SUBST(HAS_CPLUSPLUS)dnlif test "$HAS_CPLUSPLUS" = "yes"; thenCPLUS_LD_LIBS='$(PROJECT_RELEASE)/lib/librtems++$(LIB_VARIANT).a'fiAC_SUBST(CPLUS_LD_LIBS)])dnl $Id: check-itron.m4,v 1.4.6.1 2004/08/18 07:23:00 ralf Exp $dnlAC_DEFUN([RTEMS_CHECK_ITRON_API],[dnlAC_REQUIRE([RTEMS_CHECK_CPU])dnlAC_REQUIRE([RTEMS_ENABLE_ITRON])dnlAC_CACHE_CHECK([whether CPU supports libitron],  rtems_cv_HAS_ITRON_API,  [dnl    case "$RTEMS_CPU" in    unix*)      rtems_cv_HAS_ITRON_API="no"      ;;    *)      if test "${RTEMS_HAS_ITRON_API}" = "yes"; then        rtems_cv_HAS_ITRON_API="yes";      else        rtems_cv_HAS_ITRON_API="disabled";      fi      ;;    esac])if test "$rtems_cv_HAS_ITRON_API" = "yes"; then  HAS_ITRON_API="yes";else  HAS_ITRON_API="no";fiAC_SUBST(HAS_ITRON_API)dnl])AC_DEFUN([RTEMS_DEFINE_ITRON_API],[AC_REQUIRE([RTEMS_CHECK_ITRON_API])dnlif test x"${HAS_ITRON_API}" = x"yes";then  AC_DEFINE_UNQUOTED(RTEMS_ITRON_API,1,[if itron api is supported])fi])

⌨️ 快捷键说明

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