summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-04-24 19:21:22 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-04-24 19:21:22 (GMT)
commit3edcb9032bd065648de42a0256649d8883a4824b (patch)
treeaf2bc16d0b8ac1b6d475dca93cf63afc13a3c6b5 /bin
parent1da400ea6b5ac311bb65f807cc9920a7c1be7718 (diff)
downloadhdf5-3edcb9032bd065648de42a0256649d8883a4824b.zip
hdf5-3edcb9032bd065648de42a0256649d8883a4824b.tar.gz
hdf5-3edcb9032bd065648de42a0256649d8883a4824b.tar.bz2
[svn-r5246] Purpose:
Bug Fix Description: On some platforms, mktemp doesn't work. This would wipe out the tmpdir variable's value. Solution: Reinitialize tmpdir in these cases. Platforms tested: HP-UX
Diffstat (limited to 'bin')
-rw-r--r--bin/ltmain.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ltmain.sh b/bin/ltmain.sh
index 05c61ef..1cb786c 100644
--- a/bin/ltmain.sh
+++ b/bin/ltmain.sh
@@ -4354,6 +4354,8 @@ relink_command=\"$relink_command\""
tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null`
if test $? = 0 ; then :
else
+ tmpdir="/tmp"
+ test -n "$TMPDIR" && tmpdir="$TMPDIR"
tmpdir="$tmpdir/libtool-$$"
fi
if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :