env var CC has priority
This commit is contained in:
parent
6bd5f8470b
commit
d9d950c608
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue