[FFmpeg-cvslog] configure: fix mktemp test and fallback function
Mans Rullgard
git
Fri Jan 21 20:40:01 CET 2011
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Oct 7 00:44:52 2010 +0100| [ef44b5bf198d68a69a4ea3d62bf33cc2268bdd43] | committer: Michael Niedermayer
configure: fix mktemp test and fallback function
(cherry picked from commit 09a5c2452cab8931f70ecb51705114682c962f98)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ef44b5bf198d68a69a4ea3d62bf33cc2268bdd43
---
configure | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 2106495..d56c45c 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
More information about the ffmpeg-cvslog
mailing list