If you need to compile Apache with EAPI, this is one way to get it going:
# CFLAGS="-DEAPI" ./configure --enable-shared=max