39 |
exit 1 |
exit 1 |
40 |
} |
} |
41 |
|
|
42 |
|
|
43 |
|
# Extract auxdir and m4dir from configure.ac: |
44 |
|
my_sed_traces='s,#.*$,,; s,^dnl .*$,,; s, dnl .*$,,; |
45 |
|
/AC_CONFIG_AUX_DIR[^_]/ { |
46 |
|
s,^.*AC_CONFIG_AUX_DIR([[ ]*\([^])]*\).*$,auxdir=\1,; p; |
47 |
|
}; |
48 |
|
/AC_CONFIG_MACRO_DIR/ { |
49 |
|
s,^.*AC_CONFIG_MACRO_DIR([[ ]*\([^])]*\).*$,m4dir=\1,; p; |
50 |
|
}; |
51 |
|
d;' |
52 |
|
eval `cat configure.ac 2>/dev/null | $SED "$my_sed_traces"` |
53 |
|
|
54 |
|
|
55 |
# Upgrade caveat: |
# Upgrade caveat: |
56 |
cat <<'EOF' |
cat <<'EOF' |
57 |
WARNING: If bootstrapping with this script fails, it may be due to an |
WARNING: If bootstrapping with this script fails, it may be due to an |
65 |
rm -rf `find . -path './{arch}' -prune -o \( -name autom4te.cache -o -name libtool \) -print` |
rm -rf `find . -path './{arch}' -prune -o \( -name autom4te.cache -o -name libtool \) -print` |
66 |
|
|
67 |
# Delete stale files from previous libtool versions. |
# Delete stale files from previous libtool versions. |
68 |
rm -f acinclude.m4 config/ltmain.sh libltdl/config.h |
rm -f acinclude.m4 libltdl/config.h |
69 |
|
|
70 |
if test -z "$reconfdirs"; then |
if test -z "$reconfdirs"; then |
71 |
reconfdirs=". `ls -1d tests/*demo tests/*demo[0-9]`" |
reconfdirs=". libltdl `ls -1d tests/*demo tests/*demo[0-9]`" |
72 |
fi |
fi |
73 |
|
|
74 |
# Extract the package name and version number from configure.ac: |
# Extract the package name and version number from configure.ac: |
84 |
# We don't have all the substitution values to build ltmain.sh from this |
# We don't have all the substitution values to build ltmain.sh from this |
85 |
# script yet, but we need config/ltmain.sh for the libtool commands in |
# script yet, but we need config/ltmain.sh for the libtool commands in |
86 |
# configure, and ltversion.m4 to generate configure in the first place: |
# configure, and ltversion.m4 to generate configure in the first place: |
87 |
rm -f ./config/ltmain.sh ./m4/ltversion.m4 |
rm -f $auxdir/ltmain.sh $m4dir/ltversion.m4 |
88 |
|
|
89 |
$MAKE ./config/ltmain.sh ./doc/notes.txt ./m4/ltversion.m4 ./libtoolize.in \ |
$MAKE $auxdir/ltmain.sh $m4dir/ltversion.m4 ./doc/notes.txt \ |
90 |
./tests/defs.in ./tests/package.m4 ./tests/testsuite \ |
./libtoolize.in ./tests/defs.in ./tests/package.m4 \ |
91 |
|
./tests/testsuite ./libltdl/Makefile.am \ |
92 |
srcdir=. top_srcdir=. PACKAGE="$2" VERSION="$3" \ |
srcdir=. top_srcdir=. PACKAGE="$2" VERSION="$3" \ |
93 |
PACKAGE_BUGREPORT="bug-$2@gnu.org" M4SH="$AUTOM4TE --language=m4sh" \ |
PACKAGE_BUGREPORT="bug-$2@gnu.org" M4SH="$AUTOM4TE --language=m4sh" \ |
94 |
AUTOTEST="$AUTOM4TE --language=autotest" MAKEINFO="$MAKEINFO" |
AUTOTEST="$AUTOM4TE --language=autotest" SED="$SED" MAKEINFO="$MAKEINFO" |
95 |
|
|
96 |
test -f clcommit.m4sh && $MAKE -f Makefile.maint commit \ |
test -f clcommit.m4sh && $MAKE -f Makefile.maint commit \ |
97 |
srcdir=. top_srcdir=. PACKAGE="$2" VERSION="$3" M4SH="$AUTOM4TE -l m4sh" \ |
srcdir=. top_srcdir=. PACKAGE="$2" VERSION="$3" M4SH="$AUTOM4TE -l m4sh" \ |
100 |
rm -f Makefile |
rm -f Makefile |
101 |
|
|
102 |
# Make a dummy libtoolize script for autoreconf: |
# Make a dummy libtoolize script for autoreconf: |
103 |
test -f clcommit.m4sh && cat > ./config/libtoolize <<'EOF' |
test -f clcommit.m4sh && cat > $auxdir/libtoolize <<'EOF' |
104 |
#! /bin/sh |
#! /bin/sh |
105 |
# This is a dummy file for bootstrapping CVS libtool. |
# This is a dummy file for bootstrapping CVS libtool. |
106 |
echo "$0: Bootstrap detected, no files installed." | sed 's,^.*/,,g' |
echo "$0: Bootstrap detected, no files installed." | sed 's,^.*/,,g' |
107 |
exit 0 |
exit 0 |
108 |
EOF |
EOF |
109 |
chmod 755 ./config/libtoolize |
chmod 755 $auxdir/libtoolize |
110 |
|
|
111 |
# Running the installed `libtoolize' will trash the local (newer) libtool.m4 |
# Running the installed `libtoolize' will trash the local (newer) libtool.m4 |
112 |
# among others. Call the dummy script we made earlier. |
# among others. Call the dummy script we made earlier. |
113 |
LIBTOOLIZE=`pwd`/config/libtoolize |
LIBTOOLIZE=`pwd`/$auxdir/libtoolize |
114 |
export LIBTOOLIZE |
export LIBTOOLIZE |
115 |
|
|
116 |
for sub in $reconfdirs; do |
for sub in $reconfdirs; do |
117 |
$AUTORECONF --force --verbose --install $sub |
$AUTORECONF --force --verbose --install $sub |
118 |
done |
done |
119 |
|
|
120 |
|
# Autoheader valiantly tries to prevent needless reconfigurations by |
121 |
|
# not changing the timestamp of config-h.in unless the file contents |
122 |
|
# are updated. Unfortunately config-h.in depends on aclocal.m4 which |
123 |
|
# *is* updated, so running 'libtoolize --ltdl=. && configure && make' |
124 |
|
# causes autoheader to be called... undesireable for users that do not |
125 |
|
# have it! Fudge the timestamp to prevent that: |
126 |
|
sleep 2 && touch libltdl/config-h.in |
127 |
|
|
128 |
# Remove our dummy libtoolize |
# Remove our dummy libtoolize |
129 |
rm -f ./config/libtoolize |
rm -f $auxdir/libtoolize |
130 |
|
|
131 |
# These files can cause an infinite configure loop if left behind. |
# These files can cause an infinite configure loop if left behind. |
132 |
rm -f Makefile libltdl/Makefile libtool vcl.tmp |
rm -f Makefile libltdl/Makefile libtool vcl.tmp |
134 |
# This file is misgenerated earlier in bootstrap to satisfy automake 1.9.1 |
# This file is misgenerated earlier in bootstrap to satisfy automake 1.9.1 |
135 |
# and earlier, but has a new enough timestamp to not be updated. Force it |
# and earlier, but has a new enough timestamp to not be updated. Force it |
136 |
# to be regenerated at make-time with proper substitutions in place: |
# to be regenerated at make-time with proper substitutions in place: |
137 |
touch config/ltmain.in |
touch $auxdir/ltmain.in |
138 |
|
|
139 |
# Commit script caveat: |
# Commit script caveat: |
140 |
cat <<'EOF' |
cat <<'EOF' |
142 |
WARNING: after you have run `configure' to discover the real whereabouts |
WARNING: after you have run `configure' to discover the real whereabouts |
143 |
WARNING: of `sed', `grep' etc. like this: |
WARNING: of `sed', `grep' etc. like this: |
144 |
WARNING: |
WARNING: |
145 |
WARNING: rm -f config/mailnotify; make -f Makefile.maint commit |
WARNING: rm -f $auxdir/mailnotify; make -f Makefile.maint commit |
146 |
EOF |
EOF |
147 |
|
|
148 |
exit 0 |
exit 0 |