From aec20d66d9d13e0acd6a7199b63e1383e1e9900a Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 29 Oct 2013 21:14:41 +0000 Subject: automake: properly handle non-default expat installation Use PKG_CHECK_MODULE over requesting the user to setup the option at configure time. Drop unused EXPAT_INCLUDE and update all targets. NOTE: The this commit removes the --with-expat configure option. One should ensure that the expat they wish to use has expat.pc file accessible by pkg-config. v2: * Add note about the removal of --with-expat (per Tom Stellard) * Drop EXPAT_CFLAGS for targets that do not build DRI_COMMON (spotted by Matt Turner) v3: * Rebase on top of megadrivers (drop EXPAT_CFLAGS from swrast) Acked-by: Matt Turner (v2) Reviewed-by: Tom Stellard (v2) Signed-off-by: Emil Velikov Conflicts: configure.ac src/mesa/drivers/dri/common/Makefile.am --- src/gallium/targets/dri-swrast/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/targets/dri-swrast') diff --git a/src/gallium/targets/dri-swrast/Makefile.am b/src/gallium/targets/dri-swrast/Makefile.am index 6b629df307d..cddbbe32bb4 100644 --- a/src/gallium/targets/dri-swrast/Makefile.am +++ b/src/gallium/targets/dri-swrast/Makefile.am @@ -25,6 +25,7 @@ include $(top_srcdir)/src/gallium/Automake.inc AM_CFLAGS = \ $(GALLIUM_CFLAGS) \ $(PTHREAD_CFLAGS) \ + $(EXPAT_CFLAGS) \ $(LIBDRM_CFLAGS) \ $(VISIBILITY_CFLAGS) AM_CPPFLAGS = \ -- cgit v1.2.3