One of the most annoying features of the configure script is that you get a fatal for missing Gmp after having run it for minutes, so if possible the tests for zlib, gmp and nettle should be the first to run.
/ Peter Bortas
Previous text:
2004-02-18 13:42: Subject: Crypto
One way would be to first run all pike's configurescripts. The nettle and gmp modules could use some PIKE_NEED_BUNDLED_LIB, which would (i) add necessary link and cpp flags to uses the bundled libraries, and (ii) write some file indicating to the top level Makefile which bundled libraries are needed.
Then make of the top level should build the bundled libraries and install them in some proper place in the buildtree, before running make in pike's build tree.
Installation of bundled libraries seem a little tricky. Either then can be installed in the build tree, and link the corresponding modules statically. Or we link dynamically and install (at make install time, not earlier!) them in some proper place on the system, and then we'll need some additional trickery to have a working pike before make install time.
/ Niels Möller (vässar rödpennan)