I’ve found a way :
Copy the folder /usr/incude/openssl from a Yosemite (MacOS 10.10) to /usr/local/include/openssl on my computer (El Capitan MacOS 10.11).
Then compile apache by adding a flag to the compilation environment variables gcc and g++ : -I/usr/local/include/openssl
Here are all the variables that I use :
ARCH="-arch x86_64 -mmacosx-version-min=10.7"
LDFLAGS="-O3 $ARCH"
CFLAGS="-O3 -fno-common $ARCH"
CXXFLAGS="-O3 -fno-common $ARCH"
CC="gcc $ARCH -I/usr/local/include/openssl"
CXX="gcc $ARCH -I/usr/local/include/openssl"
CPP="gcc -E"
CXXCPP="g++ -E »
Regards,
arnaud
Apache doesn't install because it cannot find the necessary packages. This is not a bug a normal behaviour.
You should check how to install the missing packages, this is a question that should be asked on Apple's forums.
Once installed, come back here if it is still not working.