# HG changeset patch # User reimar # Date 1147547000 0 # Node ID d8083c152f3eb666e13602c114176b055526b9c1 # Parent 928087596d71ed5da71751470a4dcf36c23fa407 add check for a working iconv program and point to workaround if not found diff -r 928087596d71 -r d8083c152f3e configure --- a/configure Sat May 13 18:38:57 2006 +0000 +++ b/configure Sat May 13 19:03:20 2006 +0000 @@ -7057,6 +7057,24 @@ _def_charset="#undef MSG_CHARSET" fi +echocheck "iconv program" +iconv -f `cat ${_mp_help}.charset` -t $_charset ${_mp_help} > /dev/null 2>> "$TMPLOG" +if test "$?" -ne 0 ; then + echores "no" + if test "$_charset" != `cat ${_mp_help}.charset` ; then + echo "No working iconv program found, use " + echo "--charset=`cat ${_mp_help}.charset` to continue anyway." + echo "Messages in the GTK-2 interface will be broken then." + exit 1 + fi +else + echores "yes" +fi + +if test "$_charset" = `cat ${_mp_help}.charset` ; then + # hack to disable conversion in the Makefile + _charset="" +fi #############################################################################