Auto-detect TCL/TK paths when Scilab is compiled with prerequirements 28/16128/1
Vincent COUVERT [Tue, 10 Mar 2015 11:20:28 +0000 (12:20 +0100)]
Change-Id: Iaa59e4c1481efba169eeac09cb547ddf67c02466

scilab/bin/scilab

index 4ab3343..eb5711a 100755 (executable)
@@ -644,6 +644,13 @@ if test $IS_SCILAB_BINARY -eq 1; then
     esac
 
 else
+    # Scilab compiled using prerequirements
+    if test -d $curdir/../usr; then
+        TCL_LIBRARY="$SCI/usr/lib/tcl8.5"
+        TK_LIBRARY="$SCI/usr/lib/tk8.5"
+        export TCL_LIBRARY
+        export TK_LIBRARY
+    fi
     PATH="$SCI:$SCI/bin:$PATH"
 fi