summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-10-01 23:29:30 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-10-01 23:29:30 (EDT)
commit5f74ed414cf0901efe41173cd79ad42cc06716e8 (patch)
tree7b9b8d431ecd2b497ab3548eb628aa4e2dc0ccf6
parent339c0c86f84d00f6a1fe1598567afdb2c3e63bf6 (diff)
downloadmarquee-5f74ed414cf0901efe41173cd79ad42cc06716e8.zip
marquee-5f74ed414cf0901efe41173cd79ad42cc06716e8.tar.gz
marquee-5f74ed414cf0901efe41173cd79ad42cc06716e8.tar.bz2
configure.ac: Disable optimizations if --enable-debug
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4653e22..51555b8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -112,6 +112,7 @@ AC_ARG_ENABLE(
,
[enable_debug=no])
if test "x${enable_debug}" = 'xyes'; then
+ AX_CHECK_COMPILE_FLAG([-O0], [AX_APPEND_FLAG([-O0])])
AC_SEARCH_LIBS([logl], [m], [],
[AC_MSG_ERROR([unable to find the logl() function])])
AC_DEFINE([MQ_TREE_DEBUG], [1], [Define to 1 to enable tree debugging.])