bootstrap.conf 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # Bootstrap configuration.
  2. # Copyright (C) 2006-2015 Free Software Foundation, Inc.
  3. # This program is free software: you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; either version 3 of the License, or
  6. # (at your option) any later version.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. # You should have received a copy of the GNU General Public License
  12. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. # gnulib library name
  14. gnulib_name=libgnu
  15. # gnulib modules used by this package.
  16. gnulib_modules="
  17. argp
  18. argp-version-etc
  19. configmake
  20. fdl-1.3
  21. getaddrinfo
  22. gettext
  23. git-version-gen
  24. gitlog-to-changelog
  25. warnings
  26. progname
  27. readme-release
  28. regex
  29. snprintf
  30. strcase
  31. test-framework-sh
  32. version-etc-fsf
  33. xalloc-die
  34. "
  35. # Additional xgettext options to use. Use "\\\newline" to break lines.
  36. XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
  37. --from-code=UTF-8\\\
  38. --flag=asprintf:2:c-format --flag=vasprintf:2:c-format\\\
  39. --flag=asnprintf:3:c-format --flag=vasnprintf:3:c-format\\\
  40. --flag=wrapf:1:c-format\\\
  41. '
  42. # If "AM_GNU_GETTEXT(external" or "AM_GNU_GETTEXT([external]"
  43. # appears in configure.ac, exclude some unnecessary files.
  44. # Without grep's -E option (not portable enough, pre-configure),
  45. # the following test is ugly. Also, this depends on the existence
  46. # of configure.ac, not the obsolescent-named configure.in. But if
  47. # you're using this infrastructure, you should care about such things.
  48. gettext_external=0
  49. grep '^[ ]*AM_GNU_GETTEXT(external\>' configure.ac > /dev/null &&
  50. gettext_external=1
  51. grep '^[ ]*AM_GNU_GETTEXT(\[external\]' configure.ac > /dev/null &&
  52. gettext_external=1
  53. if test $gettext_external = 1; then
  54. # Gettext supplies these files, but we don't need them since
  55. # we don't have an intl subdirectory.
  56. excluded_files='
  57. m4/glibc2.m4
  58. m4/intdiv0.m4
  59. m4/lcmessage.m4
  60. m4/lock.m4
  61. m4/printf-posix.m4
  62. m4/size_max.m4
  63. m4/uintmax_t.m4
  64. m4/ulonglong.m4
  65. m4/visibility.m4
  66. m4/xsize.m4
  67. '
  68. fi
  69. # Build prerequisites
  70. buildreq="\
  71. autoconf 2.59
  72. automake 1.9.6
  73. git 1.5.5
  74. tar -
  75. "
  76. bootstrap_post_import_hook ()
  77. {
  78. # Automake requires that ChangeLog exist.
  79. touch ChangeLog || return 1
  80. }
  81. bootstrap_epilogue ()
  82. {
  83. # Adapt package name in release process instructions.
  84. perl -pi -e "s/\@PACKAGE\@/$package/g" README-release
  85. }