[Freeciv-Dev] (PR#11932) ngettext isn't recognized when compiling with l
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11932 >
When compiling with libintl, the ngettext function isn't found.
The problem spewed by config.log is that some iconv functions are
undefined. Indeed, the iconv check is done way below the gettext check
even though iconv is used by gettext (but not the other way around).
Looking at libintl.la, libiconv.la is listed as a dependency...so the
check should succeed. But it doesn't. Another oddness is that the
gettext function is found, no problem.
I think it is safe to move the iconv checks up. It may even solve the
auto-compilation problems that the daily snapshots have been having (I
have no idea how to test this).
RCS file: /home/freeciv/CVS/freeciv/configure.ac,v
retrieving revision 188.8.131.52
diff -u -r184.108.40.206 configure.ac
--- configure.ac 9 Dec 2004 03:32:11 -0000 220.127.116.11
+++ configure.ac 15 Jan 2005 09:56:21 -0000
@@ -148,6 +148,18 @@
dnl Programs already checked by AM_INIT_AUTOMAKE:
+dnl Check for libiconv (which is usually included in glibc, but may be
+dnl distributed separately). The libcharset check must come after the
+dnl iconv check. This whole thing must come before the gettext check below.
+if test "$am_cv_func_iconv" != yes; then
+ AC_MSG_ERROR([Iconv is missing. You can get it from http://gnu.org/, \
+ or try using --with-libiconv-prefix.])
dnl I18n support
ALL_LINGUAS="ca cs da de en_GB es et fi fr he_IL hu it ja nl no pl pt pt_BR ro
ru sv uk"
@@ -327,19 +339,6 @@
FTWL_LIBS=`sdl-config --libs`" -lpng "`freetype-config --libs`
-dnl Check for libiconv (which is usually included in glibc, but may be
-dnl distributed separately). The libcharset check must come after the
-dnl iconv check. Langinfo_codeset is already checked in gettext but we
-dnl don't rely on that (since we use it ourselves).
-if test "$am_cv_func_iconv" != yes; then
- AC_MSG_ERROR([Iconv is missing. You can get it from http://gnu.org/, \
- or try using --with-libiconv-prefix.])
dnl Check and choose clients
if test x$client != xno; then
|[Prev in Thread]
||[Next in Thread]|
- [Freeciv-Dev] (PR#11932) ngettext isn't recognized when compiling with libintl,
Jason Short <=