Skip to content

Commit a6724a4

Browse files
author
jan.nijtmans
committed
Finish the work, handling LD_LIBRARY_PATH as intended
1 parent cc7cc3a commit a6724a4

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎configure‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9843,7 +9843,7 @@ printf '%s\n' X"$TCLSH_PROG" |
98439843
s/.*/./; q'`
98449844

98459845
eval "tcl_save_libpath=\$$LD_LIBRARY_PATH_VAR"
9846-
eval "$LD_LIBRARY_PATH_VAR=\$tcl_build_dir"
9846+
eval "$LD_LIBRARY_PATH_VAR=\$tcl_build_dir:$tcl_save_libpath"
98479847
eval "export $LD_LIBRARY_PATH_VAR"
98489848

98499849

@@ -9855,15 +9855,15 @@ printf '%s\n' X"$TCLSH_PROG" |
98559855
fi
98569856

98579857

9858-
eval "$LD_LIBRARY_PATH_VAR=\$tcl_save_libpath:\$$LD_LIBRARY_PATH_VAR"
9858+
eval "$LD_LIBRARY_PATH_VAR=\$tcl_save_libpath"
98599859
eval "export $LD_LIBRARY_PATH_VAR"
98609860

98619861
{ printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $found" >&5
98629862
printf '%s\n' "$found" >&6; }
98639863
if test x"$found" != x"yes"; then
98649864
as_fn_error $? "cannot find a usable native Tcl 9 tclsh. Either set TCLSH_NATIVE or use configure with --disable-zipfs" "$LINENO" 5
98659865
fi
9866-
eval "TCLSH_NATIVE=\"$LD_LIBRARY_PATH_VAR=\$tcl_build_dir \$TCLSH_PROG\""
9866+
eval "TCLSH_NATIVE=\"$LD_LIBRARY_PATH_VAR=\$tcl_build_dir:\\\$($LD_LIBRARY_PATH_VAR) \$TCLSH_PROG\""
98679867
fi
98689868
else
98699869
# User specified. Check version acceptable.

‎configure.ac‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,19 +252,19 @@ if test "${ZIPFS_BUILD}" != 0; then
252252
tcl_build_dir=`AS_DIRNAME(["$TCLSH_PROG"])`
253253

254254
eval "tcl_save_libpath=\$$LD_LIBRARY_PATH_VAR"
255-
eval "$LD_LIBRARY_PATH_VAR=\$tcl_build_dir"
255+
eval "$LD_LIBRARY_PATH_VAR=\$tcl_build_dir:$tcl_save_libpath"
256256
eval "export $LD_LIBRARY_PATH_VAR"
257257

258258
CHECK_TCLSH_VERSION([found], [$TCLSH_PROG], [9])
259259

260-
eval "$LD_LIBRARY_PATH_VAR=\$tcl_save_libpath:\$$LD_LIBRARY_PATH_VAR"
260+
eval "$LD_LIBRARY_PATH_VAR=\$tcl_save_libpath"
261261
eval "export $LD_LIBRARY_PATH_VAR"
262262

263263
AC_MSG_RESULT([$found])
264264
if test x"$found" != x"yes"; then
265265
AC_MSG_ERROR([cannot find a usable native Tcl 9 tclsh. Either set TCLSH_NATIVE or use configure with --disable-zipfs])
266266
fi
267-
eval "TCLSH_NATIVE=\"$LD_LIBRARY_PATH_VAR=\$tcl_build_dir \$TCLSH_PROG\""
267+
eval "TCLSH_NATIVE=\"$LD_LIBRARY_PATH_VAR=\$tcl_build_dir:\\\$($LD_LIBRARY_PATH_VAR) \$TCLSH_PROG\""
268268
fi
269269
else
270270
# User specified. Check version acceptable.

0 commit comments

Comments
 (0)