Needing to compile firefox 4.0.1 from source on Ubuntu 10.04,
here collected some configure and compile error and its solution,
hopes it usefully!
configure: error: --enable-application=APP was not specified and is required.
$ ./configure --enable-application=browser
configure: error: Library requirements (gtk+-2.0 >= 2.10.0 gtk+-unix-print-2.0 glib-2.0 gobject-2.0 gdk-x11-2.0) not met;
$ sudo apt-get install libgtk2.0-dev
configure: error: Library requirements (libnotify >= 0.4) not met;
$ sudo apt-get install libnotify-dev
configure: error: yasm is a required build tool for this architecture when webm is enabled.
$ sudo apt-get install yasm
configure: error: Need alsa for Ogg, Wave or WebM decoding on Linux.
$ sudo apt-get install libasound2-dev
configure: error: Couldn't find curl/curl.h which is required for the crash reporter.
$ sudo apt-get install libcurl4-gnutls-dev
configure: error: Library requirements (libIDL-2.0 >= 0.8.0) not met;
$ sudo apt-get install libIDL-dev
configure: error: Can't find header iwlib.h for Necko WiFi scanning (might be in package libiw-dev (Ubuntu) or wireless-tools-devel (Fedora));
$ sudo apt-get install libiw-dev
configure: error: Could not compile basic X program.
$ sudo apt-get install libxt-dev
configure: error: Can't find header GL/glx.h for WebGL
$ sudo apt-get install mesa-common-dev