OSDN Git Service

configure: better test for mktemp
authorMans Rullgard <mans@mansr.com>
Fri, 21 Jan 2011 19:58:23 +0000 (19:58 +0000)
committerMans Rullgard <mans@mansr.com>
Fri, 21 Jan 2011 20:54:03 +0000 (20:54 +0000)
Some variants of mktemp require a template, so provide one when
checking for the command.  We already supply a template in the
subsequent uses of mktemp.

Thanks to Michael Kostylev.

Signed-off-by: Mans Rullgard <mans@mansr.com>
configure

index 0f1c62d..76ea08d 100755 (executable)
--- a/configure
+++ b/configure
@@ -1793,7 +1793,7 @@ HOSTEXESUF=$(exesuf $host_os)
 : ${TMPDIR:=$TMP}
 : ${TMPDIR:=/tmp}
 
-if ! check_cmd mktemp -u; then
+if ! check_cmd mktemp -u XXXXXX; then
     # simple replacement for missing mktemp
     # NOT SAFE FOR GENERAL USE
     mktemp(){