1 |
frodo |
116 |
#!/bin/sh |
2 |
|
|
# |
3 |
|
|
# Run this before configure |
4 |
|
|
# |
5 |
frodo |
118 |
# This file blatantly ripped off from subversion and Abiword |
6 |
frodo |
116 |
|
7 |
frodo |
152 |
# To run this file, you need: |
8 |
|
|
# automake >= 1.6 (tested with 1.6.3, 1.7.8; older will probably not work) |
9 |
|
|
# libtool >= 1.5 (tested with 1.5; older will probably not work) |
10 |
|
|
# autoconf >= 2.50 (tested with 2.50, 2.57; older will not work) |
11 |
|
|
|
12 |
|
|
# Set this to a specific version if you want to use a non-standard automake |
13 |
|
|
#AUTOMAKE_VERSION=-1.6 |
14 |
|
|
# Set this to a specific version if you want to use a non-standard autoconf |
15 |
|
|
AUTOCONF_VERSION=2.50 |
16 |
|
|
|
17 |
frodo |
116 |
set -e |
18 |
|
|
|
19 |
|
|
echo "Libtool..." |
20 |
|
|
libtoolize --copy --force |
21 |
|
|
|
22 |
|
|
# Produce aclocal.m4, so autoconf gets the automake macros it needs |
23 |
|
|
echo "Creating aclocal.m4..." |
24 |
frodo |
152 |
aclocal$AUTOMAKE_VERSION |
25 |
frodo |
116 |
|
26 |
frodo |
152 |
autoheader$AUTOCONF_VERSION |
27 |
frodo |
116 |
|
28 |
|
|
# Produce all the `Makefile.in's, verbosely, and create neat missing things |
29 |
|
|
# like `libtool', `install-sh', etc. |
30 |
frodo |
152 |
automake$AUTOMAKE_VERSION --add-missing --verbose --gnu --copy --force-missing |
31 |
frodo |
116 |
|
32 |
|
|
# If there's a config.cache file, we may need to delete it. |
33 |
|
|
# If we have an existing configure script, save a copy for comparison. |
34 |
|
|
if [ -f config.cache ] && [ -f configure ]; then |
35 |
|
|
cp configure configure.$$.tmp |
36 |
|
|
fi |
37 |
|
|
|
38 |
|
|
# Produce ./configure |
39 |
|
|
echo "Creating configure..." |
40 |
frodo |
152 |
autoconf$AUTOCONF_VERSION |
41 |
frodo |
116 |
|
42 |
|
|
echo "" |
43 |
|
|
echo "You can run ./configure now." |
44 |
|
|
echo "" |
45 |
|
|
|