Skip to content

Commit

Permalink
configure: make --disable-macidn switch off USE_MACIDN
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed May 11, 2020
1 parent 4b88ac7 commit 9168fc8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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/ \
Expand Down

0 comments on commit 9168fc8

Please sign in to comment.