1 #!/bin/sh
2 set -e
3 4 # This script creates (or regenerates) `configure` (as well as `aclocal.m4`
5 # file, `config.h.in` file, `Makefile.in` file, etc.) missing in the source
6 # repository.
7 #
8 # If you compile from a distribution tarball, you can skip this. Otherwise,
9 # make sure that you have Autoconf, Automake and Libtool installed
10 # on your system, and that the corresponding "*.m4" files are visible
11 # to the `aclocal`. The latter can be achieved by using packages shipped by
12 # your OS, or by installing custom versions of all four packages to the same
13 # prefix. Otherwise, you may need to invoke `autoreconf` with the appropriate
14 # `-I` options to locate the required "*.m4" files.
15 16 # Install `libtool.m4` and `ltmain.sh` files in the build tree. This command
17 # is needed if `autoreconf` and `libtoolize` are available from the different
18 # directories.
19 # Note: `libtoolize` might be missing on some platforms.
20 if (type libtoolize) > /dev/null 2>&1; then
21 libtoolize -i -c
22 else
23 echo "libtoolize is not found, ignoring!"
24 fi
25 26 autoreconf -i
27 28 echo
29 echo "Ready to run './configure'."
30