Changeset c707861 in rtems for cpukit/libcsupport/configure.ac


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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.