1#!/bin/sh
2
3# Run this to generate all the initial makefiles, etc.
4
5srcdir=`dirname $0`
6test -z "$srcdir" && srcdir=.
7
8THEDIR=`pwd`
9cd $srcdir
10
11DIE=0
12
13(autoconf --version) < /dev/null > /dev/null 2>&1 || {
14	echo
15	echo "You must have autoconf installed to compile vanessa_socket."
16	echo "Download the appropriate package for your distribution,"
17	echo "or get the source from ftp://ftp.gnu.org/pub/gnu/autoconf/"
18	DIE=1
19}
20
21(automake --version) < /dev/null > /dev/null 2>&1 || {
22	echo
23	echo "You must have automake installed to compile vanessa_socket."
24	echo "Download the appropriate package for your distribution,"
25	echo "or get the source from ftp://ftp.gnu.org/pub/gnu/automake/"
26	DIE=1
27}
28
29(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
30	echo
31	echo "You must have libtool installed to compile vanessa_socket."
32	echo "Download the appropriate package for your distribution,"
33	echo "or get the source from ftp://ftp.gnu.org/pub/gnu/libtool/"
34	DIE=1
35}
36
37if test "$DIE" -eq 1; then
38	exit 1
39fi
40
41if test -z "$*"; then
42	echo "I am going to run ./configure with no arguments - if you wish "
43        echo "to pass any to it, please specify them on the $0 command line."
44fi
45
46case $CC in
47xlc )
48    am_opt=--include-deps;;
49esac
50
51aclocal $ACLOCAL_FLAGS
52(autoheader --version)  < /dev/null > /dev/null 2>&1 && autoheader
53autoconf
54libtoolize --ltdl
55automake --add-missing $am_opt
56cd $THEDIR
57
58$srcdir/configure "$@" || exit $?
59
60echo
61echo "Now type 'make' to compile vanessa_socket."
62