24 |
# better features, and configure.ac documents oldest version of each |
# better features, and configure.ac documents oldest version of each |
25 |
# required for bootstrap (AC_PREREQ, and AM_INIT_AUTOMAKE). |
# required for bootstrap (AC_PREREQ, and AM_INIT_AUTOMAKE). |
26 |
|
|
27 |
|
: ${AUTORECONF=autoreconf} |
28 |
|
: ${AUTOM4TE=autom4te} |
29 |
|
: ${MAKE=make} |
30 |
|
: ${GREP=grep} |
31 |
|
: ${EGREP=egrep} |
32 |
|
: ${FGREP=fgrep} |
33 |
|
: ${SED=sed} |
34 |
|
: ${LN_S='ln -s'} |
35 |
|
|
36 |
test -f ./configure.ac || { |
test -f ./configure.ac || { |
37 |
echo "bootstrap: can't find ./configure.ac, please rerun from top_srcdir" |
echo "bootstrap: can't find ./configure.ac, please rerun from top_srcdir" |
38 |
exit 1 |
exit 1 |
58 |
fi |
fi |
59 |
|
|
60 |
# Extract the package name and version number from configure.ac: |
# Extract the package name and version number from configure.ac: |
61 |
set dummy `sed '/AC_INIT/{s/[][,()]/ /g; p;};d' configure.ac` |
set dummy `$SED '/AC_INIT/{s/[][,()]/ /g; p;};d' configure.ac` |
62 |
shift |
shift |
63 |
|
|
64 |
# Whip up some dirty Makefiles: |
# Whip up some dirty Makefiles: |
67 |
do |
do |
68 |
test -f $dirty || { |
test -f $dirty || { |
69 |
makefiles="$makefiles $dirty" |
makefiles="$makefiles $dirty" |
70 |
sed '/^if /,/^endif$/d;/^else$/,/^endif$/d' $dirty.am > $dirty |
$SED '/^if /,/^endif$/d;/^else$/,/^endif$/d' $dirty.am > $dirty |
71 |
} |
} |
72 |
done |
done |
73 |
|
|
78 |
# configure, and ltversion.m4 to generate configure in the first place: |
# configure, and ltversion.m4 to generate configure in the first place: |
79 |
rm -f ./config/ltmain.sh ./m4/ltversion.m4 |
rm -f ./config/ltmain.sh ./m4/ltversion.m4 |
80 |
|
|
81 |
make ./config/ltmain.sh ./m4/ltversion.m4 ./libtoolize.in ./tests/defs.in \ |
|
82 |
|
$MAKE ./config/ltmain.sh ./m4/ltversion.m4 ./libtoolize.in ./tests/defs.in \ |
83 |
srcdir=. top_srcdir=. PACKAGE="$2" VERSION="$3" \ |
srcdir=. top_srcdir=. PACKAGE="$2" VERSION="$3" \ |
84 |
M4SH="autom4te --language=m4sh" |
M4SH="$AUTOM4TE --language=m4sh" |
85 |
|
|
86 |
{ |
{ |
87 |
make update-package-m4 srcdir=. top_srcdir=. \ |
$MAKE update-package-m4 srcdir=. top_srcdir=. \ |
88 |
PACKAGE="$2" VERSION="$3" PACKAGE_BUGREPORT="bug-$2@gnu.org" |
PACKAGE="$2" VERSION="$3" PACKAGE_BUGREPORT="bug-$2@gnu.org" |
89 |
cd tests |
cd tests |
90 |
make ./testsuite AUTOTEST="autom4te --language=autotest" \ |
$MAKE ./testsuite AUTOTEST="$AUTOM4TE --language=autotest" \ |
91 |
srcdir=. top_srcdir=.. top_builddir=.. PACKAGE="$2" VERSION="$3" |
srcdir=. top_srcdir=.. PACKAGE="$2" VERSION="$3" |
92 |
cd .. |
cd .. |
93 |
} |
} |
94 |
|
|
95 |
test -f clcommit.m4sh && make -f Makefile.maint commit \ |
test -f clcommit.m4sh && $MAKE -f Makefile.maint commit \ |
96 |
top_srcdir=. PACKAGE="$2" VERSION="$3" M4SH="autom4te -l m4sh" \ |
top_srcdir=. PACKAGE="$2" VERSION="$3" M4SH="$AUTOM4TE -l m4sh" \ |
97 |
SED=sed GREP=grep FGREP=fgrep EGREP=egrep LN_S="ln -s" |
SED="$SED" GREP="$GREP" FGREP="$FGREP" EGREP="${EGREP}" LN_S="$LN_S" |
98 |
|
|
99 |
test -z "$makefiles" || rm -f $makefiles |
test -z "$makefiles" || rm -f $makefiles |
100 |
|
|
113 |
export LIBTOOLIZE |
export LIBTOOLIZE |
114 |
|
|
115 |
for sub in $reconfdirs; do |
for sub in $reconfdirs; do |
116 |
autoreconf --force --verbose --install $sub |
$AUTORECONF --force --verbose --install $sub |
117 |
done |
done |
118 |
|
|
119 |
# Remove our dummy libtoolize |
# Remove our dummy libtoolize |