comparison configure.ac @ 1582:68abf717328d

set up CXX for fuzzing build
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Mar 2018 17:08:21 +0800
parents ee7a546e3e6d
children e11ed628708b
comparison
equal deleted inserted replaced
1581:950913ea9976 1582:68abf717328d
327 [ --enable-fuzz Build fuzzing. Not recommended for deployment.], 327 [ --enable-fuzz Build fuzzing. Not recommended for deployment.],
328 [ 328 [
329 AC_DEFINE(DROPBEAR_FUZZ, 1, Fuzzing) 329 AC_DEFINE(DROPBEAR_FUZZ, 1, Fuzzing)
330 AC_MSG_NOTICE(Enabling fuzzing) 330 AC_MSG_NOTICE(Enabling fuzzing)
331 DROPBEAR_FUZZ=1 331 DROPBEAR_FUZZ=1
332 # libfuzzer needs linking with c++ libraries
333 AC_PROG_CXX
332 ], 334 ],
333 [ 335 [
334 AC_DEFINE(DROPBEAR_FUZZ, 0, Fuzzing) 336 AC_DEFINE(DROPBEAR_FUZZ, 0, Fuzzing)
335 DROPBEAR_FUZZ=0 337 DROPBEAR_FUZZ=0
336 ] 338 ]
337 339
338 ) 340 )
339 AC_SUBST(DROPBEAR_FUZZ) 341 AC_SUBST(DROPBEAR_FUZZ)
342 AC_SUBST(CXX)
340 343
341 # Checks for header files. 344 # Checks for header files.
342 AC_HEADER_STDC 345 AC_HEADER_STDC
343 AC_HEADER_SYS_WAIT 346 AC_HEADER_SYS_WAIT
344 AC_CHECK_HEADERS([netinet/in.h netinet/tcp.h \ 347 AC_CHECK_HEADERS([netinet/in.h netinet/tcp.h \