comparison 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
comparison
equal deleted inserted replaced
1560:f5026f7486de 1563:1cbb7b3d6703
6 # Huge thanks to them for dealing with the horrible platform-specifics :) 6 # Huge thanks to them for dealing with the horrible platform-specifics :)
7 7
8 AC_PREREQ(2.59) 8 AC_PREREQ(2.59)
9 AC_INIT 9 AC_INIT
10 AC_CONFIG_SRCDIR(buffer.c) 10 AC_CONFIG_SRCDIR(buffer.c)
11
12 # Record which revision is being built
13 if which -s hg && test -d "$srcdir/.hg"; then
14 hgrev=`hg id -i -R "$srcdir"`
15 AC_MSG_NOTICE([Source directory Mercurial base revision $hgrev])
16 fi
11 17
12 # Checks for programs. 18 # Checks for programs.
13 AC_PROG_CC 19 AC_PROG_CC
14 20
15 if test -z "$LD" ; then 21 if test -z "$LD" ; then
313 [ 319 [
314 AC_CHECK_HEADERS([shadow.h]) 320 AC_CHECK_HEADERS([shadow.h])
315 AC_MSG_NOTICE(Using shadow passwords if available) 321 AC_MSG_NOTICE(Using shadow passwords if available)
316 ] 322 ]
317 ) 323 )
318 324
325 AC_ARG_ENABLE(fuzz,
326 [ --enable-fuzz Build fuzzing. Not recommended for deployment.],
327 [
328 AC_DEFINE(DROPBEAR_FUZZ, 1, Fuzzing)
329 AC_MSG_NOTICE(Enabling fuzzing)
330 DROPBEAR_FUZZ=1
331 ],
332 [
333 AC_DEFINE(DROPBEAR_FUZZ, 0, Fuzzing)
334 DROPBEAR_FUZZ=0
335 ]
336
337 )
338 AC_SUBST(DROPBEAR_FUZZ)
319 339
320 # Checks for header files. 340 # Checks for header files.
321 AC_HEADER_STDC 341 AC_HEADER_STDC
322 AC_HEADER_SYS_WAIT 342 AC_HEADER_SYS_WAIT
323 AC_CHECK_HEADERS([netinet/in.h netinet/tcp.h \ 343 AC_CHECK_HEADERS([netinet/in.h netinet/tcp.h \