Otherwise add -O.
(We used to always set -O, which is sometimes annoying when debugging
and anyhow clashes with normal autoconf behaviour.)
(This used to be commit
aee2ad9c3444d59dd6f53dda5379a6c391e00002)
AC_SUBST(EXTRA_SBIN_PROGS)
AC_SUBST(EXTRA_ALL_TARGETS)
-# compile with optimization and without debugging by default
-CFLAGS="-O ${CFLAGS}"
-
AC_ARG_ENABLE(debug,
[ --enable-debug Turn on compiler debugging information (default=no)],
[if eval "test x$enable_debug = xyes"; then
AC_PROG_AWK
AC_PATH_PROG(PERL, perl)
+# compile with optimization and without debugging by default, but
+# allow people to set their own preference.
+if test "x$CFLAGS" = x
+then
+ CFLAGS="-O ${CFLAGS}"
+fi
+
dnl Check if we use GNU ld
LD=ld
AC_PROG_LD_GNU