configure.ac 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. dnl Configure script for GRUB.
  2. dnl Copyright 1999,2000,2001,2002,2003,2004,2005,2008,2009,2010 Free Software Foundation, Inc.
  3. dnl Permission to use, copy, modify and distribute this software and its
  4. dnl documentation is hereby granted, provided that both the copyright
  5. dnl notice and this permission notice appear in all copies of the
  6. dnl software, derivative works or modified versions, and any portions
  7. dnl thereof, and that both notices appear in supporting documentation.
  8. dnl
  9. dnl THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS
  10. dnl "AS IS" CONDITION. THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY
  11. dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
  12. dnl USE OF THIS SOFTWARE.
  13. AC_PREREQ(2.59)
  14. AC_INIT([Multiboot], [0.6.96], [bug-grub@gnu.org])
  15. AC_CONFIG_SRCDIR([doc/multiboot.texi])
  16. AC_CONFIG_HEADER([config.h])
  17. AM_INIT_AUTOMAKE
  18. #
  19. # Programs
  20. #
  21. AC_CHECK_TOOL(CC, gcc)
  22. AC_PROG_CC
  23. AM_PROG_AS
  24. # We need this for older versions of Autoconf.
  25. _AM_DEPENDENCIES(CC)
  26. dnl Because recent automake complains about AS, set it here.
  27. CCAS="$CC"
  28. AC_SUBST(CCAS)
  29. dnl Build the example Multiboot kernel.
  30. AC_ARG_ENABLE(example-kernel,
  31. [ --enable-example-kernel
  32. build the example Multiboot kernel])
  33. AM_CONDITIONAL(BUILD_EXAMPLE_KERNEL, test "x$enable_example_kernel" = xyes)
  34. dnl Because recent automake complains about CCASFLAGS, set it here.
  35. CCASFLAGS='$(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)'
  36. AC_SUBST(CCASFLAGS)
  37. AC_ARG_ENABLE(mbchk,
  38. [ --enable-mbchk
  39. build the mbchk (multiboot checker)])
  40. AM_CONDITIONAL(BUILD_MBCHK, test "x$enable_mbchk" = xyes)
  41. if test "x$enable_mbchk" = xyes; then
  42. AC_PATH_PROG(HELP2MAN, help2man)
  43. fi
  44. AM_CONDITIONAL([COND_MAN_PAGES], [test x$enable_mbchk = xyes -a x$HELP2MAN != x])
  45. dnl Output.
  46. AC_CONFIG_FILES([Makefile doc/Makefile util/Makefile])
  47. AC_OUTPUT