(UCONTEXT): Move to config.h.

This commit is contained in:
Markus Armbruster 2005-12-28 15:01:42 +00:00
parent 69150d10fc
commit 5c02a0aefc
2 changed files with 2 additions and 5 deletions

View file

@ -48,10 +48,6 @@ CFLAGS := $(CFLAGS) @PTHREAD_CFLAGS@
LDFLAGS := $(LDFLAGS) @PTHREAD_CFLAGS@
LDLIBS := @PTHREAD_LIBS@ $(LDLIBS)
endif
ifeq ($(empthread),LWP)
# TODO use config.h
CPPFLAGS += -DUCONTEXT
endif
termlibs := @termlibs@
CCDEPMODE := @CCDEPMODE@
@am__fastdepCC_TRUE@how_to_dep := fast

View file

@ -118,7 +118,8 @@ esac
AC_SUBST(empthread)
AC_MSG_NOTICE([Using $empthread threads])
case $empthread in
LWP) AC_DEFINE([EMPTH_LWP], 1, [Define to use LWP threads]) ;;
LWP) AC_DEFINE([EMPTH_LWP], 1, [Define to use LWP threads])
AC_DEFINE([UCONTEXT], 1, [Define to make LWP use makecontext()]) ;;
POSIX) AC_DEFINE([EMPTH_POSIX], 1, [Define to use POSIX threads]) ;;
Windows) AC_DEFINE([EMPTH_W32], 1, [Define to use Windows threads]) ;;
esac