summaryrefslogtreecommitdiff
path: root/science/v_sim/files/patch-m4_libxc.m4
diff options
context:
space:
mode:
Diffstat (limited to 'science/v_sim/files/patch-m4_libxc.m4')
-rw-r--r--science/v_sim/files/patch-m4_libxc.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/science/v_sim/files/patch-m4_libxc.m4 b/science/v_sim/files/patch-m4_libxc.m4
new file mode 100644
index 000000000000..135c6456b8c6
--- /dev/null
+++ b/science/v_sim/files/patch-m4_libxc.m4
@@ -0,0 +1,22 @@
+--- m4/libxc.m4.orig 2020-07-07 14:26:13 UTC
++++ m4/libxc.m4
+@@ -57,17 +57,13 @@ AC_DEFUN([AC_CHECK_LIBXC],
+
+ LIBS="$LIBS -lxc"
+ AC_MSG_CHECKING([for LIBXC library])
+- AC_LINK_IFELSE([[
+-program main
+-
+- call xc_f90_family_from_id()
+-end]], ac_libxc_ok=yes, ac_libxc_ok=no)
++ ac_libxc_ok=yes
+ AC_MSG_RESULT([$ac_libxc_ok])
+ LIBS="$LIBS_SVG"
+ LDFLAGS="$LDFLAGS_SVG"
+ FCFLAGS="$FCFLAGS_SVG"
+ if test "$ac_libxc_ok" = "yes"; then
+- LIBXC_LIBS="-lxc"
++ LIBXC_LIBS="-lxc -lxcf90"
+ AS_IF([test -n "$LIBXC_PATH_LIBDIR"], [LIBXC_LIBS="-L$LIBXC_PATH_LIBDIR $LIBXC_LIBS"])
+ AC_SUBST([LIBXC_LIBS])
+ fi