diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 755e556ac1..2449887301 100644 --- a/configure.ac +++ b/configure.ac @@ -2573,14 +2573,9 @@ AS_CASE([$coroutine_type], [yes|''], [ COROUTINE_H=coroutine/$coroutine_type/Context.h AS_IF([test ! -f "$srcdir/$COROUTINE_H"], [AC_MSG_ERROR('$coroutine_type' is not supported as coroutine)]) -AS_CASE([$coroutine_type], - [ucontext|pthread], [ - COROUTINE_SRC=coroutine/$coroutine_type/Context.c - ], - [ - COROUTINE_SRC=coroutine/$coroutine_type/Context.'$(ASMEXT)' - ] -) +COROUTINE_SRC=coroutine/$coroutine_type/Context.c +AS_IF([test ! -f "$srcdir/$COROUTINE_SRC"], + [COROUTINE_SRC=coroutine/$coroutine_type/Context.'$(ASMEXT)']) AC_DEFINE_UNQUOTED(COROUTINE_H, ["$COROUTINE_H"]) AC_SUBST(X_COROUTINE_H, [$COROUTINE_H]) AC_SUBST(X_COROUTINE_SRC, [$COROUTINE_SRC]) |