Skip to content

Commit

Permalink
[build] Add --enable-debug to configure script
Browse files Browse the repository at this point in the history
Should be more easily discoverable and less awkward to use.
  • Loading branch information
khaledhosny committed Jan 25, 2017
1 parent 4cfbce8 commit cd364cb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions INSTALL
Expand Up @@ -35,9 +35,9 @@ Building on Windows:
Developer build instructions:

1. If you would like to see the source code lines related to reported
errors, then run make with:
errors, then replace configure call above with:

$ make CXXFLAGS=-DOTS_DEBUG
$ ./configure --enable-debug

For example,

Expand Down
7 changes: 7 additions & 0 deletions configure.ac
Expand Up @@ -19,6 +19,13 @@ AC_PROG_CXX
AC_PROG_RANLIB
PKG_PROG_PKG_CONFIG([0.20])

AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug=@<:@yes/no@:>@],
[Enable extra debugging information for font
sanitization @<:@default=no@:>@]),
AC_DEFINE(OTS_DEBUG, 1, [Enable extra debugging information]),
:)

have_zlib=true
AX_CHECK_ZLIB([], [have_zlib=false])
if ! $have_zlib; then
Expand Down
2 changes: 2 additions & 0 deletions src/ots.h
Expand Up @@ -5,6 +5,8 @@
#ifndef OTS_H_
#define OTS_H_

#include "config.h"

#include <stddef.h>
#include <cstdarg>
#include <cstddef>
Expand Down

0 comments on commit cd364cb

Please sign in to comment.