[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] ns-2 configure script doesn't find tclcl
Hello,
I'm using ns-2.1b8 with tclcl-1.0b11 and I'm having a small problem with
the ns-2 configure script. I suggest a small modification to make it
a bit more friendly.
In my case, TclCl is not installed as a system library, but in some
directory specially for ns (through the --prefix option to the tclcl
configure script). The ns configure script now has problems finding TclCl,
even when I point it to the right directory with the --with-tclcl= option.
It says:
checking for tcl2c++... no
configure: error: Installation of tclcl seems incomplete or can't be
found automatically.
Please correct the problem by telling configure where tclcl is
using the argument --with-tclcl=/path/to/package
(perhaps after installing it),
...
But tcl2c++ IS present in the bin/ directory within the with-tclcl path.
I discovered that the configure script searches for tcl2c++ only in the
with-tclcl directory itself, not in its bin/ subdirectory. A small change
to configure.in solves this:
--- conf/configure.in.TclCL.orig Wed May 30 22:41:57 2001
+++ conf/configure.in.TclCL Tue Jun 19 14:17:34 2001
@@ -59,7 +59,8 @@
/usr/src/local/Tcl \
/usr/src/local/Tcl-1.0 \
"
-TCLCL_PROG_PLACES_D="$d"
+TCLCL_PROG_PLACES_D="$d \
+ $d/bin"
NS_BEGIN_PACKAGE(tclcl)
---------- end patch
Bye,
Joris.