7 for compiler in gcc cc icc; do
9 # arrgh, "which" gives no err code on solaris
10 path=`which $compiler`
11 if [ -x "$path" ]; then
13 if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
22 if [ $compiler = gcc -o $isgcc = 0 ]; then
24 test_tree lorikeet-heimdal . $compiler
26 # only attempt samba_4_0_test if we have perl
27 if which perl > /dev/null; then
28 test_tree samba_4_0_test source $compiler
31 # only attempt samba-gtk if we have perl and gtk+-2.0
32 if which perl > /dev/null && which pkg-config > /dev/null && pkg-config --exists gtk+-2.0; then
33 test_tree samba-gtk . $compiler
36 # only attempt 'make test' in samba3 if we have perl
37 if which perl > /dev/null; then
38 test_tree samba_3_2_test source $compiler configure config_log build install test
40 test_tree samba_3_2_test source $compiler configure config_log build install
43 # by default build ppp only on SunOS or Linux systems
44 if [ "$system" = Linux -o "$system" = SunOS ]; then
45 test_tree ppp . $compiler
51 # only attempt pidl if we have perl
52 if which perl > /dev/null; then
53 test_tree pidl . cc build test