From: Matt Turner Date: Tue, 5 Nov 2013 19:20:12 +0000 (-0800) Subject: configure.ac: Test $asm_arch directly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=957c7570ea3f7d6ea4cf2cc49d85207136fb0470;p=mesa.git configure.ac: Test $asm_arch directly. Reviewed-by: Eric Anholt --- diff --git a/configure.ac b/configure.ac index a8366ee2f8c..65905831fab 100644 --- a/configure.ac +++ b/configure.ac @@ -1938,9 +1938,9 @@ AM_CONDITIONAL(HAVE_X11_DRIVER, test "x$enable_xlib_glx" = xyes) AM_CONDITIONAL(HAVE_OSMESA, test "x$enable_osmesa" = xyes) AM_CONDITIONAL(HAVE_GALLIUM_OSMESA, test "x$enable_gallium_osmesa" = xyes) -AM_CONDITIONAL(HAVE_X86_ASM, echo "$DEFINES" | grep 'X86_ASM' >/dev/null 2>&1) -AM_CONDITIONAL(HAVE_X86_64_ASM, echo "$DEFINES" | grep 'X86_64_ASM' >/dev/null 2>&1) -AM_CONDITIONAL(HAVE_SPARC_ASM, echo "$DEFINES" | grep 'SPARC_ASM' >/dev/null 2>&1) +AM_CONDITIONAL(HAVE_X86_ASM, test "x$asm_arch" = xx86) +AM_CONDITIONAL(HAVE_X86_64_ASM, test "x$asm_arch" = xx86_64) +AM_CONDITIONAL(HAVE_SPARC_ASM, test "x$asm_arch" = xsparc) AC_SUBST([VDPAU_MAJOR], 1) AC_SUBST([VDPAU_MINOR], 0)