I am compiling gdal with static versions of proj.4 (with-static-proj4=...) and jasper-uuid (with-jasper=...). The configuration script attempts to test for the presence of proj by issuing a command which also depends on guessing the correct library path for jasper. Hence, Proj4 will not statically compile into the program if either proj4 or jasper cannot be found. As configuration continues, jasper will eventually include the right library directory, and be discovered, but proj4 is left in the cold.
Here are my default directories for the static library locations:
Proj4: src/.libs
Jasper-uuid: src/libjasper/.libs
Here are the directories ./configure searches for when testing for the presence of proj4:
src/libjasper
src/libjasper/lib
A temporary workaround is to copy src/libjapser/.libs/libjasper.a to src/libjasper
A source code side workaround is to also look for jasper in src/libjasper/.libs
Thank you very much,
Robert