[MPlayer-dev-eng] [patch] [2nd try] configure pointing to translated doc's
Torinthiel
torinthiel at megapolis.pl
Tue Jun 15 08:22:17 CEST 2004
Ok, so here is second version. Id doesn't add much complexity to
configure, only two extra lines. And I think that if we have
documentation then we should use it ;). Or more specific, I think that
if configure knows user wants a certain language and documentation in
that language exists then it should point for tips to that documentation
and not always to English one.
It would be even nicer if we could add making configure output messages
in given language and make compiler warnings also point to translated
docs, but it would mean moving language test before everything else and
really some more complexity. (or depending on GNU gettext which is IMHO
a bad idea).
Torinthiel
--
Waclaw "Torinthiel" Schiller GG#: 542916, 3073512
torinthiel(at)megapolis(dot)pl
gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8 7346 2B6E 39F2 B069 01F1
"No classmates may be used during this examination"
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.869
diff -u -r1.869 configure
--- configure 13 Jun 2004 16:44:34 -0000 1.869
+++ configure 15 Jun 2004 06:11:47 -0000
@@ -2038,6 +2038,8 @@
echores "using $_language (man pages: $LANGUAGES)"
_mp_help="help/help_mp-${_language}.h"
test -f $_mp_help || die "$_mp_help not found"
+_doc_lang=$_language
+test -d DOCS/xml/$_doc_lang || _doc_lang=en
echocheck "enable sighandler"
if test "$_sighandler" = yes ; then
@@ -2240,7 +2242,7 @@
if test "$_inttypes" = yes ; then
die "You don't have inttypes.h, but sys/bitypes.h is present. Please copy etc/inttypes.h into the include path, and re-run configure."
else
- die "Cannot find header either inttypes.h or bitypes.h (see DOCS/HTML/en/faq.html)."
+ die "Cannot find header either inttypes.h or bitypes.h (see DOCS/HTML/$_doc_lang/faq.html)."
fi
fi
echores "$_inttypes"
@@ -4977,7 +4979,7 @@
if test "$_xanim" = yes ; then
echores "yes (using $_xanimlibdir)"
else
- echores "no (no suitable directory found - see DOCS/HTML/en/codecs.html)"
+ echores "no (no suitable directory found - see DOCS/HTML/$_doc_lang/codecs.html)"
fi
else
echores "no (dynamic loader support needed)"
@@ -5021,7 +5023,7 @@
if test "$_real" = yes ; then
echores "yes (using $_reallibdir)"
else
- echores "no (no suitable directory found - see DOCS/HTML/en/codecs.html)"
+ echores "no (no suitable directory found - see DOCS/HTML/$_doc_lang/codecs.html)"
fi
fi
else
@@ -5089,7 +5091,7 @@
echores "no (old ffmpeg version, use CVS !)"
fi
else
- echores "no (see DOCS/HTML/en/codecs.html)"
+ echores "no (see DOCS/HTML/$_doc_lang/codecs.html)"
fi
else
echores "$_libavcodec"
@@ -6770,7 +6772,7 @@
if test "$_mtrr" = yes ; then
- echo "Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/devices.html#mtrr)"
+ echo "Please check mtrr settings at /proc/mtrr (see DOCS/HTML/$_doc_lang/devices.html#mtrr)"
echo
fi
@@ -6818,7 +6820,7 @@
Check $TMPLOG if you wonder why an autodetection failed (check whether
the development headers/packages are installed).
-If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
+If you suspect a bug, please read DOCS/HTML/$_doc_lang/bugreports.html.
EOF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040615/337ce6cb/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list