[MPlayer-dev-eng] [PATCH] check for iconv program in configure

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat May 13 00:45:31 CEST 2006


Hi,
this is a hackish approach for the dependency problem on the iconv
program I introduced (make fails in some weird ways when it is not
available).
Sorry for not doing this earlier and better, but I hate configure stuff.

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1199
diff -u -u -r1.1199 configure
--- configure	12 May 2006 17:07:22 -0000	1.1199
+++ configure	12 May 2006 22:41:21 -0000
@@ -7058,6 +7062,19 @@
   _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
 
 #############################################################################
 


More information about the MPlayer-dev-eng mailing list