If you wanna install tcl/tk 8.4 from source code, and your bash version is 3.1 you may encounter problems.
I have found this problem when I use the all-in-one installation package of an open source network simulation software, ns-2. In that all-in-one package, tcl-8.4 is designed to be installed via compiling source code. But I encountered the error said ``./configure: line 7624: syntax error near unexpected token `)' ".
And I searched on the web, a useful solution is
- go to the ``unix" directory in the tcl or tk folder which are extracted from tar.gz source code ball
- execute this command : cp configure{,.orig} && sed "s/relid'/relid/" configure.orig > configure