mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
[master] add tuning option for win32
This commit is contained in:
@@ -367,6 +367,9 @@ typedef __int64 off_t;
|
|||||||
/* From enable developer */
|
/* From enable developer */
|
||||||
@ISC_LIST_CHECKINIT@
|
@ISC_LIST_CHECKINIT@
|
||||||
|
|
||||||
|
/* Large system tuning */
|
||||||
|
@TUNE_LARGE@
|
||||||
|
|
||||||
/* Avoid warnings with strlen() */
|
/* Avoid warnings with strlen() */
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
#define strlen(x) (unsigned int) strlen(x)
|
#define strlen(x) (unsigned int) strlen(x)
|
||||||
|
@@ -334,7 +334,8 @@ my @substdefh = ("ALLOW_FILTER_AAAA",
|
|||||||
"HAVE_READLINE",
|
"HAVE_READLINE",
|
||||||
"ISC_LIST_CHECKINIT",
|
"ISC_LIST_CHECKINIT",
|
||||||
"PREFER_GOSTASN1",
|
"PREFER_GOSTASN1",
|
||||||
"WITH_IDN");
|
"WITH_IDN",
|
||||||
|
"TUNE_LARGE");
|
||||||
|
|
||||||
# for platform.h
|
# for platform.h
|
||||||
|
|
||||||
@@ -464,6 +465,7 @@ my @withlist = ("cross-compile",
|
|||||||
"python",
|
"python",
|
||||||
"readline",
|
"readline",
|
||||||
"tests",
|
"tests",
|
||||||
|
"tuning",
|
||||||
"vcredist");
|
"vcredist");
|
||||||
|
|
||||||
# general arguments
|
# general arguments
|
||||||
@@ -514,6 +516,7 @@ my @help = (
|
|||||||
" with-idn[=PATH] build with IDN kit support yes|no|path\n",
|
" with-idn[=PATH] build with IDN kit support yes|no|path\n",
|
||||||
" with-iconv[=PATH] path of the iconv DLL [default=same than idn]\n",
|
" with-iconv[=PATH] path of the iconv DLL [default=same than idn]\n",
|
||||||
" with-vcredist[=PATH] visual C++ redistributable package yes|path\n",
|
" with-vcredist[=PATH] visual C++ redistributable package yes|path\n",
|
||||||
|
" with-tuning=OPTION tune for plaform size (large|default)\n",
|
||||||
" with-cross-compile 32 / 64 bit build / host plaforms\n");
|
" with-cross-compile 32 / 64 bit build / host plaforms\n");
|
||||||
|
|
||||||
# Parse arguments
|
# Parse arguments
|
||||||
@@ -560,6 +563,7 @@ my $iconv_path = " --idn-- ";
|
|||||||
my $use_vcredist = "yes";
|
my $use_vcredist = "yes";
|
||||||
my $vcredist_path = " --infer-- ";
|
my $vcredist_path = " --infer-- ";
|
||||||
my $cross_compile = "no";
|
my $cross_compile = "no";
|
||||||
|
my $tuning = "default";
|
||||||
|
|
||||||
# no arguments -> usage
|
# no arguments -> usage
|
||||||
|
|
||||||
@@ -818,6 +822,10 @@ sub mywith {
|
|||||||
if ($val =~ /^yes$/i) {
|
if ($val =~ /^yes$/i) {
|
||||||
$cross_compile = "yes";
|
$cross_compile = "yes";
|
||||||
}
|
}
|
||||||
|
} elsif ($key =~ /^tuning$/i) {
|
||||||
|
if ($val =~ /^large$/i) {
|
||||||
|
$tuning = "large";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$want_unknown = "yes";
|
$want_unknown = "yes";
|
||||||
if ($val eq "no") {
|
if ($val eq "no") {
|
||||||
@@ -2021,6 +2029,11 @@ if (!grep { -f and -x } $vcredist_path) {
|
|||||||
$configvar{"VCREDIST_PATH"} = "$vcredist_path";
|
$configvar{"VCREDIST_PATH"} = "$vcredist_path";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# tuning
|
||||||
|
if ($tuning eq "large") {
|
||||||
|
$configdefh{"TUNE_LARGE"} = 1;
|
||||||
|
}
|
||||||
|
|
||||||
# setup config.h with %configdefh
|
# setup config.h with %configdefh
|
||||||
|
|
||||||
sub setupconfigh {
|
sub setupconfigh {
|
||||||
|
Reference in New Issue
Block a user