[Ffmpeg-devel] [PATCH] configure fails if there are spaces in `pwd`

Steve Lhomme slhomme
Fri Nov 3 15:38:10 CET 2006


Steve Lhomme wrote:
> Hi,
> 
> So here is a patch to allow running configure (in Msys) when the current 
> folder has spaces.

BTW, even after this patch, make will still fail because it doesn't 
handle spaces in includes like:
include $(SRC_PATH)/common.mak

Even some double quotes don't help... Why not using '..' ? Like 'include 
../config.mak' in the same Makefiles ???

Steve

> ------------------------------------------------------------------------
> 
> Index: configure
> ===================================================================
> --- configure	(revision 6882)
> +++ configure	(working copy)
> @@ -680,11 +680,11 @@
>    FFMPEG_CONFIGURATION="$FFMPEG_CONFIGURATION""$opt "
>  done
>  
> -ENCODER_LIST=`grep 'register_avcodec(&[a-z0-9_]*_encoder)' $source_path/libavcodec/allcodecs.c  | sed 's/.*&\(.*\)).*/\1/'`
> -DECODER_LIST=`grep 'register_avcodec(&[a-z0-9_]*_decoder)' $source_path/libavcodec/allcodecs.c  | sed 's/.*&\(.*\)).*/\1/'`
> -PARSER_LIST=`grep 'av_register_codec_parser(&[a-z]' $source_path/libavcodec/allcodecs.c  | sed 's/.*&\(.*\)).*/\1/'`
> -MUXER_LIST=`grep 'av_register_output_format(&[a-z]' $source_path/libavformat/allformats.c  | sed 's/.*&\(.*\)).*/\1/'`
> -DEMUXER_LIST=`grep 'av_register_input_format(&[a-z]' $source_path/libavformat/allformats.c  | sed 's/.*&\(.*\)).*/\1/'`
> +ENCODER_LIST=`grep 'register_avcodec(&[a-z0-9_]*_encoder)' "$source_path/libavcodec/allcodecs.c"  | sed 's/.*&\(.*\)).*/\1/'`
> +DECODER_LIST=`grep 'register_avcodec(&[a-z0-9_]*_decoder)' "$source_path/libavcodec/allcodecs.c"  | sed 's/.*&\(.*\)).*/\1/'`
> +PARSER_LIST=`grep 'av_register_codec_parser(&[a-z]' "$source_path/libavcodec/allcodecs.c"  | sed 's/.*&\(.*\)).*/\1/'`
> +MUXER_LIST=`grep 'av_register_output_format(&[a-z]' "$source_path/libavformat/allformats.c"  | sed 's/.*&\(.*\)).*/\1/'`
> +DEMUXER_LIST=`grep 'av_register_input_format(&[a-z]' "$source_path/libavformat/allformats.c"  | sed 's/.*&\(.*\)).*/\1/'`
>  
>  for opt do
>    optval="${opt#*=}"
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel




More information about the ffmpeg-devel mailing list