* coff-go32.c (RTYPE2HOWTO): Fully parenthesize arguments.
[deliverable/binutils-gdb.git] / gas / aclocal.m4
CommitLineData
b11fb939 1dnl
b11fb939
KR
2dnl This ugly hack is needed because the Cygnus configure script won't
3dnl tell us what CC is going to be, and "cc" isn't always right. (The
4dnl top-level Makefile will always override anything we choose here, so
5dnl the usual gcc/cc selection is useless.)
6dnl
7dnl It knows where it is in the tree; don't try using it elsewhere.
8dnl
9undefine([AC_PROG_CC])dnl
10define(AC_PROG_CC,
11[AC_BEFORE([$0], [AC_PROG_CPP])dnl
12AC_PROVIDE([$0])dnl
13dnl
14dnl The ugly bit...
15dnl
16AC_MSG_CHECKING([for CC])
17dnl Don't bother with cache.
18test -z "$CC" && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
19test -z "$CC" && CC=cc
20AC_MSG_RESULT(setting CC to $CC)
21AC_SUBST(CC)
22dnl
23dnl
24# Find out if we are using GNU C, under whatever name.
25cat > conftest.c <<EOF
26#ifdef __GNUC__
27 yes
28#endif
29EOF
30${CC-cc} -E conftest.c > conftest.out 2>&1
31if egrep yes conftest.out >/dev/null 2>&1; then
32 GCC=yes
33else
34 GCC=
35fi
36rm -f conftest*
37])dnl
This page took 0.023605 seconds and 4 git commands to generate.