grace-5.1.21-netcdf.patch 412 B

123456789101112
  1. --- a/configure 2007-02-16 22:44:49.000000000 +0000
  2. +++ b/configure 2007-09-28 23:03:29.000000000 +0100
  3. @@ -15181,7 +15181,7 @@
  4. int main(void) {
  5. char *vlib;
  6. vlib = nc_inq_libvers();
  7. - if (strcmp(vlib, "3.0") < 0) {
  8. + if (((vlib[0] == '"') && (strcmp(vlib, "\"3.0") < 0)) || ((vlib[0] != '"') && (strcmp(vlib, "3.0") < 0))){
  9. exit(1);
  10. }
  11. exit(0);