autotools, cmake: set SDL_SYSTEM_ICONV to OFF for windows (like SDL3.)

This commit is contained in:
Ozkan Sezer authored and Ozkan Sezer committed 2023-11-23 03:32:04 +03:00
1 parent 0e9d050296
commit 8cf7e9e7da
3 files changed
+22 -5

No files matched your search

+8 -2
View File
@@ -320,9 +320,15 @@ AC_ARG_ENABLE(libc,
, enable_libc=yes)
dnl See whether we are allowed to use system iconv
enable_system_iconv_default=yes
case "$host" in
*-*-cygwin*|*-*-mingw*)
enable_system_iconv_default=no
;;
esac
AC_ARG_ENABLE(system-iconv,
[AS_HELP_STRING([--enable-system-iconv], [Use iconv() from system-installed libraries [default=yes]])],
, enable_system_iconv=yes)
[AS_HELP_STRING([--enable-system-iconv], [Use iconv() from system-installed libraries [default=no for windows, yes for others]])],
, enable_system_iconv=$enable_system_iconv_default)
dnl See whether we prefer libiconv over libc
AC_ARG_ENABLE(libiconv,
[AS_HELP_STRING([--enable-libiconv], [Prefer iconv() from libiconv, if available, over libc version [default=no]])],