configfrag.ac 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. dnl Configure fragment for the Xen platform.
  2. dnl Copyright (C) 2007 Free Software Foundation, Inc.
  3. dnl This program is free software; you can redistribute it and/or modify it
  4. dnl under the terms of the GNU General Public License as published by the
  5. dnl Free Software Foundation; either version 2, or (at your option) any later
  6. dnl version.
  7. dnl
  8. dnl This program is distributed in the hope that it will be useful, but
  9. dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  10. dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. dnl for more details.
  12. dnl
  13. dnl You should have received a copy of the GNU General Public License along
  14. dnl with this program; if not, write to the Free Software Foundation, Inc.,
  15. dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16. #
  17. # Xen platform.
  18. #
  19. [if [ "$host_platform" = xen ]; then]
  20. AC_DEFINE([MACH_XEN], [], [build a MachXen kernel])
  21. AC_DEFINE([MACH_HYP], [], [be a hypervisor guest])
  22. AM_CONDITIONAL([PLATFORM_xen], [true])
  23. dnl These are experimental
  24. AC_ARG_ENABLE([pseudo-phys],
  25. AS_HELP_STRING([--disable-pseudo-phys], [Pseudo physical pages support]))
  26. [if [ x"$enable_pseudo_phys" = xno ]; then]
  27. AM_CONDITIONAL([enable_pseudo_phys], [false])
  28. [else]
  29. AC_DEFINE([MACH_PSEUDO_PHYS], [], [Enable pseudo physical memory support])
  30. AM_CONDITIONAL([enable_pseudo_phys], [true])
  31. [fi]
  32. AC_ARG_ENABLE([pv-pagetables],
  33. AS_HELP_STRING([--disable-pv-pagetables], [Paravirtualized page tables support]))
  34. [if [ x"$enable_pv_pagetables" = xno ]; then]
  35. AM_CONDITIONAL([enable_pv_pagetables], [false])
  36. [else]
  37. AC_DEFINE([MACH_PV_PAGETABLES], [], [Enable paravirtualized page tables support])
  38. AM_CONDITIONAL([enable_pv_pagetables], [true])
  39. [fi]
  40. AC_ARG_ENABLE([pv-descriptors],
  41. AS_HELP_STRING([--disable-pv-descriptors], [Paravirtualized segment descriptors support]))
  42. [if [ x"$enable_pv_descriptors" = xno ]; then]
  43. AM_CONDITIONAL([enable_pv_descriptors], [false])
  44. [else]
  45. AC_DEFINE([MACH_PV_DESCRIPTORS], [], [Enable paravirtualized segment descriptors support])
  46. AM_CONDITIONAL([enable_pv_descriptors], [true])
  47. [fi]
  48. AC_ARG_ENABLE([ring1],
  49. AS_HELP_STRING([--disable-ring1], [ring1 kernel support]))
  50. [if [ x"$enable_ring1" = xno ]; then]
  51. AM_CONDITIONAL([enable_ring1], [false])
  52. [else]
  53. AC_DEFINE([MACH_RING1], [], [Enable ring1 kernel support])
  54. AM_CONDITIONAL([enable_ring1], [true])
  55. [fi]
  56. [else]
  57. AM_CONDITIONAL([PLATFORM_xen], [false])
  58. AM_CONDITIONAL([enable_pseudo_phys], [false])
  59. AM_CONDITIONAL([enable_pv_pagetables], [false])
  60. AM_CONDITIONAL([enable_pv_descriptors], [false])
  61. AM_CONDITIONAL([enable_ring1], [false])
  62. [fi]
  63. dnl Local Variables:
  64. dnl mode: autoconf
  65. dnl End: