Dear Tiago,
Thank you for your fast reply.
The new configure command I used was therefore:
./configure --prefix=/usr/local/anaconda3 --with-boost=/usr/local/anaconda3 --enable-openmp
Unfortunately, the problem wasn’t solved. The new config.log is attached: