diff -r 2a394ccdd778 -r 8a0a7754f123 configure --- a/configure Sat Oct 31 18:02:07 2015 +0100 +++ b/configure Sat Oct 31 20:10:21 2015 +0100 @@ -72,6 +72,16 @@ PLATFORM=osx.mk fi +ISBSD=`echo $OS | grep -c BSD` +if [ $ISBSD = 1 ]; then + if `type clang > /dev/null`; then + CCONF=clang.mk + else + CCONF=gcc.mk + fi + PLATFORM=bsd.mk +fi + echo " include \$(BUILD_ROOT)/make/$CCONF include \$(BUILD_ROOT)/make/$PLATFORM