From 50714cec2b50c7836841c09f04bfe875de00ae1d Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 5 Mar 2015 22:36:41 +0000 Subject: [PATCH] configure: require pthreads for POSIX builds This has been an implicit rule for building mesa for a long time. Let's make it official and just bail out at configure time. This way we can cleaning up some of our glx code. Signed-off-by: Emil Velikov --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 90c7737148e..49894442dba 100644 --- a/configure.ac +++ b/configure.ac @@ -657,6 +657,9 @@ mingw*) ;; *) AX_PTHREAD + if test "x$ax_pthread_ok" = xno; then + AC_MSG_ERROR([Building mesa on this platform requires pthreads]) + fi ;; esac dnl AX_PTHREADS leaves PTHREAD_LIBS empty for gcc and sets PTHREAD_CFLAGS -- 2.30.2