Lines 556-578
if test "x$enable_debug" = "x1" ; then
Link Here
|
556 |
fi |
556 |
fi |
557 |
AC_SUBST([enable_debug]) |
557 |
AC_SUBST([enable_debug]) |
558 |
|
558 |
|
559 |
dnl Only optimize if not debugging. |
|
|
560 |
if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then |
561 |
dnl Make sure that an optimization flag was not specified in EXTRA_CFLAGS. |
562 |
optimize="no" |
563 |
echo "$EXTRA_CFLAGS" | grep "\-O" >/dev/null || optimize="yes" |
564 |
if test "x${optimize}" = "xyes" ; then |
565 |
if test "x$GCC" = "xyes" ; then |
566 |
JE_CFLAGS_APPEND([-O3]) |
567 |
JE_CFLAGS_APPEND([-funroll-loops]) |
568 |
elif test "x$je_cv_msvc" = "xyes" ; then |
569 |
JE_CFLAGS_APPEND([-O2]) |
570 |
else |
571 |
JE_CFLAGS_APPEND([-O]) |
572 |
fi |
573 |
fi |
574 |
fi |
575 |
|
576 |
dnl Enable statistics calculation by default. |
559 |
dnl Enable statistics calculation by default. |
577 |
AC_ARG_ENABLE([stats], |
560 |
AC_ARG_ENABLE([stats], |
578 |
[AS_HELP_STRING([--disable-stats], |
561 |
[AS_HELP_STRING([--disable-stats], |