Fix OpenMP not supported case
authorGilles Espinasse <g.esp@free.fr>
Tue, 12 Apr 2011 20:44:56 +0000 (22:44 +0200)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 18 Apr 2011 20:13:58 +0000 (16:13 -0400)
commit1670b952143284f480c39ff087b5694a64eb7db3
treeffad3538af060ba5623e3b97563eb1c48719cecc
parentb9e8f7fb7494e4ee4be56d1555632233a494b28e
Fix OpenMP not supported case

PIXMAN_LINK_WITH_ENV did not fail unless -Wall -Werror is used.
So even when the compiler did not support OpenMP, USE_OPENMP was defined.
Fix that by running the second OpenMP test only when first AC_OPENMP find supported

configure tested in the cases :
gcc without libgomp support, no openmp option, --enable-openmp and --disable-openmp
gcc with libgomp support, no openmp option, --enable-openmp and --disable-openmp

Not tested with autoconf version not knowing openmp (<2.62)

Warn when --enable-openmp is requested but no support is found

Signed-off-by: Gilles Espinasse <g.esp@free.fr>
configure.ac