forked from Imagelibrary/rtems
configure: Remove HAVE_THREADS_H support
This commit is contained in:
@@ -136,12 +136,9 @@ AC_CHECK_FUNCS([ttyname getcwd])
|
||||
|
||||
# Check if the installed toolchain provides these headers
|
||||
# and error out if not.
|
||||
AC_CHECK_HEADERS([tar.h errno.h sched.h semaphore.h sys/cdefs.h sys/queue.h],,
|
||||
AC_CHECK_HEADERS([errno.h sched.h semaphore.h sys/cdefs.h sys/queue.h tar.h threads.h],,
|
||||
[RTEMS_TOOL_CHAIN_ERROR])
|
||||
|
||||
AC_CHECK_HEADERS([threads.h])
|
||||
AM_CONDITIONAL([HAVE_THREADS_H],[test x"$ac_cv_header_threads_h" = x"yes"])
|
||||
|
||||
## error out if libc doesn't provide stdint.h
|
||||
AS_IF([test x"${ac_cv_header_stdint_h}" != xyes],
|
||||
[RTEMS_TOOL_CHAIN_ERROR])
|
||||
|
||||
@@ -8,7 +8,6 @@ libstdthreads_a_CFLAGS = -std=c11
|
||||
libstdthreads_a_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
libstdthreads_a_SOURCES =
|
||||
if HAVE_THREADS_H
|
||||
libstdthreads_a_SOURCES += call_once.c
|
||||
libstdthreads_a_SOURCES += cnd.c
|
||||
libstdthreads_a_SOURCES += mtx.c
|
||||
@@ -16,6 +15,5 @@ if HAS_PTHREADS
|
||||
libstdthreads_a_SOURCES += thrd.c
|
||||
endif
|
||||
libstdthreads_a_SOURCES += tss.c
|
||||
endif
|
||||
|
||||
include $(top_srcdir)/automake/local.am
|
||||
|
||||
@@ -44,9 +44,7 @@ endif
|
||||
if HAS__THREAD_QUEUE_QUEUE
|
||||
_SUBDIRS += spsyslock01
|
||||
endif
|
||||
if HAS_THREADS_H
|
||||
_SUBDIRS += spstdthreads01
|
||||
endif
|
||||
_SUBDIRS += splinkersets01
|
||||
_SUBDIRS += sptasknopreempt01
|
||||
_SUBDIRS += spintrcritical23
|
||||
|
||||
@@ -33,9 +33,6 @@ AC_CHECK_SIZEOF([time_t])
|
||||
AC_CHECK_TYPES([struct _Thread_queue_Queue],[],[],[#include <sys/lock.h>])
|
||||
AM_CONDITIONAL(HAS__THREAD_QUEUE_QUEUE,test x"${ac_cv_type_struct__Thread_queue_Queue}" = x"yes")
|
||||
|
||||
AC_CHECK_HEADERS([threads.h])
|
||||
AM_CONDITIONAL([HAS_THREADS_H],[test x"$ac_cv_header_threads_h" = x"yes"])
|
||||
|
||||
# Some tests should not be built/run in SMP configurations
|
||||
RTEMS_CHECK_CPUOPTS([RTEMS_SMP])
|
||||
AM_CONDITIONAL(HAS_SMP,test "$rtems_cv_RTEMS_SMP" = "yes")
|
||||
|
||||
Reference in New Issue
Block a user