1# -*- Autoconf -*-
2# Copyright (c) 2014-2015 Tommie Gannert
3#
4# See the LICENSE file.
5#
6
7AC_PREREQ([2.68])
8AC_INIT([xtensa-hal], [RF-2015.2])
9AM_INIT_AUTOMAKE([foreign])
10AC_CONFIG_SRCDIR([src/hal/attribute.c])
11
12AC_CANONICAL_HOST
13
14LDFLAGS="${LDFLAGS:+$LDFLAGS }-nostdlib"
15
16AM_PROG_AS
17AM_PROG_AR
18AC_PROG_CC
19AC_PROG_RANLIB
20
21AC_MSG_CHECKING([for call0 ABI])
22AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#if __XTENSA_CALL0_ABI__
23#else
24#error "Not call0 ABI"
25#endif
26], [])], [call0_abi=yes], [call0_abi=no])
27AC_MSG_RESULT([$call0_abi])
28AM_CONDITIONAL([XTENSA_CALL0_ABI], [test x$call0_abi = xyes])
29
30CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-I\${top_srcdir}/include -I\${top_srcdir}/include/arch/include"
31
32AC_OUTPUT([
33	Makefile
34	include/Makefile
35	src/hal/Makefile
36])
37