Topic: Installing php with LibJPEG

I've installed Apache2, MySQL (and Rails of course) in /usr/local. I used Fink to install LibJPEG, and that in /sw. Is it ok to install PHP with --with-jpeg-dir=/usr/local. Or should that be /sw?