comparison configure.ac @ 6810:92633c7288cd

build: Switch default C runtime for Windows from MSVCRT to UCRT.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 01 Aug 2023 18:03:05 +0200
parents 7c0066684448
children 6adeb47401d6
comparison
equal deleted inserted replaced
6809:968a8e4a34e2 6810:92633c7288cd
99 esac], [USE_MSYS2=yes]) 99 esac], [USE_MSYS2=yes])
100 AC_SUBST(USE_MSYS2) 100 AC_SUBST(USE_MSYS2)
101 101
102 # Use "msvcrt" or "ucrt" on Windows 102 # Use "msvcrt" or "ucrt" on Windows
103 AC_ARG_WITH([windows-msvcrt], 103 AC_ARG_WITH([windows-msvcrt],
104 [AS_HELP_STRING([--with-windows-msvcrt=msvcrt], [select C runtime for windows distribution (default: msvcrt)])], 104 [AS_HELP_STRING([--with-windows-msvcrt=msvcrt], [select C runtime for windows distribution (default: ucrt)])],
105 [case $withval in 105 [case $withval in
106 no) AC_MSG_ERROR([A runtime for Windows is required for --with-windows-msvcrt]) ;; 106 no) AC_MSG_ERROR([A runtime for Windows is required for --with-windows-msvcrt]) ;;
107 yes | "") HOST_MSVCRT=msvcrt ;; 107 yes | "") HOST_MSVCRT=ucrt ;;
108 *) HOST_MSVCRT="$withval" ;; 108 *) HOST_MSVCRT="$withval" ;;
109 esac], [HOST_MSVCRT=msvcrt]) 109 esac], [HOST_MSVCRT=ucrt])
110 AC_SUBST(HOST_MSVCRT) 110 AC_SUBST(HOST_MSVCRT)
111 111
112 # try find pkg-config build paths 112 # try find pkg-config build paths
113 BUILD_PKG_CONFIG_PATH=auto 113 BUILD_PKG_CONFIG_PATH=auto
114 AC_ARG_WITH([build-pkg-config-path], 114 AC_ARG_WITH([build-pkg-config-path],