Revision b04251c5 configure

View differences:

configure
283 283
    echo "$*" | sed 's/["\\]/\\\0/g'
284 284
}
285 285

  
286
sh_quote(){
287
    v=$(echo "$1" | sed "s/'/'\\\\''/g")
288
    test "$v" = "${v#*[ |&;<>()$\`\\\"\'*?\[\]#~=%]}" || v="'$v'"
289
    echo "$v"
290
}
291

  
286 292
set_all(){
287 293
    value=$1
288 294
    shift
......
1270 1276
fi
1271 1277

  
1272 1278
for v in "$@"; do
1273
    r="${v#*=}"
1274
    l="${v%$r}"
1275
    test "$r" = "${r#* }" || r="'$r'"
1279
    r=${v#*=}
1280
    l=${v%"$r"}
1281
    r=$(sh_quote "$r")
1276 1282
    FFMPEG_CONFIGURATION="${FFMPEG_CONFIGURATION# } ${l}${r}"
1277 1283
done
1278 1284

  
......
2444 2450
echo "/* Automatically generated by configure - do not modify! */" > $TMPH
2445 2451
echo "#ifndef FFMPEG_CONFIG_H" >> $TMPH
2446 2452
echo "#define FFMPEG_CONFIG_H" >> $TMPH
2447
echo "#define FFMPEG_CONFIGURATION \"$FFMPEG_CONFIGURATION\"" >> $TMPH
2453
echo "#define FFMPEG_CONFIGURATION \"$(c_escape $FFMPEG_CONFIGURATION)\"" >> $TMPH
2448 2454
echo "#define FFMPEG_DATADIR \"$(eval c_escape $datadir)\"" >> $TMPH
2449 2455

  
2450 2456
echo "FFMPEG_CONFIGURATION=$FFMPEG_CONFIGURATION" >> config.mak

Also available in: Unified diff