adding autotools for build checks, configure flags for compile time configuration and handling of #define directives inside code and things that will possibily make it better for bitcoin to be packaged inside distributions, as well ported to different architectures.
this pull request follows my first sloppy attempt here: #162 i’ve followed suggestions given by jgarzik, thanks for your patience
this pull request is a rebase of this branch https://github.com/jaromil/bitcoin/commits/master which eliminates all those commits and squashes them in this.
the bitcoind code itself was never modified, just moved around, with two exceptions:
- 9141f2c renamed cryptopp/config.h to settings.h
- c929bae code namespace change: (int)VERSION renamed to BITCOIN_VERSION in headers.h
so just one filename and one variable name changed, plus one #ifdef inside headers.h
code modules have been separated in subdirectories and compiled as static libraries, still using libtool, which is the recommended behaviour when using autotools.
a flag –enable-upnp=0/1 has been added and configure.ac contains templates for adding more compile time choices in future.
as libbitcoin will be provided in future, ABI versioning is also ready to be adopted via libtool.
the test/ directory is imported from gasteve’s branch for test units.
Build of this was tested on Debian 6 (also with WX GUI), Apple OSX 10.5 (without WX GUI) and CYGWIN win32 (without dependencies).