diff --git a/configure.ac b/configure.ac index aa2d3136078a7866598470878eaf58b886c923a6..fe4a261e53d71f5981e0db7d8d4eb51c06865b10 100644 --- a/configure.ac +++ b/configure.ac @@ -910,6 +910,22 @@ fi AC_SUBST([VELOCIRAPTOR_LIBS]) AM_CONDITIONAL([HAVEVELOCIRAPTOR],[test -n "$VELOCIRAPTOR_LIBS"]) +# Check for dummy VELOCIraptor. +AC_ARG_ENABLE([dummy-velociraptor], + [AS_HELP_STRING([--enable-dummy-velociraptor], + [Enable dummy velociraptor compilation @<:@yes/no@:>@] + )], + [enable_dummy_velociraptor="$enableval"], + [enable_dummy_velociraptor="no"] +) + +if test "$enable_dummy_velociraptor" = "yes"; then + have_velociraptor="yes" + + AC_DEFINE(HAVE_VELOCIRAPTOR,1,[The VELOCIraptor library appears to be present.]) + AC_DEFINE(HAVE_DUMMY_VELOCIRAPTOR,1,[The dummy VELOCIraptor library is present.]) +fi + # Check for floating-point execeptions AC_CHECK_FUNC(feenableexcept, AC_DEFINE([HAVE_FE_ENABLE_EXCEPT],[1], [Defined if the floating-point exception can be enabled using non-standard GNU functions.])) diff --git a/src/Makefile.am b/src/Makefile.am index 68b54c71dca316ca25d49a4d46b9083ace6ff7f5..8b27d29d01d72e49527c95a7c59ed846f9fe68c2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -61,7 +61,7 @@ AM_SOURCES = space.c runner.c queue.c task.c cell.c engine.c \ part_type.c xmf.c gravity_properties.c gravity.c \ collectgroup.c hydro_space.c equation_of_state.c \ chemistry.c cosmology.c restart.c mesh_gravity.c velociraptor_interface.c \ - outputlist.c + outputlist.c velociraptor_dummy.c # Include files for distribution, not installation. nobase_noinst_HEADERS = align.h approx_math.h atomic.h barrier.h cycle.h error.h inline.h kernel_hydro.h kernel_gravity.h \