]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Set the PACKAGE_BUILDER to include _MSC_VER
authorOndřej Surý <ondrej@isc.org>
Thu, 21 May 2020 13:32:28 +0000 (15:32 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 28 May 2020 06:08:38 +0000 (08:08 +0200)
win32utils/Configure

index 0c50583bdf6c86d8bc33d5602df5c5f970b00d36..cf5732f5e6864c90615e20e77a25b9499c4e9a0d 100644 (file)
@@ -563,7 +563,6 @@ sub ac_init {
     my $package_version_extra;
     my $package_description;
     my $package_srcid;
-    my $package_builder = "msvc";
     my $mapapi;
 
     open V, "..\\configure.ac" || die $!;
@@ -630,8 +629,6 @@ sub ac_init {
     $configdefh{'PACKAGE_VERSION'} = "\"$package_version\"";
     $configdefh{'PACKAGE_STRING'} = "\"$package_name $package_version\"";
     $configdefh{'MAPAPI'} = $mapapi;
-
-    $configdefh{'PACKAGE_BUILDER'} = $package_builder;
 }
 
 ac_init();
@@ -1088,7 +1085,7 @@ print F << 'EOF';
 int
 main(void)
 {
-        printf("%d\n", _MSC_VER);
+        printf("%d", _MSC_VER);
         return(0);
 }
 EOF
@@ -1102,11 +1099,13 @@ if (grep { -f and -x } ".\\mscver.exe") {
 if ($verbose) {
     print "_MSC_VER == $msc_ver\n";
 }
-if ($msc_ver < 1600) {
+if ($msc_ver < 1910) {
     print STDERR "too old version of C++ compiler/Visual Studio\n";
     exit 1;
 }
 
+$configdefh{'PACKAGE_BUILDER'} = "\"MSVC $msc_ver\"";
+
 # gen single threaded for < VS 2005
 
 if ($msc_ver < 1400) {