11 for compiler in gcc cc icc; do
13 # arrgh, "which" gives no err code on solaris
14 path=`which $compiler`
15 if [ -x "$path" ]; then
17 # We do not want to build with the same compiler twice
18 # cc is a symlink to gcc on some systems
19 cur_compiler_sum="`sum $path`"
20 test x"$cur_compiler_sum" = x"" && {
21 cur_compiler_sum="$path"
23 test x"$last_compiler_sum" = x"$cur_compiler_sum" && {
26 last_compiler_sum="$cur_compiler_sum"
28 if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
30 CFLAGS="$ENVCFLAGS -Wall -g"
33 CFLAGS="$ENVCFLAGS -g"
36 CFLAGS_THIS_COMPILER=`eval CFLAGS_$compiler 2>/dev/null`
38 CFLAGS="$CFLAGS_THIS_COMPILER $CFLAGS"
44 test_tree samba_4_0_test source4 $compiler
48 if [ $compiler = gcc -o $isgcc = 0 ]; then
50 test_tree lorikeet-heimdal . $compiler
52 # only attempt samba-gtk if we have perl and gtk+-2.0
53 if which perl > /dev/null && which pkg-config > /dev/null && pkg-config --exists gtk+-2.0; then
54 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
65 # by default build ppp only on SunOS or Linux systems
66 if [ "$system" = Linux -o "$system" = SunOS ]; then
67 test_tree ppp . $compiler
73 # only attempt pidl if we have perl
74 if which perl > /dev/null; then