custom_help.m4 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. # _AC_INIT_HELP
  2. # -------------
  3. # Handle the `configure --help' message.
  4. m4_define([_AC_INIT_HELP],
  5. [m4_divert_push([HELP_BEGIN])dnl
  6. #
  7. # Report the --help message.
  8. #
  9. if test "$ac_init_help" = "long"; then
  10. # Omit some internal or obsolete options to make the list less imposing.
  11. # This message is too long to be a string in the A/UX 3.1 sh.
  12. cat <<_ACEOF
  13. \`configure' configures m4_ifset([AC_PACKAGE_STRING],
  14. [AC_PACKAGE_STRING],
  15. [this package]) to adapt to many kinds of systems.
  16. Usage: $[0] [[OPTION]]... [[VAR=VALUE]]...
  17. [To assign environment variables (e.g., CC, CFLAGS...), specify them as
  18. VAR=VALUE. See below for descriptions of some of the useful variables.
  19. Defaults for the options are specified in brackets.
  20. Configuration:
  21. -h, --help display this help and exit
  22. --help=short display options specific to this package
  23. --help=recursive display the short help of all the included packages
  24. -V, --version display version information and exit
  25. -q, --quiet, --silent do not print \`checking ...' messages
  26. --cache-file=FILE cache test results in FILE [disabled]
  27. -C, --config-cache alias for \`--cache-file=config.cache'
  28. -n, --no-create do not create output files
  29. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  30. Installation directories:
  31. --prefix=PREFIX install architecture-independent files in PREFIX
  32. [/usr/local/nagios]
  33. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  34. [PREFIX]
  35. By default, \`make install' will install all the files in
  36. \`/usr/local/nagios/bin', \`/usr/local/nagios/lib' etc. You can specify
  37. an installation prefix other than \`/usr/local/nagios' using \`--prefix',
  38. for instance \`--prefix=$HOME'.
  39. For better control, use the options below.
  40. Fine tuning of the installation directories:
  41. --bindir=DIR user executables [EPREFIX/bin]
  42. --sbindir=DIR system admin executables [EPREFIX/sbin]
  43. --libexecdir=DIR plugins, brokers, CGI [EPREFIX/libexec]
  44. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  45. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  46. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  47. --datadir=DIR r/o arch.-independent data [DATAROOTDIR/PKG_NAME]
  48. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  49. _ACEOF
  50. cat <<\_ACEOF]
  51. m4_divert_pop([HELP_BEGIN])dnl
  52. dnl The order of the diversions here is
  53. dnl - HELP_BEGIN
  54. dnl which may be extended by extra generic options such as with X or
  55. dnl AC_ARG_PROGRAM. Displayed only in long --help.
  56. dnl
  57. dnl - HELP_CANON
  58. dnl Support for cross compilation (--build, --host and --target).
  59. dnl Display only in long --help.
  60. dnl
  61. dnl - HELP_ENABLE
  62. dnl which starts with the trailer of the HELP_BEGIN, HELP_CANON section,
  63. dnl then implements the header of the non generic options.
  64. dnl
  65. dnl - HELP_WITH
  66. dnl
  67. dnl - HELP_VAR
  68. dnl
  69. dnl - HELP_VAR_END
  70. dnl
  71. dnl - HELP_END
  72. dnl initialized below, in which we dump the trailer (handling of the
  73. dnl recursion for instance).
  74. m4_divert_push([HELP_ENABLE])dnl
  75. _ACEOF
  76. fi
  77. if test -n "$ac_init_help"; then
  78. m4_ifset([AC_PACKAGE_STRING],
  79. [ case $ac_init_help in
  80. short | recursive ) echo "Configuration of AC_PACKAGE_STRING:";;
  81. esac])
  82. cat <<\_ACEOF
  83. m4_divert_pop([HELP_ENABLE])dnl
  84. m4_divert_push([HELP_END])dnl
  85. Report bugs to m4_ifset([AC_PACKAGE_BUGREPORT], [<AC_PACKAGE_BUGREPORT>],
  86. [the package provider]).dnl
  87. m4_ifdef([AC_PACKAGE_NAME], [m4_ifset([AC_PACKAGE_URL], [
  88. AC_PACKAGE_NAME home page: <AC_PACKAGE_URL>.])dnl
  89. m4_if(m4_index(m4_defn([AC_PACKAGE_NAME]), [GNU ]), [0], [
  90. General help using GNU software: <http://www.gnu.org/gethelp/>.])])
  91. _ACEOF
  92. ac_status=$?
  93. fi
  94. if test "$ac_init_help" = "recursive"; then
  95. # If there are subdirs, report their specific --help.
  96. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  97. test -d "$ac_dir" ||
  98. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  99. continue
  100. _AC_SRCDIRS(["$ac_dir"])
  101. cd "$ac_dir" || { ac_status=$?; continue; }
  102. # Check for guested configure.
  103. if test -f "$ac_srcdir/configure.gnu"; then
  104. echo &&
  105. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  106. elif test -f "$ac_srcdir/configure"; then
  107. echo &&
  108. $SHELL "$ac_srcdir/configure" --help=recursive
  109. else
  110. AC_MSG_WARN([no configuration information is in $ac_dir])
  111. fi || ac_status=$?
  112. cd "$ac_pwd" || { ac_status=$?; break; }
  113. done
  114. fi
  115. test -n "$ac_init_help" && exit $ac_status
  116. m4_divert_pop([HELP_END])dnl
  117. ])# _AC_INIT_HELP