I assume you have built QuantLib already and are getting this problem with OREData or Analytics.
If you have $BOOST pointing to your boost directory, you can just run “./configure”, you don’t need the –with flags. By the boost directory I mean where you downloaded and built boost, so we assume that the headers are in $BOOST/boost and the libs are in $BOOST/stage/lib, I don’t think this will work with your setup here as you have specified specific install directories for boost.
You can see this in the configure.ac script.
I think the easiest thing for you to do is –with-boost-include=/home/ore-engine/boost/install/include and –with-boost-lib=/home/ec2-user/ore-engine/boost/install/lib like you did for QL.