| 591 | } |
| 592 | |
| 593 | static int |
| 594 | testMatlab(const char *filename) |
| 595 | { |
| 596 | #ifdef __GNUC__ |
| 597 | # if __GNUC__ == 4 && __GNUC_MINOR__ > 1 |
| 598 | static const char *theMatlabWarning = |
| 599 | "\n**** WARNING: Earlier Matlab releases (e.g. release 7.4) use an\n" |
| 600 | "**** older glibc. Later releases (e.g. release 7.9) have no problem.\n" |
| 601 | "****\n" |
| 602 | "**** If you are using an _earlier_ Matlab, please re-compile DMTCP\n" |
| 603 | "**** with gcc-4.1 and g++-4.1\n" |
| 604 | "**** env CC=gcc-4.1 CXX=g++-4.1 ./configure\n" |
| 605 | "**** [ Also modify mtcp/Makefile to: CC=gcc-4.1 ]\n" |
| 606 | "**** [ Next, you may need an alternative Java JVM (see QUICK-START.md) ]\n" |
| 607 | "**** [ Finally, run as: dmtcp_launch matlab -nodisplay ]\n" |
| 608 | "**** [ (DMTCP does not yet checkpoint X-Windows applications.) ]\n" |
| 609 | "**** [ You may see \"Not checkpointing libc-2.7.so\". This is normal. ]\n" |
| 610 | "**** (Assuming you have done the above, Will now continue" |
| 611 | " executing.)\n\n"; |
| 612 | |
| 613 | // FIXME: should expand filename and "matlab" before checking |
| 614 | if (strcmp(filename, "matlab") == 0 && |
| 615 | (getenv(ENV_VAR_QUIET) == NULL || strcmp(getenv(ENV_VAR_QUIET), "0"))) { |
| 616 | JASSERT_STDERR << theMatlabWarning; |
| 617 | return -1; |
| 618 | } |
| 619 | # endif // if __GNUC__ == 4 && __GNUC_MINOR__ > 1 |
| 620 | #endif // ifdef __GNUC__ |
| 621 | return 0; |
| 622 | } |
| 623 | |
| 624 | // FIXME: Remove this when DMTCP supports zero-mapped pages |
| 625 | static int |