root/spike/wktraster/autogen.sh

Revision 5475, 1.7 KB (checked in by pracine, 2 years ago)

[wktraster] Fix for ticket 201. wktraster_config.h.in is no longer generated by AutoHeader? and renamed many macros starting with "RT_" with "POSTGIS_RASTER_" in order to avoid name conflicts with other macros.

  • Property svn:executable set to *
Line 
1#!/bin/sh
2#
3# $Id$
4#
5giveup()
6{
7        echo
8        echo "  Something went wrong, giving up!"
9        echo
10        exit 1
11}
12
13OSTYPE=`uname -s`
14
15AUTOCONF=`which autoconf 2>/dev/null`
16if [ ! ${AUTOCONF} ]; then
17    echo "Missing autoconf!"
18    exit
19fi
20AUTOCONF_VER=`${AUTOCONF} --version | grep -E "^.*[0-9]$" | sed 's/^.* //'`
21
22AUTOHEADER=`which autoheader 2>/dev/null`
23if [ ! ${AUTOHEADER} ]; then
24    echo "Missing autoheader!"
25    exit
26fi
27
28for aclocal in aclocal aclocal-1.10 aclocal-1.9; do
29    ACLOCAL=`which $aclocal 2>/dev/null`
30    if test -x "${ACLOCAL}"; then
31        break;
32    fi
33done
34if [ ! ${ACLOCAL} ]; then
35    echo "Missing aclocal!"
36    exit
37fi
38ACLOCAL_VER=`${ACLOCAL} --version | grep -E "^.*[0-9]$" | sed 's/^.* //'`
39
40for libtoolize in libtoolize glibtoolize; do
41    LIBTOOLIZE=`which $libtoolize 2>/dev/null`
42    if test -x "${LIBTOOLIZE}"; then
43        break;
44    fi
45done
46if [ ! ${LIBTOOLIZE} ]; then
47    echo "Missing libtoolize!"
48    exit
49fi
50LIBTOOLIZE_VER=`${LIBTOOLIZE} --version | grep -E "^.*[0-9]\.[0-9]" | sed 's/^.* //'`
51
52AMOPTS="--add-missing --copy"
53if test "$OSTYPE" = "IRIX" -o "$OSTYPE" = "IRIX64"; then
54   AMOPTS=$AMOPTS" --include-deps";
55fi
56
57LTOPTS="--force --copy"
58echo "* Running ${LIBTOOLIZE} (${LIBTOOLIZE_VER})"
59echo "\tOPTIONS = ${LTOPTS}"
60${LIBTOOLIZE} ${LTOPTS} || giveup
61
62echo "* Running $ACLOCAL (${ACLOCAL_VER})"
63${ACLOCAL} -I macros || giveup
64
65echo "* Running ${AUTOCONF} (${AUTOCONF_VER})"
66${AUTOCONF} || giveup
67
68if test -f "${PWD}/configure"; then
69    echo "======================================"
70    echo "Now you are ready to run './configure'"
71    echo "======================================"
72else
73    echo "  Failed to generate ./configure script!"
74    giveup
75fi
Note: See TracBrowser for help on using the browser.