<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ascend4.org/index.php?action=history&amp;feed=atom&amp;title=Tcl-config</id>
	<title>Tcl-config - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ascend4.org/index.php?action=history&amp;feed=atom&amp;title=Tcl-config"/>
	<link rel="alternate" type="text/html" href="https://ascend4.org/index.php?title=Tcl-config&amp;action=history"/>
	<updated>2026-05-03T17:05:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://ascend4.org/index.php?title=Tcl-config&amp;diff=5546&amp;oldid=prev</id>
		<title>Jpye at 00:23, 7 March 2016</title>
		<link rel="alternate" type="text/html" href="https://ascend4.org/index.php?title=Tcl-config&amp;diff=5546&amp;oldid=prev"/>
		<updated>2016-03-07T00:23:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:23, 7 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This &amp;#039;tcl-config&amp;#039; script is based on the simple &amp;#039;standard&amp;#039; approach implemented by other *-config scripts such as &amp;#039;gsl-config&amp;#039; and &amp;#039;pkg-config&amp;#039; and &amp;#039;cppunit-config&amp;#039; and many others like it. These scripts are found on a system&amp;#039;s PATH and can output various configuration information about a software library, for example:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This &amp;#039;tcl-config&amp;#039; script is based on the simple &amp;#039;standard&amp;#039; approach implemented by other *-config scripts such as &amp;#039;gsl-config&amp;#039; and &amp;#039;pkg-config&amp;#039; and &amp;#039;cppunit-config&amp;#039; and many others like it. These scripts are found on a system&amp;#039;s PATH and can output various configuration information about a software library, for example:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&quot;a4c&quot;&amp;gt;john&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;#64;&lt;/del&gt;thunder:~$ cppunit-config --libs&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&quot;a4c&quot;&amp;gt;john&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;@&lt;/ins&gt;thunder:~$ cppunit-config --libs&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-lcppunit -ldl&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-lcppunit -ldl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;john&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;#64;&lt;/del&gt;thunder:~$ gsl-config --cflags&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;john&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;@&lt;/ins&gt;thunder:~$ gsl-config --cflags&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-I/usr/include&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;-I/usr/include&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-1905:rev-5546:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Jpye</name></author>
	</entry>
	<entry>
		<id>https://ascend4.org/index.php?title=Tcl-config&amp;diff=1905&amp;oldid=prev</id>
		<title>Jpye at 22:12, 7 March 2011</title>
		<link rel="alternate" type="text/html" href="https://ascend4.org/index.php?title=Tcl-config&amp;diff=1905&amp;oldid=prev"/>
		<updated>2011-03-07T22:12:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:12, 7 March 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;tcl-config.py&amp;#039;&amp;#039;&amp;#039; is a script that undertakes to quickly and easily extract import [http://www.tcl.tk Tcl/Tk] configuration variables for the the system you&amp;#039;re using. It&amp;#039;s been tested on Windows XP running Active State Tcl/Tk 8.4 as well as on Ubuntu 8.10 running Tcl/Tk 8.4.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;tcl-config.py&amp;#039;&amp;#039;&amp;#039; is a script that undertakes to quickly and easily extract import [http://www.tcl.tk Tcl/Tk] configuration variables for the the system you&amp;#039;re using. It&amp;#039;s been tested on Windows XP running Active State Tcl/Tk 8.4 as well as on Ubuntu 8.10 running Tcl/Tk 8.4.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div style=&quot;padding-top:8px;padding-bottom:12px&quot;&amp;gt;&amp;lt;span style=&quot;border:solid 2pt gray;background-color:#ffff88;margin-top:5px;margin-bottom:5px;padding:8px&quot;&amp;gt;&#039;&#039;&#039;Get tcl-config.py&#039;&#039;&#039;: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{srcdir|scons/tcl-config.py?view=co}} or &lt;/del&gt;{{src|scons/tcl-config.py}}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div style=&quot;padding-top:8px;padding-bottom:12px&quot;&amp;gt;&amp;lt;span style=&quot;border:solid 2pt gray;background-color:#ffff88;margin-top:5px;margin-bottom:5px;padding:8px&quot;&amp;gt;&#039;&#039;&#039;Get tcl-config.py&#039;&#039;&#039;: {{src|scons/tcl-config.py}}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Unfortunately, it&amp;#039;s written in [http://www.python.org Python] (requires version 2.4) because that&amp;#039;s what the author&amp;#039;s good at, but nevertheless, this script will be useful for users of [http://www.scons.org SCons], at least, because those people will always have Python available, and this script saves a lot of other messing around with sniffing out the location of Tcl/Tk and corresponding files on any given system.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Unfortunately, it&amp;#039;s written in [http://www.python.org Python] (requires version 2.4) because that&amp;#039;s what the author&amp;#039;s good at, but nevertheless, this script will be useful for users of [http://www.scons.org SCons], at least, because those people will always have Python available, and this script saves a lot of other messing around with sniffing out the location of Tcl/Tk and corresponding files on any given system.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-45:rev-1905:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Jpye</name></author>
	</entry>
	<entry>
		<id>https://ascend4.org/index.php?title=Tcl-config&amp;diff=45&amp;oldid=prev</id>
		<title>UploadBot: Restored page from Google Cache, uploaded by John Pye</title>
		<link rel="alternate" type="text/html" href="https://ascend4.org/index.php?title=Tcl-config&amp;diff=45&amp;oldid=prev"/>
		<updated>2010-05-13T13:38:19Z</updated>

		<summary type="html">&lt;p&gt;Restored page from Google Cache, uploaded by John Pye&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;tcl-config.py&amp;#039;&amp;#039;&amp;#039; is a script that undertakes to quickly and easily extract import [http://www.tcl.tk Tcl/Tk] configuration variables for the the system you&amp;#039;re using. It&amp;#039;s been tested on Windows XP running Active State Tcl/Tk 8.4 as well as on Ubuntu 8.10 running Tcl/Tk 8.4.&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding-top:8px;padding-bottom:12px&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;border:solid 2pt gray;background-color:#ffff88;margin-top:5px;margin-bottom:5px;padding:8px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;Get tcl-config.py&amp;#039;&amp;#039;&amp;#039;: {{srcdir|scons/tcl-config.py?view=co}} or {{src|scons/tcl-config.py}}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
Unfortunately, it&amp;#039;s written in [http://www.python.org Python] (requires version 2.4) because that&amp;#039;s what the author&amp;#039;s good at, but nevertheless, this script will be useful for users of [http://www.scons.org SCons], at least, because those people will always have Python available, and this script saves a lot of other messing around with sniffing out the location of Tcl/Tk and corresponding files on any given system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;a4c&amp;quot;&amp;gt;./tcl-config.py [--cflags] [--libs] [--var=TCL_VAR_NAME] [--vars]&lt;br /&gt;
Output configuration variables for the Tcl script interpreter.&lt;br /&gt;
Options:&lt;br /&gt;
	--cflags           Compiler flags for C code that uses Tcl&lt;br /&gt;
	--libs             Linker flags for code that uses Tcl&lt;br /&gt;
	--vars             List all variables defined in tclConfig.sh&lt;br /&gt;
	--var=VARNAME      Output the value of a specific variable&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This &amp;#039;tcl-config&amp;#039; script is based on the simple &amp;#039;standard&amp;#039; approach implemented by other *-config scripts such as &amp;#039;gsl-config&amp;#039; and &amp;#039;pkg-config&amp;#039; and &amp;#039;cppunit-config&amp;#039; and many others like it. These scripts are found on a system&amp;#039;s PATH and can output various configuration information about a software library, for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;a4c&amp;quot;&amp;gt;john&amp;amp;#64;thunder:~$ cppunit-config --libs&lt;br /&gt;
-lcppunit -ldl&lt;br /&gt;
&lt;br /&gt;
john&amp;amp;#64;thunder:~$ gsl-config --cflags&lt;br /&gt;
&lt;br /&gt;
-I/usr/include&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This makes linking to such libraries almost trivial even when using quite a wide range of tools on a wide range of platforms:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;a4c&amp;quot;&amp;gt;gcc `gsl-config --cflags --libs` myprog.c&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Currently, Tcl/Tk provides all configuration data in a build-time-generated shell script called tclConfig.sh, the location of which can be determined only with a bit of guesswork, or from knowledge of the Tcl/Tk script path ($auto_path) for the system you&amp;#039;re on. You also need to know what version of Tcl/Tk you&amp;#039;re wanting. This design is rather broken, because one needs to run Tcl even in order to locate where that script is, but then, as whole additional step, one is supposed to parse that script using /bin/sh and then extract variables from the environment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If someone would like to expand this script, or rewrite it in Tcl/Tk, that would be really great. Also, any suggestions much appreciated. [[John Pye]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 [[Category:Development]]&lt;/div&gt;</summary>
		<author><name>UploadBot</name></author>
	</entry>
</feed>