*** 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
65545721
ML
33./guile-aclocal.sh
34
fc4fc6f6
RB
35######################################################################
36### Libtool setup.
37
38# Get a clean version.
39rm -rf libltdl
40libtoolize --force --copy --automake --ltdl
41
42# Make sure we use a ./configure.in compatible autoconf in ./libltdl/
43mv libltdl/configure.in libltdl/configure.tmp
44echo 'AC_PREREQ(2.50)' > libltdl/configure.in
45cat libltdl/configure.tmp >> libltdl/configure.in
46rm libltdl/configure.tmp
47######################################################################
48
ee31ced2 49autoheader
0b49b6ae 50autoconf
1901873f
MV
51
52# Automake has a bug that will let it only add one copy of a missing
53# file. We need two mdate-sh, tho, one in doc/ref/ and one in
54# doc/tutorial/. We run automake twice as a workaround.
55
56automake --add-missing
3925e507 57automake --add-missing
0b49b6ae 58
cebb2d1f
MV
59# Make sure that libltdl uses the same autoconf version as the rest.
60#
fc4fc6f6
RB
61echo "libltdl..."
62(cd libltdl && autoconf)
63(cd libltdl && automake --gnu --add-missing)
cebb2d1f 64
fc4fc6f6
RB
65echo "guile-readline..."
66(cd guile-readline && ./autogen.sh)
9e74987f
MV
67
68echo "Now run configure and make."
f2ae4555 69echo "You must pass the \`--enable-maintainer-mode' option to configure."
3be5cdf2
TTN
70
71# autogen.sh ends here