]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] add tuning option for win32
authorEvan Hunt <each@isc.org>
Thu, 20 Feb 2014 00:35:40 +0000 (16:35 -0800)
committerEvan Hunt <each@isc.org>
Thu, 20 Feb 2014 00:35:40 +0000 (16:35 -0800)
config.h.win32
win32utils/Configure

index db7cd12f2f6898a790ac4900e23b3c6085dfab37..97f3fd40da730ba7369bf46167582d87b00a0450 100644 (file)
@@ -367,6 +367,9 @@ typedef __int64 off_t;
 /* From enable developer */
 @ISC_LIST_CHECKINIT@
 
+/* Large system tuning */
+@TUNE_LARGE@
+
 /* Avoid warnings with strlen() */
 #ifdef _WIN64
 #define strlen(x)      (unsigned int) strlen(x)
index 8fb75b529b0689dbf029146fe5bc0e200a3929f6..aaaf08718579258a19993a768a77c957e8910b13 100644 (file)
@@ -334,7 +334,8 @@ my @substdefh = ("ALLOW_FILTER_AAAA",
                  "HAVE_READLINE",
                  "ISC_LIST_CHECKINIT",
                  "PREFER_GOSTASN1",
-                 "WITH_IDN");
+                 "WITH_IDN",
+                 "TUNE_LARGE");
 
 # for platform.h
 
@@ -464,6 +465,7 @@ my @withlist = ("cross-compile",
                 "python",
                 "readline",
                 "tests",
+                "tuning",
                 "vcredist");
 
 # general arguments
@@ -514,6 +516,7 @@ my @help = (
 "  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-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");
 
 # Parse arguments
@@ -560,6 +563,7 @@ my $iconv_path = " --idn-- ";
 my $use_vcredist = "yes";
 my $vcredist_path = " --infer-- ";
 my $cross_compile = "no";
+my $tuning = "default";
 
 # no arguments -> usage
 
@@ -818,6 +822,10 @@ sub mywith {
         if ($val =~ /^yes$/i) {
             $cross_compile = "yes";
         }
+    } elsif ($key =~ /^tuning$/i) {
+        if ($val =~ /^large$/i) {
+            $tuning = "large";
+        }
     } else {
         $want_unknown = "yes";
         if ($val eq "no") {
@@ -2021,6 +2029,11 @@ if (!grep { -f and -x } $vcredist_path) {
     $configvar{"VCREDIST_PATH"} = "$vcredist_path";
 }
 
+# tuning
+if ($tuning eq "large") {
+    $configdefh{"TUNE_LARGE"} = 1;
+}
+
 # setup config.h with %configdefh
 
 sub setupconfigh {