From cfa4ec43d996b7492a3a82a1ef1197d1a1c8020e Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 1 Dec 2017 15:17:18 +0100 Subject: [PATCH] Make use of configure --enable-maintainer-mode Currently it adds `-O0` to `CFLAGS`. --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b2a7b55..461c4e9 100644 --- a/configure.ac +++ b/configure.ac @@ -133,7 +133,14 @@ if test x"$debug" = x"$enableval"; then if test x"$cflags_set" != x"set"; then case " $CFLAGS " in *[[\ \ ]]-g[[\ \ ]]*) ;; - *) CFLAGS="$CFLAGS -g" ;; + *) + CFLAGS="$CFLAGS -g" + + if test x"$USE_MAINTAINER_MODE" = x"$enableval"; then + CFLAGS="$CFLAGS -O0" + fi + + ;; esac fi else