From afd8896d35ae94dae07006b7f1a14e2dc211cee7 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 28 Jun 2017 10:53:20 +0200 Subject: [PATCH] comments --- src/configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/configure.ac b/src/configure.ac index 58302df2..772099fd 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -259,6 +259,10 @@ AC_LANG(C++) LIBICONV="" S_LIBS=$LIBS S_CPPFLAGS=$CPPFLAGS +# On systems which both have iconv in libc and libiconv in /usr/local this +# will not work: the iconv.h in /usr/local will be found at compile time, +# and redefine iconv_open to libiconv_open, but the link will not have +# -liconv. Have to remove ${libdir} or move /usr/local/lib first. for dir in ${libdir} /opt/local/lib /usr/local/lib;do CPPFLAGS="$S_CPPFLAGS -I$dir/../include"