summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2010-07-23 21:02:33 -0400
committerGaetan Nadon <memsize@videotron.ca>2010-07-23 21:02:33 -0400
commitc29d24b2ca598011b84387006f03a9360910707f (patch)
tree285bda25d4dd407f9c7996517ad71ca4e3d048a1
parentdfbef04f1ff9430a01ca0ca682be32a8606e9e13 (diff)
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 <memsize@videotron.ca>
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
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