Ticket #16910: patch-configure.diff

File patch-configure.diff, 534 bytes (added by mlund (Mikael Lund), 16 years ago)
  • configure

    old new  
    1560915609cat >>conftest.$ac_ext <<_ACEOF
    1561015610/* end confdefs.h.  */
    1561115611
    15612 #include <stdio.h>
     15612#include <string.h>
    1561315613#include <netcdf.h>
    1561415614      int main(void) {
    15615         char *vlib;
    15616         vlib = nc_inq_libvers();
    15617         if (strcmp(vlib, "3.0") < 0) {
    15618           exit(1);
     15615        if (strstr(nc_inq_libvers(), "3.") == NULL) {
     15616          return 1;
    1561915617        }
    15620         exit(0);
     15618        return 0;
    1562115619      }
    1562215620
    1562315621_ACEOF