📄 aclocal.m4
字号:
/\\\\$/ b loop p } /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" donedone])# _AM_OUTPUT_DEPENDENCY_COMMANDS# AM_OUTPUT_DEPENDENCY_COMMANDS# -----------------------------# This macro should only be invoked once -- use via AC_REQUIRE.## This code is only required when automatic dependency tracking# is enabled. FIXME. This creates each `.P' file that we will# need in order to bootstrap the dependency handling code.AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])])# Check to see how 'make' treats includes. -*- Autoconf -*-# Copyright (C) 2001, 2002 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.# serial 2# AM_MAKE_INCLUDE()# -----------------# Check to see how make treats includes.AC_DEFUN([AM_MAKE_INCLUDE],[am_make=${MAKE-make}cat > confinc << 'END'doit: @echo doneEND# If we don't find an include directive, just comment out the code.AC_MSG_CHECKING([for style of include used by $am_make])am__include="#"am__quote=_am_result=none# First try GNU make style include.echo "include confinc" > confmf# We grep out `Entering directory' and `Leaving directory'# messages which can occur if `w' ends up in MAKEFLAGS.# In particular we don't look at `^make:' because GNU make might# be invoked under some other name (usually "gmake"), in which# case it prints its new name instead of `make'.if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNUfi# Now try BSD make style include.if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fifiAC_SUBST(am__include)AC_SUBST(am__quote)AC_MSG_RESULT($_am_result)rm -f confinc confmf])# AM_CONDITIONAL -*- Autoconf -*-# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.# serial 5AC_PREREQ(2.52)# AM_CONDITIONAL(NAME, SHELL-CONDITION)# -------------------------------------# Define a conditional.AC_DEFUN([AM_CONDITIONAL],[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnlAC_SUBST([$1_TRUE])AC_SUBST([$1_FALSE])if $2; then $1_TRUE= $1_FALSE='#'else $1_TRUE='#' $1_FALSE=fiAC_CONFIG_COMMANDS_PRE([if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([conditional "$1" was never defined.Usually this means the macro was only invoked conditionally.])fi])])dnldnl $Id: canonical-target-name.m4,v 1.12.4.2 2004/08/18 07:23:00 ralf Exp $dnldnl canonicalize target cpudnl NOTE: Most rtems targets do not fullfil autoconf'sdnl target naming conventions "processor-vendor-os"dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for themdnl and we have to fix it for rtems ourselves AC_DEFUN([RTEMS_CANONICAL_TARGET_CPU],[AC_CANONICAL_TARGETAC_MSG_CHECKING(rtems target cpu)case "${target}" in # hpux unix port should go here i[[34567]]86-*linux*) # unix "simulator" port RTEMS_CPU=unix ;; i[[34567]]86-*freebsd*) # unix "simulator" port RTEMS_CPU=unix ;; i[[34567]]86-pc-cygwin*) # Cygwin is just enough unix like :) RTEMS_CPU=unix ;; no_cpu-*rtems*) RTEMS_CPU=no_cpu ;; sparc-sun-solaris*) # unix "simulator" port RTEMS_CPU=unix ;; tic4x-*rtems*) # gcc changed the name RTEMS_CPU=c4x ;; *) RTEMS_CPU=`echo $target | sed 's%^\([[^-]]*\)-\(.*\)$%\1%'` ;;esacAC_SUBST(RTEMS_CPU)AC_MSG_RESULT($RTEMS_CPU)])# Add --enable-maintainer-mode option to configure.# From Jim Meyering# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.# serial 2AC_DEFUN([AM_MAINTAINER_MODE],[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode is disabled by default AC_ARG_ENABLE(maintainer-mode,[ --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer], USE_MAINTAINER_MODE=$enableval, USE_MAINTAINER_MODE=no) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST(MAINT)dnl])AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])dnl $Id: env-rtemsbsp.m4,v 1.10.2.1 2004/08/18 07:23:00 ralf Exp $dnl Pass a single BSP via an environment variablednl used by per BSP configure scriptsAC_DEFUN([RTEMS_ENV_RTEMSBSP],[dnlAC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnlAC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnlAC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnlAC_ARG_VAR([CPU_CFLAGS],[CFLAGS specifying CPU-dependent features])AC_ARG_VAR([CFLAGS_OPTIMIZE_V],[CFLAGS for building the OPTIMIZE variant])AC_ARG_VAR([CFLAGS_DEBUG_V],[CFLAGS for building the DEBUG variant])AC_ARG_VAR([CFLAGS_PROFILE_V],[CFLAGS for building the PROFILE variant])AC_ARG_VAR([RTEMS_BSP_FAMILY],[RTEMS's BSP directory])AC_ARG_VAR([RTEMS_CPU_MODEL],[RTEMS's cpu model])AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])AC_MSG_CHECKING([for RTEMS_BSP])AC_CACHE_VAL(rtems_cv_RTEMS_BSP,[dnl test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";])dnlif test -z "$rtems_cv_RTEMS_BSP"; then AC_MSG_ERROR([Missing RTEMS_BSP])fiRTEMS_BSP="$rtems_cv_RTEMS_BSP"AC_MSG_RESULT(${RTEMS_BSP})AC_SUBST(RTEMS_BSP)RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"AC_SUBST(RTEMS_BSP_SPECS)GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"AC_SUBST(GCC_SPECS)PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"AC_SUBST(PROJECT_INCLUDE)PROJECT_RELEASE="\$(PROJECT_ROOT)/$RTEMS_BSP" AC_SUBST(PROJECT_RELEASE)RTEMS_ROOT="\$(PROJECT_ROOT)/c/$RTEMS_BSP"AC_SUBST(RTEMS_ROOT)RTEMS_ENABLE_BAREAC_SUBST(BARE_CPU_MODEL)AC_SUBST(BARE_CPU_CFLAGS)AM_CONDITIONAL([MULTILIB],[false])includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"libdir="\${exec_prefix}/${RTEMS_BSP}/lib"bsplibdir="\${exec_prefix}/${RTEMS_BSP}/lib"AC_SUBST(bsplibdir)])dnl $Id: enable-rtemsbsp.m4,v 1.12.2.1 2004/08/18 07:23:00 ralf Exp $dnl Override the set of BSPs to be built.dnl used by the toplevel configure scriptdnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp_list)AC_DEFUN([RTEMS_ENABLE_RTEMSBSP],[AC_BEFORE([$0], [RTEMS_ENV_RTEMSBSP])AC_ARG_ENABLE(rtemsbsp,[AC_HELP_STRING([--enable-rtemsbsp="bsp1 bsp2 .."],[BSPs to include in build])],[case "${enableval}" in yes|no) AC_MSG_ERROR([missing argument to --enable-rtemsbsp="bsp1 bsp2"]);; *) $1=$enableval;;esac],[$1=""])])dnldnl $Id: project-root.m4,v 1.6.4.1 2004/08/18 07:23:00 ralf Exp $dnl dnldnl PROJECT_TOPdir .. relative path to the top of the build-treednl PROJECT_ROOT .. relative path to the top of the temporarydnl installation directory inside the build-treednl RTEMS_TOPdir .. relative path of a subpackage's configure.in to thednl toplevel configure.in of the source-treednl RTEMS_ROOT .. path to the top of a bsp's build directorydnl [Applied by custom/*.cfg, depredicated otherwise]dnlAC_DEFUN([RTEMS_PROJECT_ROOT],[dnlAC_REQUIRE([RTEMS_TOP])PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex"AC_SUBST(PACKHEX)])dnl $Id: check-custom-bsp.m4,v 1.1.2.1 2004/08/18 07:23:00 ralf Exp $AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[AC_REQUIRE([RTEMS_TOP])AC_MSG_CHECKING([for make/custom/[$]$1.cfg])AS_IF([test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR([no])])])AC_DEFUN([RTEMS_ENABLE_BARE],[AC_ARG_ENABLE(bare-cpu-cflags,[AC_HELP_STRING([--enable-bare-cpu-cflags],[specify a particular cpu cflag (bare bsp specific)])],[case "${enableval}" in no) BARE_CPU_CFLAGS="" ;; *) BARE_CPU_CFLAGS="${enableval}" ;;esac],[BARE_CPU_CFLAGS=""])AC_ARG_ENABLE(bare-cpu-model,[AC_HELP_STRING([--enable-bare-cpu-model],[specify a particular cpu model (bare bsp specific)])],[case "${enableval}" in no) BARE_CPU_MODEL="" ;; *) BARE_CPU_MODEL="${enableval}" ;;esac],[BARE_CPU_MODEL=""])])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -