39 $1 -o "$TEMP_DIR/checkcc" $CFLAGS $LDFLAGS "$TEMP_DIR/test.c" 2> /dev/null |
43 $1 -o "$TEMP_DIR/checkcc" $CFLAGS $LDFLAGS "$TEMP_DIR/test.c" 2> /dev/null |
40 } |
44 } |
41 |
45 |
42 check_cpp_compiler() |
46 check_cpp_compiler() |
43 { |
47 { |
|
48 command -v $1 2>&1 >/dev/null |
|
49 if [ $? -ne 0 ]; then |
|
50 return 1 |
|
51 fi |
44 cat > "$TEMP_DIR/test.cpp" << __EOF__ |
52 cat > "$TEMP_DIR/test.cpp" << __EOF__ |
45 /* test file */ |
53 /* test file */ |
46 #include <iostream> |
54 #include <iostream> |
47 int main(int argc, char **argv) { |
55 int main(int argc, char **argv) { |
48 #if defined(_MSC_VER) |
56 #if defined(_MSC_VER) |