Ticket #51570: patch-configure.diff

File patch-configure.diff, 981 bytes (added by cram5431@…, 8 years ago)

Patch to make libXC 2.1 compatible

Line 
1--- configure.orig      2016-06-01 23:55:25.000000000 +0200
2+++ configure   2016-06-02 00:07:00.000000000 +0200
3@@ -49268,7 +49268,7 @@
4 
5         int major = -1, minor = -1;
6         xc_version(&major, &minor);
7-        if ( (major != 2) || (minor < 2) || (minor > 2) ) {
8+        if ( (major != 2) || (minor < 1) || (minor > 2) ) {
9           return 1; }
10 
11   ;
12@@ -51558,7 +51558,7 @@
13     lib_etsf_io_libs='-L$(fallbacks_instdir)/lib -letsf_io_utils -letsf_io -letsf_io_low_level'
14   fi
15   if test "${enable_libxc}" = "yes"; then
16-    lib_libxc_libs='-L$(fallbacks_instdir)/lib -lxcf90 -lxc'
17+    lib_libxc_libs='-L$(fallbacks_instdir)/lib -lxc'
18   fi
19   if test "${enable_linalg}" = "yes"; then
20     lib_linalg_libs='-L$(fallbacks_instdir)/lib -llapack -lblas'
21@@ -52533,7 +52533,8 @@
22 if test -n "$CONFIG_FILES"; then
23 
24 
25-ac_cr='
26'
27+ac_cr='
28+'
29 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31   ac_cs_awk_cr='\\r'