diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-14 12:04:59 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-14 12:04:59 +0000 |
commit | 0c8ec33a71a39ff5bb512ff672696bdd41726fdc (patch) | |
tree | 66b8454e05259ab087778cc373f78437f0a0f3ff | |
parent | d1069706dea6c8de21ca118d45a5f117364b1fda (diff) | |
download | gnunet-ext-0c8ec33a71a39ff5bb512ff672696bdd41726fdc.tar.gz gnunet-ext-0c8ec33a71a39ff5bb512ff672696bdd41726fdc.zip |
-add logging options to ext template as well
-rw-r--r-- | configure.ac | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 08cd9b5..41dc08c 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -167,6 +167,28 @@ then | |||
167 | AC_MSG_ERROR([gnunet-ext requires GNUnet]) | 167 | AC_MSG_ERROR([gnunet-ext requires GNUnet]) |
168 | fi | 168 | fi |
169 | 169 | ||
170 | |||
171 | |||
172 | # Linker hardening options | ||
173 | # Currently these options are ELF specific - you can't use this with MacOSX | ||
174 | AC_ARG_ENABLE(linker-hardening, | ||
175 | AS_HELP_STRING(--enable-linker-hardening, enable linker security fixups), | ||
176 | [if test x$enableval = xyes; then | ||
177 | LDFLAGS="$LDFLAGS -z relro -z now" | ||
178 | fi]) | ||
179 | |||
180 | |||
181 | extra_logging=GNUNET_NO | ||
182 | AC_ARG_ENABLE([logging], | ||
183 | AS_HELP_STRING([--enable-logging@<:@=value@:>@],[Enable logging calls. Possible values: yes,no,verbose,veryverbose ('yes' is the default)]), | ||
184 | [AS_IF([test "x$enableval" = "xyes"], [], | ||
185 | [test "x$enableval" = "xno"], [AC_DEFINE([GNUNET_CULL_LOGGING],[],[Define to cull all logging calls])], | ||
186 | [test "x$enableval" = "xverbose"], [extra_logging=GNUNET_YES] | ||
187 | [test "x$enableval" = "xveryverbose"], [extra_logging=\(GNUNET_YES+1\)]) | ||
188 | ], []) | ||
189 | AC_DEFINE_UNQUOTED([GNUNET_EXTRA_LOGGING],[$extra_logging],[1 if extra logging is enabled, 2 for very verbose extra logging, 0 otherwise]) | ||
190 | |||
191 | |||
170 | AC_SUBST(GNUNET_CPPFLAGS) | 192 | AC_SUBST(GNUNET_CPPFLAGS) |
171 | AC_SUBST(GNUNET_LDFLAGS) | 193 | AC_SUBST(GNUNET_LDFLAGS) |
172 | LDFLAGS="$backup_LDFLAGS" | 194 | LDFLAGS="$backup_LDFLAGS" |