blob: fb512da0fb01f2d9f0b23703175317bfd4cafba0 [file] [log] [blame]
dnl This Source Code Form is subject to the terms of the Mozilla Public
dnl License, v. 2.0. If a copy of the MPL was not distributed with this
dnl file, You can obtain one at
dnl Identify which version of the SDK we're building with
dnl Windows Server 2008 and newer SDKs have WinSDKVer.h, get the version
dnl from there
AC_CACHE_CHECK(for highest Windows version supported by this SDK,
[cat > conftest.h <<EOF
#include <winsdkver.h>
ac_cv_winsdk_maxver=`$CPP conftest.h 2>/dev/null | tail -n1`
rm -f conftest.h
dnl WinSDKVer.h returns the version number in 4-digit format while many
dnl consumers expect 8. Therefore, pad the result with an extra 4 zeroes.