]> git.sesse.net Git - ffmpeg/commitdiff
Merge commit '8c893aa3cd5f2d73896c72af330dcbfe299fbc5a'
authorJames Almer <jamrial@gmail.com>
Thu, 15 Mar 2018 21:09:58 +0000 (18:09 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 15 Mar 2018 21:09:58 +0000 (18:09 -0300)
* commit '8c893aa3cd5f2d73896c72af330dcbfe299fbc5a':
  configure: Drop unnecessary variables, shifts, and quotes in helper functions

Merged-by: James Almer <jamrial@gmail.com>
1  2 
configure

diff --cc configure
index 5e38bdab17cfb31734b7b55fadca125ad4fc9ec2,f373698b6c945196523c57872e6f68cf83dac3b0..dad19f0106a77d4ebf3d4f2721b6e1b85878ecba
+++ b/configure
@@@ -978,28 -814,9 +978,28 @@@ void foo(void){ __asm__ volatile($code)
  EOF
  }
  
 +check_inline_asm_flags(){
 +    log check_inline_asm_flags "$@"
 +    name="$1"
 +    code="$2"
 +    flags=''
 +    shift 2
 +    while [ "$1" != "" ]; do
 +      append flags $1
 +      shift
 +    done;
 +    disable $name
 +    cat > $TMPC <<EOF
 +void foo(void){ __asm__ volatile($code); }
 +EOF
 +    log_file $TMPC
 +    check_cmd $cc $CPPFLAGS $CFLAGS $flags "$@" $CC_C $(cc_o $TMPO) $TMPC &&
 +    enable $name && add_cflags $flags && add_asflags $flags && add_ldflags $flags
 +}
 +
  check_insn(){
      log check_insn "$@"
-     check_inline_asm ${1}_inline "\"$2\""
+     check_inline_asm ${1}_inline "$2"
      echo "$2" | check_as && enable ${1}_external || disable ${1}_external
  }
  
@@@ -1386,20 -1116,10 +1386,18 @@@ require()
      log require "$@"
      name_version="$1"
      name="${1%% *}"
-     headers="$2"
-     func="$3"
-     shift 3
-     check_lib $name "$headers" $func "$@" || die "ERROR: $name_version not found"
+     shift
+     check_lib $name "$@" || die "ERROR: $name_version not found"
  }
  
 +require_cpp(){
 +    name="$1"
 +    headers="$2"
 +    classes="$3"
 +    shift 3
 +    check_lib_cpp "$headers" "$classes" "$@" || die "ERROR: $name not found"
 +}
 +
  require_header(){
      log require_header "$@"
      headers="$1"