function to check for clang availability