Export TLS support in gl.pc.
authorTom Fogal <tfogal@alumni.unh.edu>
Mon, 6 Dec 2010 00:58:32 +0000 (17:58 -0700)
committerTom Fogal <tfogal@alumni.unh.edu>
Mon, 10 Jan 2011 19:34:02 +0000 (12:34 -0700)
configs/autoconf.in
configure.ac
src/mesa/Makefile
src/mesa/gl.pc.in

index 3dceb1a..ff5ea6f 100644 (file)
@@ -32,6 +32,7 @@ LLVM_LDFLAGS = @LLVM_LDFLAGS@
 LLVM_LIBS = @LLVM_LIBS@
 GLW_CFLAGS = @GLW_CFLAGS@
 GLUT_CFLAGS = @GLUT_CFLAGS@
+GLX_TLS = @GLX_TLS@
 
 TALLOC_LIBS = @TALLOC_LIBS@
 TALLOC_CFLAGS = @TALLOC_CFLAGS@
index c00ecd0..9cbced5 100644 (file)
@@ -808,13 +808,19 @@ if test "$mesa_driver" = xlib; then
 fi
 
 dnl
-dnl More DRI setup
+dnl TLS detection
 dnl
+
 AC_ARG_ENABLE([glx-tls],
     [AS_HELP_STRING([--enable-glx-tls],
         [enable TLS support in GLX @<:@default=disabled@:>@])],
     [GLX_USE_TLS="$enableval"],
     [GLX_USE_TLS=no])
+AC_SUBST(GLX_TLS, ${GLX_USE_TLS})
+
+dnl
+dnl More DRI setup
+dnl
 dnl Directory for DRI drivers
 AC_ARG_WITH([dri-driverdir],
     [AS_HELP_STRING([--with-dri-driverdir=DIR],
index 0d1da01..25e7cce 100644 (file)
@@ -129,6 +129,7 @@ gl_pcedit = sed \
        -e 's,@GL_PC_REQ_PRIV@,$(GL_PC_REQ_PRIV),' \
        -e 's,@GL_PC_LIB_PRIV@,$(GL_PC_LIB_PRIV),' \
        -e 's,@GL_PC_CFLAGS@,$(GL_PC_CFLAGS),' \
+       -e 's,@GLX_TLS@,$(GLX_TLS),' \
        -e 's,@GL_LIB@,$(GL_LIB),'
 
 gl.pc: gl.pc.in
index 97b8659..2d3bc91 100644 (file)
@@ -10,3 +10,4 @@ Version: @VERSION@
 Libs: -L${libdir} -l@GL_LIB@
 Libs.private: @GL_PC_LIB_PRIV@
 Cflags: -I${includedir} @GL_PC_CFLAGS@
+glx_tls: @GLX_TLS@