autogen.sh 897 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. rm -f ltconfig ltmain.sh config.cache aclocal.m4 config.guess config.sub
  3. # remove the autoconf cache
  4. rm -rf autom4te*.cache
  5. # create a .version file for configure.in
  6. if test ! -f .version; then
  7. # Building from SVN rather than in a release
  8. echo 0.0.0-dev > .version
  9. # for the documentation:
  10. date +"%e %B %Y" | tr -d '\n' > doc/date.xml
  11. echo 0.0.0-dev > doc/version.xml
  12. fi
  13. set -e
  14. printf "libtoolize... "
  15. : "${LIBTOOLIZE:="$(command -v libtoolize || command -v glibtoolize)"}"
  16. if ${LIBTOOLIZE} --help | grep -- --install > /dev/null; then
  17. ${LIBTOOLIZE} --copy --force --install >/dev/null;
  18. else
  19. ${LIBTOOLIZE} --copy --force >/dev/null
  20. fi
  21. printf "aclocal... "
  22. ${ACLOCAL:-aclocal} -I macros
  23. printf "autoheader... "
  24. ${AUTOHEADER:-autoheader} -Wall
  25. printf "autoconf... "
  26. ${AUTOCONF:-autoconf} -Wall -Werror
  27. echo okay.
  28. # remove the autoconf cache
  29. rm -rf autom4te*.cache