source: trunk/libs/newlib/src/newlib/libc/machine/spu/configure.in @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 889 bytes
Line 
1dnl This is the newlib/libc/machine/spu configure.in file.
2dnl Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT([newlib],[NEWLIB_VERSION])
6AC_CONFIG_SRCDIR([Makefile.am])
7
8dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
9AC_CONFIG_AUX_DIR(../../../..)
10
11NEWLIB_CONFIGURE(../../..)
12
13AC_MSG_CHECKING([whether the compiler supports __ea])
14dnl We do not use AC_COMPILE_IFELSE to support building newlib with
15dnl a cross-compiler that is not (yet) able to link executables
16cat > conftest.c <<EOF
17#if defined (__EA32__) || defined (__EA64__)
18  yes;
19#endif
20EOF
21if AC_TRY_COMMAND(${CC-cc} -E conftest.c) | egrep yes >/dev/null 2>&1; then
22  spu_compiler_has_ea=yes
23else
24  spu_compiler_has_ea=no
25fi
26AM_CONDITIONAL(HAVE_SPU_EA, test x${spu_compiler_has_ea} != xno)
27AC_MSG_RESULT($spu_compiler_has_ea)
28
29AC_CONFIG_FILES([Makefile])
30AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.