source: trunk/autogen.sh @ 12

Revision 12, 1.0 KB checked in by mmamonski, 9 years ago (diff)

version 1.0.7 release candidate

  • Property svn:executable set to *
  • Property svn:keywords set to Id
Line 
1#!/bin/sh
2# $Id$
3
4run() {
5        echo "running $@ ($PWD)"
6        eval "$@"
7}
8
9check()
10{
11        printf "checking for $1... "
12        if ($1 --version < /dev/null > /dev/null 2>&1); then
13                echo "yes"
14        else
15                echo "no"
16                exit 1
17        fi
18}
19
20ACLOCAL=${ACLOCAL:=aclocal}
21AUTOHEADER=${AUTOHEADER:=autoheader}
22AUTOCONF=${AUTOCONF:=autoconf}
23LIBTOOLIZE=${LIBTOOLIZE:=libtoolize}
24AUTOMAKE=${AUTOMAKE:=automake}
25
26check $ACLOCAL
27check $AUTOHEADER
28check $AUTOCONF
29check $LIBTOOLIZE
30check $AUTOMAKE
31
32mkdir -p scripts
33
34run ${ACLOCAL} -I m4 | grep -v ^/usr/share/aclocal || exit 1
35run ${LIBTOOLIZE} --automake --copy --force || exit 1
36run ${AUTOHEADER} --warnings=all || exit 1
37run ${AUTOMAKE} --foreign --add-missing --copy --warnings=all || exit 1
38run ${AUTOCONF} --warnings=all -Wno-obsolete || exit 1
39
40if [ -n "$*" ]; then
41        args="$*"
42elif [ -f config.log ]; then
43        args=`grep '\$ *\./configure ' config.log \
44                         | sed 's:^ *\$ *\./configure ::;s:--no-create::;s:--no-recursion::' \
45                         2>/dev/null`
46fi
47
48(cd drmaa_utils && run sh autogen.sh "$@")
49run ./configure ${args}
Note: See TracBrowser for help on using the repository browser.