OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rtems-20020807/] [aclocal/] [i386-gas-code16.m4] - Rev 1765

Go to most recent revision | Compare with Previous | Blame | View Log

dnl
dnl  i386-gas-code16.m4,v 1.7 2000/11/02 15:44:04 joel Exp
dnl 
 
dnl check for i386 gas supporting 16 bit mode
dnl     - binutils 2.9.1.0.7 and higher
 
AC_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 0
EOF
      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
])
 
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.