Changeset 6c39eca4 in rtems


Ignore:
Timestamp:
11/18/02 23:53:14 (21 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
97831b7
Parents:
5395172
Message:

2002-11-18 Ralf Corsepius <corsepiu@…>

  • configure.ac: Check for sys/cdefs.h, Add NEED_SYS_CDEFS_H. Add check for CHAR_BIT.
  • Makefile.am: Conditionally install sys/cdefs.h iff using newlib or if the host does not provide sys/cdefs.h (Fixes Linux/posix).
Location:
cpukit/libcsupport
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/ChangeLog

    r5395172 r6c39eca4  
     12002-11-18      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * configure.ac: Check for sys/cdefs.h, Add NEED_SYS_CDEFS_H.
     4        Add check for CHAR_BIT.
     5        * Makefile.am: Conditionally install sys/cdefs.h iff using newlib or
     6        if the host does not provide sys/cdefs.h (Fixes Linux/posix).
     7
    182002-11-18      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • cpukit/libcsupport/Makefile.am

    r5395172 r6c39eca4  
    6161endif
    6262
     63if NEED_SYS_CDEFS_H
     64SYS_H_FILES = include/sys/cdefs.h
     65endif
     66
    6367# FIXME: We should not install to include/sys unless using newlib.
    6468include_sys_HEADERS = \
     
    6973include/sys/termios.h \
    7074include/sys/ttycom.h \
    71 include/sys/cdefs.h \
     75$(SYS_H_FILES) \
    7276$(NEWLIB_H_FILES)
    7377
  • cpukit/libcsupport/configure.ac

    r5395172 r6c39eca4  
    2727AM_CONDITIONAL(UNIX,test x"$RTEMS_CPU" = x"unix")
    2828AM_CONDITIONAL(NEWLIB,test x"$RTEMS_USE_NEWLIB" = x"yes")
     29
    2930AS_IF([test x"$RTEMS_USE_NEWLIB" != x"yes"],[
    30 # FIXME: Currently, these checks are only in here to provide
     31## Provide sys/cdefs.h only if the host doesn't.
     32  AC_CHECK_HEADERS([sys/cdefs.h],[NEED_SYS_CDEFS_H=no],[NEED_SYS_CDEFS_H=yes])
     33# FIXME: These checks are only in here to provide
    3134# configuration-time diagnostics and are not really used.
    32   AC_CHECK_HEADERS([sys/cdefs.h])
    3335  AC_CHECK_HEADERS([stdint.h inttypes.h])
    34   AC_CHECK_DECLS([_POSIX_LOGIN_NAME_MAX],,,[#include <limits.h>])
     36],[
     37## Using newlib, we provide sys/cdefs.h
     38  NEED_SYS_CDEFS_H=yes
    3539])
     40
     41# FIXME: These checks are only in here to provide
     42# configuration-time diagnostics and are not really used.
     43AC_CHECK_DECLS([_POSIX_LOGIN_NAME_MAX],,,[#include <limits.h>])
     44AC_CHECK_DECLS([CHAR_BIT],,,[#include <limits.h>])
     45
     46AM_CONDITIONAL([NEED_SYS_CDEFS_H],[test x"$NEED_SYS_CDEFS_H" = x"yes"])
     47
    3648AM_CONFIG_HEADER(src/config.h)
    3749
Note: See TracChangeset for help on using the changeset viewer.