build libreplace outside the tree in the build farm
[amitay/build-farm.git] / shubnigurath.fns
1 per_run_hook
2
3 for compiler in gcc cc icc; do
4
5   # arrgh, "which" gives no err code on solaris
6   path=`which $compiler`
7   if [ -x "$path" ]; then
8
9     if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
10        isgcc=1
11        CFLAGS="-Wall"
12        export CFLAGS
13     else
14        CFLAGS=""
15        export CFLAGS
16        isgcc=0
17     fi
18     if [ $compiler = gcc -o $isgcc = 0 ]; then
19       test_tree samba_3_0 source $compiler
20       test_tree rsync . $compiler
21       test_tree distcc . $compiler
22       test_tree ccache . $compiler
23       test_tree talloc . $compiler
24       test_tree tdb . $compiler
25       test_tree ldb . $compiler
26       test_tree lorikeet-heimdal . $compiler
27
28       # only attempt samba4 if we have perl
29       if which perl > /dev/null; then
30         # C99 structure initialisation not supported with vendor cc
31         if [ $compiler -ne "cc" ]; then
32           test_tree samba4 source $compiler
33         fi
34         test_tree smb-build . $compiler
35       fi
36     fi
37   fi
38 done
39     
40
41 # by default build ppp only on SunOS or Linux systems
42 system=`uname`
43 if [ "$system" = Linux -o "$system" = SunOS ]; then
44    test_tree ppp . gcc
45 fi
46