diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-05-11 16:25:01 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-05-11 16:25:01 +0200 |
commit | 9168fc87b429f0e85b79da5713716c01f0b48de4 (patch) | |
tree | de7c51c284d2416a2a493924952f7c8178b3749a | |
parent | 4b88ac71f2e93d1158f29fff7fa577a78c534733 (diff) | |
download | curl-bagder/configure-macidn.tar.gz |
configure: make --disable-macidn switch off USE_MACIDNbagder/configure-macidn
-rwxr-xr-x | configure.ac | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index aa79cfa42..2b1af8894 100755 --- a/configure.ac +++ b/configure.ac @@ -3362,6 +3362,27 @@ if test "$want_idn" = "yes"; then fi fi +dnl ------------------------------------------------- +dnl macidn +dnl ------------------------------------------------- +if test "x$want_idn" != "xyes" -a "x$want_winidn" != "xyes"; then + dnl only check if no other IDN option has been selected +AC_MSG_CHECKING([whether to support native IDN on macOS]) +AC_ARG_ENABLE(macidn, +AC_HELP_STRING([--enable-macidn],[Enable native IDN on macOS]) +AC_HELP_STRING([--disable-macidn],[Disable native IDN on macOS]), +[ case "$enableval" in + no) AC_MSG_RESULT(no) + ;; + *) AC_MSG_RESULT(yes) + curl_idn_msg="enabled (macidn)" + AC_DEFINE(USE_MACIDN, 1, [define 1 to use native macOS IDN]) + ;; + esac ], + AC_MSG_RESULT(no) +) +fi + dnl Let's hope this split URL remains working: dnl https://www15.software.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/ \ |