bootstrap 743 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. set -e
  3. echo "Initial preparation...this can take awhile, so sit tight..."
  4. rm -f Makefile.am
  5. perl -w -e 'use File::Copy; exit 0 if (-f "Makefile.am"); my $x = `automake --version |head -n 1`; chomp($x); $x = 0.0 if ($x !~ s/\A.*?(\d+\.\d+).*\Z/$1/); if ($x < 1.5) { copy("./Makefile.am.oldautomake", "./Makefile.am"); } else { copy("./Makefile.am.newautomake", "./Makefile.am"); }'
  6. aclocal
  7. # MacOS X renames GNU libtool to "glibtool", since they have something
  8. # else called "libtool" already...
  9. if [ -x /usr/bin/glibtoolize ]; then
  10. glibtoolize --automake --copy --force
  11. else
  12. libtoolize --automake --copy --force
  13. fi
  14. autoheader
  15. automake --foreign --add-missing --copy
  16. autoconf
  17. echo "You are now ready to run ./configure ..."