<p>On Jun 1, 2012 12:13 PM, &quot;Brad King&quot; &lt;<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Teach &#39;configure&#39; to read the default GL_LIB, GLU_LIB, and OSMESA_LIB<br>
&gt; values from the environment.  This allows one to mangle the library<br>
&gt; names (without also mangling the symbol names) to make them distinct<br>
&gt; from other GL libraries on the system.<br>
&gt; ---<br>
&gt;<br>
&gt; On 06/01/2012 10:06 AM, Brian Paul wrote:<br>
&gt; &gt; You should transition to using autoconf<br>
&gt;<br>
&gt; One feature I used in the pure-make build system was to create a custom<br>
&gt; configs/current to set GL_LIB, GLU_LIB, and OSMESA_LIB to have a &quot;Mesa&quot;<br>
&gt; prefix.  This helps ensure that VTK both builds and runs against my<br>
&gt; nightly Mesa build regardless of what other &quot;GL&quot; libraries appear in<br>
&gt; the dynamic loader&#39;s search path.  With this patch I can run<br>
&gt;<br>
&gt;  $ GL_LIB=MesaGL GLU_LIB=MesaGLU OSMESA_LIB=MesaOSMesa ./autogen.sh ...<br>
&gt;<br>
&gt; to build with custom library names.  Please review.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; -Brad<br>
&gt;<br>
&gt;  <a href="http://configure.ac">configure.ac</a> |   17 ++++++++++-------<br>
&gt;  1 file changed, 10 insertions(+), 7 deletions(-)<br>
&gt;<br>
&gt; diff --git a/<a href="http://configure.ac">configure.ac</a> b/<a href="http://configure.ac">configure.ac</a><br>
&gt; index 9fb8149..7f6ba96 100644<br>
&gt; --- a/<a href="http://configure.ac">configure.ac</a><br>
&gt; +++ b/<a href="http://configure.ac">configure.ac</a><br>
&gt; @@ -355,6 +355,12 @@ else<br>
&gt;         LIB_EXTENSION=&#39;so&#39; ;;<br>
&gt;     esac<br>
&gt;  fi<br>
&gt; +AC_ARG_VAR([GL_LIB],[name of GL library @&lt;:@default=GL@:&gt;@])<br>
&gt; +AC_ARG_VAR([GLU_LIB],[name of GLU library @&lt;:@default=GLU@:&gt;@])<br>
&gt; +AC_ARG_VAR([OSMESA_LIB],[name of OSMesa library @&lt;:@default=OSMesa@:&gt;@])<br>
&gt; +GL_LIB=&quot;${GL_LIB-GL}&quot;<br>
&gt; +GLU_LIB=&quot;${GLU_LIB-GLU}&quot;<br>
&gt; +OSMESA_LIB=&quot;${OSMESA_LIB-OSMesa}&quot;</p>
<p>I don&#39;t think this part is necessary. AC_ARG_VAR does this already. The rest makes sense though.</p>
<p>Dan</p>