[FFmpeg-devel] [PATCH] configure: better test for mktemp

Janne Grunau janne-ffmpeg
Fri Jan 21 21:53:04 CET 2011


On Fri, Jan 21, 2011 at 08:44:03PM +0000, Mans Rullgard wrote:
> 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 at mansr.com>
> ---
>  configure |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/configure b/configure
> index 0f1c62d..76ea08d 100755
> --- 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(){

ok

Janne



More information about the ffmpeg-devel mailing list