* configure.in: Don't set CC to "gcc -O" if the user specifies

`--with-gcc'.  Add -O to DEFS if GCC is set.
This commit is contained in:
Jim Blandy 1993-04-10 08:30:27 +00:00
parent 51cf3e317c
commit 8ba83d8852

View file

@ -781,14 +781,19 @@ compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
#### Choose a compiler.
DEFS=-g
case ${with_gcc} in
"yes" ) CC="gcc -O99" GCC=1 ;;
"no" ) CC="cc" ;;
"yes" ) CC="gcc" GCC=1 ;;
"no" ) CC="cc" ;;
* )
]
AC_PROG_CC
[
esac
if [ "${GCC}" != "" ]; then
DEFS="${DEFS} -O"
fi
#### Some other nice autoconf tests.
]
AC_CONST