build: Change HAVE_X86_ASM to mean x86 or x86-64 asm.
authorMatt Turner <mattst88@gmail.com>
Tue, 5 Nov 2013 21:53:45 +0000 (13:53 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 7 Nov 2013 18:00:25 +0000 (10:00 -0800)
I want a conditional that says generally "we have x86 assembly" in the
next patch.

Reviewed-by: Eric Anholt <eric@anholt.net>
configure.ac
src/mapi/glapi/Makefile.am
src/mapi/glapi/gen/Makefile.am
src/mesa/Makefile.am
src/mesa/x86/Makefile.am

index 65905831fab7beb6f9151f497fcefd253a723e65..0896d857a590aa41cf65fbdc30c4ea08b2f1f104 100644 (file)
@@ -1938,7 +1938,7 @@ 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, test "x$asm_arch" = xx86)
+AM_CONDITIONAL(HAVE_X86_ASM, test "x$asm_arch" = xx86 -o "x$asm_arch" = xx86_64)
 AM_CONDITIONAL(HAVE_X86_64_ASM, test "x$asm_arch" = xx86_64)
 AM_CONDITIONAL(HAVE_SPARC_ASM, test "x$asm_arch" = xsparc)
 
index 05c67a6d4b8a653fc9174cd458c5801ee8b515cb..bf653a305431029b066e7a7712d4cfac56977a6c 100644 (file)
@@ -33,10 +33,11 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/mesa
 
 if HAVE_X86_ASM
-GLAPI_ASM_SOURCES = $(X86_API)
-endif
 if HAVE_X86_64_ASM
 GLAPI_ASM_SOURCES = $(X86_64_API)
+else
+GLAPI_ASM_SOURCES = $(X86_API)
+endif
 endif
 if HAVE_SPARC_ASM
 GLAPI_ASM_SOURCES = $(SPARC_API)
index 9c2538783258b197972f6b67d4f420e5b58837d5..476d943dd93d7bccdc535e6c185e002097335f02 100644 (file)
@@ -32,11 +32,11 @@ MESA_GLAPI_OUTPUTS = \
 
 MESA_GLAPI_ASM_OUTPUTS =
 if HAVE_X86_ASM
-MESA_GLAPI_ASM_OUTPUTS += $(MESA_GLAPI_DIR)/glapi_x86.S
-endif
-
 if HAVE_X86_64_ASM
 MESA_GLAPI_ASM_OUTPUTS += $(MESA_GLAPI_DIR)/glapi_x86-64.S
+else
+MESA_GLAPI_ASM_OUTPUTS += $(MESA_GLAPI_DIR)/glapi_x86.S
+endif
 endif
 
 if HAVE_SPARC_ASM
index a54b8ac1b3077c2b454c68c470cd1dc0cff0a22d..5f9bae2ac2af19769ca36eeeb498404cc68fb38b 100644 (file)
@@ -98,12 +98,13 @@ AM_CXXFLAGS = $(LLVM_CFLAGS) $(VISIBILITY_CXXFLAGS)
 MESA_ASM_FILES_FOR_ARCH =
 
 if HAVE_X86_ASM
-MESA_ASM_FILES_FOR_ARCH += $(X86_FILES)
-AM_CPPFLAGS += -I$(builddir)/x86 -I$(srcdir)/x86
-endif
 if HAVE_X86_64_ASM
 MESA_ASM_FILES_FOR_ARCH += $(X86_64_FILES)
 AM_CPPFLAGS += -I$(builddir)/x86-64 -I$(srcdir)/x86-64
+else
+MESA_ASM_FILES_FOR_ARCH += $(X86_FILES)
+AM_CPPFLAGS += -I$(builddir)/x86 -I$(srcdir)/x86
+endif
 endif
 if HAVE_SPARC_ASM
 MESA_ASM_FILES_FOR_ARCH += $(SPARC_FILES)
index 167857684b126bbcb8af7cb3d8e5948f6a39b1dd..9b4a2dd0b9a60b0d056c7c1a7cb8b7297d3b5d31 100644 (file)
@@ -20,6 +20,7 @@
 # IN THE SOFTWARE.
 
 if HAVE_X86_ASM
+if !HAVE_X86_64_ASM
 
 AM_CPPFLAGS = \
        -I$(top_srcdir)/include \
@@ -47,3 +48,4 @@ matypes.h: gen_matypes
 endif
 
 endif
+endif