@@ -69,10 +69,15 @@ AC_ARG_ENABLE(tests,
6969 [ use_tests=yes] )
7070
7171AC_ARG_WITH ( [ comparison-tool] ,
72- AS_HELP_STRING ( [ with-comparison-tool] ,[ path to java comparison tool (requires --enable-tests)] ) ,
72+ AS_HELP_STRING ( [ -- with-comparison-tool] ,[ path to java comparison tool (requires --enable-tests)] ) ,
7373 [ use_comparison_tool=$withval] ,
7474 [ use_comparison_tool=no] )
7575
76+ AC_ARG_ENABLE ( [ comparison-tool-reorg-tests] ,
77+ AS_HELP_STRING ( [ --enable-comparison-tool-reorg-tests] ,[ enable expensive reorg tests in the comparison tool (default no)] ) ,
78+ [ use_comparison_tool_reorg_tests=$enableval] ,
79+ [ use_comparison_tool_reorg_tests=no] )
80+
7681AC_ARG_WITH ( [ qrencode] ,
7782 [ AS_HELP_STRING ( [ --with-qrencode] ,
7883 [ enable QR code support (default is yes if qt is enabled and libqrencode is found)] ) ] ,
@@ -235,6 +240,15 @@ if test x$use_comparison_tool != xno; then
235240 AC_SUBST ( JAVA_COMPARISON_TOOL , $use_comparison_tool )
236241fi
237242
243+ if test x$use_comparison_tool_reorg_tests != xno; then
244+ if test x$use_comparison_tool == x; then
245+ AC_MSG_ERROR ( "comparison tool reorg tests but comparison tool was not specified" )
246+ fi
247+ AC_SUBST ( COMPARISON_TOOL_REORG_TESTS , 1 )
248+ else
249+ AC_SUBST ( COMPARISON_TOOL_REORG_TESTS , 0 )
250+ fi
251+
238252if test x$use_lcov == xyes; then
239253 if test x$LCOV == x; then
240254 AC_MSG_ERROR ( "lcov testing requested but lcov not found" )
@@ -678,6 +692,7 @@ AM_CONDITIONAL([TARGET_WINDOWS], [test x$TARGET_OS = xwindows])
678692AM_CONDITIONAL([ USE_QRCODE] , [ test x$use_qr = xyes] )
679693AM_CONDITIONAL([ USE_LCOV] ,[ test x$use_lcov == xyes] )
680694AM_CONDITIONAL([ USE_COMPARISON_TOOL] ,[ test x$use_comparison_tool != xno] )
695+ AM_CONDITIONAL([ USE_COMPARISON_TOOL_REORG_TESTS] ,[ test x$use_comparison_tool_reorg_test != xno] )
681696
682697AC_DEFINE ( CLIENT_VERSION_MAJOR , _CLIENT_VERSION_MAJOR , [ Major version] )
683698AC_DEFINE ( CLIENT_VERSION_MINOR , _CLIENT_VERSION_MINOR , [ Minor version] )
0 commit comments