76
76
echo "Documentation: html -> txt..."
77
77
lynx -dump -nolist docs/faq.html|perl -pe 's/^ *//; if ($_ eq "\n" && $state eq "Q") { $_ = ""; } elsif (/^([QA]):/) { $state = $1 } elsif ($_ ne "\n") { $_ = " $_"; };' > docs/faq.txt
79
echo "Checking auto* tools..."
81
# *********** a bit modified GNOME's macros/autogen.sh **********
84
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
86
echo "**Error**: You must have \`autoconf' installed to compile $PKG_NAME."
87
echo "Download the appropriate package for your distribution,"
88
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
92
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
93
(libtool --version) < /dev/null > /dev/null 2>&1 || {
95
echo "**Error**: You must have \`libtool' installed to compile $PKG_NAME."
96
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
97
echo "(or a newer version if it is available)"
102
(automake --version) < /dev/null > /dev/null 2>&1 || {
104
echo "**Error**: You must have \`automake' installed to compile $PKG_NAME."
105
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
106
echo "(or a newer version if it is available)"
112
# if no automake, don't bother testing for aclocal
113
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
115
echo "**Error**: Missing \`aclocal'. The version of \`automake'"
116
echo "installed doesn't appear recent enough."
117
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
118
echo "(or a newer version if it is available)"
122
if test "$DIE" -eq 1; then
126
if test -z "$*"; then
79
if test x$NOCONFIGURE = x && test -z "$*"; then
127
80
echo "**Warning**: I am going to run \`configure' with no arguments."
128
81
echo "If you wish to pass any to it, please specify them on the"
129
82
echo \`$0\'" command line."
135
am_opt=--include-deps;;
138
rm -f aclocal.m4 glib.m4 glib-2.0.m4
139
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
140
echo "Running libtoolize..."
141
libtoolize --force --copy
143
aclocalinclude="$ACLOCAL_FLAGS -I ."
144
echo "Running aclocal $aclocalinclude ..."
146
# see if we don't have glib.m4 or glib-2.0.m4 there yet
147
error=`aclocal $aclocalinclude 2>&1`
148
if test "x`echo $error|grep 'AM_PATH_GLIB[^_]'`" != "x"; then
150
error=`aclocal $aclocalinclude 2>&1`
152
if test "x`echo $error|grep AM_PATH_GLIB_2_0`" != "x"; then
153
cp glib-2.0.m4_ glib-2.0.m4
156
aclocal $aclocalinclude
158
# aclocal for some reason doesn't complain about glib2, so we still need
159
# to check it later again..
160
if grep "^AC_DEFUN.AM_PATH_GLIB_2_0" aclocal.m4 >/dev/null; then :;
162
cp glib-2.0.m4_ glib-2.0.m4
163
aclocal $aclocalinclude
166
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
167
echo "Running autoheader..."
170
echo "Running autoconf ..."
172
echo "Running automake --gnu $am_opt ..."
173
automake --add-missing --gnu $am_opt
87
echo "Running autoreconf ..."
88
autoreconf -i || exit 1
175
90
conf_flags="--enable-maintainer-mode"