env var CC has priority

This commit is contained in:
dwarning 2008-05-20 19:43:01 +00:00
parent 6bd5f8470b
commit d9d950c608
1 changed files with 5 additions and 2 deletions

View File

@ -185,11 +185,14 @@ AM_MAINTAINER_MODE
dnl Compiler checks
dnl ---------------
if test -z "$CC"; then
# No C compiler specified... We rely on Autoconf to find the best
AC_PROG_CC
fi
dnl Work on compiler options according to system:
dnl Set default CFLAG - only use -Wall if we have gcc
AC_PROG_CC(cc gcc)
dnl the above AC_PROG_CC may set CFLAGS to "-O2 -g"
if test "$enable_debug" = "no"; then
if test "x$GCC" = "xyes"; then