2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
11 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
13 echo "You must have autoconf installed to compile libxml."
14 echo "Download the appropriate package for your distribution,"
15 echo "or see http://www.gnu.org/software/autoconf"
19 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
21 echo "You must have libtool installed to compile libxml."
22 echo "Download the appropriate package for your distribution,"
23 echo "or see http://www.gnu.org/software/libtool"
27 (automake --version) < /dev/null > /dev/null 2>&1 || {
30 echo "You must have automake installed to compile libxml."
31 echo "Download the appropriate package for your distribution,"
32 echo "or see http://www.gnu.org/software/automake"
35 if test "$DIE" -eq 1; then
39 test -f entities.c || {
40 echo "You must run this script in the top-level libxml directory"
45 if test "x$1" = "x--system"; then
51 if [ -d /usr/lib64 ]; then
54 EXTRA_ARGS="--prefix=$prefix --sysconfdir=$sysconfdir --localstatedir=$localstatedir --libdir=$libdir"
55 echo "Running ./configure with $EXTRA_ARGS $@"
57 if test -z "$NOCONFIGURE" && test -z "$*"; then
58 echo "I am going to run ./configure with no arguments - if you wish "
59 echo "to pass any to it, please specify them on the $0 command line."
63 if [ ! -d $srcdir/m4 ]; then
67 # Replaced by autoreconf below
72 if test x$OBJ_DIR != x; then
77 if test -z "$NOCONFIGURE"; then
78 $srcdir/configure $EXTRA_ARGS "$@"
80 echo "Now type 'make' to compile libxml2."