Installed libxc not found when building with gfortran-8
On ppc64le with Ubuntu 18.04 the configure script doesn’t find the installed libxc when using GCC 8.
$ uname -m
ppc64le
$ gfortran --version | head -1
GNU Fortran (Ubuntu 7.3.0-16ubuntu3) 7.3.0
$ git describe --dirty
7.2-1237-g06269b441
$ git log --oneline -1
06269b441 (HEAD -> develop, origin/develop, origin/HEAD) Merge branch 'lda_u' into 'develop'
$ autoreconf -i
[…]
$ ./configure CC=gcc-8 FC=gfortran-8
[…]
checking for Fortran 2003 iso_c_binding... yes
checking fortran 90 modules inclusion flag... -I
checking for libxc... no (-I /usr/include -lxc)
configure: error: Could not find required libxc library ( >= v 2.0.0).
$ dpkg -l libxc4 libxc-dev | tail -2
ii libxc-dev 3.0.0-1build1 ppc64el Library of Exchange-Correlation Functionals (development files)
ii libxc4:ppc64el 3.0.0-1build1 ppc64el Library of Exchange-Correlation Functionals