Artifact 9d1066df117ad246462f850fe51d354841c8fa75:
- Executable file
autosetup/find-tclsh
— part of check-in
[cdd4c6a580]
at
2011-10-28 14:42:35
on branch autosetup
— Update autosetup to 0.6.3
Some mingw32 improvements. Bootstrap jimsh0.c can now be built for embedding in addition to as jimsh. (user: steveb size: 609) [more...]
#!/bin/sh
# Looks for a suitable tclsh or jimsh in the PATH
# If not found, builds a bootstrap jimsh from source
d=`dirname "$0"`
{ "$d/jimsh0" "$d/test-tclsh"; } 2>/dev/null && exit 0
PATH="$PATH:$d"
for tclsh in jimsh tclsh tclsh8.5 tclsh8.6; do
{ $tclsh "$d/test-tclsh"; } 2>/dev/null && exit 0
done
echo 1>&2 "No installed jimsh or tclsh, building local bootstrap jimsh0"
for cc in ${CC_FOR_BUILD:-cc} gcc; do
{ $cc -o "$d/jimsh0" "$d/jimsh0.c"; } 2>/dev/null || continue
"$d/jimsh0" "$d/test-tclsh" && exit 0
done
echo 1>&2 "No working C compiler found. Tried ${CC_FOR_BUILD:-cc} and gcc."
echo false