1 |
#! /bin/sh |
#! /bin/sh |
2 |
# bootstrap -- Helps bootstrapping libtool, when checked out from CVS. |
# bootstrap -- Helps bootstrapping libtool, when checked out from CVS. |
3 |
# |
# |
4 |
# Copyright (C) 2003, 2004 Free Software Foundation |
# Copyright (C) 2003, 2004, 2005 Free Software Foundation |
5 |
# |
# |
6 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
7 |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
45 |
rm -f acinclude.m4 config/ltmain.sh libltdl/config.h |
rm -f acinclude.m4 config/ltmain.sh libltdl/config.h |
46 |
|
|
47 |
if test -z "$reconfdirs"; then |
if test -z "$reconfdirs"; then |
48 |
reconfdirs=". `ls -1d tests/*demo tests/*demo[0-9]`" |
reconfdirs=". libltdl `ls -1d tests/*demo tests/*demo[0-9]`" |
49 |
fi |
fi |
50 |
|
|
51 |
# Extract the package name and version number from configure.ac: |
# Extract the package name and version number from configure.ac: |
62 |
make ./config/ltmain.sh ./m4/ltversion.m4 ./libtoolize.in ./tests/defs.in \ |
make ./config/ltmain.sh ./m4/ltversion.m4 ./libtoolize.in ./tests/defs.in \ |
63 |
top_srcdir=. PACKAGE="$2" VERSION="$3" M4SH="autom4te -l m4sh" |
top_srcdir=. PACKAGE="$2" VERSION="$3" M4SH="autom4te -l m4sh" |
64 |
|
|
65 |
|
# Create libltdl auxdirs: |
66 |
|
auxdirs="m4 config" |
67 |
|
for dir in $auxdirs; do |
68 |
|
rm -rf ./libltdl/$dir |
69 |
|
mkdir ./libltdl/$dir |
70 |
|
done |
71 |
|
cp ./config/ltmain.sh libltdl/config/ |
72 |
|
|
73 |
test -f clcommit.m4sh && make -f Makefile.maint commit \ |
test -f clcommit.m4sh && make -f Makefile.maint commit \ |
74 |
top_srcdir=. PACKAGE="$2" VERSION="$3" M4SH="autom4te -l m4sh" \ |
top_srcdir=. PACKAGE="$2" VERSION="$3" M4SH="autom4te -l m4sh" \ |
75 |
SED=sed GREP=grep FGREP=fgrep EGREP=egrep LN_S="ln -s" |
SED=sed GREP=grep FGREP=fgrep EGREP=egrep LN_S="ln -s" |
94 |
autoreconf --force --verbose --install $sub |
autoreconf --force --verbose --install $sub |
95 |
done |
done |
96 |
|
|
97 |
# Remove our dummy libtoolize |
# Remove our dummy libtoolize and copied dummy ltmain.sh |
98 |
rm -f ./config/libtoolize |
rm -f ./config/libtoolize ./libltdl/config/ltmain.sh |
99 |
|
|
100 |
# These files can cause an infinite configure loop if left behind. |
# These files can cause an infinite configure loop if left behind. |
101 |
rm -f Makefile libltdl/Makefile libtool vcl.tmp |
rm -f Makefile libltdl/Makefile libtool vcl.tmp |