* __scm.h, eval.c, eval.h: Removed compile time option
[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
0859b96a
TTN
31
32# TODO: This should be moved to dist-guile
33mscripts=$workbook/../scripts
34rm -f BUGS
35$mscripts/render-bugs > BUGS
36
3be5cdf2
TTN
37######################################################################
38
af304e84
MV
39# Make sure this matches the ACLOCAL invokation in Makefile.am
40
65545721
ML
41./guile-aclocal.sh
42
fc4fc6f6
RB
43######################################################################
44### Libtool setup.
45
46# Get a clean version.
47rm -rf libltdl
48libtoolize --force --copy --automake --ltdl
49
50# Make sure we use a ./configure.in compatible autoconf in ./libltdl/
51mv libltdl/configure.in libltdl/configure.tmp
52echo 'AC_PREREQ(2.50)' > libltdl/configure.in
53cat libltdl/configure.tmp >> libltdl/configure.in
54rm libltdl/configure.tmp
55######################################################################
56
ee31ced2 57autoheader
0b49b6ae 58autoconf
1901873f
MV
59
60# Automake has a bug that will let it only add one copy of a missing
61# file. We need two mdate-sh, tho, one in doc/ref/ and one in
62# doc/tutorial/. We run automake twice as a workaround.
63
64automake --add-missing
3925e507 65automake --add-missing
0b49b6ae 66
cebb2d1f
MV
67# Make sure that libltdl uses the same autoconf version as the rest.
68#
fc4fc6f6
RB
69echo "libltdl..."
70(cd libltdl && autoconf)
71(cd libltdl && automake --gnu --add-missing)
cebb2d1f 72
fc4fc6f6
RB
73echo "guile-readline..."
74(cd guile-readline && ./autogen.sh)
9e74987f
MV
75
76echo "Now run configure and make."
f2ae4555 77echo "You must pass the \`--enable-maintainer-mode' option to configure."
3be5cdf2
TTN
78
79# autogen.sh ends here