diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-08-04 09:48:42 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-08-04 09:49:08 +0100 |
commit | c063831df5db1d3789edd8ade4e8c370390c93de (patch) | |
tree | 5bf89c8ee1d2ee6148e69b8fadcf71004eaf2961 | |
parent | 63f9f3113c731b7a7ced2f10b047722647d7b544 (diff) | |
download | rtmux-c063831df5db1d3789edd8ade4e8c370390c93de.tar.gz rtmux-c063831df5db1d3789edd8ade4e8c370390c93de.tar.bz2 rtmux-c063831df5db1d3789edd8ade4e8c370390c93de.zip |
Do not configure on macOS without the user making a choice about utf8proc.
-rw-r--r-- | configure.ac | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index dfbc24df..6df455b3 100644 --- a/configure.ac +++ b/configure.ac @@ -770,19 +770,32 @@ case "$host_os" in AC_MSG_RESULT(darwin) PLATFORM=darwin # - # OS X uses __dead2 instead of __dead, like FreeBSD. But it - # defines __dead away so it needs to be removed before we can - # replace it. + # macOS uses __dead2 instead of __dead, like FreeBSD. But it defines + # __dead away so it needs to be removed before we can replace it. # AC_DEFINE(BROKEN___DEAD) # - # OS X CMSG_FIRSTHDR is broken, so redefine it with a working - # one. daemon works but has some stupid side effects, so use - # our internal version which has a workaround. + # macOS CMSG_FIRSTHDR is broken, so redefine it with a working one. + # daemon works but has some stupid side effects, so use our internal + # version which has a workaround. # AC_DEFINE(BROKEN_CMSG_FIRSTHDR) AC_LIBOBJ(daemon) AC_LIBOBJ(daemon-darwin) + # + # macOS wcwidth(3) is bad, so complain and suggest using utf8proc + # instead. + # + if test "x$enable_utf8proc" = x; then + AC_MSG_NOTICE([]) + AC_MSG_NOTICE([ macOS library support for Unicode is very poor,]) + AC_MSG_NOTICE([ particularly for complex codepoints like emojis;]) + AC_MSG_NOTICE([ to use these correctly, configuring with]) + AC_MSG_NOTICE([ --enable-utf8proc is recommended. To build]) + AC_MSG_NOTICE([ without anyway, use --disable-utf8proc]) + AC_MSG_NOTICE([]) + AC_MSG_ERROR([must give --enable-utf8proc or --disable-utf8proc]) + fi ;; *dragonfly*) AC_MSG_RESULT(dragonfly) |