s48_pick_gc.m4 861 B

12345678910111213141516171819202122232425262728
  1. ### s48_pick_gc.m4 --- S48_PICK_GC macro -*- Autoconf -*-
  2. # serial 1
  3. dnl
  4. dnl
  5. dnl
  6. AC_DEFUN([S48_PICK_GC], [dnl
  7. AC_ARG_ENABLE([gc],
  8. [AC_HELP_STRING([--enable-gc=GC],
  9. [choose garbage collector (twospace, bibop), default is bibop])],
  10. [dnl
  11. case $enableval in
  12. twospace )
  13. AC_DEFINE([S48_GC_TWOSPACE], 1, [Define if building with two-space GC.])
  14. GC_OBJS='${GC_TWOSPACE_OBJS}' ;;
  15. bibop )
  16. AC_DEFINE([S48_GC_BIBOP], 1, [Define if building with BIBOP GC.])
  17. GC_OBJS='${GC_BIBOP_OBJS}' ;;
  18. * ) AC_MSG_ERROR([Invalid argument to --enable-gc]) ;;
  19. esac
  20. ],
  21. [AC_DEFINE([S48_GC_BIBOP], 1, [Define if building with BIBOP GC.])
  22. GC_OBJS='${GC_BIBOP_OBJS}'])dnl
  23. ])dnl
  24. AC_SUBST(S48_GC_TWOSPACE)
  25. AC_SUBST(S48_GC_BIBOP)
  26. ])
  27. ### s48_pick_gc.m4 ends here