source: rtems/c/src/lib/configure.in @ 501d312

4.104.114.84.95
Last change on this file since 501d312 was 04e4829, checked in by Joel Sherrill <joel.sherrill@…>, on 07/06/00 at 14:04:29

Patch rtems-rc-20000626-1.diff from Ralf Corsepius <corsepiu@…>.
Comments follow:

Building linux/posix fails due to including lib/include/sys/cdefs.h
instead of linux's sys/cdefs.h.
AFAIS, this sys/cdefs.h is specific to newlib and should probably
not be used on any unix host.

Therefore, I changed the relevant Makefile.am/configure.in to
condionally install sys/cdefs.h only if newlib is present.

This triggered another bug inside of the newlib-check for one of
RTEMS target's (Unfortunately I can't remember which - mips/i960 ?
... one of the more exotic ...), for which int func() isn't
identical to void func().

Note: This patch needs to be tested under Cygwin and Solaris. I am
particularily unsure about Cygwin/posix, as it applies a different
version newlib which must not trigger RTEMS newlib check (it is
supposed to fail) and if it may need RTEMS's sys/cdefs.h.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl $Id$
4
5AC_PREREQ(2.13)
6AC_INIT(libc)
7RTEMS_TOP(../../..)
8AC_CONFIG_AUX_DIR(../../..)
9
10RTEMS_CANONICAL_TARGET_CPU
11AM_INIT_AUTOMAKE(rtems-c-src-lib,$RTEMS_VERSION,no)
12AM_MAINTAINER_MODE
13
14RTEMS_ENABLE_MULTIPROCESSING
15RTEMS_ENABLE_NETWORKING
16RTEMS_ENABLE_BARE
17
18RTEMS_ENV_RTEMSBSP
19
20RTEMS_CHECK_CPU
21RTEMS_CANONICAL_HOST
22
23RTEMS_PROJECT_ROOT
24
25RTEMS_PROG_CC_FOR_TARGET
26RTEMS_CANONICALIZE_TOOLS
27RTEMS_CHECK_NEWLIB
28RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
29RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
30RTEMS_CHECK_NETWORKING(RTEMS_BSP)
31
32AM_CONDITIONAL(UNIX,test x"$RTEMS_CPU" = x"unix")
33AM_CONDITIONAL(NEWLIB,test x"$RTEMS_USE_NEWLIB" = x"yes")
34
35# find all the CPU dependent library Makefiles
36AC_CONFIG_SUBDIRS(libcpu)
37AC_CONFIG_SUBDIRS(libbsp)
38
39AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
40
41AC_CONFIG_SUBDIRS($cfg_subdirs)
42
43# Explicitly list all Makefiles here
44AC_OUTPUT(
45Makefile
46include/Makefile
47include/sys/Makefile
48include/motorola/Makefile
49include/zilog/Makefile
50libc/Makefile)
Note: See TracBrowser for help on using the repository browser.