make sure gcc likes the optimisation options. Unfortunatly, if even one causes

a problem, all will be lost, but at least qf will compile.
This commit is contained in:
Bill Currie 2001-07-09 16:56:01 +00:00
parent c60d333610
commit 17b6e171fd

View file

@ -1019,8 +1019,14 @@ if test "x$optimize" = xyes; then
if test "x$MORE_CFLAGS" = x; then
AC_MSG_RESULT(no)
else
AC_MSG_RESULT(yes)
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $MORE_CFLAGS"
AC_TRY_COMPILE(
[],
[],
AC_MSG_RESULT(yes),
CFLAGS="$save_CFLAGS"
)
fi
else
CFLAGS=-O2