autogen.sh 484 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. # Run this to generate all the initial makefiles, etc.
  3. errtrace() {
  4. echo 1>&2 \
  5. "build requires autoconf automake libtool m4 pcre pcre-devel pkg-config"
  6. }
  7. trap errtrace ERR
  8. set -e
  9. if [ ! -f configure.ac -o ! -f COPYING ]; then
  10. echo "Doesn't look like you're in the source directory" >&2
  11. exit 1
  12. fi
  13. # old autoreconf/aclocal versions fail hard if m4 doesn't exist
  14. mkdir -p m4
  15. autoreconf --force --install
  16. echo "Now type './configure ...' and 'make' to compile."