Submitted By: Ryan Oliver <ryan.oliver@pha.com.au>
Date: 2005-07-24
Initial Package Version: 1.1.2
Upstream Status: Unknown
Origin: Gentoo
Description:

--- configure.in	2005-02-03 06:03:25.000000000 +0100
+++ /tmp/configure.in	2005-02-19 14:11:56.714378040 +0100
@@ -184,14 +184,17 @@
 fi
 
 # only matters for PowerPC
-AC_CHECK_PROGS(AS, as)
-AC_CHECK_PROGS(GAS, gas)
-AM_CONDITIONAL(FLaC__HAS_AS, test -n "$AS")
-AM_CONDITIONAL(FLaC__HAS_GAS, test -n "$GAS")
-if test -n "$AS" ; then
+AC_CHECK_PROGS(AS, as, as)
+AC_CHECK_PROGS(AS, gas, gas)
+
+test "$AS" = "as" && as --version | grep GNU >/dev/null && AS=gas
+
+AM_CONDITIONAL(FLaC__HAS_AS, test "$AS" = "as" )
+AM_CONDITIONAL(FLaC__HAS_GAS, test "$AS" = "gas" )
+if test "$AS" = "as" ; then
 AC_DEFINE(FLAC__HAS_AS)
 fi
-if test -n "$GAS" ; then
+if test "$AS" = "gas" ; then
 # funniest. macro. ever.
 AC_DEFINE(FLAC__HAS_GAS)
 fi
