Hi Everyone,
I want to split config.h into several smaller files. It should help with managing the monolithic config.h, and allow better Autotools integration. As it stands we can't use Autoconf to write its test results because we can't do things like add a block of text in the config file Autoconf is preparing (it is a limitation in Autotools).
Users will still include <config.h> as they always done. The default we provide still works as expected.
As a starting point, the new config.h is:
#ifndef CRYPTOPP_CONFIG_H
#define CRYPTOPP_CONFIG_H
#include "config_align.h"
#include "config_base.h"
#include "config_cpu.h"
#include "config_cxx.h"
#include "config_dll.h"
#include "config_int.h"
#include "config_misc.h"
#include "config_ns.h"
#include "config_os.h"
#include "config_ver.h"
#endif // CRYPTOPP_CONFIG_H
The additional config files contain what was in the monolithic config file.
The bigger difference is, Autotools can test for, say, C++11 alignas and write the result to <config_cxx.h> and it will be used instead of the default one we provide for non-Autotools users.
Any comments are appreciated.
Jeff