Mercurial > dropbear
diff configure.ac @ 1563:1cbb7b3d6703
Merge fuzzing branch
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 28 Feb 2018 22:12:05 +0800 |
parents | 92c93b4a3646 |
children | 86e4995bbedf |
line wrap: on
line diff
--- a/configure.ac Wed Feb 28 15:10:14 2018 +0100 +++ b/configure.ac Wed Feb 28 22:12:05 2018 +0800 @@ -9,6 +9,12 @@ AC_INIT AC_CONFIG_SRCDIR(buffer.c) +# Record which revision is being built +if which -s hg && test -d "$srcdir/.hg"; then + hgrev=`hg id -i -R "$srcdir"` + AC_MSG_NOTICE([Source directory Mercurial base revision $hgrev]) +fi + # Checks for programs. AC_PROG_CC @@ -315,7 +321,21 @@ AC_MSG_NOTICE(Using shadow passwords if available) ] ) - + +AC_ARG_ENABLE(fuzz, + [ --enable-fuzz Build fuzzing. Not recommended for deployment.], + [ + AC_DEFINE(DROPBEAR_FUZZ, 1, Fuzzing) + AC_MSG_NOTICE(Enabling fuzzing) + DROPBEAR_FUZZ=1 + ], + [ + AC_DEFINE(DROPBEAR_FUZZ, 0, Fuzzing) + DROPBEAR_FUZZ=0 + ] + +) +AC_SUBST(DROPBEAR_FUZZ) # Checks for header files. AC_HEADER_STDC