[x264-devel] [PATCH 4/4] detect GNU as and set $ASFLAGS appropriately

Loren Merritt lorenm at u.washington.edu
Mon Oct 17 22:06:55 CEST 2011


On Thu, 29 Sep 2011, Sean McGovern wrote:

> ---
>  configure |   19 +++++++++++++++++--
>  1 files changed, 17 insertions(+), 2 deletions(-)
>
> diff --git a/configure b/configure
> index 9159eef..28de7d7 100755
> --- a/configure
> +++ b/configure
> @@ -655,6 +655,13 @@ fi
>  [ $asm = no ] && AS=""
>  [ "x$AS" = x ] && asm="no" || asm="yes"
>
> +# check for GNU as
> +non_gnu_as="yes"

Boolean variables should be positive.

And this name sounds like it's talking about a GNU vs a non-GNU
implementation of `as`, when it's really talking about `as` vs `yasm`.

> @@ -912,10 +919,18 @@ fi
>
>  if [ "$bit_depth" -gt "8" ]; then
>      define HIGH_BIT_DEPTH
> -    ASFLAGS="$ASFLAGS -DHIGH_BIT_DEPTH"
> +    [ "$non_gnu_as" = "yes" -a "$asm" != "no" ] && \
> +        ASFLAGS="$ASFLAGS -DHIGH_BIT_DEPTH" || \
> +        [ "$asm" != "no" ] && ASFLAGS="$ASFLAGS --defsym HIGH_BIT_DEPTH"
>  fi

`as --defsym HIGH_BIT_DEPTH` breaks here, saying
"Fatal error: bad defsym; format is --defsym name=value"
Maybe it works on Solaris, but if so GNU isn't the determining factor.

--Loren Merritt


More information about the x264-devel mailing list