source: rtems/c/src/lib/configure.in @ 04e4829

4.104.114.84.95
Last change on this file since 04e4829 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
RevLine 
[eb299afc]1dnl Process this file with autoconf to produce a configure script.
2dnl
[3ac8e590]3dnl $Id$
[eb299afc]4
5AC_PREREQ(2.13)
[994202a4]6AC_INIT(libc)
[eb299afc]7RTEMS_TOP(../../..)
8AC_CONFIG_AUX_DIR(../../..)
9
10RTEMS_CANONICAL_TARGET_CPU
[7e642ba]11AM_INIT_AUTOMAKE(rtems-c-src-lib,$RTEMS_VERSION,no)
[eb299afc]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
[04e4829]27RTEMS_CHECK_NEWLIB
[eb299afc]28RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
[1896a650]29RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
[3a8915e]30RTEMS_CHECK_NETWORKING(RTEMS_BSP)
[eb299afc]31
[04e4829]32AM_CONDITIONAL(UNIX,test x"$RTEMS_CPU" = x"unix")
33AM_CONDITIONAL(NEWLIB,test x"$RTEMS_USE_NEWLIB" = x"yes")
[e1d8abb]34
[eb299afc]35# find all the CPU dependent library Makefiles
[e1d8abb]36AC_CONFIG_SUBDIRS(libcpu)
37AC_CONFIG_SUBDIRS(libbsp)
[eb299afc]38
[e1d8abb]39AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
40
41AC_CONFIG_SUBDIRS($cfg_subdirs)
[eb299afc]42
[70810dc]43# Explicitly list all Makefiles here
[eb299afc]44AC_OUTPUT(
45Makefile
46include/Makefile
[e1d8abb]47include/sys/Makefile
48include/motorola/Makefile
49include/zilog/Makefile
[ce18601a]50libc/Makefile)
Note: See TracBrowser for help on using the repository browser.