[PATCH 3/5] build: use ax_cc_for_build.m4 script

mchalain [marc.chalain@gmail.com] marc.chalain at gmail.com
Thu Sep 5 06:11:16 PDT 2013


From: mchalain <marc.chalain at gmail.com>

CC_FOR_BUILD could be defined by the ax_cc_for_build.m4 file.
This file comes from : http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_cc_for_build.m4
---
 configure.ac    |    1 +
 src/Makefile.am |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 5acbeef..b5dd0d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,7 @@ AM_SILENT_RULES([yes])
 
 # Check for programs
 AC_PROG_CC
+AX_CC_FOR_BUILD
 
 # Initialize libtool
 LT_PREREQ([2.2])
diff --git a/src/Makefile.am b/src/Makefile.am
index a5d7f62..de5b23a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -37,7 +37,7 @@ pkgconfig_DATA = wayland-client.pc wayland-server.pc
 
 AM_CPPFLAGS = $(FFI_CFLAGS)
 AM_CFLAGS = $(GCC_CFLAGS)
-CC_FOR_BUILD = gcc
+CC_FOR_BUILD = @CC_FOR_BUILD@
 CCLD_FOR_BUILD = $(CC_FOR_BUILD)
 COMPILE_FOR_BUILD = $(CC_FOR_BUILD)
 
-- 
1.7.9.5



More information about the wayland-devel mailing list