Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # Run this to generate all the initial makefiles, etc. |
| 3 | |
Elliot Lee | 8f8b4c8 | 1998-12-23 00:37:26 +0000 | [diff] [blame] | 4 | srcdir=`dirname $0` |
| 5 | test -z "$srcdir" && srcdir=. |
| 6 | |
| 7 | THEDIR=`pwd` |
| 8 | cd $srcdir |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 9 | DIE=0 |
| 10 | |
| 11 | (autoconf --version) < /dev/null > /dev/null 2>&1 || { |
| 12 | echo |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 13 | echo "You must have autoconf installed to compile libxml." |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 14 | echo "Download the appropriate package for your distribution," |
| 15 | echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" |
| 16 | DIE=1 |
| 17 | } |
| 18 | |
| 19 | (libtool --version) < /dev/null > /dev/null 2>&1 || { |
| 20 | echo |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 21 | echo "You must have libtool installed to compile libxml." |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 22 | echo "Get ftp://alpha.gnu.org/gnu/libtool-1.0h.tar.gz" |
| 23 | echo "(or a newer version if it is available)" |
| 24 | DIE=1 |
| 25 | } |
| 26 | |
Havoc Pennington | 830e897 | 2002-08-18 22:22:13 +0000 | [diff] [blame] | 27 | (automake-1.4 --version) < /dev/null > /dev/null 2>&1 || { |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 28 | echo |
Havoc Pennington | 84ec40a | 2002-08-22 13:59:35 +0000 | [diff] [blame] | 29 | echo "You must have latest automake 1.4 installed to compile libxml," |
| 30 | echo "or alternatively create a symlink from automake-1.4 to " |
| 31 | echo "plain automake." |
| 32 | echo "Newer versions of automake 1.4 come with the symlink " |
| 33 | echo "pregenerated. This will allow you to compile libxml " |
| 34 | echo "while also installing newer automakes such as 1.6." |
| 35 | echo "Get ftp://sources.redhat.com/pub/automake/automake-1.4l.tar.gz" |
| 36 | echo "(or a newer version in the 1.4 series if it is available)." |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 37 | DIE=1 |
| 38 | } |
| 39 | |
| 40 | if test "$DIE" -eq 1; then |
| 41 | exit 1 |
| 42 | fi |
| 43 | |
Daniel Veillard | cd1d944 | 2001-06-23 18:53:44 +0000 | [diff] [blame] | 44 | test -f entities.c || { |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 45 | echo "You must run this script in the top-level libxml directory" |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 46 | exit 1 |
| 47 | } |
| 48 | |
| 49 | if test -z "$*"; then |
| 50 | echo "I am going to run ./configure with no arguments - if you wish " |
| 51 | echo "to pass any to it, please specify them on the $0 command line." |
| 52 | fi |
| 53 | |
Daniel Veillard | 19b858c | 1999-02-06 18:12:01 +0000 | [diff] [blame] | 54 | libtoolize --copy --force |
Havoc Pennington | 830e897 | 2002-08-18 22:22:13 +0000 | [diff] [blame] | 55 | aclocal-1.4 $ACLOCAL_FLAGS |
| 56 | automake-1.4 --add-missing |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 57 | autoconf |
Elliot Lee | 8f8b4c8 | 1998-12-23 00:37:26 +0000 | [diff] [blame] | 58 | |
| 59 | cd $THEDIR |
Arturo Espinosa | cd69df9 | 1998-12-28 23:49:02 +0000 | [diff] [blame] | 60 | |
| 61 | if test x$OBJ_DIR != x; then |
| 62 | mkdir -p "$OBJ_DIR" |
| 63 | cd "$OBJ_DIR" |
| 64 | fi |
| 65 | |
Elliot Lee | 8f8b4c8 | 1998-12-23 00:37:26 +0000 | [diff] [blame] | 66 | $srcdir/configure "$@" |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 67 | |
| 68 | echo |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 69 | echo "Now type 'make' to compile libxml." |