#************************************************************************** #* * #* OCaml * #* * #* Sebastien Hinderer, projet Gallium, INRIA Paris * #* * #* Copyright 2018 Institut National de Recherche en Informatique et * #* en Automatique. * #* * #* All rights reserved. This file is distributed under the terms of * #* the GNU Lesser General Public License version 2.1, with the * #* special exception on linking described in the file LICENSE. * #* * #************************************************************************** # This file is processed by autoconf. # It contains macro definitions specific to the OCaml package. # Every macro defined here should have its name prefixed with OCAML_. # libtool macros # Since the project does not use automake, the libtool macro files # need to be manually included m4_include([build-aux/libtool.m4]) m4_include([build-aux/ltoptions.m4]) m4_include([build-aux/ltsugar.m4]) m4_include([build-aux/ltversion.m4]) m4_include([build-aux/lt~obsolete.m4]) # Macros from the autoconf macro archive m4_include([build-aux/ax_check_compile_flag.m4]) m4_include([build-aux/ax_func_which_gethostbyname_r.m4]) m4_include([build-aux/ax_prog_cc_for_build.m4]) m4_include([build-aux/ax_pthread.m4]) # OCaml version m4_include([build-aux/ocaml_version.m4]) # The following macro figures out which C compiler is used. # It does so by checking for compiler-specific predefined macros. # A list of such macros can be found at # https://sourceforge.net/p/predef/wiki/Compilers/ AC_DEFUN([OCAML_CC_VENDOR], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_PROG_CPP]) AC_MSG_CHECKING([C compiler vendor]) AC_PREPROC_IFELSE( [AC_LANG_SOURCE([ #if defined(_MSC_VER) msvc _MSC_VER # if defined(__clang_major__) && defined(__clang_minor__) clang __clang_major__ __clang_minor__ # endif #elif defined(__INTEL_COMPILER) icc __INTEL_COMPILER #elif defined(__MINGW32__) #include <_mingw_mac.h> mingw __MINGW64_VERSION_MAJOR __MINGW64_VERSION_MINOR # if defined(__clang_major__) && defined(__clang_minor__) clang __clang_major__ __clang_minor__ # elif defined(__GNUC__) && defined(__GNUC_MINOR__) gcc __GNUC__ __GNUC_MINOR__ # endif #elif defined(__clang_major__) && defined(__clang_minor__) clang __clang_major__ __clang_minor__ #elif defined(__GNUC__) && defined(__GNUC_MINOR__) gcc __GNUC__ __GNUC_MINOR__ #elif defined(__xlc__) && defined(__xlC__) xlc __xlC__ __xlC_ver__ #elif defined(__SUNPRO_C) sunc __SUNPRO_C __SUNPRO_C #else unknown #endif] )], [AC_CACHE_VAL([ocaml_cv_cc_vendor2], [ocaml_cv_cc_vendor2=`sed -e '/^#/d' conftest.i | tr -s '[:space:]' '-' \ | sed -e 's/^-//' -e 's/-$//'`]) # Domain of values was changed in #12768, so the cache key became different # from the variable ocaml_cc_vendor="$ocaml_cv_cc_vendor2"], [AC_MSG_FAILURE([unexpected preprocessor failure])]) AC_MSG_RESULT([$ocaml_cc_vendor]) ]) AC_DEFUN([OCAML_SIGNAL_HANDLERS_SEMANTICS], [ AC_MSG_NOTICE([checking semantics of signal handlers]) AC_CHECK_FUNC([sigaction], [has_sigaction=true], [has_sigaction=false]) AC_CHECK_FUNC([sigprocmask], [has_sigprocmask=true], [has_sigprocmask=false]) AS_IF([$has_sigaction && $has_sigprocmask], [AC_DEFINE([POSIX_SIGNALS], [1]) AC_MSG_NOTICE([POSIX signal handling found.])], [AC_MSG_NOTICE([assuming signals have the System V semantics.]) ] ) ]) dnl $1: extra CFLAGS AC_DEFUN([OCAML_CC_SUPPORTS_TREE_VECTORIZE], [ AC_MSG_CHECKING( [whether the C compiler supports __attribute__((optimize("tree-vectorize")))]) saved_CFLAGS="$CFLAGS" CFLAGS="$1 $CFLAGS" AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[__attribute__((optimize("tree-vectorize"))) void f(void) {}]], [[f();]])], [AC_DEFINE([SUPPORTS_TREE_VECTORIZE], [1]) AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) CFLAGS="$saved_CFLAGS" ]) # Save C compiler related variables AC_DEFUN([OCAML_CC_SAVE_VARIABLES], [ saved_CC="$CC" saved_CFLAGS="$CFLAGS" saved_CPPFLAGS="$CPPFLAGS" saved_LIBS="$LIBS" saved_ac_ext="$ac_ext" saved_ac_compile="$ac_compile" # Move the content of confdefs.h to another file so it does not # get included mv confdefs.h confdefs.h.bak touch confdefs.h ]) # Restore the C compiler related variables AC_DEFUN([OCAML_CC_RESTORE_VARIABLES], [ # Restore the content of confdefs.h mv confdefs.h.bak confdefs.h ac_compile="$saved_ac_compile" ac_ext="$saved_ac_ext" CPPFLAGS="$saved_CPPFLAGS" CFLAGS="$saved_CFLAGS" CC="$saved_CC" LIBS="$saved_LIBS" ]) AC_DEFUN([OCAML_AS_HAS_DEBUG_PREFIX_MAP], [ AC_MSG_CHECKING([whether the assembler supports --debug-prefix-map]) OCAML_CC_SAVE_VARIABLES # Modify C-compiler variables to use the assembler CC="$AS" CFLAGS="--debug-prefix-map old=new -o conftest.$ac_objext" CPPFLAGS="" ac_ext="S" ac_compile='$CC $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' AC_COMPILE_IFELSE( [AC_LANG_SOURCE([ camlPervasives__loop_1128: .file 1 "pervasives.ml" .loc 1 193 ])], [as_has_debug_prefix_map=true AC_MSG_RESULT([yes])], [as_has_debug_prefix_map=false AC_MSG_RESULT([no])]) OCAML_CC_RESTORE_VARIABLES ]) AC_DEFUN([OCAML_AS_HAS_CFI_DIRECTIVES], [ AC_MSG_CHECKING([whether the assembler supports CFI directives]) AS_IF([test x"$enable_cfi" = "xno"], [AC_MSG_RESULT([disabled])], [OCAML_CC_SAVE_VARIABLES # Modify C-compiler variables to use the assembler CC="$ASPP" CFLAGS="-o conftest.$ac_objext" CPPFLAGS="" ac_ext="S" ac_compile='$CC $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' AC_COMPILE_IFELSE( [AC_LANG_SOURCE([ camlPervasives__loop_1128: .file 1 "pervasives.ml" .loc 1 193 .cfi_startproc .cfi_adjust_cfa_offset 8 .cfi_endproc ])], [aspp_ok=true], [aspp_ok=false]) AS_IF([test "$AS" = "$ASPP"], [as_ok="$aspp_ok"], [CC="$AS" ac_compile='$CC $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' AC_COMPILE_IFELSE( [AC_LANG_SOURCE([ camlPervasives__loop_1128: .file 1 "pervasives.ml" .loc 1 193 .cfi_startproc .cfi_adjust_cfa_offset 8 .cfi_endproc ])], [as_ok=true], [as_ok=false])]) OCAML_CC_RESTORE_VARIABLES AS_IF([$aspp_ok && $as_ok], [asm_cfi_supported=true AC_DEFINE([ASM_CFI_SUPPORTED], [1]) AC_MSG_RESULT([yes])], [AS_IF([test x"$enable_cfi" = "xyes"], [AC_MSG_RESULT([requested but not available AC_MSG_ERROR([exiting])])], [asm_cfi_supported=false AC_MSG_RESULT([no])])]) ])]) AC_DEFUN([OCAML_MMAP_SUPPORTS_MAP_STACK], [ AC_MSG_CHECKING([whether mmap supports MAP_STACK]) AC_RUN_IFELSE( [AC_LANG_PROGRAM([[ #include #include #include ]],[[ void *block; block = mmap (NULL, 4096, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE | MAP_STACK, -1, 0); if (block == MAP_FAILED) return 1; ]])], [has_mmap_map_stack=true AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])], [AC_MSG_RESULT([no assumed])]) ]) AC_DEFUN([OCAML_MMAP_SUPPORTS_HUGE_PAGES], [ AC_MSG_CHECKING([whether mmap supports huge pages]) AC_RUN_IFELSE( [AC_LANG_PROGRAM([[ #include #include #include #define huge_page_size (4 * 1024 * 1024) /* Test for the possible availability of huge pages. Answer yes if the OS knows about huge pages, even if they are not available on the build machine at configure time, because (on Linux) huge pages can be activated and deactivated easily while the system is running. */ ]],[[ void *block; char *p; int i, res; block = mmap (NULL, huge_page_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, -1, 0); if (block == MAP_FAILED){ block = mmap (NULL, huge_page_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); } if (block == MAP_FAILED){ perror ("mmap"); return 3; } /*printf ("block = %p\n", block);*/ p = (char *) block; for (i = 0; i < huge_page_size; i += 4096){ p[i] = (char) i; } ]])], [AC_DEFINE([HAS_HUGE_PAGES], [1]) AC_DEFINE_UNQUOTED([HUGE_PAGE_SIZE], [(4 * 1024 * 1024)]) AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])], [AC_MSG_RESULT([no assumed])]) ]) AC_DEFUN([OCAML_CHECK_LIBUNWIND], [ SAVED_CPPFLAGS="$CPPFLAGS" SAVED_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $libunwind_cppflags" LDFLAGS="$LDFLAGS $libunwind_ldflags" AC_CHECK_HEADER([libunwind.h], [AC_DEFINE([HAS_LIBUNWIND], [1]) libunwind_available=true], [libunwind_available=false]) LDFLAGS="$SAVED_LDFLAGS" CPPFLAGS="$SAVED_CPPFLAGS" ]) AC_DEFUN([OCAML_TEST_FLEXLINK], [ OCAML_CC_SAVE_VARIABLES AC_MSG_CHECKING([whether $1 works]) AC_COMPILE_IFELSE( [AC_LANG_SOURCE([int answer = 42;])], [# Create conftest1.$ac_objext as a symlink on Cygwin to ensure that native # flexlink can cope. The reverse test is unnecessary (a Cygwin-compiled # flexlink can read anything). mv conftest.$ac_objext conftest1.$ac_objext AS_CASE([$4],[*-*-cygwin], [ln -s conftest1.$ac_objext conftest2.$ac_objext], [cp conftest1.$ac_objext conftest2.$ac_objext]) CC="$1 -chain $2 -exe" LIBS="conftest2.$ac_objext" CPPFLAGS="$3 $CPPFLAGS" CFLAGS="" AC_LINK_IFELSE( [AC_LANG_PROGRAM], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_MSG_ERROR([$1 does not work])])], [AC_MSG_RESULT([unexpected compile error]) AC_MSG_ERROR([error calling the C compiler])]) OCAML_CC_RESTORE_VARIABLES ]) AC_DEFUN([OCAML_TEST_FLEXDLL_H], [ OCAML_CC_SAVE_VARIABLES AS_IF([test -n "$1"],[CPPFLAGS="-I $1 $CPPFLAGS"]) have_flexdll_h=no AC_CHECK_HEADER([flexdll.h],[have_flexdll_h=yes],[have_flexdll_h=no]) AS_IF([test x"$have_flexdll_h" = 'xno'], [AS_IF([test -n "$1"], [AC_MSG_ERROR([$1/flexdll.h appears unusable])])]) OCAML_CC_RESTORE_VARIABLES ]) AC_DEFUN([OCAML_TEST_FLEXLINK_WHERE], [ OCAML_CC_SAVE_VARIABLES AC_MSG_CHECKING([if "$1 -where" includes flexdll.h]) flexlink_where="$($1 -where | tr -d '\r')" CPPFLAGS="$CPPFLAGS -I \"$flexlink_where\"" cat > conftest.c <<"EOF" AC_LANG_PROGRAM([[#include ]]) EOF cat > conftest.Makefile </dev/null 2>/dev/null], [have_flexdll_h=yes AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) OCAML_CC_RESTORE_VARIABLES ]) AC_DEFUN([OCAML_TEST_WINPTHREADS_PTHREAD_H], [ OCAML_CC_SAVE_VARIABLES AS_IF([test -n "$1"],[CPPFLAGS="-I $1 $CPPFLAGS"]) AC_CHECK_HEADER([pthread.h],[], [AC_MSG_ERROR([cannot find or use pthread.h from winpthreads])]) OCAML_CC_RESTORE_VARIABLES ]) AC_DEFUN([OCAML_TARGET_IS_EXECUTABLE], [ AC_MSG_CHECKING([whether target executables can be run in the build]) old_cross_compiling="$cross_compiling" cross_compiling='no' AC_RUN_IFELSE( [AC_LANG_PROGRAM], [AC_MSG_RESULT([yes]) target_runnable=true], [AC_MSG_RESULT([no]) target_runnable=false], # autoconf displays a warning if this parameter is missing, but # cross-compilation mode was disabled above. [assert=false]) cross_compiling="$old_cross_compiling" ]) # This is AC_RUN_IFELSE but taking $target_runnable into account (i.e. if the # program can be run, then it is run) AC_DEFUN([OCAML_RUN_IFELSE], [ old_cross_compiling="$cross_compiling" AS_IF([test "x$target_runnable" = 'xtrue'], [cross_compiling='no']) AC_RUN_IFELSE([$1],[$2],[$3],[$4]) cross_compiling="$old_cross_compiling" ]) AC_DEFUN([OCAML_C99_CHECK_ROUND], [ AC_MSG_CHECKING([whether round works]) OCAML_RUN_IFELSE( [AC_LANG_PROGRAM([[#include ]],[[ static volatile double d = 0.49999999999999994449; if (fpclassify(round(d)) != FP_ZERO) return 1; ]])], [AC_MSG_RESULT([yes]) AC_DEFINE([HAS_WORKING_ROUND], [1])], [AC_MSG_RESULT([no]) AS_CASE([$enable_imprecise_c99_float_ops,$target], [no,*], [hard_error=true], [yes,*], [hard_error=false], [*,x86_64-w64-mingw32*], [hard_error=false], [hard_error=true]) AS_IF([test x"$hard_error" = "xtrue"], [AC_MSG_ERROR(m4_normalize([ round does not work, enable emulation with --enable-imprecise-c99-float-ops]))], [AC_MSG_WARN(m4_normalize([ round does not work; emulation enabled]))])], [AS_CASE([$target], [x86_64-w64-mingw32*],[AC_MSG_RESULT([cross-compiling; assume not])], [AC_MSG_RESULT([cross-compiling; assume yes]) AC_DEFINE([HAS_WORKING_ROUND], [1])])]) ]) AC_DEFUN([OCAML_C99_CHECK_FMA], [ AC_MSG_CHECKING([whether fma works]) OCAML_RUN_IFELSE( [AC_LANG_PROGRAM([[#include ]],[[ /* Tests 264-266 from testsuite/tests/fma/fma.ml. These tests trigger the broken implementations of Cygwin64 and mingw-w64 (x86_64). The static volatile variables aim to thwart GCC's constant folding. */ static volatile double x, y, z; volatile double t264, t265, t266; x = 0x3.bd5b7dde5fddap-496; y = 0x3.bd5b7dde5fddap-496; z = -0xd.fc352bc352bap-992; t264 = fma(x, y, z); x = 0x3.bd5b7dde5fddap-504; y = 0x3.bd5b7dde5fddap-504; z = -0xd.fc352bc352bap-1008; t265 = fma(x, y, z); x = 0x8p-540; y = 0x4p-540; z = 0x4p-1076; t266 = fma(x, y, z); if (!(t264 == 0x1.0989687cp-1044 || t264 == 0x0.000004277ca1fp-1022 || /* Acceptable emulated values */ t264 == 0x0.00000428p-1022) || !(t265 == 0x1.0988p-1060 || t265 == 0x0.0000000004278p-1022 || /* Acceptable emulated values */ t265 == 0x0.000000000428p-1022) || !(t266 == 0x8p-1076)) return 1; ]])], [AC_MSG_RESULT([yes]) AC_DEFINE([HAS_WORKING_FMA], [1])], [AC_MSG_RESULT([no]) AS_CASE([$enable_imprecise_c99_float_ops,$target], [no,*], [hard_error=true], [yes,*], [hard_error=false], [*,x86_64-w64-mingw32*|*,x86_64-*-cygwin], [hard_error=false], [hard_error=true]) AS_IF([test x"$hard_error" = "xtrue"], [AC_MSG_ERROR(m4_normalize([ fma does not work, enable emulation with --enable-imprecise-c99-float-ops]))], [AC_MSG_WARN(m4_normalize([ fma does not work; emulation enabled]))])], [AS_CASE([$target], [x86_64-w64-mingw32*|x86_64-*-cygwin], [AC_MSG_RESULT([cross-compiling; assume not])], [AC_MSG_RESULT([cross-compiling; assume yes]) AC_DEFINE([HAS_WORKING_FMA], [1])])]) ]) # Computes a suitable id to insert in quoted strings to ensure that all OCaml # quoted strings generated by configure cannot be "escaped". The ID takes the # form {o*|string|o*}. AC_DEFUN([OCAML_QUOTED_STRING_ID], [ # Go through ac_subst_vars and put all the values to be substituted in # $all_values. QS='' all_values='' for name in $ac_subst_vars; do eval "value=\$${name}" all_values="$all_values $value" done # Keep adding 'o' to $QS until |$QS} doesn't appear in any substitution. test_string='' while test "x${test_string}" != "x${all_values}"; do test_string="$all_values" eval "test_string=\"\${test_string##*\|${QS}\}}\"" if test "x${test_string}" != "x${all_values}"; then QS="o${QS}" fi done ]) AC_DEFUN([OCAML_CC_SUPPORTS_ATOMIC], [ OCAML_CC_SAVE_VARIABLES opts="" AS_IF([test -n "$1"],[CFLAGS="$CFLAGS $1"; opts="$1"]) AS_IF([test -n "$2"],[LIBS="$LIBS $2"; opts="${opts:+$opts }$2"]) AC_MSG_CHECKING(m4_normalize([if $CC supports _Atomic types with ${opts:-no additional options}])) AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include #include ]],[[ _Atomic int64_t n; int m; int * _Atomic p = &m; atomic_store_explicit(&n, 123, memory_order_release); * atomic_exchange(&p, 0) = 45; if (atomic_load_explicit(&n, memory_order_acquire)) return 1; ]])], [cc_supports_atomic=true AC_MSG_RESULT([yes])], [cc_supports_atomic=false AC_MSG_RESULT([no])]) OCAML_CC_RESTORE_VARIABLES ]) # Detects whether the C compiler generates an explicit .note.GNU-stack section # to mark the stack as non-executable, so that we can follow suit AC_DEFUN([OCAML_WITH_NONEXECSTACK_NOTE], [AC_REQUIRE([AC_PROG_FGREP])dnl AC_CACHE_CHECK([if $CC generates a .note.GNU-stack section], [ocaml_cv_prog_cc_nonexecstack_note], [OCAML_CC_SAVE_VARIABLES # We write the assembly into the .$ac_objext file as AC_COMPILE_IFELSE # assumes an error if such a file doesn't exist after compiling CFLAGS="$CFLAGS -S -o conftest.$ac_objext" ocaml_cv_prog_cc_nonexecstack_note=no AC_COMPILE_IFELSE([AC_LANG_SOURCE], [AS_IF([$FGREP .note.GNU-stack conftest.$ac_objext >/dev/null], [ocaml_cv_prog_cc_nonexecstack_note=yes])]) OCAML_CC_RESTORE_VARIABLES]) AS_IF([test "x$ocaml_cv_prog_cc_nonexecstack_note" = xyes], [with_nonexecstack_note=true AC_DEFINE([WITH_NONEXECSTACK_NOTE], [1])], [with_nonexecstack_note=false]) ]) AC_DEFUN([OCAML_ASM_SIZE_TYPE_DIRECTIVES], [AC_REQUIRE([AC_PROG_GREP])dnl AC_CACHE_CHECK([if $CC generates .size and .type asm directives], [ocaml_cv_prog_cc_asm_size_type_directives], [OCAML_CC_SAVE_VARIABLES # We write the assembly into the .$ac_objext file as AC_COMPILE_IFELSE # assumes an error if such a file doesn't exist after compiling CFLAGS="$CFLAGS -S -o conftest.$ac_objext" ocaml_cv_prog_cc_asm_size_type_directives=no AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ int feat_detect_obj; int feat_detect_func(void) { return 42; } ]])], [asm_type_obj_directive=no asm_type_func_directive=no asm_size_func_directive=no # We do not look for a .size directive for the object as it is not # generated in that simple case for instance by the compiler # powerpc64le-linux-gnu-gcc 14.2 which emits instead an .lcomm directive AS_IF([$GREP '\.type.*feat_detect_obj' conftest.$ac_objext >/dev/null], [asm_type_obj_directive=yes]) AS_IF([$GREP '\.type.*feat_detect_func' conftest.$ac_objext >/dev/null], [asm_type_func_directive=yes]) AS_IF([$GREP '\.size.*feat_detect_func' conftest.$ac_objext >/dev/null], [asm_size_func_directive=yes]) AS_CASE([m4_join([,],[$asm_type_obj_directive],[$asm_type_func_directive], [$asm_size_func_directive])], [yes,yes,yes], [ocaml_cv_prog_cc_asm_size_type_directives=yes], [no,no,no], [ocaml_cv_prog_cc_asm_size_type_directives=no], [ocaml_cv_prog_cc_asm_size_type_directives=unconclusive])]) OCAML_CC_RESTORE_VARIABLES]) AS_CASE([$ocaml_cv_prog_cc_asm_size_type_directives], [yes], [asm_size_type_directives=true AC_DEFINE([ASM_SIZE_TYPE_DIRECTIVES], [1])], [no], [asm_size_type_directives=false], [AC_MSG_WARN([found inconsistent results for .size and .type directives]) asm_size_type_directives=false]) ]) AC_DEFUN([OCAML_CC_SUPPORTS_LABELS_AS_VALUES], [ AC_CACHE_CHECK([whether $CC supports the labels as values extension], [ocaml_cv_prog_cc_labels_as_values], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ void *ptr; ptr = &&foo; goto *ptr; return 1; foo: ]])], [ocaml_cv_prog_cc_labels_as_values=yes], [ocaml_cv_prog_cc_labels_as_values=no]) ]) if test "x$ocaml_cv_prog_cc_labels_as_values" = xyes; then AC_DEFINE([HAVE_LABELS_AS_VALUES], [1], [Define if the C compiler supports the labels as values extension.]) fi ]) AC_DEFUN([OCAML_CHECK_LN_ON_WINDOWS], [ AC_MSG_CHECKING([for a workable solution for ln -sf]) AS_IF([m4_normalize(MSYS=winsymlinks:nativestrict CYGWIN=winsymlinks:nativestrict ln -sf configure conftestLink 2>/dev/null)], [ln='ln -sf'], [ln='cp -pf'] ) AC_MSG_RESULT([$ln]) ]) AC_DEFUN([OCAML_CHECK_WINDOWS_TRIPLET], [ AS_CASE([$1], [i686-*-cygwin|x86_64-*-cygwin],[], [*-*-cygwin*], [AC_MSG_ERROR([unknown Cygwin variant])], [i686-w64-mingw32*|x86_64-w64-mingw32*],[], [*-*-mingw*], [AC_MSG_ERROR([unknown mingw-w64 variant])], [i686-pc-windows|x86_64-pc-windows],[], [*-pc-windows*], [AC_MSG_ERROR([unknown MSVC variant])]) ])