8648 | | if test x$CC_TEST_SAME != x$NETCDF_CC_TEST_SAME; then |
8649 | | echo "======================================================================" |
8650 | | echo "Configuration error: You specified that the \"$CC\" C compiler should be" |
8651 | | echo "used to build ncview, but the netcdf library was compiled with the \"$NETCDF_CC\"" |
8652 | | echo "compiler. Here is the path where I found the netcdf library:" |
8653 | | echo " $NETCDF_LDFLAGS" |
8654 | | echo "You must use the same compiler for ncview as was used to build the netcdf library!" |
8655 | | echo " " |
8656 | | echo "There are two possible ways to fix this." |
8657 | | echo " " |
8658 | | echo "1) Download the netcdf library and compile it with the $CC compiler," |
8659 | | echo "install it, and try again to build ncview. NOTE that if you do this," |
8660 | | echo "you might have more than one version of the netcdf library on your system," |
8661 | | echo "built with differnt compilers, which can get confusing. If you do this," |
8662 | | echo "you will have to specify the path to the (new) version of nc-config" |
8663 | | echo "that was compiled using the $CC compiler by configuring ncview in a " |
8664 | | echo "way similar to this:" |
8665 | | echo " " |
8666 | | echo " ./configure --with-nc-config=/path/to/newly/compiled/nc-config" |
8667 | | echo " " |
8668 | | echo "2) Configure ncview to use the $NETCDF_CC compiler." |
8669 | | echo "To do this, set environmental variable CC to $NETCDF_CC" |
8670 | | echo "and run ./configure again" |
8671 | | echo "===================================================================" |
8672 | | exit -1 |
8673 | | fi |
| 8649 | #if test x$CC_TEST_SAME != x$NETCDF_CC_TEST_SAME; then |
| 8650 | # echo "======================================================================" |
| 8651 | # echo "Configuration error: You specified that the \"$CC\" C compiler should be" |
| 8652 | # echo "used to build ncview, but the netcdf library was compiled with the \"$NETCDF_CC\"" |
| 8653 | # echo "compiler. Here is the path where I found the netcdf library:" |
| 8654 | # echo " $NETCDF_LDFLAGS" |
| 8655 | # echo "You must use the same compiler for ncview as was used to build the netcdf library!" |
| 8656 | # echo " " |
| 8657 | # echo "There are two possible ways to fix this." |
| 8658 | # echo " " |
| 8659 | # echo "1) Download the netcdf library and compile it with the $CC compiler," |
| 8660 | # echo "install it, and try again to build ncview. NOTE that if you do this," |
| 8661 | # echo "you might have more than one version of the netcdf library on your system," |
| 8662 | # echo "built with differnt compilers, which can get confusing. If you do this," |
| 8663 | # echo "you will have to specify the path to the (new) version of nc-config" |
| 8664 | # echo "that was compiled using the $CC compiler by configuring ncview in a " |
| 8665 | # echo "way similar to this:" |
| 8666 | # echo " " |
| 8667 | # echo " ./configure --with-nc-config=/path/to/newly/compiled/nc-config" |
| 8668 | # echo " " |
| 8669 | # echo "2) Configure ncview to use the $NETCDF_CC compiler." |
| 8670 | # echo "To do this, set environmental variable CC to $NETCDF_CC" |
| 8671 | # echo "and run ./configure again" |
| 8672 | # echo "===================================================================" |
| 8673 | # exit -1 |
| 8674 | #fi |