2 # Usage: sh -x ./autogen.sh [WORKBOOK]
6 [ -f GUILE-VERSION
] ||
{
7 echo "autogen.sh: run this command only at the top of guile-core."
11 ######################################################################
12 ### Find workbook and make symlinks.
14 workbook
=..
/workbook
# assume "cvs co hack"
15 test x
$1 = x || workbook
=$1
16 if [ ! -d $workbook ] ; then
17 echo "ERROR: could not find workbook dir"
18 echo " re-run like so: $0 WORKBOOK"
21 : found workbook
at $workbook
22 workbook
=`(cd $workbook ; pwd)`
24 workbookdistfiles
="ANON-CVS HACKING INSTALL SNAPSHOTS"
25 for f
in $workbookdistfiles ; do
27 ln -s $workbook/build
/dist-files
/$f $f
29 rm -f examples
/example.gdbinit
30 ln -s $workbook/build
/dist-files
/.gdbinit examples
/example.gdbinit
31 ######################################################################
35 ######################################################################
38 # Get a clean version.
40 libtoolize
--force --copy --automake --ltdl
42 # Make sure we use a ./configure.in compatible autoconf in ./libltdl/
43 mv libltdl
/configure.
in libltdl
/configure.tmp
44 echo 'AC_PREREQ(2.50)' > libltdl
/configure.
in
45 cat libltdl
/configure.tmp
>> libltdl
/configure.
in
46 rm libltdl
/configure.tmp
47 ######################################################################
51 automake
--add-missing
53 # Make sure that libltdl uses the same autoconf version as the rest.
56 (cd libltdl
&& autoconf
)
57 (cd libltdl
&& automake
--gnu --add-missing)
59 echo "guile-readline..."
60 (cd guile-readline
&& .
/autogen.sh
)
62 echo "Now run configure and make."
63 echo "You must pass the \`--enable-maintainer-mode' option to configure."
65 # autogen.sh ends here