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

📄 aclocal.m4

📁 这个是LINUX下的GDB调度工具的源码
💻 M4
📖 第 1 页 / 共 3 页
字号:
  l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;  yes)	 if test x"$wire_endian" != x; then	   sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"	 else           if test x"$default_endian" != x; then	     sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"	   else	     echo "No hard-wired endian for target $target" 1>&6	     sim_endian="-DWITH_TARGET_BYTE_ORDER=0"	   fi	 fi;;  no)	 if test x"$default_endian" != x; then	   sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"	 else	   if test x"$wire_endian" != x; then	     sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"	   else	     echo "No default endian for target $target" 1>&6	     sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"	   fi	 fi;;  *)	 AC_MSG_ERROR("Unknown value $enableval for --enable-sim-endian"); sim_endian="";;esacif test x"$silent" != x"yes" && test x"$sim_endian" != x""; then  echo "Setting endian flags = $sim_endian" 6>&1fi],[if test x"$default_endian" != x; then  sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"else  if test x"$wire_endian" != x; then    sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"  else    sim_endian=  fifi])dnl])AC_SUBST(sim_endian)dnl --enable-sim-hostendian is for users of the simulator whendnl they find that AC_C_BIGENDIAN does not function correctlydnl (for instance in a canadian cross)AC_DEFUN(SIM_AC_OPTION_HOSTENDIAN,[AC_ARG_ENABLE(sim-hostendian,[  --enable-sim-hostendian=end		Specify host byte endian orientation.],[case "${enableval}" in  no)	 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;  b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;  l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;  *)	 AC_MSG_ERROR("Unknown value $enableval for --enable-sim-hostendian"); sim_hostendian="";;esacif test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then  echo "Setting hostendian flags = $sim_hostendian" 6>&1fi],[if test "x$cross_compiling" = "xno"; then  AC_C_BIGENDIAN  if test $ac_cv_c_bigendian = yes; then    sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"  else    sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"  fielse  sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"fi])dnl])AC_SUBST(sim_hostendian)dnl --enable-sim-float is for developers of the simulatordnl It specifies the presence of hardware floating pointdnl And optionally the bitsize of the floating point register.dnl arg[1] specifies the presence (or absence) of floating point hardwarednl arg[2] specifies the number of bits in a floating point registerAC_DEFUN(SIM_AC_OPTION_FLOAT,[default_sim_float="[$1]"default_sim_float_bitsize="[$2]"AC_ARG_ENABLE(sim-float,[  --enable-sim-float			Specify that the target processor has floating point hardware.],[case "${enableval}" in  yes | hard)	sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;  no | soft)	sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;  32)           sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;  64)           sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;  *)		AC_MSG_ERROR("Unknown value $enableval passed to --enable-sim-float"); sim_float="";;esacif test x"$silent" != x"yes" && test x"$sim_float" != x""; then  echo "Setting float flags = $sim_float" 6>&1fi],[sim_float=if test x"${default_sim_float}" != x""; then  sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"fiif test x"${default_sim_float_bitsize}" != x""; then  sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"fi])dnl])AC_SUBST(sim_float)dnl The argument is the default cache size if none is specified.AC_DEFUN(SIM_AC_OPTION_SCACHE,[default_sim_scache="ifelse([$1],,0,[$1])"AC_ARG_ENABLE(sim-scache,[  --enable-sim-scache=size		Specify simulator execution cache size.],[case "${enableval}" in  yes)	sim_scache="-DWITH_SCACHE=${default_sim_scache}";;  no)	sim_scache="-DWITH_SCACHE=0" ;;  [[0-9]]*) sim_scache="-DWITH_SCACHE=${enableval}";;  *)	AC_MSG_ERROR("Bad value $enableval passed to --enable-sim-scache");	sim_scache="";;esacif test x"$silent" != x"yes" && test x"$sim_scache" != x""; then  echo "Setting scache size = $sim_scache" 6>&1fi],[sim_scache="-DWITH_SCACHE=${default_sim_scache}"])])AC_SUBST(sim_scache)dnl The argument is the default model if none is specified.AC_DEFUN(SIM_AC_OPTION_DEFAULT_MODEL,[default_sim_default_model="ifelse([$1],,0,[$1])"AC_ARG_ENABLE(sim-default-model,[  --enable-sim-default-model=model	Specify default model to simulate.],[case "${enableval}" in  yes|no) AC_MSG_ERROR("Missing argument to --enable-sim-default-model");;  *)	sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;esacif test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then  echo "Setting default model = $sim_default_model" 6>&1fi],[sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"])])AC_SUBST(sim_default_model)dnl --enable-sim-hardware is for users of the simulatordnl arg[1] Enable sim-hw by default? ("yes" or "no")dnl arg[2] is a space separated list of devices that override the defaultsdnl arg[3] is a space separated list of extra target specific devices.AC_DEFUN(SIM_AC_OPTION_HARDWARE,[if test x"[$1]" = x"yes"; then  sim_hw_p=yeselse  sim_hw_p=nofiif test "[$2]"; then  hardware="core pal glue"else  hardware="core pal glue [$3]"fisim_hw_cflags="-DWITH_HW=1"sim_hw="$hardware"sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([[^ ]][[^ ]]*\)/dv-\1.o/g'`"AC_ARG_ENABLE(sim-hardware,[  --enable-sim-hardware=LIST		Specify the hardware to be included in the build.],[case "${enableval}" in  yes)	sim_hw_p=yes;;  no)	sim_hw_p=no;;  ,*)   sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;  *,)   sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;  *)	sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;esacif test "$sim_hw_p" != yes; then  sim_hw_objs=  sim_hw_cflags="-DWITH_HW=0"  sim_hw=else  sim_hw_cflags="-DWITH_HW=1"  # remove duplicates  sim_hw=""  sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"  for i in x $hardware ; do    case " $f " in      x) ;;      *" $i "*) ;;      *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;    esac  donefiif test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then  echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"fi],[if test "$sim_hw_p" != yes; then  sim_hw_objs=  sim_hw_cflags="-DWITH_HW=0"  sim_hw=fiif test x"$silent" != x"yes"; then  echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"fi])dnl])AC_SUBST(sim_hw_cflags)AC_SUBST(sim_hw_objs)AC_SUBST(sim_hw)dnl --enable-sim-inline is for users that wish to ramp up the simulator'sdnl performance by inlining functions.dnl Guarantee that unconfigured simulators do not do any inliningsim_inline="-DDEFAULT_INLINE=0"AC_DEFUN(SIM_AC_OPTION_INLINE,[default_sim_inline="ifelse([$1],,,-DDEFAULT_INLINE=[$1])"AC_ARG_ENABLE(sim-inline,[  --enable-sim-inline=inlines		Specify which functions should be inlined.],[sim_inline=""case "$enableval" in  no)		sim_inline="-DDEFAULT_INLINE=0";;  0)		sim_inline="-DDEFAULT_INLINE=0";;  yes | 2)	sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;  1)		sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;  *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do       new_flag=""       case "$x" in	 *_INLINE=*)	new_flag="-D$x";;	 *=*)		new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;	 *_INLINE)	new_flag="-D$x=ALL_C_INLINE";;	 *)		new_flag="-D$x""_INLINE=ALL_C_INLINE";;       esac       if test x"$sim_inline" = x""; then	 sim_inline="$new_flag"       else	 sim_inline="$sim_inline $new_flag"       fi     done;;esacif test x"$silent" != x"yes" && test x"$sim_inline" != x""; then  echo "Setting inline flags = $sim_inline" 6>&1fi],[if test "x$cross_compiling" = "xno"; then  if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then    sim_inline="${default_sim_inline}"    if test x"$silent" != x"yes"; then      echo "Setting inline flags = $sim_inline" 6>&1    fi  else    sim_inline=""  fielse  sim_inline="-DDEFAULT_INLINE=0"fi])dnl])AC_SUBST(sim_inline)AC_DEFUN(SIM_AC_OPTION_PACKAGES,[AC_ARG_ENABLE(sim-packages,[  --enable-sim-packages=list		Specify the packages to be included in the build.],[packages=disklabelcase "${enableval}" in  yes)	;;  no)	AC_MSG_ERROR("List of packages must be specified for --enable-sim-packages"); packages="";;  ,*)   packages="${packages}${enableval}";;  *,)   packages="${enableval}${packages}";;  *)	packages="${enableval}"'';;esacsim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`if test x"$silent" != x"yes" && test x"$packages" != x""; then  echo "Setting packages to $sim_pk_src, $sim_pk_obj"fi],[packages=disklabelsim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`if test x"$silent" != x"yes"; then  echo "Setting packages to $sim_pk_src, $sim_pk_obj"fi])dnl])AC_SUBST(sim_packages)AC_DEFUN(SIM_AC_OPTION_REGPARM,[AC_ARG_ENABLE(sim-regparm,[  --enable-sim-regparm=nr-parm		Pass parameters in registers instead of on the stack - x86/GCC specific.],[case "${enableval}" in  0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;  no)                            sim_regparm="" ;;  yes)                           sim_regparm="-DWITH_REGPARM=3";;  *)   AC_MSG_ERROR("Unknown value $enableval for --enable-sim-regparm"); sim_regparm="";;esacif test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then  echo "Setting regparm flags = $sim_regparm" 6>&1fi],[sim_regparm=""])dnl])AC_SUBST(sim_regparm)AC_DEFUN(SIM_AC_OPTION_RESERVED_BITS,[default_sim_reserved_bits="ifelse([$1],,1,[$1])"AC_ARG_ENABLE(sim-reserved-bits,[  --enable-sim-reserved-bits		Specify whether to check reserved bits in instruction.],[case "${enableval}" in  yes)	sim_reserved_bits="-DWITH_RESERVED_BITS=1";;  no)	sim_reserved_bits="-DWITH_RESERVED_BITS=0";;  *)	AC_MSG_ERROR("--enable-sim-reserved-bits does not take a value"); sim_reserved_bits="";;esacif test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then  echo "Setting reserved flags = $sim_reserved_bits" 6>&1fi],[sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"])dnl])AC_SUBST(sim_reserved_bits)AC_DEFUN(SIM_AC_OPTION_SMP,[default_sim_smp="ifelse([$1],,5,[$1])"AC_ARG_ENABLE(sim-smp,[  --enable-sim-smp=n			Specify number of processors to configure for (default ${default_sim_smp}).],[case "${enableval}" in  yes)	sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;  no)	sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;  *)	sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;esacif test x"$silent" != x"yes" && test x"$sim_smp" != x""; then  echo "Setting smp flags = $sim_smp" 6>&1fi],[sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"if test x"$silent" != x"yes"; then  echo "Setting smp flags = $sim_smp" 6>&1fi])dnl])AC_SUBST(sim_smp)AC_DEFUN(SIM_AC_OPTION_STDCALL,[AC_ARG_ENABLE(sim-stdcall,[  --enable-sim-stdcall=type		Use an alternative function call/return mechanism - x86/GCC specific.],[case "${enableval}" in  no)		sim_stdcall="" ;;  std*)		sim_stdcall="-DWITH_STDCALL=1";;  yes)		sim_stdcall="-DWITH_STDCALL=1";;  *)   AC_MSG_ERROR("Unknown value $enableval for --enable-sim-stdcall"); sim_stdcall="";;esacif test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then  echo "Setting function call flags = $sim_stdcall" 6>&1fi],[sim_stdcall=""])dnl])AC_SUBST(sim_stdcall)AC_DEFUN(SIM_AC_OPTION_XOR_ENDIAN,[default_sim_xor_endian="ifelse([$1],,8,[$1])"AC_ARG_ENABLE(sim-xor-endian,[  --enable-sim-xor-endian=n		Specify number bytes involved in XOR bi-endian mode (default ${default_sim_xor_endian}).],[case "${enableval}" in  yes)	sim_xor_endian="-DWITH_XOR_ENDIAN=8";;  no)	sim_xor_endian="-DWITH_XOR_ENDIAN=0";;  *)	sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;esacif test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then  echo "Setting xor-endian flag = $sim_xor_endian" 6>&1fi],[sim_xor_endian="-DWITH_XOR_ENDIAN=${default_sim_xor_endian}"])dnl])AC_SUBST(sim_xor_endian)dnl --enable-build-warnings is for developers of the simulator.dnl it enables extra GCC specific warnings.AC_DEFUN(SIM_AC_OPTION_WARNINGS,[# NOTE: Don't add -Wall or -Wunused, they both include# -Wunused-parameter which reports bogus warnings.# NOTE: If you add to this list, remember to update# gdb/doc/gdbint.texinfo.build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \-Wformat -Wparentheses -Wpointer-arith -Wuninitialized"# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls# -Woverloaded-virtual -Winline -Werror"AC_ARG_ENABLE(build-warnings,[  --enable-build-warnings Enable build-time compiler warnings if gcc is used],[case "${enableval}" in  yes)	;;  no)	build_warnings="-w";;  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`        build_warnings="${build_warnings} ${t}";;  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`        build_warnings="${t} ${build_warnings}";;  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;esacif test x"$silent" != x"yes" && test x"$build_warnings" != x""; then  echo "Setting compiler warning flags = $build_warnings" 6>&1fi])dnlAC_ARG_ENABLE(sim-build-warnings,[  --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used],[case "${enableval}" in  yes)	;;  no)	build_warnings="-w";;  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`        build_warnings="${build_warnings} ${t}";;  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`        build_warnings="${t} ${build_warnings}";;  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;esacif test x"$silent" != x"yes" && test x"$build_warnings" != x""; then  echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1fi])dnlWARN_CFLAGS=""WERROR_CFLAGS=""if test "x${build_warnings}" != x -a "x$GCC" = xyesthen    AC_MSG_CHECKING(compiler warning flags)    # Separate out the -Werror flag as some files just cannot be    # compiled with it enabled.    for w in ${build_warnings}; do	case $w in	-Werr*) WERROR_CFLAGS=-Werror ;;	*) # Check that GCC accepts it

⌨️ 快捷键说明

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