configure: improve error for ucontext coroutine backend
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Aug 2022 16:40:46 +0000 (18:40 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Sep 2022 05:42:37 +0000 (07:42 +0200)
Instead of using feature_not_found(), which is not a good match because
there is no "remedy" to fix the lack of makecontext(), just print a
custom error.

This happens to remove the last use of feature_not_found(), so remove
the definition and the documentation.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure
docs/devel/build-system.rst

index 72ab03f11aa344ffd73178ce9d7749090d98d05f..575dde1c1ff2dbedea17461ad78a45124a191196 100755 (executable)
--- a/configure
+++ b/configure
@@ -1468,15 +1468,6 @@ if test "$tcg" = "enabled"; then
     git_submodules="$git_submodules tests/fp/berkeley-softfloat-3"
 fi
 
-feature_not_found() {
-  feature=$1
-  remedy=$2
-
-  error_exit "User requested feature $feature" \
-      "configure was not able to find it." \
-      "$remedy"
-}
-
 # ---
 # big/little endian test
 cat > $TMPC << EOF
@@ -1639,7 +1630,7 @@ else
     ;;
   ucontext)
     if test "$ucontext_works" != "yes"; then
-      feature_not_found "ucontext"
+      error_exit "'ucontext' backend requested but makecontext not available"
     fi
     ;;
   sigaltstack)
index 431caba7aa06e807354bf4e9445d8f31a0f41f13..1894721743406bb80f06ec506ad667f006e2ce86 100644 (file)
@@ -99,11 +99,6 @@ developers in checking for system features:
    Write a minimal C program main() function to the temporary file
    indicated by $TMPC
 
-``feature_not_found $NAME $REMEDY``
-   Print a message to stderr that the feature $NAME was not available
-   on the system, suggesting the user try $REMEDY to address the
-   problem.
-
 ``error_exit $MESSAGE $MORE...``
    Print $MESSAGE to stderr, followed by $MORE... and then exit from the
    configure script with non-zero status