Changeset c707861 in rtems


Ignore:
Timestamp:
Dec 6, 2002, 6:25:58 AM (18 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f69283e2
Parents:
382e1eb3
Message:

2002-12-06 Ralf Corsepius <corsepiu@…>

  • configure.ac: Add various checks to enhance portability.
  • src/termios.c: Reflect changes to configure.ac.
Location:
cpukit/libcsupport
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/ChangeLog

    r382e1eb3 rc707861  
     12002-12-06      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * configure.ac: Add various checks to enhance portability.
     4        * src/termios.c: Reflect changes to configure.ac.
     5
    162002-12-02      Joel Sherrill <joel@OARcorp.com>
    27
  • cpukit/libcsupport/configure.ac

    r382e1eb3 rc707861  
    4444AC_CHECK_DECLS([CHAR_BIT],,,[#include <limits.h>])
    4545
     46AS_IF([test x"${RTEMS_USE_NEWLIB}" = x"yes"],[
     47ac_cv_have_decl_XTABS=yes
     48ac_cv_have_decl_OLCUC=yes
     49## SUSV3, but seemingly not available on some platforms (reportedly FreeBSD)
     50ac_cv_have_decl_ONLRET=yes
     51ac_cv_have_decl_ONOCR=yes
     52ac_cv_have_decl_TABDLY=yes
     53ac_cv_have_decl_OCRNL=yes
     54ac_cv_have_decl_IUCLC=yes
     55## SUSV3-XSI extension
     56ac_cv_have_decl_ECHOPRT=yes
     57])
     58
     59# FIXME: Some cruft to work around portability issues with termios.c
     60## Seemingly not covered by any standard.
     61AC_CHECK_DECLS([XTABS],,,[#include <termios.h>])
     62AC_CHECK_DECLS([OLCUC],,,[#include <termios.h>])
     63## SUSV3, but seemingly not available on some platforms (reportedly FreeBSD)
     64AC_CHECK_DECLS([ONLRET],,,[#include <termios.h>])
     65AC_CHECK_DECLS([ONOCR],,,[#include <termios.h>])
     66AC_CHECK_DECLS([TABDLY],,,[#include <termios.h>])
     67AC_CHECK_DECLS([OCRNL],,,[#include <termios.h>])
     68AC_CHECK_DECLS([IUCLC],,,[#include <termios.h>])
     69## SUSV3-XSI extension
     70AC_CHECK_DECLS([ECHOPRT],,,[#include <termios.h>])
     71
     72## BSD-ism, excluded from POSIX, but available on most platforms
     73AC_CHECK_DECLS([sbrk],,,[#include <unistd.h>])
     74
    4675AM_CONDITIONAL([NEED_SYS_CDEFS_H],[test x"$NEED_SYS_CDEFS_H" = x"yes"])
    4776
  • cpukit/libcsupport/src/termios.c

    r382e1eb3 rc707861  
    3535 *  FreeBSD does not support a full POSIX termios so we have to help it out
    3636 */
    37 
    38 #if defined(__FreeBSD__)
     37#if !HAVE_DECL_XTABS
    3938#define XTABS   0
     39#endif
     40
     41#if !HAVE_DECL_ONLRET
    4042#define ONLRET  0
    41 #define ONOCR   0
     43#endif
     44#if !HAVE_DECL_ONOCR
     45#define ONOCR  0
     46#endif
     47#if !HAVE_DECL_TABDLY
    4248#define TABDLY  0
    43 #define OLCUC   0
    44 #define ILCUC   0
    45 #define OCRNL   0
     49#endif
     50#if !HAVE_DECL_OLCUC
     51#define OLCUC 0
     52#endif
     53#if !HAVE_DECL_ILCUC
     54#define ILCUC 0
     55#endif
     56#if !HAVE_DECL_OCRNL
     57#define OCRNL 0
     58#endif
     59#if !HAVE_DECL_IUCLC
    4660#define IUCLC   0
    4761#endif
    4862
    49 /*
    50  *  Cygwin does not define these
    51  */
    52 
    53 #if defined(__CYGWIN__)
     63#if !HAVE_DECL_ECHOPRT
    5464#define ECHOPRT 0
    5565#endif
Note: See TracChangeset for help on using the changeset viewer.