You can't use configure/make/make install (CMMI) method to install on macOS if is system Apache httpd as Apple supplied Apache httpd is broken. Installing from upstream Apache httpd source code also will not work. You need to install Apache httpd using Homebrew and use that instead if want to use CMMI method.
As to Python, Apple supplied Apache is not under /opt/local so somewhat doubt that is Xcode version.
Either way, you can try using "pip install mod_wsgi" method instead. See:
This should work, although do note that latest macOS versions block you running third party Apache module, so your only choice is to use mod_wsgi-express instead and you can't manually configure Apache using the module it builds.
Using HomeBrew Apache avoids the macOS restrictions on third party Apache modules as well.
Graham