Revision ad4d974c configure

View differences:

configure
827 827
    check_lib2 "$headers" $func "$@" || die "ERROR: $name not found"
828 828
}
829 829

  
830
check_foo_config(){
831
    cfg=$1
832
    pkg=$2
833
    header=$3
834
    func=$4
835
    shift 4
836
    disable $cfg
837
    check_cmd ${pkg}-config --version
838
    err=$?
839
    if test "$err" = 0; then
840
        temp_cflags $(${pkg}-config --cflags)
841
        temp_extralibs $(${pkg}-config --libs)
842
        check_lib "$@" $header $func && enable $cfg
843
    fi
844
    return $err
845
}
846

  
847 830
check_host_cc(){
848 831
    log check_host_cc "$@"
849 832
    cat > $TMPC

Also available in: Unified diff