Changeset 1772a04 in rtems


Ignore:
Timestamp:
Jan 12, 2017, 9:00:22 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b8bcebe
Parents:
a1e4e3bf
git-author:
Sebastian Huber <sebastian.huber@…> (01/12/17 09:00:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/13/17 06:19:15)
Message:

configure: Add RTEMS_TOOL_CHAIN_ERROR

Stop the build with a common error message in case the tool chain is
seriously out of date.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/configure.ac

    ra1e4e3bf r1772a04  
    2424RTEMS_CHECK_RTEMS_DEBUG
    2525
     26AC_DEFUN([RTEMS_TOOL_CHAIN_ERROR],AC_MSG_ERROR([please update your tool chain via the RSB <https://docs.rtems.org/branches/master/rsb/quick-start.html>]))
     27
    2628# Is this a supported CPU?
    2729AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
     
    5860  telldir \
    5961  usleep],,
    60   [rtems_missing_func="$ac_func";break])
    61 AS_IF([test -n "$rtems_missing_func"],
    62   AC_MSG_ERROR([Missing function $rtems_missing_func in libc])])
     62  [RTEMS_TOOL_CHAIN_ERROR])
    6363AC_CHECK_FUNCS([__assert])
    6464AC_CHECK_FUNCS([execl execlp execle execv execvp execve])
     
    7676AC_CHECK_TYPES([struct _Thread_queue_Queue],[],[],[#include <sys/lock.h>])
    7777AC_CHECK_SIZEOF([pthread_spinlock_t],[],[],[#include <pthread.h>])
     78AC_CHECK_MEMBER([struct _Thread_queue_Queue._name],[],[RTEMS_TOOL_CHAIN_ERROR],[#include <sys/lock.h>])
    7879
    7980# Mandated by POSIX, older newlibs bogusly provided CLOCK_PROCESS_CPUTIME+CLOCK_THREAD_CPUTIME
    80 AC_CHECK_DECL([CLOCK_PROCESS_CPUTIME_ID],[],[AC_MSG_ERROR([missing define CLOCK_PROCESS_CPUTIME_ID])],[#include <time.h>])
    81 AC_CHECK_DECL([CLOCK_THREAD_CPUTIME_ID],[],[AC_MSG_ERROR([missing define CLOCK_THREAD_CPUTIME_ID])],[#include <time.h>])
     81AC_CHECK_DECL([CLOCK_PROCESS_CPUTIME_ID],[],[RTEMS_TOOL_CHAIN_ERROR],[#include <time.h>])
     82AC_CHECK_DECL([CLOCK_THREAD_CPUTIME_ID],[],[RTEMS_TOOL_CHAIN_ERROR],[#include <time.h>])
    8283
    8384# Mandated by POSIX, decls not present in some versions of newlib,
     
    137138# and error out if not.
    138139AC_CHECK_HEADERS([tar.h errno.h sched.h sys/cdefs.h sys/queue.h],,
    139   [rtems_missing_header="$ac_header";break])
    140 AS_IF([test -n "$rtems_missing_header"],
    141   AC_MSG_ERROR([Missing required header $rtems_missing_header])])
     140  [RTEMS_TOOL_CHAIN_ERROR])
    142141
    143142AC_CHECK_HEADERS([semaphore.h])
     
    149148## error out if libc doesn't provide stdint.h
    150149AS_IF([test x"${ac_cv_header_stdint_h}" != xyes],
    151 [AC_MSG_ERROR([Required header stdint.h not found])])
     150[RTEMS_TOOL_CHAIN_ERROR])
    152151
    153152## error out if libc doesn't provide inttypes.h
    154153AS_IF([test x"${ac_cv_header_inttypes_h}" != xyes],
    155 [AC_MSG_ERROR([Required header inttypes.h not found])])
     154[RTEMS_TOOL_CHAIN_ERROR])
    156155
    157156AC_HEADER_STDBOOL
    158157AS_IF([test x"${ac_cv_header_stdbool_h}" != xyes],
    159 [AC_MSG_ERROR([No sufficient stdbool.h found])])
     158[RTEMS_TOOL_CHAIN_ERROR])
    160159
    161160AC_CHECK_TYPES([ uint8_t,  int8_t])
     
    176175  AC_CHECK_TYPES([pthread_barrier_t])
    177176  AC_CHECK_TYPES([pthread_spinlock_t])
    178   AC_CHECK_TYPES([struct _pthread_cleanup_context],[],[AC_MSG_ERROR([struct _pthread_cleanup_context in <pthread.h> is mandatory])],[#include <pthread.h>])
     177  AC_CHECK_TYPES([struct _pthread_cleanup_context],[],[RTEMS_TOOL_CHAIN_ERROR],[#include <pthread.h>])
    179178])
    180179
     
    184183
    185184if test x"$RTEMS_USE_NEWLIB" = xyes ; then
    186   AC_CHECK_DECLS([__getreent],[],[AC_MSG_ERROR([__getreent() in <sys/reent.h> is mandatory])],[#include <sys/reent.h>])
     185  AC_CHECK_DECLS([__getreent],[],[RTEMS_TOOL_CHAIN_ERROR],[#include <sys/reent.h>])
    187186fi
    188187
     
    192191RTEMS_CHECK_SMP
    193192if test "${RTEMS_HAS_SMP}" = "yes"; then
    194   AC_CHECK_HEADERS([stdatomic.h],[],[AC_MSG_ERROR([<stdatomic.h> is required for SMP support])])
     193  AC_CHECK_HEADERS([stdatomic.h],[],[RTEMS_TOOL_CHAIN_ERROR])
    195194fi
    196195
Note: See TracChangeset for help on using the changeset viewer.