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 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
32 # TODO: This should be moved to dist-guile
33 mscripts
=..
/guile-scripts
35 $mscripts/render-bugs
> BUGS
37 ######################################################################
39 # Make sure this matches the ACLOCAL invokation in Makefile.am
43 ######################################################################
46 # Get a clean version.
47 libtoolize
--force --copy --automake
49 ######################################################################
52 # configure.in reqs autoconf-2.53; try to find it
53 for suf
in "-2.53" "2.53" "" false
; do
54 version
=`autoconf$suf --version 2>/dev/null | head -1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
55 if test "0$version" -eq 253; then
57 autoheader
=autoheader
$suf
62 if test -z "$autoconf"; then
63 echo "ERROR: Please install autoconf 2.53"
66 ################################################################
68 #detect automake version
71 # configure.in reqs autoconf-2.53; try to find it
72 for suf
in "-1.6" "1.6" "" false
; do
73 version
=`automake$suf --version 2>/dev/null | head -1 | awk '{print $NF}' | awk -F. '{print $1 * 10 + $2}'`
74 if test "0$version" -eq 16; then
80 if test -z "$automake"; then
81 echo "ERROR: Please install automake 1.6.x"
86 ################################################################
90 # Automake has a bug that will let it only add one copy of a missing
91 # file. We need two mdate-sh, tho, one in doc/ref/ and one in
92 # doc/tutorial/. We run automake twice as a workaround.
94 $automake --add-missing
95 $automake --add-missing
97 # Make sure that libltdl uses the same autoconf version as the rest.
100 (cd libltdl
&& aclocal
)
101 (cd libltdl
&& autoconf
)
102 (cd libltdl
&& $automake --gnu --add-missing)
104 echo "guile-readline..."
105 (cd guile-readline
&& .
/autogen.sh
)
107 echo "Now run configure and make."
108 echo "You must pass the \`--enable-maintainer-mode' option to configure."
110 # autogen.sh ends here