configure: cleanup GLX_USE_TLS handling
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 5 Dec 2016 19:02:29 +0000 (19:02 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 9 Dec 2016 19:22:03 +0000 (19:22 +0000)
Mesa requires ax_pthread_ok = yes, thus we can fold/rewrite the
conditional to follow the more common "if test" pattern.

No functional change intended.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
configure.ac

index 56e91f00784c20e7f74db985eb607b477dc41674..799f5ebda029242c4f8af1c56e555fd477a197ad 100644 (file)
@@ -1710,8 +1710,9 @@ AC_ARG_ENABLE([glx-tls],
     [GLX_USE_TLS=yes])
 AC_SUBST(GLX_TLS, ${GLX_USE_TLS})
 
-AS_IF([test "x$GLX_USE_TLS" = xyes -a "x$ax_pthread_ok" = xyes],
-      [DEFINES="${DEFINES} -DGLX_USE_TLS"])
+if test "x$GLX_USE_TLS" = xyes; then
+    DEFINES="$DEFINES -DGLX_USE_TLS"
+fi
 
 dnl Read-only text section on x86 hardened platforms
 AC_ARG_ENABLE([glx-read-only-text],