source: rtems/c/src/lib/libbsp/moxie/moxiesim/configure.ac @ 5139d21

4.115
Last change on this file since 5139d21 was 5139d21, checked in by Anthony Green <green@…>, on Jan 10, 2015 at 7:04:06 PM

moxiesim: Add conditional logic to handle old and new gas syntax

  • Property mode set to 100644
File size: 954 bytes
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id: configure.ac,v 1.20 2009/11/28 06:28:39 ralf Exp $
4
5AC_PREREQ(2.60)
6AC_INIT([rtems-c-src-lib-libbsp-moxie-moxiesim],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
7AC_CONFIG_SRCDIR([bsp_specs])
8RTEMS_TOP(../../../../../..)
9
10RTEMS_CANONICAL_TARGET_CPU
11AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.10])
12RTEMS_BSP_CONFIGURE
13
14RTEMS_PROG_CC_FOR_TARGET
15RTEMS_CANONICALIZE_TOOLS
16RTEMS_PROG_CCAS
17
18RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
19
20AC_MSG_CHECKING([for old moxie assembly syntax])
21AC_COMPILE_IFELSE(
22  [AC_LANG_PROGRAM(
23    [],
24    [asm("sub.l $r0, $r0");])],
25  [HAVE_OLD_MOXIE_ASM=yes],
26  [HAVE_OLD_MOXIE_ASM=no])
27AC_MSG_RESULT([$HAVE_OLD_MOXIE_ASM])
28if test "x$HAVE_OLD_MOXIE_ASM" = xyes; then
29  AC_DEFINE(HAVE_OLD_MOXIE_ASM,
30            1, [Define if you are using old moxie asm syntax (sub.l)])
31fi
32
33# Explicitly list all Makefiles here
34AC_CONFIG_FILES([Makefile])
35AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.