Mozilla is a very special beast when it comes to compiling.
There are two things that I really think you need to do for this:
1. Read the installation and readme documentation. There is a lot there, but you are going to need it for Mozilla.
2. If you do a ./configure --help, you should get a bunch of information on what the different flags are. What it is looking for here is a --enable-application=<insert app here>, where the app is one of the different functions that Mozilla provides (browser, mail reader, etc. or a combination of any of them)