support for link-time option in #version

Changes to be committed:
	modified:   src/version.c
	modified:   sys/share/cppregex.cpp
	modified:   sys/share/pmatchregex.c
	modified:   sys/share/posixregex.c
	modified:   util/makedefs.c

Some options in 3.6.0 are determined by what you link with.
The choice of regex support is one.
Let #version show that linked option along with the compile-time options.
This commit is contained in:
nhmall
2015-06-12 19:23:18 -04:00
parent 5e913f90f8
commit 37f0eafa93
5 changed files with 77 additions and 11 deletions

View File

@@ -10,6 +10,8 @@
extern "C" {
#include <hack.h>
char regex_id[] = "cppregex";
struct nhregex {
std::unique_ptr<std::regex> re;
std::unique_ptr<std::regex_error> err;