<<< Date Index >>>     <<< Thread Index >>>

[PATCH] Fix for OpenSolaris libidn



# HG changeset patch
# User David Champion <dgc@xxxxxxxxxxxx>
# Date 1208972007 18000
# Branch HEAD
# Node ID f046a757ccc680fd599e1e0fa22878137bdb5fc6
# Parent  bdd44e92919d9912abf34a2ffc5d7df34f1b450d
Fix for OpenSolaris libidn.

OpenSolaris Nevada (5.11) ships GNU libidn in /usr/lib.  Headers
are at /usr/include/idn, but <idn/idna.h> pulls <idn-int.h> --
i.e., it does not internally adjust paths to use the idn/ prefix.

Mutt fails to find <idn/idna.h>, but detecting the location of
idna.h won't help because of the unadjusted paths.  So we just add
-I/usr/include/idn to CPPFLAGS.

diff -r bdd44e92919d -r f046a757ccc6 configure.ac
--- a/configure.ac      Thu Apr 03 17:08:13 2008 +0200
+++ b/configure.ac      Wed Apr 23 12:33:27 2008 -0500
@@ -1082,6 +1082,9 @@
       AC_MSG_ERROR([IDN requested but iconv is disabled or unavailable])
     fi
   else
+    if test "`uname -sr`" = "SunOS 5.11" -a -d /usr/include/idn; then
+      CPPFLAGS="$CPPFLAGS -I/usr/include/idn"
+    fi
     AC_CHECK_LIB(idn, stringprep_check_version)
     AC_CHECK_FUNCS(idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z)
     AC_CHECK_FUNCS(idna_to_ascii_from_utf8 idna_to_ascii_8z)