Fails to detect LibXC: Error: Derived type 'xc_f90_pointer_t' at (1) is being used before it is defined
configure:16773: checking whether LibXC has Fortran support
configure:16790: gfortran10 -o conftest -I/usr/local/include -Wl,-rpath=/usr/local/lib/gcc10 -I/usr/local/include -L/usr/local/lib -lxcf90 -Wl,-rpath=/usr/local/lib/gcc10 -L/usr/local/lib/gcc10 -B/usr/local/bin -fstack-protector-strong conftest.F90 -L/usr/local/lib -lxcf90 -lxc -lm >&5
conftest.F90:5:31:
5 | type(xc_f90_pointer_t) :: info
| 1
Error: Derived type 'xc_f90_pointer_t' at (1) is being used before it is defined
configure:16790: $? = 1
configure: failed program was:
| program main
|
| use xc_f90_lib_m
| integer :: i
| type(xc_f90_pointer_t) :: info
| i = xc_f90_info_number(info)
|
| end
configure:16803: result: no
Version: 0.9.6
gfortran-10 FreeBSD-12.2