1998-07-24 19:24:09 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
1998-12-23 00:37:26 +00:00
|
|
|
srcdir=`dirname $0`
|
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
|
|
|
THEDIR=`pwd`
|
|
|
|
cd $srcdir
|
1998-07-24 19:24:09 +00:00
|
|
|
DIE=0
|
|
|
|
|
|
|
|
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
|
|
|
echo
|
2000-04-03 19:48:13 +00:00
|
|
|
echo "You must have autoconf installed to compile libxml."
|
1998-07-24 19:24:09 +00:00
|
|
|
echo "Download the appropriate package for your distribution,"
|
2003-08-13 11:09:42 +00:00
|
|
|
echo "or see http://www.gnu.org/software/autoconf"
|
1998-07-24 19:24:09 +00:00
|
|
|
DIE=1
|
|
|
|
}
|
|
|
|
|
|
|
|
(libtool --version) < /dev/null > /dev/null 2>&1 || {
|
|
|
|
echo
|
2000-04-03 19:48:13 +00:00
|
|
|
echo "You must have libtool installed to compile libxml."
|
2003-08-13 11:09:42 +00:00
|
|
|
echo "Download the appropriate package for your distribution,"
|
|
|
|
echo "or see http://www.gnu.org/software/libtool"
|
1998-07-24 19:24:09 +00:00
|
|
|
DIE=1
|
|
|
|
}
|
|
|
|
|
2003-08-13 11:09:42 +00:00
|
|
|
(automake --version) < /dev/null > /dev/null 2>&1 || {
|
1998-07-24 19:24:09 +00:00
|
|
|
echo
|
|
|
|
DIE=1
|
2003-08-13 11:09:42 +00:00
|
|
|
echo "You must have automake installed to compile libxml."
|
|
|
|
echo "Download the appropriate package for your distribution,"
|
|
|
|
echo "or see http://www.gnu.org/software/automake"
|
1998-07-24 19:24:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if test "$DIE" -eq 1; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2001-06-23 18:53:44 +00:00
|
|
|
test -f entities.c || {
|
2000-04-03 19:48:13 +00:00
|
|
|
echo "You must run this script in the top-level libxml directory"
|
1998-07-24 19:24:09 +00:00
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
if test -z "$*"; then
|
|
|
|
echo "I am going to run ./configure with no arguments - if you wish "
|
|
|
|
echo "to pass any to it, please specify them on the $0 command line."
|
|
|
|
fi
|
|
|
|
|
1999-02-06 18:12:01 +00:00
|
|
|
libtoolize --copy --force
|
2003-08-13 11:09:42 +00:00
|
|
|
aclocal $ACLOCAL_FLAGS
|
|
|
|
automake --add-missing
|
1998-07-24 19:24:09 +00:00
|
|
|
autoconf
|
1998-12-23 00:37:26 +00:00
|
|
|
|
|
|
|
cd $THEDIR
|
1998-12-28 23:49:02 +00:00
|
|
|
|
|
|
|
if test x$OBJ_DIR != x; then
|
|
|
|
mkdir -p "$OBJ_DIR"
|
|
|
|
cd "$OBJ_DIR"
|
|
|
|
fi
|
|
|
|
|
1998-12-23 00:37:26 +00:00
|
|
|
$srcdir/configure "$@"
|
1998-07-24 19:24:09 +00:00
|
|
|
|
|
|
|
echo
|
2000-04-03 19:48:13 +00:00
|
|
|
echo "Now type 'make' to compile libxml."
|