Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 18 gadiem
pirms 18 gadiem
pirms 18 gadiem
pirms 18 gadiem
pirms 18 gadiem
pirms 18 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. #! /bin/sh
  2. # bootstrap: the ultimate bootstrap/autogen.sh script for autotools projects
  3. # Copyright (c) 2002-2007 Sam Hocevar <sam@zoy.org>
  4. #
  5. # This program is free software. It comes without any warranty, to
  6. # the extent permitted by applicable law. You can redistribute it
  7. # and/or modify it under the terms of the Do What The Fuck You Want
  8. # To Public License, Version 2, as published by Sam Hocevar. See
  9. # http://sam.zoy.org/wtfpl/COPYING for more details.
  10. #
  11. # The latest version of this script can be found at the following place:
  12. # http://sam.zoy.org/autotools/
  13. # Die if an error occurs
  14. set -e
  15. # Guess whether we are using configure.ac or configure.in
  16. if test -f configure.ac; then
  17. conffile="configure.ac"
  18. elif test -f configure.in; then
  19. conffile="configure.in"
  20. else
  21. echo "$0: could not find configure.ac or configure.in"
  22. exit 1
  23. fi
  24. # Check for needed features
  25. auxdir="`sed -ne 's/^[ \t]*A._CONFIG_AUX_DIR *([[ ]*\([^] )]*\).*/\1/p' $conffile`"
  26. libtool="`grep -q '^[ \t]*A._PROG_LIBTOOL' $conffile && echo yes || echo no`"
  27. header="`grep -q '^[ \t]*A._CONFIG_HEADER' $conffile && echo yes || echo no`"
  28. aclocalflags="`sed -ne 's/^[ \t]*ACLOCAL_AMFLAGS[ \t]*=//p' Makefile.am`"
  29. # Check for automake
  30. amvers="no"
  31. for n in 10 9 8 7 6 5; do
  32. for v in "-1.${n}" "1${n}"; do
  33. if automake${v} --version >/dev/null 2>&1; then
  34. amvers="${v}"
  35. break
  36. fi
  37. done
  38. done
  39. if test "${amvers}" = "no" && automake --version > /dev/null 2>&1; then
  40. amvers="`automake --version | sed -e '1s/[^0-9]*//' -e q`"
  41. if expr "$amvers" "<" "1.5" > /dev/null 2>&1; then
  42. amvers="no"
  43. else
  44. amvers=""
  45. fi
  46. fi
  47. if test "$amvers" = "no"; then
  48. echo "$0: you need automake version 1.5 or later"
  49. exit 1
  50. fi
  51. # Check for autoconf
  52. acvers="no"
  53. for v in "" "259" "253"; do
  54. if autoconf${v} --version >/dev/null 2>&1; then
  55. acvers="${v}"
  56. break
  57. fi
  58. done
  59. if test "$acvers" = "no"; then
  60. echo "$0: you need autoconf"
  61. exit 1
  62. fi
  63. # Check for libtool
  64. if test "$libtool" = "yes"; then
  65. libtoolize="no"
  66. if glibtoolize --version >/dev/null 2>&1; then
  67. libtoolize="glibtoolize"
  68. else
  69. for v in "16" "15" "" "14"; do
  70. if libtoolize${v} --version >/dev/null 2>&1; then
  71. libtoolize="libtoolize${v}"
  72. break
  73. fi
  74. done
  75. fi
  76. if test "$libtoolize" = "no"; then
  77. echo "$0: you need libtool"
  78. exit 1
  79. fi
  80. fi
  81. # Remove old cruft
  82. for x in aclocal.m4 configure config.guess config.log config.sub config.cache config.h.in config.h compile libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh; do rm -f $x autotools/$x; if test -n "$auxdir"; then rm -f "$auxdir/$x"; fi; done
  83. rm -Rf autom4te.cache
  84. if test -n "$auxdir"; then
  85. if test ! -d "$auxdir"; then
  86. mkdir "$auxdir"
  87. fi
  88. aclocalflags="${aclocalflags} -I $auxdir -I ."
  89. fi
  90. # Explain what we are doing from now
  91. set -x
  92. # Bootstrap package
  93. if test "$libtool" = "yes"; then
  94. ${libtoolize} --copy --force
  95. if test -n "$auxdir" -a ! "$auxdir" = "." -a -f "ltmain.sh"; then
  96. echo "$0: working around a minor libtool issue"
  97. mv ltmain.sh "$auxdir/"
  98. fi
  99. fi
  100. aclocal${amvers} ${aclocalflags}
  101. autoconf${acvers}
  102. if test "$header" = "yes"; then
  103. autoheader${acvers}
  104. fi
  105. #add --include-deps if you want to bootstrap with any other compiler than gcc
  106. #automake${amvers} --add-missing --copy --include-deps
  107. automake${amvers} --foreign --add-missing --copy
  108. # Remove cruft that we no longer want
  109. rm -Rf autom4te.cache