Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 26 lines (19 sloc) 0.444 kb
9e5cd01 @ry Revert "Unify configure scripts"
ry authored
1 #! /bin/sh
5cf4cef @ry add configure
ry authored
2
9e5cd01 @ry Revert "Unify configure scripts"
ry authored
3 # v8 doesn't like ccache
4 if [ ! -z "`echo $CC | grep ccache`" ]; then
790f13d @bnoordhuis Fix typo in configure script
bnoordhuis authored
5 echo "Error: V8 doesn't like ccache. Please set your CC env var to 'gcc'"
9e5cd01 @ry Revert "Unify configure scripts"
ry authored
6 echo " (ba)sh: export CC=gcc"
7 exit 1
8 fi
5cf4cef @ry add configure
ry authored
9
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
10 if [ -z "$PYTHON" ]; then
11 PYTHON=python
12 fi
13
9e5cd01 @ry Revert "Unify configure scripts"
ry authored
14 CUR_DIR=$PWD
97c9745 @ry Back to WAF
ry authored
15
9e5cd01 @ry Revert "Unify configure scripts"
ry authored
16 #possible relative path
17 WORKINGDIR=`dirname $0`
18 cd "$WORKINGDIR"
19 #abs path
20 WORKINGDIR=`pwd`
21 cd "$CUR_DIR"
97c9745 @ry Back to WAF
ry authored
22
472a72d @bnoordhuis build: honour the PYTHON environment variable
bnoordhuis authored
23 "$PYTHON" "${WORKINGDIR}/tools/waf-light" --jobs=1 configure $*
97c9745 @ry Back to WAF
ry authored
24
9e5cd01 @ry Revert "Unify configure scripts"
ry authored
25 exit $?
Something went wrong with that request. Please try again.