+# Set platform variables
+case "$arch" in
+solaris10)
+ MAKE=gmake
+ TAR=gtar
+ NPROC=gnproc
+ BISON="bison"
+ YACC="$BISON -y"
+ CFLAGS="-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1"
+ RUN_TESTS="no"
+ ;;
+
+solaris11)
+ MAKE=gmake
+ TAR=gtar
+ NPROC=nproc
+ BISON="/opt/csw/bin/bison"
+ YACC="$BISON -y"
+ CFLAGS="-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1"
+ RUN_TESTS="no"
+
+ export PATH="$PATH:/usr/perl5/bin"
+ ;;
+
+macosx)
+ MAKE=make
+ TAR=tar
+ NPROC="getconf _NPROCESSORS_ONLN"
+ BISON="bison"
+ YACC="$BISON -y"
+ RUN_TESTS="no"
+
+ export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
+ export CFLAGS="-I/opt/local/include"
+ export LDFLAGS="-L/opt/local/lib"
+ ;;
+
+*)
+ MAKE=make
+ TAR=tar
+ NPROC=nproc
+ BISON="bison"
+ YACC="$BISON -y"
+ CFLAGS=""
+ RUN_TESTS="yes"
+
+ PYTHON2=python2
+ PYTHON3=python3
+
+ P2_VERSION=$($PYTHON2 -c "import sys;print(sys.version[:3])")
+ P3_VERSION=$($PYTHON3 -c "import sys;print(sys.version[:3])")
+
+ UST_PYTHON2="$WORKSPACE/deps/lttng-ust/build/lib/python$P2_VERSION/site-packages"
+ UST_PYTHON3="$WORKSPACE/deps/lttng-ust/build/lib/python$P3_VERSION/site-packages"
+ ;;
+esac
+
+
+# Run bootstrap prior to configure
+./bootstrap
+
+# Get source version from configure script
+eval `grep '^PACKAGE_VERSION=' ./configure`
+PACKAGE_VERSION=`echo "$PACKAGE_VERSION"| sed 's/\-pre$//'`
+
+
+# Export build flags
+case "$conf" in
+no-ust)