To find a program in Mac OS X (same for most Linux distribution), in Terminal, use:
which apr
if found, it will display something like /usr/sbin/apr
If not found, it will output nothing.
Note: in Mac OS X, you can use Spotlight to search. Much easier.