The relevant section is:
onfigure:20248: checking for exit in -lboost_coroutine
configure:20283: g++ -std=gnu++14 -o conftest -fvisibility=default -fvisibility-inlines-hidden -O3 -Wno-deprecated -Wno-unknown-pragmas -ftemplate-depth-250 -DNDEBUG -Wall -Wextra -ftemplate-backtrace-limit=0 -Wno-unknown-pragmas -I/opt/rh/python27/root/usr/include/python2.7 -I/usr/local/boost161/include -L/usr/local/boost161/lib conftest.cpp -lboost_coroutine -lbz2 -lm >&5
/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld: warning: libboost_context.so.1.61.0, needed by /usr/local/boost161/lib/libboost_coroutine.so, not found (try using -rpath or -rpath-link)
/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld: warning: libboost_thread.so.1.61.0, needed by /usr/local/boost161/lib/libboost_coroutine.so, not found (try using -rpath or -rpath-link)
/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld: warning: libboost_chrono.so.1.61.0, needed by /usr/local/boost161/lib/libboost_coroutine.so, not found (try using -rpath or -rpath-link)
/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.3.1/ld: warning: libboost_system.so.1.61.0, needed by /usr/local/boost161/lib/libboost_coroutine.so, not found (try using -rpath or -rpath-link)
/usr/local/boost161/lib/libboost_coroutine.so: undefined reference to `boost::thread_detail::commit_once_region(boost::once_flag&)'
/usr/local/boost161/lib/libboost_coroutine.so: undefined reference to `jump_fcontext'
/usr/local/boost161/lib/libboost_coroutine.so: undefined reference to `boost::thread_detail::enter_once_region(boost::once_flag&)'
/usr/local/boost161/lib/libboost_coroutine.so: undefined reference to `make_fcontext'
collect2: error: ld returned 1 exit status
This probably means that the location of the libraries is not in the linker's path. You need something like
./configure LDFLAGS=-L/usr/local/boost161/lib/
Best,
Tiago