From c29d24b2ca598011b84387006f03a9360910707f Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Fri, 23 Jul 2010 21:02:33 -0400 Subject: config: add AM_PROG_CC_C_O for per-target compilation flags The use of per-target compilation flags with C sources requires that the macro AM_PROG_CC_C_O be called from configure.ac If the C compiler does not accept the -c and -o options simultaneously, define NO_MINUS_C_MINUS_O. This macro actually tests both the compiler found by AC_PROG_CC, and, if different, the first cc in the path. The test fails if one fails. This macro was created for GNU Make to choose the default C compilation rule. Signed-off-by: Gaetan Nadon --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index a01b244..388f99f 100644 --- a/configure.ac +++ b/configure.ac @@ -44,6 +44,9 @@ XORG_DEFAULT_OPTIONS AC_DISABLE_STATIC AC_PROG_LIBTOOL +# Checks for programs. +AM_PROG_CC_C_O + AH_TOP([#include "xorg-server.h"]) # Define a configure option for an alternate module directory -- cgit v1.2.3