Browse Source

env var CC has priority

pre-master-46
dwarning 18 years ago
parent
commit
d9d950c608
  1. 7
      configure.in

7
configure.in

@ -185,11 +185,14 @@ AM_MAINTAINER_MODE
dnl Compiler checks dnl Compiler checks
dnl --------------- 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 Work on compiler options according to system:
dnl Set default CFLAG - only use -Wall if we have gcc 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" dnl the above AC_PROG_CC may set CFLAGS to "-O2 -g"
if test "$enable_debug" = "no"; then if test "$enable_debug" = "no"; then
if test "x$GCC" = "xyes"; then if test "x$GCC" = "xyes"; then

Loading…
Cancel
Save