* 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:
parent
51cf3e317c
commit
8ba83d8852
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue