Copy all elements of the allocations[] array, including the last. (Pointed
[glib.git] / autogen.sh
blob4783a831737411cc2c672970ed65e5c050245359
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
7 ORIGDIR=`pwd`
8 cd $srcdir
9 PROJECT=GLib
10 TEST_TYPE=-f
11 FILE=glib.h
13 DIE=0
15 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
16 echo
17 echo "You must have autoconf installed to compile $PROJECT."
18 echo "Download the appropriate package for your distribution,"
19 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
20 DIE=1
23 (libtool --version) < /dev/null > /dev/null 2>&1 || {
24 echo
25 echo "You must have libtool installed to compile $PROJECT."
26 echo "Get ftp://alpha.gnu.org/gnu/libtool-1.2d.tar.gz"
27 echo "(or a newer version if it is available)"
28 DIE=1
31 (automake --version) < /dev/null > /dev/null 2>&1 || {
32 echo
33 echo "You must have automake installed to compile $PROJECT."
34 echo "Get ftp://sourceware.cygnus.com/pub/automake/automake-1.4.tar.gz"
35 echo "(or a newer version if it is available)"
36 DIE=1
39 if test "$DIE" -eq 1; then
40 exit 1
43 test $TEST_TYPE $FILE || {
44 echo "You must run this script in the top-level $PROJECT directory"
45 exit 1
48 if test -z "$*"; then
49 echo "I am going to run ./configure with no arguments - if you wish "
50 echo "to pass any to it, please specify them on the $0 command line."
53 case $CC in
54 *xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
55 esac
57 aclocal $ACLOCAL_FLAGS
59 # optionally feature autoheader
60 (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
62 automake -a $am_opt
63 autoconf
64 cd $ORIGDIR
66 $srcdir/configure --enable-maintainer-mode "$@"
68 echo
69 echo "Now type 'make' to compile $PROJECT."