| 53 $1 -o "$TEMP_DIR/checkcc" $CFLAGS $LDFLAGS "$TEMP_DIR/test.c" 2> /dev/null |
55 $1 -o "$TEMP_DIR/checkcc" $CFLAGS $LDFLAGS "$TEMP_DIR/test.c" 2> /dev/null |
| 54 } |
56 } |
| 55 |
57 |
| 56 check_cpp_compiler() |
58 check_cpp_compiler() |
| 57 { |
59 { |
| 58 if ! command -v "$1" >/dev/null 2>&1 ; then |
60 if command -v "$1" >/dev/null 2>&1 ; then |
| |
61 : |
| |
62 else |
| 59 return 1 |
63 return 1 |
| 60 fi |
64 fi |
| 61 cat > "$TEMP_DIR/test.cpp" << __EOF__ |
65 cat > "$TEMP_DIR/test.cpp" << __EOF__ |
| 62 /* test file */ |
66 /* test file */ |
| 63 #include <iostream> |
67 #include <iostream> |