Revision 5e622c40 configure

View differences:

configure
440 440
    makefile=$3
441 441
    shift 3
442 442
    for cfg; do
443
        ucname="`toupper $cfg`"
443
        ucname="$(toupper $cfg)"
444 444
        if enabled $cfg; then
445 445
            echo "#define ${pfx}${ucname} 1" >> $header
446 446
            echo "${pfx}${ucname}=yes" >> $makefile
......
657 657
}
658 658

  
659 659
check_exec_crash(){
660
    code=`cat`
660
    code=$(cat)
661 661

  
662 662
    # exit() is not async signal safe.  _Exit (C99) and _exit (POSIX)
663 663
    # are safe but may not be available everywhere.  Thus we use
......
725 725
    check_cmd ${pkg}-config --version
726 726
    err=$?
727 727
    if test "$err" = 0; then
728
        temp_cflags `${pkg}-config --cflags`
729
        temp_extralibs `${pkg}-config --libs`
728
        temp_cflags $(${pkg}-config --cflags)
729
        temp_extralibs $(${pkg}-config --libs)
730 730
        check_lib "$@" $header $func && enable $cfg
731 731
    fi
732 732
    return $err
......
1157 1157
yasmexe="yasm"
1158 1158

  
1159 1159
# machine
1160
arch=`uname -m`
1160
arch=$(uname -m)
1161 1161
cpu="generic"
1162 1162

  
1163 1163
# OS
......
1203 1203
DEPEND_CMD='$(CC) $(CFLAGS) -MM $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o,"'
1204 1204

  
1205 1205
# find source path
1206
source_path="`dirname \"$0\"`"
1206
source_path="$(dirname "$0")"
1207 1207
enable source_path_used
1208 1208
if test -z "$source_path" -o "$source_path" = "." ; then
1209
    source_path="`pwd`"
1209
    source_path="$(pwd)"
1210 1210
    disable source_path_used
1211 1211
else
1212
    source_path="`cd \"$source_path\"; pwd`"
1212
    source_path="$(cd "$source_path"; pwd)"
1213 1213
    echo "$source_path" | grep -q '[[:blank:]]' &&
1214 1214
        die "Out of tree builds are impossible with whitespace in source path."
1215 1215
fi
......
1273 1273
    --enable-debug=*) debuglevel="$optval"
1274 1274
    ;;
1275 1275
    --enable-*=*|--disable-*=*)
1276
    eval `echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/'`
1276
    eval $(echo "$opt" | sed 's/=/-/;s/--/action=/;s/-/ thing=/;s/-/ name=/')
1277 1277
    case "$thing" in
1278 1278
        encoder|decoder|muxer|demuxer|parser|bsf|protocol|filter) $action ${optval}_${thing} ;;
1279 1279
        *) die_unknown "$opt" ;;
1280 1280
    esac
1281 1281
    ;;
1282 1282
    --enable-?*|--disable-?*)
1283
    eval `echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g'`
1283
    eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g')
1284 1284
    if is_in $option $COMPONENT_LIST; then
1285 1285
        eval $action \$$(toupper ${option%s})_LIST
1286 1286
    elif is_in $option $CMDLINE_SELECT; then
......
1527 1527
        # helps building libavcodec
1528 1528
        add_cflags -DPIC -fomit-frame-pointer
1529 1529
        # 3 gcc releases known for BeOS, each with ugly bugs
1530
        gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`"
1530
        gcc_version="$($cc -v 2>&1 | grep version | cut -d ' ' -f3-)"
1531 1531
        case "$gcc_version" in
1532 1532
          2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc"
1533 1533
            disable mmx
......
2046 2046
disable sdl
2047 2047
SDL_CONFIG="${cross_prefix}sdl-config"
2048 2048
if "${SDL_CONFIG}" --version > /dev/null 2>&1; then
2049
    sdl_cflags=`"${SDL_CONFIG}" --cflags`
2049
    sdl_cflags=$("${SDL_CONFIG}" --cflags)
2050 2050
    temp_cflags $sdl_cflags
2051
    temp_extralibs `"${SDL_CONFIG}" --libs`
2051
    temp_extralibs $("${SDL_CONFIG}" --libs)
2052 2052
    if check_lib2 SDL.h SDL_Init; then
2053
        _sdlversion=`"${SDL_CONFIG}" --version | sed 's/[^0-9]//g'`
2053
        _sdlversion=$("${SDL_CONFIG}" --version | sed 's/[^0-9]//g')
2054 2054
        if test "$_sdlversion" -lt 121 ; then
2055 2055
            enable sdl_too_old
2056 2056
        else
......
2398 2398
fi
2399 2399

  
2400 2400
if enabled sdl; then
2401
    echo "SDL_LIBS=`"${SDL_CONFIG}" --libs`" >> config.mak
2402
    echo "SDL_CFLAGS=`"${SDL_CONFIG}" --cflags`" >> config.mak
2401
    echo "SDL_LIBS=$("${SDL_CONFIG}" --libs)" >> config.mak
2402
    echo "SDL_CFLAGS=$("${SDL_CONFIG}" --cflags)" >> config.mak
2403 2403
fi
2404 2404
if enabled texi2html; then
2405 2405
    echo "BUILD_DOC=yes" >> config.mak

Also available in: Unified diff