1 |
#!/bin/sh |
2 |
# |
3 |
# Run this before configure |
4 |
# |
5 |
# This file blatantly ripped off from subversion. |
6 |
# |
7 |
# Note: this dependency on Perl is fine: only SVN developers use autogen.sh |
8 |
# and we can state that dev people need Perl on their machine |
9 |
# |
10 |
|
11 |
set -e |
12 |
|
13 |
echo "Libtool..." |
14 |
libtoolize --copy --force |
15 |
|
16 |
# Produce aclocal.m4, so autoconf gets the automake macros it needs |
17 |
echo "Creating aclocal.m4..." |
18 |
aclocal |
19 |
|
20 |
autoheader |
21 |
|
22 |
# Produce all the `Makefile.in's, verbosely, and create neat missing things |
23 |
# like `libtool', `install-sh', etc. |
24 |
automake --add-missing --verbose --gnu --copy |
25 |
|
26 |
# If there's a config.cache file, we may need to delete it. |
27 |
# If we have an existing configure script, save a copy for comparison. |
28 |
if [ -f config.cache ] && [ -f configure ]; then |
29 |
cp configure configure.$$.tmp |
30 |
fi |
31 |
|
32 |
# Produce ./configure |
33 |
echo "Creating configure..." |
34 |
autoconf |
35 |
|
36 |
echo "" |
37 |
echo "You can run ./configure now." |
38 |
echo "" |
39 |
|