]> git.pond.sub.org Git - empserver/commitdiff
(UCONTEXT): Move to config.h.
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 28 Dec 2005 15:01:42 +0000 (15:01 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 28 Dec 2005 15:01:42 +0000 (15:01 +0000)
GNUmakefile.in
configure.ac

index d5adf4d5278880ba4dd4d1165d8eeb7b01096a33..68896340a4e8d94ddafeee01c7c32bed7eedce05 100644 (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
index d3cd103d62fbe0b13a65e257d827ed5f8ff05dfe..8424084cc9290c1c1dbd5f2112b726220f7eb94f 100644 (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