diff mbox series

[v2,9/16] configure: AC_DEFINE_UNQUOTED(ODP_DEBUG_PRINT)

Message ID 1502791206-2437-10-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [v2,1/16] configure: move configure header to top of build tree | expand

Commit Message

Github ODP bot Aug. 15, 2017, 9:59 a.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Use Autoconf macros instead of defining macro by hand.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 127 (lumag:improve-build)
 ** https://github.com/Linaro/odp/pull/127
 ** Patch: https://github.com/Linaro/odp/pull/127.patch
 ** Base sha: 90d4ce1b3b25ca18446131906007571cc0ed0191
 ** Merge commit sha: 3e7a44d8f4b7c90183d3bd3b57bc812f16de030f
 **/
 configure.ac | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index ccc439d5..d3737e8a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -252,10 +252,9 @@  AC_ARG_ENABLE([debug-print],
     [  --enable-debug-print    display debugging information],
     [if test "x$enableval" = "xyes"; then
 	ODP_DEBUG_PRINT=1
-     else
-	ODP_DEBUG_PRINT=0
     fi])
-ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG_PRINT=$ODP_DEBUG_PRINT"
+AC_DEFINE_UNQUOTED([ODP_DEBUG_PRINT], [$ODP_DEBUG_PRINT],
+		   [Define to 1 to display debug information])
 
 ODPH_DEBUG_PRINT=0
 AC_ARG_ENABLE([helper-debug-print],