10 for compiler in gcc cc icc; do
12 # arrgh, "which" gives no err code on solaris
13 path=`which $compiler`
14 if [ -x "$path" ]; then
16 # We do not want to build with the same compiler twice
17 # cc is a symlink to gcc on some systems
18 cur_compiler_sum="`sum $path`"
19 test x"$cur_compiler_sum" = x"" && {
20 cur_compiler_sum="$path"
22 test x"$last_compiler_sum" = x"$cur_compiler_sum" && {
25 last_compiler_sum="$cur_compiler_sum"
27 if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
29 CFLAGS="$ENVCFLAGS -Wall"
34 CFLAGS_THIS_COMPILER=`eval CFLAGS_$compiler 2>/dev/null`
36 CFLAGS="$CFLAGS_THIS_COMPILER $CFLAGS"
39 test_tree samba_4_0_waf source4 $compiler
40 if [ $compiler = gcc -o $isgcc = 0 ]; then
42 test_tree lorikeet-heimdal . $compiler
44 # only attempt samba_4_0_test if we have perl
45 if which perl > /dev/null; then
46 # use gmake if available
47 if [ "x$MAKE" = "x" ] && which gmake > /dev/null; then
48 MAKE=gmake test_tree samba_4_0_test source $compiler
50 test_tree samba_4_0_test source $compiler
54 # only attempt samba-gtk if we have perl and gtk+-2.0
55 if which perl > /dev/null && which pkg-config > /dev/null && pkg-config --exists gtk+-2.0; then
56 test_tree samba-gtk . $compiler
59 test_tree samba_3_current source $compiler
60 test_tree samba_3_next source $compiler
61 test_tree samba_3_master source $compiler
63 # by default build ppp only on SunOS or Linux systems
64 if [ "$system" = Linux -o "$system" = SunOS ]; then
65 test_tree ppp . $compiler
71 # only attempt pidl if we have perl
72 if which perl > /dev/null; then
73 test_tree pidl . cc build test