diff --git a/configure.ac b/configure.ac index ac2c07f01025354ecfe0285fd968e958cafc1f00..d57f696e9c661a5168ba9c4af83f59269ba4b1e6 100644 --- a/configure.ac +++ b/configure.ac @@ -1677,6 +1677,26 @@ case "$with_potential" in ;; esac +# Star formation +AC_ARG_WITH([star-formation], + [AS_HELP_STRING([--with-star-formation=<sfm>], + [star formation @<:@none, schaye08, default: none@:>@] + )], + [with_star_formation="$withval"], + [with_star_formation="none"] +) +case "$with_star_formation" in + none) + AC_DEFINE([STAR_FORMATION_NONE], [1], [No star formation]) + ;; + schaye08) + AC_DEFINE([STAR_FORMATION_SCHAYE], [1], [Schaye and Dalla Vecchia (2008) star formation]) + ;; + *) + AC_MSG_ERROR([Unknown star formation model]) + ;; +esac + # Gravity multipole order AC_ARG_WITH([multipole-order], [AS_HELP_STRING([--with-multipole-order=<order>], @@ -1768,11 +1788,11 @@ AC_MSG_RESULT([ Make gravity glass : $gravity_glass_making External potential : $with_potential - Cooling function : $with_cooling - Chemistry : $with_chemistry - Tracers : $with_tracers - Stellar model : $with_stars - Feedback model : $with_feedback + Cooling function : $with_cooling + Chemistry : $with_chemistry + Stellar model : $with_stars + Star formation model : $with_star_formation + Feedback model : $with_feedback Individual timers : $enable_timers Task debugging : $enable_task_debugging