diff options
author | Steve Bennett <steveb@workware.net.au> | 2010-11-03 20:52:27 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2010-11-08 15:26:22 +1000 |
commit | b7a3951c0046491a62399fc51fe809e24e5eb8b7 (patch) | |
tree | f8e446671295666b44a8709cf18f13a5a64ca14b /configure.ac | |
parent | cba565f4ccd4a667cc3b51108fae55cc735b36aa (diff) | |
download | jimtcl-b7a3951c0046491a62399fc51fe809e24e5eb8b7.zip jimtcl-b7a3951c0046491a62399fc51fe809e24e5eb8b7.tar.gz jimtcl-b7a3951c0046491a62399fc51fe809e24e5eb8b7.tar.bz2 |
Don't hardcode /lib/jim
Instead, set TCL_LIBRARY based on where jim is installed.
This defaults to /usr/local (thus /usr/local/lib/jim), or
can be modified with either configure or make. e.g.
./configure --prefix=/usr
or
make prefix=/usr install
Now auto_path is initialised only to TCL_LIBRARY, and doesn't
include "." which could be undesirable.
At the same time, simplify jimsh initialisation using a script
instead of C code. Add the path to the executable to auto_path.
Also, no longer use JIM_TCL_COMPAT. Always use the tcl-compatible
names, $auto_path and $tcl_interactive.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 41bfd79..c799a11 100755 --- a/configure.ac +++ b/configure.ac @@ -348,6 +348,7 @@ fi AC_SUBST(EXTRA_CFLAGS,$EXTRA_CFLAGS) AC_SUBST(EXTRA_OBJS,$EXTRA_OBJS) +AC_SUBST(TCL_LIBRARY,$libdir/jim) AC_SUBST(SRCDIR,`dirname $0`) AC_SUBST(PLATFORM_OS,`uname -s`) AC_SUBST(PLATFORM_PLATFORM,unix) |