From ef44b5bf198d68a69a4ea3d62bf33cc2268bdd43 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Thu, 7 Oct 2010 00:44:52 +0100 Subject: [PATCH] configure: fix mktemp test and fallback function (cherry picked from commit 09a5c2452cab8931f70ecb51705114682c962f98) --- configure | 4 ++-- 1 file 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