diff --git a/gcc/configure b/gcc/configure
index 1a32f894394c3efdb0783f717c2253a2c90fad58..752d3bf0a99d2b788d3e52e11f80c1078ff70269 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -8849,7 +8849,7 @@ $as_echo "$as_me: WARNING:
   *** Info and man pages documentation will not be built." >&2;}
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
-  SPHINX_BUILD=
+  SPHINX_BUILD=sphinx-build
   HAS_SPHINX_BUILD=
 fi
 rm -rf $tempdir
diff --git a/gcc/configure.ac b/gcc/configure.ac
index f87fab97edd826dd46b87f0d2a61a7e0a2caa103..f4c2ab1789e4baf58173d6653cc5f0d461f0f40f 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -1283,7 +1283,7 @@ else
   *** sphinx-build is missing or too old.
   *** Info and man pages documentation will not be built.])
   AC_MSG_RESULT(no)
-  SPHINX_BUILD=
+  SPHINX_BUILD=sphinx-build
   HAS_SPHINX_BUILD=
 fi
 rm -rf $tempdir
diff --git a/libgomp/configure b/libgomp/configure
index c018cb92f80654f0a280bec96436bf2cfef3054c..ac3acdaceb6dfcd7880a240c5a8a7e879050f186 100755
--- a/libgomp/configure
+++ b/libgomp/configure
@@ -16916,7 +16916,7 @@ $as_echo "$as_me: WARNING:
   *** Info and man pages documentation will not be built." >&2;}
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
-  SPHINX_BUILD=
+  SPHINX_BUILD=sphinx-build
   HAS_SPHINX_BUILD=
 fi
 rm -rf $tempdir
diff --git a/libgomp/configure.ac b/libgomp/configure.ac
index 1aeac2d3ccabd63285df6b6e7d1a1a87f3f49382..6e8300aba2b5b66e435d15269cf8c4c6bb42644e 100644
--- a/libgomp/configure.ac
+++ b/libgomp/configure.ac
@@ -499,7 +499,7 @@ else
   *** sphinx-build is missing or too old.
   *** Info and man pages documentation will not be built.])
   AC_MSG_RESULT(no)
-  SPHINX_BUILD=
+  SPHINX_BUILD=sphinx-build
   HAS_SPHINX_BUILD=
 fi
 rm -rf $tempdir
diff --git a/libiberty/configure b/libiberty/configure
index 7ee5d6002f7ad6a488f1f880e2fe5b4c79378136..c04fa3732fbe33a55bec4ad6f02d796ed8068e35 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -2535,7 +2535,7 @@ $as_echo "$as_me: WARNING:
   *** Info and man pages documentation will not be built." >&2;}
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
-  SPHINX_BUILD=
+  SPHINX_BUILD=sphinx-build
   HAS_SPHINX_BUILD=
 fi
 rm -rf $tempdir
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index b2cfef90489691df97fe58e1c7a0b66c0df37652..d9f7b16b752ee80d31f193cae1a41269891acd06 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
@@ -50,7 +50,7 @@ else
   *** sphinx-build is missing or too old.
   *** Info and man pages documentation will not be built.])
   AC_MSG_RESULT(no)
-  SPHINX_BUILD=
+  SPHINX_BUILD=sphinx-build
   HAS_SPHINX_BUILD=
 fi
 rm -rf $tempdir
diff --git a/libitm/configure b/libitm/configure
index 20f20039f3b79e4319cef17c71d490ab8a4e9ddc..2a7d21e9d738f029f6e61b051f679dfc11abd584 100755
--- a/libitm/configure
+++ b/libitm/configure
@@ -18094,7 +18094,7 @@ $as_echo "$as_me: WARNING:
   *** Info and man pages documentation will not be built." >&2;}
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
-  SPHINX_BUILD=
+  SPHINX_BUILD=sphinx-build
   HAS_SPHINX_BUILD=
 fi
 rm -rf $tempdir
diff --git a/libitm/configure.ac b/libitm/configure.ac
index 6930f5abaae1375122b0685bfc7638758894e946..be5d71587451127db7a082ad43fdce04824e002d 100644
--- a/libitm/configure.ac
+++ b/libitm/configure.ac
@@ -331,7 +331,7 @@ else
   *** sphinx-build is missing or too old.
   *** Info and man pages documentation will not be built.])
   AC_MSG_RESULT(no)
-  SPHINX_BUILD=
+  SPHINX_BUILD=sphinx-build
   HAS_SPHINX_BUILD=
 fi
 rm -rf $tempdir
diff --git a/libquadmath/configure b/libquadmath/configure
index b7928de4ef48e91753d61a893e99dd7e2ec98a2a..26fd6a490125e917b71fc920bf5833b9acfdd4ee 100755
--- a/libquadmath/configure
+++ b/libquadmath/configure
@@ -13311,7 +13311,7 @@ $as_echo "$as_me: WARNING:
   *** Info and man pages documentation will not be built." >&2;}
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
-  SPHINX_BUILD=
+  SPHINX_BUILD=sphinx-build
   HAS_SPHINX_BUILD=
 fi
 rm -rf $tempdir
diff --git a/libquadmath/configure.ac b/libquadmath/configure.ac
index f2befdcb16e0f07e42d340415e75a837cf5c0248..e593b3147fd1086e95a024c0858220a82c012900 100644
--- a/libquadmath/configure.ac
+++ b/libquadmath/configure.ac
@@ -424,7 +424,7 @@ else
   *** sphinx-build is missing or too old.
   *** Info and man pages documentation will not be built.])
   AC_MSG_RESULT(no)
-  SPHINX_BUILD=
+  SPHINX_BUILD=sphinx-build
   HAS_SPHINX_BUILD=
 fi
 rm -rf $tempdir