]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Allow os2 and mingw to disable jobserver with a configure option.
authorPaul Smith <psmith@gnu.org>
Tue, 15 Nov 2011 22:56:26 +0000 (22:56 +0000)
committerPaul Smith <psmith@gnu.org>
Tue, 15 Nov 2011 22:56:26 +0000 (22:56 +0000)
configure.in

index 31c528da7cd95fdc377e1be68979a7c0eef412cc..5bcbc4b7d0d89552abf91caad7678b4c5bb7fa42 100644 (file)
@@ -306,15 +306,17 @@ case "/$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_noha
   */no/*) make_cv_job_server=no ;;
 esac
 
-# Also supported on OS2 and W32
+# Also supported on OS2 and MinGW
 case "$host_os" in
-  os2*|mingw32) make_cv_sa_restart=yes ;;
+  os2*|mingw*) make_cv_job_server=yes ;;
 esac
 
-if test "$make_cv_job_server" != no; then
-  AC_DEFINE(MAKE_JOBSERVER, 1,
-            [Define to 1 to enable job server support in GNU make.])
-fi
+# If we support it and the user didn't disable it, build with jobserver
+case "/$make_cv_job_server/$user_job_server/" in
+  */no/*) : no jobserver ;;
+  *) AC_DEFINE(MAKE_JOBSERVER, 1,
+               [Define to 1 to enable job server support in GNU make.]) ;;
+esac
 
 # if we have both lstat() and readlink() then we can support symlink
 # timechecks.