[Freeciv-Dev] (PR#12932) windows printf doesn't allow reordering argumen
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12932 >
> [s_keishi@xxxxxxxxxxxxxxxxxxx - Sun Jan 29 13:55:32 2006]:
>
> I made patch. and atached.
>
> Apply this, regenerate autotool files and make.
Adding a new .c file should not be necessary. Libutf8 should do this
for us. For instance if that .c file were simply included in libutf8,
the job would be done!
It looks to me like utf8/stdio.h basically does this. How about this
patch - does it work?
-jason
Index: configure.ac
===================================================================
--- configure.ac (revision 11543)
+++ configure.ac (working copy)
@@ -343,6 +343,19 @@
AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR", [Locale directory])
fi
+dnl Check libUTF8
+AC_ARG_WITH(libutf8,
+ AC_HELP_STRING([--with-libutf8],
+ [Use the libutf8 library (needed for some systems)]),
+ [with_libutf8=$withval], [with_libutf8=no])
+if test "$MINGW32" = yes || test "$with_libutf8" = yes; then
+ AC_CHECK_HEADER(libutf8.h, [],
+ AC_MSG_ERROR([Could not find libutf8 library (libutf8.h)]))
+ AC_DEFINE(HAVE_LIBUTF8_H, 1, [Use libutf8's stdio functions])
+ AH_VERBATIM(INCLUDE_LIBUTF8, [#include <libutf8.h>])
+ LIBS="$LIBS -lutf8"
+fi
+
dnl Check for zlib (needed for libpng)
AC_CHECK_LIB(z, gzgets, ,
AC_MSG_ERROR([Could not find zlib library.]), )
- [Freeciv-Dev] (PR#12932) windows printf doesn't allow reordering arguments,
Jason Short <=
|
|