Commit a210bce2 authored by Mans Rullgard's avatar Mans Rullgard

configure: better test for mktemp

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: 's avatarMans Rullgard <mans@mansr.com>
parent 93bb9ff0
...@@ -1793,7 +1793,7 @@ HOSTEXESUF=$(exesuf $host_os) ...@@ -1793,7 +1793,7 @@ HOSTEXESUF=$(exesuf $host_os)
: ${TMPDIR:=$TMP} : ${TMPDIR:=$TMP}
: ${TMPDIR:=/tmp} : ${TMPDIR:=/tmp}
if ! check_cmd mktemp -u; then if ! check_cmd mktemp -u XXXXXX; then
# simple replacement for missing mktemp # simple replacement for missing mktemp
# NOT SAFE FOR GENERAL USE # NOT SAFE FOR GENERAL USE
mktemp(){ mktemp(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment