blob: f18fbb6fe11357aae6577379524f42b63722b143 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
diff -Naur grace-5.1.21.orig/configure grace-5.1.21/configure
--- grace-5.1.21.orig/configure 2007-02-16 17:44:49.000000000 -0500
+++ grace-5.1.21/configure 2008-04-03 08:54:45.000000000 -0400
@@ -15181,7 +15181,11 @@
int main(void) {
char *vlib;
vlib = nc_inq_libvers();
- if (strcmp(vlib, "3.0") < 0) {
+ /* nc_inq_libvers() has changed. It now returns a long string,
+ a portion of which is in quotes. Advance the pointer to
+ eliminate the first quote, then compare. But also need
+ to ensure backward compatibility. */
+ if ((strcmp(vlib, "3.0") || strcmp(++vlib, "3.0")) < 0) {
exit(1);
}
exit(0);
|