*** empty log message ***
[bpt/guile.git] / autogen.sh
CommitLineData
5d94b2fe 1#!/bin/sh
3be5cdf2 2# Usage: sh -x ./autogen.sh [WORKBOOK]
5d94b2fe 3
fc4fc6f6
RB
4set -e
5
0b49b6ae 6[ -f GUILE-VERSION ] || {
3be5cdf2 7 echo "autogen.sh: run this command only at the top of guile-core."
0b49b6ae
JB
8 exit 1
9}
10
3be5cdf2
TTN
11######################################################################
12### Find workbook and make symlinks.
13
14workbook=../workbook # assume "cvs co hack"
15test x$1 = x || workbook=$1
16if [ ! -d $workbook ] ; then
17 echo "ERROR: could not find workbook dir"
18 echo " re-run like so: $0 WORKBOOK"
19 exit 1
20fi
21: found workbook at $workbook
22workbook=`(cd $workbook ; pwd)`
23
24workbookdistfiles="ANON-CVS HACKING INSTALL SNAPSHOTS"
25for f in $workbookdistfiles ; do
26 rm -f $f
27 ln -s $workbook/build/dist-files/$f $f
28done
29rm -f examples/example.gdbinit
30ln -s $workbook/build/dist-files/.gdbinit examples/example.gdbinit
31######################################################################
32
af304e84
MV
33# Make sure this matches the ACLOCAL invokation in Makefile.am
34
65545721
ML
35./guile-aclocal.sh
36
fc4fc6f6
RB
37######################################################################
38### Libtool setup.
39
40# Get a clean version.
41rm -rf libltdl
42libtoolize --force --copy --automake --ltdl
43
44# Make sure we use a ./configure.in compatible autoconf in ./libltdl/
45mv libltdl/configure.in libltdl/configure.tmp
46echo 'AC_PREREQ(2.50)' > libltdl/configure.in
47cat libltdl/configure.tmp >> libltdl/configure.in
48rm libltdl/configure.tmp
49######################################################################
50
ee31ced2 51autoheader
0b49b6ae 52autoconf
1901873f
MV
53
54# Automake has a bug that will let it only add one copy of a missing
55# file. We need two mdate-sh, tho, one in doc/ref/ and one in
56# doc/tutorial/. We run automake twice as a workaround.
57
58automake --add-missing
3925e507 59automake --add-missing
0b49b6ae 60
cebb2d1f
MV
61# Make sure that libltdl uses the same autoconf version as the rest.
62#
fc4fc6f6
RB
63echo "libltdl..."
64(cd libltdl && autoconf)
65(cd libltdl && automake --gnu --add-missing)
cebb2d1f 66
fc4fc6f6
RB
67echo "guile-readline..."
68(cd guile-readline && ./autogen.sh)
9e74987f
MV
69
70echo "Now run configure and make."
f2ae4555 71echo "You must pass the \`--enable-maintainer-mode' option to configure."
3be5cdf2
TTN
72
73# autogen.sh ends here