configure.ac: Do not use Pthreads with MinGW.
authorVinson Lee <vlee@freedesktop.org>
Wed, 4 Jun 2014 00:00:24 +0000 (17:00 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sat, 7 Jun 2014 05:25:13 +0000 (22:25 -0700)
commit82c577acfa39aa45adef8bfbeae21945cb0ff7a3
tree13d4352f3708f009b26040e52577f3531152c784
parent7a673187948b38d2d80aa48d9fc09176fa3547e8
configure.ac: Do not use Pthreads with MinGW.

Match the behavior of the SCons MinGW build.

This patch also fixes these build errors.

  CC       glapi_entrypoint.lo
glapi_entrypoint.c: In function 'init_glapi_relocs_once':
glapi_entrypoint.c:341:4: error: unknown type name 'pthread_once_t'
    static pthread_once_t once_control = PTHREAD_ONCE_INIT;
    ^
glapi_entrypoint.c:341:41: error: 'PTHREAD_ONCE_INIT' undeclared (first use in this function)
    static pthread_once_t once_control = PTHREAD_ONCE_INIT;
                                         ^
glapi_entrypoint.c:341:41: note: each undeclared identifier is reported only once for each function it appears in
glapi_entrypoint.c:342:4: error: implicit declaration of function 'pthread_once' [-Werror=implicit-function-declaration]
    pthread_once( & once_control, init_glapi_relocs );
    ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
configure.ac