aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2010-10-07 00:44:52 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-01-21 20:35:45 +0100
commitef44b5bf198d68a69a4ea3d62bf33cc2268bdd43 (patch)
treea34eaf8a32d43f48788f3fb206eea53b53c4f719 /configure
parent3b63a5220728b7f5c5a32c6bba373db05ba08829 (diff)
downloadffmpeg-ef44b5bf198d68a69a4ea3d62bf33cc2268bdd43.tar.gz
configure: fix mktemp test and fallback function
(cherry picked from commit 09a5c2452cab8931f70ecb51705114682c962f98)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 2106495a22..d56c45c29d 100755
--- a/configure
+++ b/configure
@@ -1793,11 +1793,11 @@ HOSTEXESUF=$(exesuf $host_os)
: ${TMPDIR:=$TMP}
: ${TMPDIR:=/tmp}
-if ! check_cmd type mktemp; then
+if ! check_cmd mktemp -u; then
# simple replacement for missing mktemp
# NOT SAFE FOR GENERAL USE
mktemp(){
- echo "${2%XXX*}.${HOSTNAME}.${UID}.$$"
+ echo "${2%%XXX*}.${HOSTNAME}.${UID}.$$"
}
fi