1diff -Nru -x '*~' gettext-0.18.orig/cmake/Modules/Findiconv.cmake gettext-0.18/cmake/Modules/Findiconv.cmake
2--- gettext-0.18.orig/cmake/Modules/Findiconv.cmake	1970-01-01 01:00:00.000000000 +0100
3+++ gettext-0.18/cmake/Modules/Findiconv.cmake	2013-03-19 08:59:56.985779000 +0100
4@@ -0,0 +1,60 @@
5+# - Try to find Iconv
6+# Once done this will define
7+#
8+#  ICONV_FOUND - system has Iconv
9+#  ICONV_INCLUDE_DIR - the Iconv include directory
10+#  ICONV_LIBRARIES - Link these to use Iconv
11+#  ICONV_SECOND_ARGUMENT_IS_CONST - the second argument for iconv() is const
12+#
13+include(CheckCXXSourceCompiles)
14+
15+IF (ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
16+  # Already in cache, be silent
17+  SET(ICONV_FIND_QUIETLY TRUE)
18+ENDIF (ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
19+
20+FIND_PATH(ICONV_INCLUDE_DIR iconv.h)
21+
22+FIND_LIBRARY(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c)
23+
24+IF(ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
25+   SET(ICONV_FOUND TRUE)
26+ENDIF(ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
27+
28+set(CMAKE_REQUIRED_INCLUDES ${ICONV_INCLUDE_DIR})
29+set(CMAKE_REQUIRED_LIBRARIES ${ICONV_LIBRARIES})
30+IF(ICONV_FOUND)
31+  check_cxx_source_compiles("
32+  #include <iconv.h>
33+  int main(){
34+    iconv_t conv = 0;
35+    const char* in = 0;
36+    size_t ilen = 0;
37+    char* out = 0;
38+    size_t olen = 0;
39+    iconv(conv, &in, &ilen, &out, &olen);
40+    return 0;
41+  }
42+" ICONV_SECOND_ARGUMENT_IS_CONST )
43+  IF(ICONV_SECOND_ARGUMENT_IS_CONST)
44+    SET(ICONV_CONST "const")
45+  ENDIF(ICONV_SECOND_ARGUMENT_IS_CONST)
46+ENDIF(ICONV_FOUND)
47+set(CMAKE_REQUIRED_INCLUDES)
48+set(CMAKE_REQUIRED_LIBRARIES)
49+
50+IF(ICONV_FOUND)
51+  IF(NOT ICONV_FIND_QUIETLY)
52+    MESSAGE(STATUS "Found Iconv: ${ICONV_LIBRARIES}")
53+  ENDIF(NOT ICONV_FIND_QUIETLY)
54+ELSE(ICONV_FOUND)
55+  IF(Iconv_FIND_REQUIRED)
56+    MESSAGE(FATAL_ERROR "Could not find Iconv")
57+  ENDIF(Iconv_FIND_REQUIRED)
58+ENDIF(ICONV_FOUND)
59+
60+MARK_AS_ADVANCED(
61+  ICONV_INCLUDE_DIR
62+  ICONV_LIBRARIES
63+  ICONV_SECOND_ARGUMENT_IS_CONST
64+)
65diff -Nru -x '*~' gettext-0.18.orig/cmake/Modules/FindWcecompat.cmake gettext-0.18/cmake/Modules/FindWcecompat.cmake
66--- gettext-0.18.orig/cmake/Modules/FindWcecompat.cmake	1970-01-01 01:00:00.000000000 +0100
67+++ gettext-0.18/cmake/Modules/FindWcecompat.cmake	2013-03-19 08:59:56.997779700 +0100
68@@ -0,0 +1,33 @@
69+# Try to find Wcecompat functionality
70+# Once done this will define
71+#
72+#  WCECOMPAT_FOUND - system has Wcecompat
73+#  WCECOMPAT_INCLUDE_DIR - Wcecompat include directory
74+#  WCECOMPAT_LIBRARIES - Libraries needed to use Wcecompat
75+#
76+# Copyright (c) 2010, Andreas Holzammer, <andy@kdab.com>
77+#
78+# Redistribution and use is allowed according to the terms of the BSD license.
79+
80+if(WCECOMPAT_INCLUDE_DIR AND WCECOMPAT_LIB_FOUND)
81+  set(Wcecompat_FIND_QUIETLY TRUE)
82+endif(WCECOMPAT_INCLUDE_DIR AND WCECOMPAT_LIB_FOUND)
83+
84+find_path(WCECOMPAT_INCLUDE_DIR errno.h PATH_SUFFIXES wcecompat)
85+
86+set(WCECOMPAT_LIB_FOUND FALSE)
87+
88+if(WCECOMPAT_INCLUDE_DIR)
89+    find_library(WCECOMPAT_LIBRARIES NAMES wcecompat wcecompatex )
90+    if(WCECOMPAT_LIBRARIES)
91+      set(WCECOMPAT_LIB_FOUND TRUE)
92+    endif(WCECOMPAT_LIBRARIES)
93+endif(WCECOMPAT_INCLUDE_DIR)
94+
95+# I have no idea what this is about, but it seems to be used quite often, so I add this here
96+set(WCECOMPAT_CONST const)
97+
98+include(FindPackageHandleStandardArgs)
99+find_package_handle_standard_args(Wcecompat  DEFAULT_MSG  WCECOMPAT_LIBRARIES  WCECOMPAT_LIB_FOUND)
100+
101+mark_as_advanced(WCECOMPAT_INCLUDE_DIR  WCECOMPAT_LIBRARIES  WCECOMPAT_CONST  WCECOMPAT_LIB_FOUND)
102diff -Nru -x '*~' gettext-0.18.orig/cmake/Modules/MacroBoolTo01.cmake gettext-0.18/cmake/Modules/MacroBoolTo01.cmake
103--- gettext-0.18.orig/cmake/Modules/MacroBoolTo01.cmake	1970-01-01 01:00:00.000000000 +0100
104+++ gettext-0.18/cmake/Modules/MacroBoolTo01.cmake	2013-03-19 08:59:57.000779900 +0100
105@@ -0,0 +1,20 @@
106+# MACRO_BOOL_TO_01( VAR RESULT0 ... RESULTN )
107+# This macro evaluates its first argument
108+# and sets all the given vaiables either to 0 or 1
109+# depending on the value of the first one
110+
111+# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
112+#
113+# Redistribution and use is allowed according to the terms of the BSD license.
114+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
115+
116+
117+MACRO(MACRO_BOOL_TO_01 FOUND_VAR )
118+   FOREACH (_current_VAR ${ARGN})
119+      IF(${FOUND_VAR})
120+         SET(${_current_VAR} 1)
121+      ELSE(${FOUND_VAR})
122+         SET(${_current_VAR} 0)
123+      ENDIF(${FOUND_VAR})
124+   ENDFOREACH(_current_VAR)
125+ENDMACRO(MACRO_BOOL_TO_01)
126diff -Nru -x '*~' gettext-0.18.orig/CMakeLists.txt gettext-0.18/CMakeLists.txt
127--- gettext-0.18.orig/CMakeLists.txt	1970-01-01 01:00:00.000000000 +0100
128+++ gettext-0.18/CMakeLists.txt	2013-03-19 09:08:26.381914800 +0100
129@@ -0,0 +1,39 @@
130+cmake_minimum_required(VERSION 2.6)
131+
132+project(gettext)
133+
134+set(PACKAGE_VERSION_MAJOR 0)
135+set(PACKAGE_VERSION_MINOR 18)
136+set(PACKAGE_VERSION_SUBMINOR 0)
137+
138+set(PACKAGE_VERSION_STRING "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}")
139+
140+add_definitions(-DPACKAGE_VERSION_MAJOR=${PACKAGE_VERSION_MAJOR} -DPACKAGE_VERSION_MINOR=${PACKAGE_VERSION_MINOR} -DPACKAGE_VERSION_SUBMINOR=${PACKAGE_VERSION_SUBMINOR} -DPACKAGE_VERSION_STRING="${PACKAGE_VERSION_STRING}")
141+
142+set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules ${CMAKE_MODULE_PATH})
143+
144+include(MacroBoolTo01)
145+
146+if(WINCE)
147+    find_package(Wcecompat REQUIRED)
148+    include_directories(${WCECOMPAT_INCLUDE_DIR})
149+    set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${WCECOMPAT_INCLUDE_DIR})
150+    set(LIBRARY_TYPE STATIC)
151+    add_definitions(-DGETTEXT_STATIC_LIBS)
152+    add_definitions(-DWCECOMPAT_USE_DLMALLOC)
153+else(WINCE)
154+    set(LIBRARY_TYPE SHARED)
155+endif(WINCE)
156+
157+find_package(iconv)
158+set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${ICONV_INCLUDE_DIR})
159+set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${ICONV_LIBRARIES})
160+
161+include_directories(${ICONV_INCLUDE_DIR})
162+
163+if(MSVC)
164+    add_definitions(-wd4996 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS)
165+endif(MSVC)
166+
167+add_subdirectory(gettext-runtime)
168+#add_subdirectory(gettext-tools)
169diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/CMakeLists.txt gettext-0.18/gettext-runtime/CMakeLists.txt
170--- gettext-0.18.orig/gettext-runtime/CMakeLists.txt	1970-01-01 01:00:00.000000000 +0100
171+++ gettext-0.18/gettext-runtime/CMakeLists.txt	2013-03-19 08:59:57.007780300 +0100
172@@ -0,0 +1,23 @@
173+cmake_minimum_required(VERSION 2.6)
174+set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
175+
176+project(gettext-runtime)
177+
178+include(ConfigureChecks.cmake)
179+
180+include_directories(${CMAKE_CURRENT_BINARY_DIR})
181+
182+
183+#add_subdirectory(doc)
184+add_subdirectory(intl)
185+#add_subdirectory(intl-java)
186+#add_subdirectory(intl-csharp)
187+#add_subdirectory(gnulib-lib)
188+#add_subdirectory(src)
189+#add_subdirectory(po)
190+#add_subdirectory(man)
191+#add_subdirectory(m4)
192+#add_subdirectory(tests)
193+
194+
195+
196diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/config.h.cmake gettext-0.18/gettext-runtime/config.h.cmake
197--- gettext-0.18.orig/gettext-runtime/config.h.cmake	1970-01-01 01:00:00.000000000 +0100
198+++ gettext-0.18/gettext-runtime/config.h.cmake	2013-03-19 09:28:16.508986200 +0100
199@@ -0,0 +1,1276 @@
200+/* config.h.in.  Generated from configure.ac by autoheader.  */
201+
202+/* Define if the compiler is building for multiple architectures of Apple
203+   platforms at once. */
204+#cmakedefine AA_APPLE_UNIVERSAL_BUILD
205+
206+/* Define to the number of bits in type 'ptrdiff_t'. */
207+#cmakedefine BITSIZEOF_PTRDIFF_T @BITSIZEOF_PTRDIFF_T@
208+
209+/* Define to the number of bits in type 'sig_atomic_t'. */
210+#cmakedefine BITSIZEOF_SIG_ATOMIC_T @BITSIZEOF_SIG_ATOMIC_T@
211+
212+/* Define to the number of bits in type 'size_t'. */
213+#cmakedefine BITSIZEOF_SIZE_T @BITSIZEOF_SIZE_T@
214+
215+/* Define to the number of bits in type 'wchar_t'. */
216+#cmakedefine BITSIZEOF_WCHAR_T @BITSIZEOF_WCHAR_T@
217+
218+/* Define to the number of bits in type 'wint_t'. */
219+#cmakedefine BITSIZEOF_WINT_T @BITSIZEOF_WINT_T@
220+
221+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
222+   systems. This function is required for `alloca.c' support on those systems.
223+   */
224+#cmakedefine CRAY_STACKSEG_END
225+
226+/* Define if mono is the preferred C# implementation. */
227+#cmakedefine CSHARP_CHOICE_MONO
228+
229+/* Define if pnet is the preferred C# implementation. */
230+#cmakedefine CSHARP_CHOICE_PNET
231+
232+/* Define to 1 if using `alloca.c'. */
233+#cmakedefine C_ALLOCA
234+
235+/* Define to 1 if // is a file system root distinct from /. */
236+#cmakedefine DOUBLE_SLASH_IS_DISTINCT_ROOT
237+
238+/* Define to 1 if translation of program messages to the user's native
239+   language is requested. */
240+#cmakedefine ENABLE_NLS
241+
242+/* Define to 1 if the package shall run at any location in the file system. */
243+#cmakedefine ENABLE_RELOCATABLE
244+
245+/* Define on systems for which file names may have a so-called `drive letter'
246+   prefix, define this to compute the length of that prefix, including the
247+   colon. */
248+#cmakedefine FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX
249+
250+/* Define if the backslash character may also serve as a file name component
251+   separator. */
252+#cmakedefine FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR @FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR@
253+
254+/* Define if a drive letter prefix denotes a relative path if it is not
255+   followed by a file name component separator. */
256+#cmakedefine FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE
257+
258+/* Define to 1 if realpath() can malloc memory, always gives an absolute path,
259+   and handles trailing slash correctly. */
260+#cmakedefine FUNC_REALPATH_WORKS
261+
262+/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
263+   whether the gnulib module canonicalize-lgpl shall be considered present. */
264+#cmakedefine GNULIB_CANONICALIZE_LGPL
265+
266+/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
267+   whether the gnulib module fwriteerror shall be considered present. */
268+#cmakedefine GNULIB_FWRITEERROR
269+
270+/* Define to a C preprocessor expression that evaluates to 1 or 0, depending
271+   whether the gnulib module sigpipe shall be considered present. */
272+#cmakedefine GNULIB_SIGPIPE
273+
274+/* Define to 1 when the gnulib module canonicalize_file_name should be tested.
275+   */
276+#cmakedefine GNULIB_TEST_CANONICALIZE_FILE_NAME
277+
278+/* Define to 1 when the gnulib module environ should be tested. */
279+#cmakedefine GNULIB_TEST_ENVIRON
280+
281+/* Define to 1 when the gnulib module getopt-gnu should be tested. */
282+#cmakedefine GNULIB_TEST_GETOPT_GNU
283+
284+/* Define to 1 when the gnulib module lstat should be tested. */
285+#cmakedefine GNULIB_TEST_LSTAT
286+
287+/* Define to 1 when the gnulib module malloc-posix should be tested. */
288+#cmakedefine GNULIB_TEST_MALLOC_POSIX
289+
290+/* Define to 1 when the gnulib module mbrtowc should be tested. */
291+#cmakedefine GNULIB_TEST_MBRTOWC
292+
293+/* Define to 1 when the gnulib module mbsinit should be tested. */
294+#cmakedefine GNULIB_TEST_MBSINIT
295+
296+/* Define to 1 when the gnulib module mbslen should be tested. */
297+#cmakedefine GNULIB_TEST_MBSLEN
298+
299+/* Define to 1 when the gnulib module mbsstr should be tested. */
300+#cmakedefine GNULIB_TEST_MBSSTR
301+
302+/* Define to 1 when the gnulib module memchr should be tested. */
303+#cmakedefine GNULIB_TEST_MEMCHR
304+
305+/* Define to 1 when the gnulib module readlink should be tested. */
306+#cmakedefine GNULIB_TEST_READLINK
307+
308+/* Define to 1 when the gnulib module realpath should be tested. */
309+#cmakedefine GNULIB_TEST_REALPATH
310+
311+/* Define to 1 when the gnulib module sigprocmask should be tested. */
312+#cmakedefine GNULIB_TEST_SIGPROCMASK
313+
314+/* Define to 1 when the gnulib module stat should be tested. */
315+#cmakedefine GNULIB_TEST_STAT
316+
317+/* Define to 1 when the gnulib module strerror should be tested. */
318+#cmakedefine GNULIB_TEST_STRERROR
319+
320+/* Define to 1 when the gnulib module strnlen should be tested. */
321+#cmakedefine GNULIB_TEST_STRNLEN
322+
323+/* Define to 1 when the gnulib module wcwidth should be tested. */
324+#cmakedefine GNULIB_TEST_WCWIDTH
325+
326+/* Define to 1 if you have `alloca', as a function or macro. */
327+#cmakedefine HAVE_ALLOCA 1
328+
329+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
330+   */
331+#cmakedefine HAVE_ALLOCA_H 1
332+
333+/* Define to 1 if you have the `argz_count' function. */
334+#cmakedefine HAVE_ARGZ_COUNT 1
335+
336+/* Define to 1 if you have the <argz.h> header file. */
337+#cmakedefine HAVE_ARGZ_H 1
338+
339+/* Define to 1 if you have the `argz_next' function. */
340+#cmakedefine HAVE_ARGZ_NEXT 1
341+
342+/* Define to 1 if you have the `argz_stringify' function. */
343+#cmakedefine HAVE_ARGZ_STRINGIFY 1
344+
345+/* Define to 1 if you have the `asprintf' function. */
346+#cmakedefine HAVE_ASPRINTF 1
347+
348+/* Define to 1 if you have the `atexit' function. */
349+#cmakedefine HAVE_ATEXIT 1
350+
351+/* Define to 1 if you have the <bp-sym.h> header file. */
352+#cmakedefine HAVE_BP_SYM_H 1
353+
354+/* Define to 1 if the compiler understands __builtin_expect. */
355+#cmakedefine HAVE_BUILTIN_EXPECT 1
356+
357+/* Define to 1 if you have the `canonicalize_file_name' function. */
358+#cmakedefine HAVE_CANONICALIZE_FILE_NAME 1
359+
360+/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
361+   CoreFoundation framework. */
362+#cmakedefine HAVE_CFLOCALECOPYCURRENT 1
363+
364+/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
365+   the CoreFoundation framework. */
366+#cmakedefine HAVE_CFPREFERENCESCOPYAPPVALUE 1
367+
368+/* Define if the GNU dcgettext() function is already present or preinstalled.
369+   */
370+#cmakedefine HAVE_DCGETTEXT
371+
372+/* Define to 1 if you have the declaration of `clearerr_unlocked', and to 0 if
373+   you don't. */
374+#cmakedefine HAVE_DECL_CLEARERR_UNLOCKED 1
375+
376+/* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you
377+   don't. */
378+#cmakedefine HAVE_DECL_FEOF_UNLOCKED 1
379+
380+/* Define to 1 if you have the declaration of `ferror_unlocked', and to 0 if
381+   you don't. */
382+#cmakedefine HAVE_DECL_FERROR_UNLOCKED 1
383+
384+/* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if
385+   you don't. */
386+#cmakedefine HAVE_DECL_FFLUSH_UNLOCKED 1
387+
388+/* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if
389+   you don't. */
390+#cmakedefine HAVE_DECL_FGETS_UNLOCKED 1
391+
392+/* Define to 1 if you have the declaration of `fputc_unlocked', and to 0 if
393+   you don't. */
394+#cmakedefine HAVE_DECL_FPUTC_UNLOCKED 1
395+
396+/* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if
397+   you don't. */
398+#cmakedefine HAVE_DECL_FPUTS_UNLOCKED 1
399+
400+/* Define to 1 if you have the declaration of `fread_unlocked', and to 0 if
401+   you don't. */
402+#cmakedefine HAVE_DECL_FREAD_UNLOCKED 1
403+
404+/* Define to 1 if you have the declaration of `fwrite_unlocked', and to 0 if
405+   you don't. */
406+#cmakedefine HAVE_DECL_FWRITE_UNLOCKED 1
407+
408+/* Define to 1 if you have the declaration of `getchar_unlocked', and to 0 if
409+   you don't. */
410+#cmakedefine HAVE_DECL_GETCHAR_UNLOCKED 1
411+
412+/* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you
413+   don't. */
414+#cmakedefine HAVE_DECL_GETC_UNLOCKED 1
415+
416+/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
417+   */
418+#cmakedefine HAVE_DECL_GETENV 1
419+
420+/* Define to 1 if you have the declaration of `getopt_clip', and to 0 if you
421+   don't. */
422+#cmakedefine HAVE_DECL_GETOPT_CLIP 1
423+
424+/* Define to 1 if you have the declaration of `optreset', and to 0 if you
425+   don't. */
426+#cmakedefine HAVE_DECL_OPTRESET 1
427+
428+/* Define to 1 if you have the declaration of `program_invocation_name', and
429+   to 0 if you don't. */
430+#cmakedefine HAVE_DECL_PROGRAM_INVOCATION_NAME 1
431+
432+/* Define to 1 if you have the declaration of `program_invocation_short_name',
433+   and to 0 if you don't. */
434+#cmakedefine HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
435+
436+/* Define to 1 if you have the declaration of `putchar_unlocked', and to 0 if
437+   you don't. */
438+#cmakedefine HAVE_DECL_PUTCHAR_UNLOCKED 1
439+
440+/* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you
441+   don't. */
442+#cmakedefine HAVE_DECL_PUTC_UNLOCKED 1
443+
444+/* Define to 1 if you have the declaration of `strerror', and to 0 if you
445+   don't. */
446+#cmakedefine HAVE_DECL_STRERROR 1
447+
448+/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
449+   don't. */
450+#cmakedefine HAVE_DECL_STRERROR_R 1
451+
452+/* Define to 1 if you have the declaration of `strnlen', and to 0 if you
453+   don't. */
454+#cmakedefine HAVE_DECL_STRNLEN 1
455+
456+/* Define to 1 if you have the declaration of `wcwidth', and to 0 if you
457+   don't. */
458+#cmakedefine HAVE_DECL_WCWIDTH 1
459+
460+/* Define to 1 if you have the declaration of `_snprintf', and to 0 if you
461+   don't. */
462+#cmakedefine HAVE_DECL__SNPRINTF 1
463+
464+/* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you
465+   don't. */
466+#cmakedefine HAVE_DECL__SNWPRINTF 1
467+
468+/* Define to 1 if you have the <dlfcn.h> header file. */
469+#cmakedefine HAVE_DLFCN_H 1
470+
471+/* Define if you have the declaration of environ. */
472+#cmakedefine HAVE_ENVIRON_DECL 1
473+
474+/* Define to 1 if you have the <errno.h> header file. */
475+#cmakedefine HAVE_ERRNO_H 1
476+
477+/* Define to 1 if you have the `fwprintf' function. */
478+#cmakedefine HAVE_FWPRINTF 1
479+
480+/* Define to 1 if you have the `getcwd' function. */
481+#cmakedefine HAVE_GETCWD 1
482+
483+/* Define to 1 if you have the `_getcwd' function. */
484+#cmakedefine HAVE_GETCWD2 1
485+
486+/* Define to 1 if you have the `getegid' function. */
487+#cmakedefine HAVE_GETEGID 1
488+
489+/* Define to 1 if you have the `geteuid' function. */
490+#cmakedefine HAVE_GETEUID 1
491+
492+/* Define to 1 if you have the `getgid' function. */
493+#cmakedefine HAVE_GETGID 1
494+
495+/* Define to 1 if you have the <getopt.h> header file. */
496+#cmakedefine HAVE_GETOPT_H 1
497+
498+/* Define to 1 if you have the `getopt_long_only' function. */
499+#cmakedefine HAVE_GETOPT_LONG_ONLY 1
500+
501+/* Define to 1 if you have the `getpagesize' function. */
502+#cmakedefine HAVE_GETPAGESIZE 1
503+
504+/* Define if the GNU gettext() function is already present or preinstalled. */
505+#cmakedefine HAVE_GETTEXT 1
506+
507+/* Define to 1 if you have the `getuid' function. */
508+#cmakedefine HAVE_GETUID 1
509+
510+/* Define if you have the iconv() function and it works. */
511+#cmakedefine HAVE_ICONV @HAVE_ICONV@
512+
513+/* Define to 1 if you have the <iconv.h> header file. */
514+#cmakedefine HAVE_ICONV_H 1
515+
516+/* Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>. */
517+#cmakedefine HAVE_INTMAX_T 1
518+
519+/* Define to 1 if you have the <inttypes.h> header file. */
520+#cmakedefine HAVE_INTTYPES_H 1
521+
522+/* Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, and
523+   declares uintmax_t. */
524+#cmakedefine HAVE_INTTYPES_H_WITH_UINTMAX 1
525+
526+/* Define to 1 if you have the `iswblank' function. */
527+#cmakedefine HAVE_ISWBLANK 1
528+
529+/* Define to 1 if you have the `iswcntrl' function. */
530+#cmakedefine HAVE_ISWCNTRL 1
531+
532+/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
533+#cmakedefine HAVE_LANGINFO_CODESET
534+
535+/* Define if your <locale.h> file defines LC_MESSAGES. */
536+#cmakedefine HAVE_LC_MESSAGES
537+
538+/* Define to 1 if you have the <limits.h> header file. */
539+#cmakedefine HAVE_LIMITS_H 1
540+
541+/* Define to 1 if the system has the type `long long int'. */
542+#cmakedefine HAVE_LONG_LONG_INT 1
543+
544+/* Define to 1 if you have the `lstat' function. */
545+#cmakedefine HAVE_LSTAT 1
546+
547+/* Define to 1 if you have the <mach-o/dyld.h> header file. */
548+#cmakedefine HAVE_MACH_O_DYLD_H 1
549+
550+/* Define if the 'malloc' function is POSIX compliant. */
551+#cmakedefine HAVE_MALLOC_POSIX
552+
553+/* Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including
554+   config.h and <sys/mman.h>. */
555+#cmakedefine HAVE_MAP_ANONYMOUS 1
556+
557+/* Define to 1 if you have the `mbrtowc' function. */
558+#cmakedefine HAVE_MBRTOWC 1
559+
560+/* Define to 1 if you have the `mbsinit' function. */
561+#cmakedefine HAVE_MBSINIT 1
562+
563+/* Define to 1 if you have the `mbslen' function. */
564+#cmakedefine HAVE_MBSLEN 1
565+
566+/* Define to 1 if <wchar.h> declares mbstate_t. */
567+#cmakedefine HAVE_MBSTATE_T 1
568+
569+/* Define to 1 if you have the `memchr' function. */
570+#cmakedefine HAVE_MEMCHR 1
571+
572+/* Define to 1 if you have the `memmove' function. */
573+#cmakedefine HAVE_MEMMOVE 1
574+
575+/* Define to 1 if you have the <memory.h> header file. */
576+#cmakedefine HAVE_MEMORY_H 1
577+
578+/* Define to 1 if you have the `mempcpy' function. */
579+#cmakedefine HAVE_MEMPCPY 1
580+
581+/* Define to 1 if you have a working `mmap' system call. */
582+#cmakedefine HAVE_MMAP 1
583+
584+/* Define to 1 if you have the `mprotect' function. */
585+#cmakedefine HAVE_MPROTECT 1
586+
587+/* Define to 1 if you have the `munmap' function. */
588+#cmakedefine HAVE_MUNMAP 1
589+
590+/* Define to 1 if you have the `newlocale' function. */
591+#cmakedefine HAVE_NEWLOCALE 1
592+
593+/* Define to 1 if you have the `pathconf' function. */
594+#cmakedefine HAVE_PATHCONF 1
595+
596+/* Define if your printf() function supports format strings with positions. */
597+#cmakedefine HAVE_POSIX_PRINTF
598+
599+/* Define if the <pthread.h> defines PTHREAD_MUTEX_RECURSIVE. */
600+#cmakedefine HAVE_PTHREAD_MUTEX_RECURSIVE
601+
602+/* Define if the POSIX multithreading library has read/write locks. */
603+#cmakedefine HAVE_PTHREAD_RWLOCK
604+
605+/* Define to 1 if you have the `putenv' function. */
606+#cmakedefine HAVE_PUTENV 1
607+
608+/* Define to 1 if you have the <random.h> header file. */
609+#cmakedefine HAVE_RANDOM_H 1
610+
611+/* Define to 1 if atoll is declared even after undefining macros. */
612+#cmakedefine HAVE_RAW_DECL_ATOLL 1
613+
614+/* Define to 1 if btowc is declared even after undefining macros. */
615+#cmakedefine HAVE_RAW_DECL_BTOWC 1
616+
617+/* Define to 1 if canonicalize_file_name is declared even after undefining
618+   macros. */
619+#cmakedefine HAVE_RAW_DECL_CANONICALIZE_FILE_NAME 1
620+
621+/* Define to 1 if chown is declared even after undefining macros. */
622+#cmakedefine HAVE_RAW_DECL_CHOWN 1
623+
624+/* Define to 1 if dprintf is declared even after undefining macros. */
625+#cmakedefine HAVE_RAW_DECL_DPRINTF 1
626+
627+/* Define to 1 if dup2 is declared even after undefining macros. */
628+#cmakedefine HAVE_RAW_DECL_DUP2 1
629+
630+/* Define to 1 if dup3 is declared even after undefining macros. */
631+#cmakedefine HAVE_RAW_DECL_DUP3 1
632+
633+/* Define to 1 if endusershell is declared even after undefining macros. */
634+#cmakedefine HAVE_RAW_DECL_ENDUSERSHELL 1
635+
636+/* Define to 1 if environ is declared even after undefining macros. */
637+#cmakedefine HAVE_RAW_DECL_ENVIRON 1
638+
639+/* Define to 1 if euidaccess is declared even after undefining macros. */
640+#cmakedefine HAVE_RAW_DECL_EUIDACCESS 1
641+
642+/* Define to 1 if faccessat is declared even after undefining macros. */
643+#cmakedefine HAVE_RAW_DECL_FACCESSAT 1
644+
645+/* Define to 1 if fchdir is declared even after undefining macros. */
646+#cmakedefine HAVE_RAW_DECL_FCHDIR 1
647+
648+/* Define to 1 if fchmodat is declared even after undefining macros. */
649+#cmakedefine HAVE_RAW_DECL_FCHMODAT 1
650+
651+/* Define to 1 if fchownat is declared even after undefining macros. */
652+#cmakedefine HAVE_RAW_DECL_FCHOWNAT 1
653+
654+/* Define to 1 if fpurge is declared even after undefining macros. */
655+#cmakedefine HAVE_RAW_DECL_FPURGE 1
656+
657+/* Define to 1 if fseeko is declared even after undefining macros. */
658+#cmakedefine HAVE_RAW_DECL_FSEEKO 1
659+
660+/* Define to 1 if fstatat is declared even after undefining macros. */
661+#cmakedefine HAVE_RAW_DECL_FSTATAT 1
662+
663+/* Define to 1 if fsync is declared even after undefining macros. */
664+#cmakedefine HAVE_RAW_DECL_FSYNC 1
665+
666+/* Define to 1 if ftello is declared even after undefining macros. */
667+#cmakedefine HAVE_RAW_DECL_FTELLO 1
668+
669+/* Define to 1 if ftruncate is declared even after undefining macros. */
670+#cmakedefine HAVE_RAW_DECL_FTRUNCATE 1
671+
672+/* Define to 1 if futimens is declared even after undefining macros. */
673+#cmakedefine HAVE_RAW_DECL_FUTIMENS 1
674+
675+/* Define to 1 if getcwd is declared even after undefining macros. */
676+#cmakedefine HAVE_RAW_DECL_GETCWD 1
677+
678+/* Define to 1 if getdelim is declared even after undefining macros. */
679+#cmakedefine HAVE_RAW_DECL_GETDELIM 1
680+
681+/* Define to 1 if getdomainname is declared even after undefining macros. */
682+#cmakedefine HAVE_RAW_DECL_GETDOMAINNAME 1
683+
684+/* Define to 1 if getdtablesize is declared even after undefining macros. */
685+#cmakedefine HAVE_RAW_DECL_GETDTABLESIZE 1
686+
687+/* Define to 1 if getgroups is declared even after undefining macros. */
688+#cmakedefine HAVE_RAW_DECL_GETGROUPS 1
689+
690+/* Define to 1 if gethostname is declared even after undefining macros. */
691+#cmakedefine HAVE_RAW_DECL_GETHOSTNAME 1
692+
693+/* Define to 1 if getline is declared even after undefining macros. */
694+#cmakedefine HAVE_RAW_DECL_GETLINE 1
695+
696+/* Define to 1 if getloadavg is declared even after undefining macros. */
697+#cmakedefine HAVE_RAW_DECL_GETLOADAVG 1
698+
699+/* Define to 1 if getlogin is declared even after undefining macros. */
700+#cmakedefine HAVE_RAW_DECL_GETLOGIN 1
701+
702+/* Define to 1 if getlogin_r is declared even after undefining macros. */
703+#cmakedefine HAVE_RAW_DECL_GETLOGIN_R 1
704+
705+/* Define to 1 if getpagesize is declared even after undefining macros. */
706+#cmakedefine HAVE_RAW_DECL_GETPAGESIZE 1
707+
708+/* Define to 1 if getsubopt is declared even after undefining macros. */
709+#cmakedefine HAVE_RAW_DECL_GETSUBOPT 1
710+
711+/* Define to 1 if getusershell is declared even after undefining macros. */
712+#cmakedefine HAVE_RAW_DECL_GETUSERSHELL 1
713+
714+/* Define to 1 if grantpt is declared even after undefining macros. */
715+#cmakedefine HAVE_RAW_DECL_GRANTPT 1
716+
717+/* Define to 1 if initstat_r is declared even after undefining macros. */
718+#cmakedefine HAVE_RAW_DECL_INITSTAT_R 1
719+
720+/* Define to 1 if lchmod is declared even after undefining macros. */
721+#cmakedefine HAVE_RAW_DECL_LCHMOD
722+
723+/* Define to 1 if lchown is declared even after undefining macros. */
724+#cmakedefine HAVE_RAW_DECL_LCHOWN
725+
726+/* Define to 1 if link is declared even after undefining macros. */
727+#cmakedefine HAVE_RAW_DECL_LINK
728+
729+/* Define to 1 if linkat is declared even after undefining macros. */
730+#cmakedefine HAVE_RAW_DECL_LINKAT
731+
732+/* Define to 1 if lseek is declared even after undefining macros. */
733+#cmakedefine HAVE_RAW_DECL_LSEEK
734+
735+/* Define to 1 if lstat is declared even after undefining macros. */
736+#cmakedefine HAVE_RAW_DECL_LSTAT
737+
738+/* Define to 1 if mbrlen is declared even after undefining macros. */
739+#cmakedefine HAVE_RAW_DECL_MBRLEN
740+
741+/* Define to 1 if mbrtowc is declared even after undefining macros. */
742+#cmakedefine HAVE_RAW_DECL_MBRTOWC
743+
744+/* Define to 1 if mbsinit is declared even after undefining macros. */
745+#cmakedefine HAVE_RAW_DECL_MBSINIT
746+
747+/* Define to 1 if mbsnrtowcs is declared even after undefining macros. */
748+#cmakedefine HAVE_RAW_DECL_MBSNRTOWCS
749+
750+/* Define to 1 if mbsrtowcs is declared even after undefining macros. */
751+#cmakedefine HAVE_RAW_DECL_MBSRTOWCS
752+
753+/* Define to 1 if memmem is declared even after undefining macros. */
754+#cmakedefine HAVE_RAW_DECL_MEMMEM
755+
756+/* Define to 1 if mempcpy is declared even after undefining macros. */
757+#cmakedefine HAVE_RAW_DECL_MEMPCPY
758+
759+/* Define to 1 if memrchr is declared even after undefining macros. */
760+#cmakedefine HAVE_RAW_DECL_MEMRCHR
761+
762+/* Define to 1 if mkdirat is declared even after undefining macros. */
763+#cmakedefine HAVE_RAW_DECL_MKDIRAT
764+
765+/* Define to 1 if mkdtemp is declared even after undefining macros. */
766+#cmakedefine HAVE_RAW_DECL_MKDTEMP
767+
768+/* Define to 1 if mkfifo is declared even after undefining macros. */
769+#cmakedefine HAVE_RAW_DECL_MKFIFO
770+
771+/* Define to 1 if mkfifoat is declared even after undefining macros. */
772+#cmakedefine HAVE_RAW_DECL_MKFIFOAT
773+
774+/* Define to 1 if mknod is declared even after undefining macros. */
775+#cmakedefine HAVE_RAW_DECL_MKNOD
776+
777+/* Define to 1 if mknodat is declared even after undefining macros. */
778+#cmakedefine HAVE_RAW_DECL_MKNODAT
779+
780+/* Define to 1 if mkostemp is declared even after undefining macros. */
781+#cmakedefine HAVE_RAW_DECL_MKOSTEMP
782+
783+/* Define to 1 if mkostemps is declared even after undefining macros. */
784+#cmakedefine HAVE_RAW_DECL_MKOSTEMPS
785+
786+/* Define to 1 if mkstemp is declared even after undefining macros. */
787+#cmakedefine HAVE_RAW_DECL_MKSTEMP
788+
789+/* Define to 1 if mkstemps is declared even after undefining macros. */
790+#cmakedefine HAVE_RAW_DECL_MKSTEMPS
791+
792+/* Define to 1 if pipe2 is declared even after undefining macros. */
793+#cmakedefine HAVE_RAW_DECL_PIPE2
794+
795+/* Define to 1 if popen is declared even after undefining macros. */
796+#cmakedefine HAVE_RAW_DECL_POPEN
797+
798+/* Define to 1 if pread is declared even after undefining macros. */
799+#cmakedefine HAVE_RAW_DECL_PREAD
800+
801+/* Define to 1 if ptsname is declared even after undefining macros. */
802+#cmakedefine HAVE_RAW_DECL_PTSNAME
803+
804+/* Define to 1 if pwrite is declared even after undefining macros. */
805+#cmakedefine HAVE_RAW_DECL_PWRITE
806+
807+/* Define to 1 if random_r is declared even after undefining macros. */
808+#cmakedefine HAVE_RAW_DECL_RANDOM_R
809+
810+/* Define to 1 if rawmemchr is declared even after undefining macros. */
811+#cmakedefine HAVE_RAW_DECL_RAWMEMCHR
812+
813+/* Define to 1 if readlink is declared even after undefining macros. */
814+#cmakedefine HAVE_RAW_DECL_READLINK
815+
816+/* Define to 1 if readlinkat is declared even after undefining macros. */
817+#cmakedefine HAVE_RAW_DECL_READLINKAT
818+
819+/* Define to 1 if realpath is declared even after undefining macros. */
820+#cmakedefine HAVE_RAW_DECL_REALPATH
821+
822+/* Define to 1 if renameat is declared even after undefining macros. */
823+#cmakedefine HAVE_RAW_DECL_RENAMEAT
824+
825+/* Define to 1 if rmdir is declared even after undefining macros. */
826+#cmakedefine HAVE_RAW_DECL_RMDIR
827+
828+/* Define to 1 if rpmatch is declared even after undefining macros. */
829+#cmakedefine HAVE_RAW_DECL_RPMATCH
830+
831+/* Define to 1 if setenv is declared even after undefining macros. */
832+#cmakedefine HAVE_RAW_DECL_SETENV
833+
834+/* Define to 1 if setstate_r is declared even after undefining macros. */
835+#cmakedefine HAVE_RAW_DECL_SETSTATE_R
836+
837+/* Define to 1 if setusershell is declared even after undefining macros. */
838+#cmakedefine HAVE_RAW_DECL_SETUSERSHELL
839+
840+/* Define to 1 if sigaction is declared even after undefining macros. */
841+#cmakedefine HAVE_RAW_DECL_SIGACTION
842+
843+/* Define to 1 if sigaddset is declared even after undefining macros. */
844+#cmakedefine HAVE_RAW_DECL_SIGADDSET
845+
846+/* Define to 1 if sigdelset is declared even after undefining macros. */
847+#cmakedefine HAVE_RAW_DECL_SIGDELSET
848+
849+/* Define to 1 if sigemptyset is declared even after undefining macros. */
850+#cmakedefine HAVE_RAW_DECL_SIGEMPTYSET
851+
852+/* Define to 1 if sigfillset is declared even after undefining macros. */
853+#cmakedefine HAVE_RAW_DECL_SIGFILLSET
854+
855+/* Define to 1 if sigismember is declared even after undefining macros. */
856+#cmakedefine HAVE_RAW_DECL_SIGISMEMBER
857+
858+/* Define to 1 if sigpending is declared even after undefining macros. */
859+#cmakedefine HAVE_RAW_DECL_SIGPENDING
860+
861+/* Define to 1 if sigprocmask is declared even after undefining macros. */
862+#cmakedefine HAVE_RAW_DECL_SIGPROCMASK
863+
864+/* Define to 1 if sleep is declared even after undefining macros. */
865+#cmakedefine HAVE_RAW_DECL_SLEEP
866+
867+/* Define to 1 if snprintf is declared even after undefining macros. */
868+#cmakedefine HAVE_RAW_DECL_SNPRINTF
869+
870+/* Define to 1 if srandom_r is declared even after undefining macros. */
871+#cmakedefine HAVE_RAW_DECL_SRANDOM_R
872+
873+/* Define to 1 if stat is declared even after undefining macros. */
874+#cmakedefine HAVE_RAW_DECL_STAT
875+
876+/* Define to 1 if stpcpy is declared even after undefining macros. */
877+#cmakedefine HAVE_RAW_DECL_STPCPY
878+
879+/* Define to 1 if stpncpy is declared even after undefining macros. */
880+#cmakedefine HAVE_RAW_DECL_STPNCPY
881+
882+/* Define to 1 if strcasestr is declared even after undefining macros. */
883+#cmakedefine HAVE_RAW_DECL_STRCASESTR
884+
885+/* Define to 1 if strchrnul is declared even after undefining macros. */
886+#cmakedefine HAVE_RAW_DECL_STRCHRNUL
887+
888+/* Define to 1 if strdup is declared even after undefining macros. */
889+#cmakedefine HAVE_RAW_DECL_STRDUP
890+
891+/* Define to 1 if strncat is declared even after undefining macros. */
892+#cmakedefine HAVE_RAW_DECL_STRNCAT
893+
894+/* Define to 1 if strndup is declared even after undefining macros. */
895+#cmakedefine HAVE_RAW_DECL_STRNDUP
896+
897+/* Define to 1 if strnlen is declared even after undefining macros. */
898+#cmakedefine HAVE_RAW_DECL_STRNLEN
899+
900+/* Define to 1 if strpbrk is declared even after undefining macros. */
901+#cmakedefine HAVE_RAW_DECL_STRPBRK
902+
903+/* Define to 1 if strsep is declared even after undefining macros. */
904+#cmakedefine HAVE_RAW_DECL_STRSEP
905+
906+/* Define to 1 if strsignal is declared even after undefining macros. */
907+#cmakedefine HAVE_RAW_DECL_STRSIGNAL
908+
909+/* Define to 1 if strtod is declared even after undefining macros. */
910+#cmakedefine HAVE_RAW_DECL_STRTOD
911+
912+/* Define to 1 if strtok_r is declared even after undefining macros. */
913+#cmakedefine HAVE_RAW_DECL_STRTOK_R
914+
915+/* Define to 1 if strtoll is declared even after undefining macros. */
916+#cmakedefine HAVE_RAW_DECL_STRTOLL
917+
918+/* Define to 1 if strtoull is declared even after undefining macros. */
919+#cmakedefine HAVE_RAW_DECL_STRTOULL
920+
921+/* Define to 1 if strverscmp is declared even after undefining macros. */
922+#cmakedefine HAVE_RAW_DECL_STRVERSCMP
923+
924+/* Define to 1 if symlink is declared even after undefining macros. */
925+#cmakedefine HAVE_RAW_DECL_SYMLINK
926+
927+/* Define to 1 if symlinkat is declared even after undefining macros. */
928+#cmakedefine HAVE_RAW_DECL_SYMLINKAT
929+
930+/* Define to 1 if tmpfile is declared even after undefining macros. */
931+#cmakedefine HAVE_RAW_DECL_TMPFILE
932+
933+/* Define to 1 if ttyname_r is declared even after undefining macros. */
934+#cmakedefine HAVE_RAW_DECL_TTYNAME_R
935+
936+/* Define to 1 if unlink is declared even after undefining macros. */
937+#cmakedefine HAVE_RAW_DECL_UNLINK
938+
939+/* Define to 1 if unlinkat is declared even after undefining macros. */
940+#cmakedefine HAVE_RAW_DECL_UNLINKAT
941+
942+/* Define to 1 if unlockpt is declared even after undefining macros. */
943+#cmakedefine HAVE_RAW_DECL_UNLOCKPT
944+
945+/* Define to 1 if unsetenv is declared even after undefining macros. */
946+#cmakedefine HAVE_RAW_DECL_UNSETENV
947+
948+/* Define to 1 if usleep is declared even after undefining macros. */
949+#cmakedefine HAVE_RAW_DECL_USLEEP
950+
951+/* Define to 1 if utimensat is declared even after undefining macros. */
952+#cmakedefine HAVE_RAW_DECL_UTIMENSAT
953+
954+/* Define to 1 if vdprintf is declared even after undefining macros. */
955+#cmakedefine HAVE_RAW_DECL_VDPRINTF
956+
957+/* Define to 1 if vsnprintf is declared even after undefining macros. */
958+#cmakedefine HAVE_RAW_DECL_VSNPRINTF
959+
960+/* Define to 1 if wcrtomb is declared even after undefining macros. */
961+#cmakedefine HAVE_RAW_DECL_WCRTOMB
962+
963+/* Define to 1 if wcsnrtombs is declared even after undefining macros. */
964+#cmakedefine HAVE_RAW_DECL_WCSNRTOMBS
965+
966+/* Define to 1 if wcsrtombs is declared even after undefining macros. */
967+#cmakedefine HAVE_RAW_DECL_WCSRTOMBS
968+
969+/* Define to 1 if wctob is declared even after undefining macros. */
970+#cmakedefine HAVE_RAW_DECL_WCTOB
971+
972+/* Define to 1 if wcwidth is declared even after undefining macros. */
973+#cmakedefine HAVE_RAW_DECL_WCWIDTH
974+
975+/* Define to 1 if you have the `readlink' function. */
976+#cmakedefine HAVE_READLINK 1
977+
978+/* Define to 1 if you have the `realpath' function. */
979+#cmakedefine HAVE_REALPATH 1
980+
981+/* Define to 1 if you have the <search.h> header file. */
982+#cmakedefine HAVE_SEARCH_H 1
983+
984+/* Define to 1 if you have the `setenv' function. */
985+#cmakedefine HAVE_SETENV 1
986+
987+/* Define to 1 if you have the `setlocale' function. */
988+#cmakedefine HAVE_SETLOCALE 1
989+
990+/* Define to 1 if you have the <signal.h> header file. */
991+#cmakedefine HAVE_SIGNAL_H 1
992+
993+/* Define to 1 if 'sig_atomic_t' is a signed integer type. */
994+#cmakedefine HAVE_SIGNED_SIG_ATOMIC_T 1
995+
996+/* Define to 1 if 'wchar_t' is a signed integer type. */
997+#cmakedefine HAVE_SIGNED_WCHAR_T 1
998+
999+/* Define to 1 if 'wint_t' is a signed integer type. */
1000+#cmakedefine HAVE_SIGNED_WINT_T 1
1001+
1002+/* Define to 1 if the system has the type `sigset_t'. */
1003+#cmakedefine HAVE_SIGSET_T 1
1004+
1005+/* Define to 1 if you have the `snprintf' function. */
1006+#cmakedefine HAVE_SNPRINTF 1
1007+
1008+/* Define to 1 if stdbool.h conforms to C99. */
1009+#cmakedefine HAVE_STDBOOL_H 1
1010+
1011+/* Define to 1 if you have the <stddef.h> header file. */
1012+#cmakedefine HAVE_STDDEF_H 1
1013+
1014+/* Define to 1 if you have the <stdint.h> header file. */
1015+#cmakedefine HAVE_STDINT_H 1
1016+
1017+/* Define if <stdint.h> exists, doesn't clash with <sys/types.h>, and declares
1018+   uintmax_t. */
1019+#cmakedefine HAVE_STDINT_H_WITH_UINTMAX 1
1020+
1021+/* Define to 1 if you have the <stdio.h> header file. */
1022+#cmakedefine HAVE_STDIO_H 1
1023+
1024+/* Define to 1 if you have the <stdlib.h> header file. */
1025+#cmakedefine HAVE_STDLIB_H 1
1026+
1027+/* Define to 1 if you have the `stpcpy' function. */
1028+#cmakedefine HAVE_STPCPY 1
1029+
1030+/* Define to 1 if you have the `strcasecmp' function. */
1031+#cmakedefine HAVE_STRCASECMP 1
1032+
1033+/* Define to 1 if you have the `strdup' function. */
1034+#cmakedefine HAVE_STRDUP 1
1035+
1036+/* Define to 1 if you have the `strerror_r' function. */
1037+#cmakedefine HAVE_STRERROR_R 1
1038+
1039+/* Define to 1 if you have the <strings.h> header file. */
1040+#cmakedefine HAVE_STRINGS_H 1
1041+
1042+/* Define to 1 if you have the <string.h> header file. */
1043+#cmakedefine HAVE_STRING_H 1
1044+
1045+/* Define to 1 if you have the `strnlen' function. */
1046+#cmakedefine HAVE_STRNLEN 1
1047+
1048+/* Define to 1 if you have the `strtol' function. */
1049+#cmakedefine HAVE_STRTOL 1
1050+
1051+/* Define to 1 if you have the `strtoul' function. */
1052+#cmakedefine HAVE_STRTOUL 1
1053+
1054+/* Define to 1 if the system has the type `struct random_data'. */
1055+#cmakedefine HAVE_STRUCT_RANDOM_DATA 1
1056+
1057+/* Define to 1 if you have the <sys/bitypes.h> header file. */
1058+#cmakedefine HAVE_SYS_BITYPES_H 1
1059+
1060+/* Define to 1 if you have the <sys/inttypes.h> header file. */
1061+#cmakedefine HAVE_SYS_INTTYPES_H 1
1062+
1063+/* Define to 1 if you have the <sys/mman.h> header file. */
1064+#cmakedefine HAVE_SYS_MMAN_H 1
1065+
1066+/* Define to 1 if you have the <sys/param.h> header file. */
1067+#cmakedefine HAVE_SYS_PARAM_H 1
1068+
1069+/* Define to 1 if you have the <sys/socket.h> header file. */
1070+#cmakedefine HAVE_SYS_SOCKET_H 1
1071+
1072+/* Define to 1 if you have the <sys/stat.h> header file. */
1073+#cmakedefine HAVE_SYS_STAT_H 1
1074+
1075+/* Define to 1 if you have the <sys/time.h> header file. */
1076+#cmakedefine HAVE_SYS_TIME_H 1
1077+
1078+/* Define to 1 if you have the <sys/types.h> header file. */
1079+#cmakedefine HAVE_SYS_TYPES_H 1
1080+
1081+/* Define to 1 if you have the <time.h> header file. */
1082+#cmakedefine HAVE_TIME_H 1
1083+
1084+/* Define to 1 if you have the `tsearch' function. */
1085+#cmakedefine HAVE_TSEARCH 1
1086+
1087+/* Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>. */
1088+#cmakedefine HAVE_UINTMAX_T 1
1089+
1090+/* Define to 1 if you have the <unistd.h> header file. */
1091+#cmakedefine HAVE_UNISTD_H 1
1092+
1093+/* Define to 1 if the system has the type `unsigned long long int'. */
1094+#cmakedefine HAVE_UNSIGNED_LONG_LONG_INT 1
1095+
1096+/* Define to 1 if you have the `uselocale' function. */
1097+#cmakedefine HAVE_USELOCALE 1
1098+
1099+/* Define to 1 or 0, depending whether the compiler supports simple visibility
1100+   declarations. */
1101+#cmakedefine HAVE_VISIBILITY 1
1102+
1103+/* Define to 1 if you have the <wchar.h> header file. */
1104+#cmakedefine HAVE_WCHAR_H 1
1105+
1106+/* Define if you have the 'wchar_t' type. */
1107+#cmakedefine HAVE_WCHAR_T
1108+
1109+/* Define to 1 if you have the `wcrtomb' function. */
1110+#cmakedefine HAVE_WCRTOMB 1
1111+
1112+/* Define to 1 if you have the `wcslen' function. */
1113+#cmakedefine HAVE_WCSLEN 1
1114+
1115+/* Define to 1 if you have the `wcsnlen' function. */
1116+#cmakedefine HAVE_WCSNLEN 1
1117+
1118+/* Define to 1 if you have the <wctype.h> header file. */
1119+#cmakedefine HAVE_WCTYPE_H 1
1120+
1121+/* Define to 1 if you have the `wcwidth' function. */
1122+#cmakedefine HAVE_WCWIDTH 1
1123+
1124+/* Define to 1 if you have the <winsock2.h> header file. */
1125+#cmakedefine HAVE_WINSOCK2_H 1
1126+
1127+/* Define if you have the 'wint_t' type. */
1128+#cmakedefine HAVE_WINT_T
1129+
1130+/* Define to 1 if O_NOATIME works. */
1131+#cmakedefine HAVE_WORKING_O_NOATIME 1
1132+
1133+/* Define to 1 if O_NOFOLLOW works. */
1134+#cmakedefine HAVE_WORKING_O_NOFOLLOW 1
1135+
1136+/* Define to 1 if the system has the type `_Bool'. */
1137+#cmakedefine HAVE__BOOL 1
1138+
1139+/* Define to 1 if you have the `_NSGetExecutablePath' function. */
1140+#cmakedefine HAVE__NSGETEXECUTABLEPATH 1
1141+
1142+/* Define to 1 if you have the `__fsetlocking' function. */
1143+#cmakedefine HAVE___FSETLOCKING 1
1144+
1145+/* Define as const if the declaration of iconv() needs const. */
1146+#cmakedefine HAVE_ICONV_CONST @HAVE_ICONV_CONST@
1147+
1148+/* Define to a symbolic name denoting the flavor of iconv_open()
1149+   implementation. */
1150+#cmakedefine ICONV_FLAVOR
1151+
1152+/* Define to the value of ${prefix}, as a string. */
1153+#cmakedefine INSTALLPREFIX
1154+
1155+/* Define if integer division by zero raises signal SIGFPE. */
1156+#cmakedefine INTDIV0_RAISES_SIGFPE 1
1157+
1158+#if FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR
1159+# define ISSLASH(C) ((C) == '/' || (C) == '\\')
1160+#else
1161+# define ISSLASH(C) ((C) == '/')
1162+#endif
1163+
1164+/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
1165+   slash. */
1166+#cmakedefine LSTAT_FOLLOWS_SLASHED_SYMLINK 1
1167+
1168+/* Define to the sub-directory in which libtool stores uninstalled libraries.
1169+   */
1170+#cmakedefine LT_OBJDIR
1171+
1172+/* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */
1173+#cmakedefine MALLOC_0_IS_NONNULL 1
1174+
1175+/* Define to a substitute value for mmap()'s MAP_ANONYMOUS flag. */
1176+#cmakedefine MAP_ANONYMOUS
1177+
1178+/* Define if the mbrtowc function has the NULL string argument bug. */
1179+#cmakedefine MBRTOWC_NULL_ARG_BUG
1180+
1181+/* Define if the mbrtowc function does not return 0 for a NUL character. */
1182+#cmakedefine MBRTOWC_NUL_RETVAL_BUG
1183+
1184+/* Define if the mbrtowc function returns a wrong return value. */
1185+#cmakedefine MBRTOWC_RETVAL_BUG
1186+
1187+/* Define to 1 if your C compiler doesn't accept -c and -o together. */
1188+#cmakedefine NO_MINUS_C_MINUS_O
1189+
1190+/* Name of package */
1191+#cmakedefine PACKAGE
1192+
1193+/* Define to the address where bug reports for this package should be sent. */
1194+#cmakedefine PACKAGE_BUGREPORT
1195+
1196+/* Define to the full name of this package. */
1197+#cmakedefine PACKAGE_NAME
1198+
1199+/* Define to the full name and version of this package. */
1200+#cmakedefine PACKAGE_STRING
1201+
1202+/* Define to the one symbol short name of this package. */
1203+#cmakedefine PACKAGE_TARNAME
1204+
1205+/* Define to the home page for this package. */
1206+#cmakedefine PACKAGE_URL
1207+
1208+/* Define to the version of this package. */
1209+#cmakedefine PACKAGE_VERSION
1210+
1211+/* Define if <inttypes.h> exists and defines unusable PRI* macros. */
1212+#cmakedefine PRI_MACROS_BROKEN
1213+
1214+/* Define if the pthread_in_use() detection is hard. */
1215+#cmakedefine PTHREAD_IN_USE_DETECTION_HARD
1216+
1217+/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
1218+   'ptrdiff_t'. */
1219+#cmakedefine PTRDIFF_T_SUFFIX
1220+
1221+/* Define to 1 if readlink fails to recognize a trailing slash. */
1222+#cmakedefine READLINK_TRAILING_SLASH_BUG 1
1223+
1224+/* Define to 1 if stat needs help when passed a directory name with a trailing
1225+   slash */
1226+#cmakedefine REPLACE_FUNC_STAT_DIR 1
1227+
1228+/* Define to 1 if stat needs help when passed a file name with a trailing
1229+   slash */
1230+#cmakedefine REPLACE_FUNC_STAT_FILE 1
1231+
1232+/* Define this to 1 if strerror is broken. */
1233+#cmakedefine REPLACE_STRERROR 1
1234+
1235+/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
1236+   'sig_atomic_t'. */
1237+#cmakedefine SIG_ATOMIC_T_SUFFIX
1238+
1239+/* Define as the maximum value of type 'size_t', if the system doesn't define
1240+   it. */
1241+#ifndef SIZE_MAX
1242+# undef SIZE_MAX
1243+#endif
1244+
1245+/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
1246+   'size_t'. */
1247+#cmakedefine SIZE_T_SUFFIX
1248+
1249+/* If using the C implementation of alloca, define if you know the
1250+   direction of stack growth for your system; otherwise it will be
1251+   automatically deduced at runtime.
1252+	STACK_DIRECTION > 0 => grows toward higher addresses
1253+	STACK_DIRECTION < 0 => grows toward lower addresses
1254+	STACK_DIRECTION = 0 => direction of growth unknown */
1255+#cmakedefine STACK_DIRECTION
1256+
1257+/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
1258+#cmakedefine STAT_MACROS_BROKEN
1259+
1260+/* Define to 1 if you have the ANSI C header files. */
1261+#cmakedefine STDC_HEADERS
1262+
1263+/* Define to 1 if strerror_r returns char *. */
1264+#cmakedefine STRERROR_R_CHAR_P
1265+
1266+/* Define if the POSIX multithreading library can be used. */
1267+#cmakedefine USE_POSIX_THREADS
1268+
1269+/* Define if references to the POSIX multithreading library should be made
1270+   weak. */
1271+#cmakedefine USE_POSIX_THREADS_WEAK
1272+
1273+/* Define if the GNU Pth multithreading library can be used. */
1274+#cmakedefine USE_PTH_THREADS
1275+
1276+/* Define if references to the GNU Pth multithreading library should be made
1277+   weak. */
1278+#cmakedefine USE_PTH_THREADS_WEAK
1279+
1280+/* Define if the old Solaris multithreading library can be used. */
1281+#cmakedefine USE_SOLARIS_THREADS
1282+
1283+/* Define if references to the old Solaris multithreading library should be
1284+   made weak. */
1285+#cmakedefine USE_SOLARIS_THREADS_WEAK
1286+
1287+/* Define to 1 if you want getc etc. to use unlocked I/O if available.
1288+   Unlocked I/O can improve performance in unithreaded apps, but it is not
1289+   safe for multithreaded apps. */
1290+#cmakedefine USE_UNLOCKED_IO
1291+
1292+/* Define if the Win32 multithreading API can be used. */
1293+#cmakedefine USE_WIN32_THREADS
1294+
1295+/* Version number of package */
1296+#cmakedefine VERSION
1297+
1298+/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
1299+   'wchar_t'. */
1300+#cmakedefine WCHAR_T_SUFFIX
1301+
1302+/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
1303+   'wint_t'. */
1304+#cmakedefine WINT_T_SUFFIX
1305+
1306+/* Define to 1 if on MINIX. */
1307+#cmakedefine _MINIX
1308+
1309+/* Define to 2 if the system does not provide POSIX.1 features except with
1310+   this defined. */
1311+#cmakedefine _POSIX_1_SOURCE
1312+
1313+/* Define to 1 if you need to in order for `stat' and other things to work. */
1314+#cmakedefine _POSIX_SOURCE
1315+
1316+/* Define to 500 only on HP-UX. */
1317+#cmakedefine _XOPEN_SOURCE
1318+
1319+/* Enable extensions on AIX 3, Interix.  */
1320+#ifndef _ALL_SOURCE
1321+# undef _ALL_SOURCE
1322+#endif
1323+/* Enable GNU extensions on systems that have them.  */
1324+#ifndef _GNU_SOURCE
1325+# undef _GNU_SOURCE
1326+#endif
1327+/* Enable threading extensions on Solaris.  */
1328+#ifndef _POSIX_PTHREAD_SEMANTICS
1329+# undef _POSIX_PTHREAD_SEMANTICS
1330+#endif
1331+/* Enable extensions on HP NonStop.  */
1332+#ifndef _TANDEM_SOURCE
1333+# undef _TANDEM_SOURCE
1334+#endif
1335+/* Enable general extensions on Solaris.  */
1336+#ifndef __EXTENSIONS__
1337+# undef __EXTENSIONS__
1338+#endif
1339+
1340+
1341+/* Define to rpl_ if the getopt replacement functions and variables should be
1342+   used. */
1343+#cmakedefine __GETOPT_PREFIX
1344+
1345+/* Define to `int' if <sys/types.h> doesn't define. */
1346+#cmakedefine gid_t
1347+
1348+/* Define to `__inline__' or `__inline' if that's what the C compiler
1349+   calls it, or to nothing if 'inline' is not supported under any name.  */
1350+#ifndef __cplusplus
1351+#cmakedefine inline
1352+#endif
1353+
1354+/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports
1355+   the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of
1356+   earlier versions), but does not display it by setting __GNUC_STDC_INLINE__.
1357+   __APPLE__ && __MACH__ test for MacOS X.
1358+   __APPLE_CC__ tests for the Apple compiler and its version.
1359+   __STDC_VERSION__ tests for the C99 mode.  */
1360+#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
1361+# define __GNUC_STDC_INLINE__ 1
1362+#endif
1363+
1364+/* Define to a type if <wchar.h> does not define. */
1365+#cmakedefine mbstate_t
1366+
1367+/* Define to the type of st_nlink in struct stat, or a supertype. */
1368+#cmakedefine nlink_t
1369+
1370+/* Define as the type of the result of subtracting two pointers, if the system
1371+   doesn't define it. */
1372+#cmakedefine ptrdiff_t
1373+
1374+/* Define to the equivalent of the C99 'restrict' keyword, or to
1375+   nothing if this is not supported.  Do not define if restrict is
1376+   supported directly.  */
1377+#cmakedefine restrict
1378+/* Work around a bug in Sun C++: it does not support _Restrict or
1379+   __restrict__, even though the corresponding Sun C compiler ends up with
1380+   "#define restrict _Restrict" or "#define restrict __restrict__" in the
1381+   previous line.  Perhaps some future version of Sun C++ will work with
1382+   restrict; if so, hopefully it defines __RESTRICT like Sun C does.  */
1383+#if defined __SUNPRO_CC && !defined __RESTRICT
1384+# define _Restrict
1385+# define __restrict__
1386+#endif
1387+
1388+/* Define to `unsigned int' if <sys/types.h> does not define. */
1389+#cmakedefine size_t
1390+
1391+/* Define as a signed type of the same size as size_t. */
1392+#cmakedefine ssize_t
1393+
1394+/* Define to `int' if <sys/types.h> doesn't define. */
1395+#cmakedefine uid_t
1396+
1397+/* Define to unsigned long or unsigned long long if <stdint.h> and
1398+   <inttypes.h> don't define. */
1399+#cmakedefine uintmax_t @uintmax_t@
1400+#cmakedefine intmax_t @intmax_t@
1401+
1402+/* Define as a marker that can be attached to declarations that might not
1403+    be used.  This helps to reduce warnings, such as from
1404+    GCC -Wunused-parameter.  */
1405+#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
1406+# define _GL_UNUSED __attribute__ ((__unused__))
1407+#else
1408+# define _GL_UNUSED
1409+#endif
1410+/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name
1411+   is a misnomer outside of parameter lists.  */
1412+#define _UNUSED_PARAMETER_ _GL_UNUSED
1413+
1414+
1415+
1416+#define __libc_lock_t                   gl_lock_t
1417+#define __libc_lock_define              gl_lock_define
1418+#define __libc_lock_define_initialized  gl_lock_define_initialized
1419+#define __libc_lock_init                gl_lock_init
1420+#define __libc_lock_lock                gl_lock_lock
1421+#define __libc_lock_unlock              gl_lock_unlock
1422+#define __libc_lock_recursive_t                   gl_recursive_lock_t
1423+#define __libc_lock_define_recursive              gl_recursive_lock_define
1424+#define __libc_lock_define_initialized_recursive  gl_recursive_lock_define_initialized
1425+#define __libc_lock_init_recursive                gl_recursive_lock_init
1426+#define __libc_lock_lock_recursive                gl_recursive_lock_lock
1427+#define __libc_lock_unlock_recursive              gl_recursive_lock_unlock
1428+#define glthread_in_use  libintl_thread_in_use
1429+#define glthread_lock_init_func     libintl_lock_init_func
1430+#define glthread_lock_lock_func     libintl_lock_lock_func
1431+#define glthread_lock_unlock_func   libintl_lock_unlock_func
1432+#define glthread_lock_destroy_func  libintl_lock_destroy_func
1433+#define glthread_rwlock_init_multithreaded     libintl_rwlock_init_multithreaded
1434+#define glthread_rwlock_init_func              libintl_rwlock_init_func
1435+#define glthread_rwlock_rdlock_multithreaded   libintl_rwlock_rdlock_multithreaded
1436+#define glthread_rwlock_rdlock_func            libintl_rwlock_rdlock_func
1437+#define glthread_rwlock_wrlock_multithreaded   libintl_rwlock_wrlock_multithreaded
1438+#define glthread_rwlock_wrlock_func            libintl_rwlock_wrlock_func
1439+#define glthread_rwlock_unlock_multithreaded   libintl_rwlock_unlock_multithreaded
1440+#define glthread_rwlock_unlock_func            libintl_rwlock_unlock_func
1441+#define glthread_rwlock_destroy_multithreaded  libintl_rwlock_destroy_multithreaded
1442+#define glthread_rwlock_destroy_func           libintl_rwlock_destroy_func
1443+#define glthread_recursive_lock_init_multithreaded     libintl_recursive_lock_init_multithreaded
1444+#define glthread_recursive_lock_init_func              libintl_recursive_lock_init_func
1445+#define glthread_recursive_lock_lock_multithreaded     libintl_recursive_lock_lock_multithreaded
1446+#define glthread_recursive_lock_lock_func              libintl_recursive_lock_lock_func
1447+#define glthread_recursive_lock_unlock_multithreaded   libintl_recursive_lock_unlock_multithreaded
1448+#define glthread_recursive_lock_unlock_func            libintl_recursive_lock_unlock_func
1449+#define glthread_recursive_lock_destroy_multithreaded  libintl_recursive_lock_destroy_multithreaded
1450+#define glthread_recursive_lock_destroy_func           libintl_recursive_lock_destroy_func
1451+#define glthread_once_func            libintl_once_func
1452+#define glthread_once_singlethreaded  libintl_once_singlethreaded
1453+#define glthread_once_multithreaded   libintl_once_multithreaded
1454+
1455+/* On Windows, variables that may be in a DLL must be marked specially.  */
1456+#if (defined _MSC_VER && defined _DLL) && !defined IN_RELOCWRAPPER
1457+# define DLL_VARIABLE __declspec (dllimport)
1458+#else
1459+# define DLL_VARIABLE
1460+#endif
1461+
1462+/* Extra OS/2 (emx+gcc) defines.  */
1463+#ifdef __EMX__
1464+# include "intl/os2compat.h"
1465+#endif
1466+
1467+#ifdef _MSC_VER
1468+#define inline __inline
1469+#endif
1470+
1471+#ifdef HAVE_ICONV_CONST
1472+#define ICONV_CONST const
1473+#else
1474+#define ICONV_CONST
1475+#endif
1476\ Kein Zeilenumbruch am Dateiende.
1477diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/ConfigureChecks.cmake gettext-0.18/gettext-runtime/ConfigureChecks.cmake
1478--- gettext-0.18.orig/gettext-runtime/ConfigureChecks.cmake	1970-01-01 01:00:00.000000000 +0100
1479+++ gettext-0.18/gettext-runtime/ConfigureChecks.cmake	2013-03-19 09:27:52.972640000 +0100
1480@@ -0,0 +1,161 @@
1481+include(CheckFunctionExists)
1482+include(CheckIncludeFile)
1483+include(CheckTypeSize)
1484+
1485+check_include_file("argz.h" HAVE_ARGZ_H)
1486+CHECK_INCLUDE_FILE("alloca.h" HAVE_ALLOCA_H)
1487+CHECK_INCLUDE_FILE("bp-sym.h" HAVE_BP_SYM_H)
1488+CHECK_INCLUDE_FILE("dlfcn.h" HAVE_DLFCN_H)
1489+CHECK_INCLUDE_FILE("direct.h" HAVE_DIRECT_H)
1490+CHECK_INCLUDE_FILE("errno.h" HAVE_ERRNO_H)
1491+CHECK_INCLUDE_FILE("getopt.h" HAVE_GETOPT_H)
1492+CHECK_INCLUDE_FILE("iconv.h" HAVE_ICONV_H)
1493+CHECK_INCLUDE_FILE("inttypes.h" HAVE_INTTYPES_H)
1494+CHECK_INCLUDE_FILE("limits.h" HAVE_LIMITS_H)
1495+CHECK_INCLUDE_FILE("mach-o/dyld.h" HAVE_MACH_O_DYLD_H)
1496+CHECK_INCLUDE_FILE("memory.h" HAVE_MEMORY_H)
1497+CHECK_INCLUDE_FILE("random.h" HAVE_RANDOM_H)
1498+CHECK_INCLUDE_FILE("search.h" HAVE_SEARCH_H)
1499+CHECK_INCLUDE_FILE("signal.h" HAVE_SIGNAL_H)
1500+CHECK_INCLUDE_FILE("stddef.h" HAVE_STDDEF_H)
1501+CHECK_INCLUDE_FILE("stdint.h" HAVE_STDINT_H)
1502+CHECK_INCLUDE_FILE("stdio.h" HAVE_STDIO_H)
1503+CHECK_INCLUDE_FILE("stdlib.h" HAVE_STDLIB_H)
1504+CHECK_INCLUDE_FILE("strings.h" HAVE_STRINGS_H)
1505+CHECK_INCLUDE_FILE("string.h" HAVE_STRING_H)
1506+CHECK_INCLUDE_FILE("sys/bitypes.h" HAVE_SYS_BITYPES_H)
1507+CHECK_INCLUDE_FILE("sys/inttypes.h" HAVE_SYS_INTTYPES_H)
1508+CHECK_INCLUDE_FILE("sys/mman.h" HAVE_SYS_MMAN_H)
1509+CHECK_INCLUDE_FILE("sys/param.h" HAVE_SYS_PARAM_H)
1510+CHECK_INCLUDE_FILE("sys/socket.h" HAVE_SYS_SOCKET_H)
1511+CHECK_INCLUDE_FILE("sys/stat.h" HAVE_SYS_STAT_H)
1512+CHECK_INCLUDE_FILE("sys/time.h" HAVE_SYS_TIME_H)
1513+CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H)
1514+CHECK_INCLUDE_FILE("time.h" HAVE_TIME_H)
1515+CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
1516+CHECK_INCLUDE_FILE("wchar.h" HAVE_WCHAR_H)
1517+CHECK_INCLUDE_FILE("wctype.h" HAVE_WCTYPE_H)
1518+CHECK_INCLUDE_FILE("winsock2.h" HAVE_WINSOCK2_H)
1519+
1520+
1521+CHECK_FUNCTION_EXISTS("argz_count" HAVE_ARGZ_COUNT)
1522+CHECK_FUNCTION_EXISTS("argz_next" HAVE_ARGZ_NEXT)
1523+CHECK_FUNCTION_EXISTS("argz_stringify" HAVE_ARGZ_STRINGIFY)
1524+CHECK_FUNCTION_EXISTS("alloca" HAVE_ALLOCA)
1525+if(MSVC)
1526+    set(HAVE_ALLOCA 1)
1527+endif(MSVC)
1528+CHECK_FUNCTION_EXISTS("asprintf" HAVE_ASPRINTF)
1529+CHECK_FUNCTION_EXISTS("atexit" HAVE_ATEXIT)
1530+CHECK_FUNCTION_EXISTS("canonicalize_file_name" HAVE_CANONICALIZE_FILE_NAME)
1531+CHECK_FUNCTION_EXISTS("CFLocaleCopyCurrent" HAVE_CFLOCALECOPYCURRENT)
1532+CHECK_FUNCTION_EXISTS("fwprintf" HAVE_FWPRINTF)
1533+CHECK_FUNCTION_EXISTS("getcwd" HAVE_GETCWD)
1534+CHECK_FUNCTION_EXISTS("_getcwd" HAVE_GETCWD2)
1535+CHECK_FUNCTION_EXISTS("getegid" HAVE_GETEGID)
1536+CHECK_FUNCTION_EXISTS("geteuid" HAVE_GETEUID)
1537+CHECK_FUNCTION_EXISTS("getgid" HAVE_GETGID)
1538+CHECK_FUNCTION_EXISTS("getopt_long_only" HAVE_GETOPT_LONG_ONLY)
1539+CHECK_FUNCTION_EXISTS("getpagesize" HAVE_GETPAGESIZE)
1540+CHECK_FUNCTION_EXISTS("gettext" HAVE_GETTEXT)
1541+CHECK_FUNCTION_EXISTS("getuid" HAVE_GETUID)
1542+CHECK_FUNCTION_EXISTS("iconv" HAVE_ICONV)
1543+CHECK_FUNCTION_EXISTS("iswblank" HAVE_ISWBLANK)
1544+CHECK_FUNCTION_EXISTS("iswcntrl" HAVE_ISWCNTRL)
1545+CHECK_FUNCTION_EXISTS("lstat" HAVE_LSTAT)
1546+CHECK_FUNCTION_EXISTS("mbrtowc" HAVE_MBRTOWC)
1547+CHECK_FUNCTION_EXISTS("mbsinit" HAVE_MBSINIT)
1548+CHECK_FUNCTION_EXISTS("mbslen" HAVE_MBSLEN)
1549+CHECK_FUNCTION_EXISTS("memchr" HAVE_MEMCHR)
1550+CHECK_FUNCTION_EXISTS("memmove" HAVE_MEMMOVE)
1551+CHECK_FUNCTION_EXISTS("mempcpy" HAVE_MEMPCPY)
1552+CHECK_FUNCTION_EXISTS("mmap" HAVE_MMAP)
1553+CHECK_FUNCTION_EXISTS("mprotect" HAVE_MPROTECT)
1554+CHECK_FUNCTION_EXISTS("munmap" HAVE_MUNMAP)
1555+CHECK_FUNCTION_EXISTS("newlocale" HAVE_NEWLOCALE)
1556+CHECK_FUNCTION_EXISTS("pathconf" HAVE_PATHCONF)
1557+CHECK_FUNCTION_EXISTS("putenv" HAVE_PUTENV)
1558+CHECK_FUNCTION_EXISTS("readlink" HAVE_READLINK)
1559+CHECK_FUNCTION_EXISTS("realpath" HAVE_REALPATH)
1560+CHECK_FUNCTION_EXISTS("setenv" HAVE_SETENV)
1561+CHECK_FUNCTION_EXISTS("setlocale" HAVE_SETLOCALE)
1562+CHECK_FUNCTION_EXISTS("snprintf" HAVE_SNPRINTF)
1563+CHECK_FUNCTION_EXISTS("stpcpy" HAVE_STPCPY)
1564+CHECK_FUNCTION_EXISTS("strcasecmp" HAVE_STRCASECMP)
1565+CHECK_FUNCTION_EXISTS("strdup" HAVE_STRDUP)
1566+CHECK_FUNCTION_EXISTS("strerror_r" HAVE_STRERROR_R)
1567+CHECK_FUNCTION_EXISTS("strnlen" HAVE_STRNLEN)
1568+CHECK_FUNCTION_EXISTS("strtol" HAVE_STRTOL)
1569+CHECK_FUNCTION_EXISTS("strtoul" HAVE_STRTOUL)
1570+CHECK_FUNCTION_EXISTS("tsearch" HAVE_TSEARCH)
1571+CHECK_FUNCTION_EXISTS("uselocale" HAVE_USELOCALE)
1572+CHECK_FUNCTION_EXISTS("wcrtomb" HAVE_WCRTOMB)
1573+CHECK_FUNCTION_EXISTS("wcslen" HAVE_WCSLEN)
1574+CHECK_FUNCTION_EXISTS("wcsnlen" HAVE_WCSNLEN)
1575+CHECK_FUNCTION_EXISTS("wcwidth" HAVE_WCWIDTH)
1576+CHECK_FUNCTION_EXISTS("_NSGetExecutablePath" HAVE__NSGETEXECUTABLEPATH)
1577+CHECK_FUNCTION_EXISTS("__fsetlocking" HAVE___FSETLOCKING)
1578+
1579+CHECK_FUNCTION_EXISTS("clearerr_unlocked" HAVE_DECL_CLEARERR_UNLOCKED)
1580+CHECK_FUNCTION_EXISTS("feof_unlocked" HAVE_DECL_FEOF_UNLOCKED)
1581+CHECK_FUNCTION_EXISTS("ferror_unlocked" HAVE_DECL_FERROR_UNLOCKED)
1582+CHECK_FUNCTION_EXISTS("fflush_unlocked" HAVE_DECL_FFLUSH_UNLOCKED)
1583+CHECK_FUNCTION_EXISTS("fgets_unlocked" HAVE_DECL_FGETS_UNLOCKED)
1584+CHECK_FUNCTION_EXISTS("fputc_unlocked" HAVE_DECL_FPUTC_UNLOCKED)
1585+CHECK_FUNCTION_EXISTS("fputs_unlocked" HAVE_DECL_FPUTS_UNLOCKED)
1586+CHECK_FUNCTION_EXISTS("fread_unlocked" HAVE_DECL_FREAD_UNLOCKED)
1587+CHECK_FUNCTION_EXISTS("fwrite_unlocked" HAVE_DECL_FWRITE_UNLOCKED)
1588+CHECK_FUNCTION_EXISTS("getchar_unlocked" HAVE_DECL_GETCHAR_UNLOCKED)
1589+CHECK_FUNCTION_EXISTS("getc_unlocked" HAVE_DECL_GETC_UNLOCKED)
1590+CHECK_FUNCTION_EXISTS("getenv" HAVE_DECL_GETENV)
1591+CHECK_FUNCTION_EXISTS("getopt_clip" HAVE_DECL_GETOPT_CLIP)
1592+CHECK_FUNCTION_EXISTS("optreset" HAVE_DECL_OPTRESET)
1593+CHECK_FUNCTION_EXISTS("program_invocation_name" HAVE_DECL_PROGRAM_INVOCATION_NAME)
1594+CHECK_FUNCTION_EXISTS("program_invocation_short_name" HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME)
1595+CHECK_FUNCTION_EXISTS("putchar_unlocked" HAVE_DECL_PUTCHAR_UNLOCKED)
1596+CHECK_FUNCTION_EXISTS("putc_unlocked" HAVE_DECL_PUTC_UNLOCKED)
1597+CHECK_FUNCTION_EXISTS("strerror_r" HAVE_DECL_STRERROR_R)
1598+CHECK_FUNCTION_EXISTS("strnlen" HAVE_DECL_STRNLEN)
1599+CHECK_FUNCTION_EXISTS("wcwidth" HAVE_DECL_WCWIDTH)
1600+CHECK_FUNCTION_EXISTS("_snprintf" HAVE_DECL__SNPRINTF)
1601+CHECK_FUNCTION_EXISTS("_snwprintf" HAVE_DECL__SNWPRINTF)
1602+CHECK_FUNCTION_EXISTS("strerror" HAVE_DECL_STRERROR)
1603+
1604+CHECK_TYPE_SIZE("ptrdiff_t" BITSIZEOF_PTRDIFF_T)
1605+CHECK_TYPE_SIZE("sig_atomic_t" BITSIZEOF_SIG_ATOMIC_T)
1606+CHECK_TYPE_SIZE("size_t" BITSIZEOF_SIZE_T)
1607+CHECK_TYPE_SIZE("wchar_t" BITSIZEOF_WCHAR_T)
1608+CHECK_TYPE_SIZE("wint_t" BITSIZEOF_WINT_T)
1609+
1610+CHECK_TYPE_SIZE("intmax_t" INTMAX_T)
1611+
1612+CHECK_TYPE_SIZE("uintmax_t" UINTMAX_T)
1613+if(HAVE_UINTMAX_T)
1614+set(HAVE_STDINT_H_WITH_UINTMAX true)
1615+endif(HAVE_UINTMAX_T)
1616+
1617+if(ICONV_SECOND_ARGUMENT_IS_CONST)
1618+    set(HAVE_ICONV_CONST 1)
1619+endif(ICONV_SECOND_ARGUMENT_IS_CONST)
1620+
1621+if(NOT HAVE_UINTMAX_T)
1622+    set(uintmax_t "unsigned __int64")
1623+endif(NOT HAVE_UINTMAX_T)
1624+if(NOT HAVE_INTMAX_T)
1625+    set(intmax_t "__int64")
1626+endif(NOT HAVE_INTMAX_T)
1627+
1628+if(WINCE)
1629+    set(INTDIV0_RAISES_SIGFPE 1)
1630+endif(WINCE)
1631+
1632+if(WIN32)
1633+    set(FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX 1)
1634+    set(FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR 1)
1635+else(WIN32)
1636+    set(FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR 0)
1637+endif(WIN32)
1638+
1639+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
1640+
1641+add_definitions(-DHAVE_CONFIG_H -DLIBDIR)
1642\ Kein Zeilenumbruch am Dateiende.
1643diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/CMakeLists.txt gettext-0.18/gettext-runtime/intl/CMakeLists.txt
1644--- gettext-0.18.orig/gettext-runtime/intl/CMakeLists.txt	1970-01-01 01:00:00.000000000 +0100
1645+++ gettext-0.18/gettext-runtime/intl/CMakeLists.txt	2013-03-19 08:59:57.015780700 +0100
1646@@ -0,0 +1,70 @@
1647+cmake_minimum_required(VERSION 2.6)
1648+set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
1649+
1650+project(intl)
1651+
1652+set(HAVE_NEWLOCALE 0)
1653+set(HAVE_POSIX_PRINTF 0)
1654+set(HAVE_SNPRINTF 0)
1655+set(HAVE_ASPRINTF 0)
1656+set(HAVE_WPRINTF 0)
1657+
1658+configure_file(libgnuintl.h.in libgnuintl.h)
1659+
1660+include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
1661+
1662+set(INTL_SRCS
1663+  bindtextdom.c
1664+  dcgettext.c
1665+  dgettext.c
1666+  gettext.c
1667+  finddomain.c
1668+  hash-string.c
1669+  loadmsgcat.c
1670+  localealias.c
1671+  textdomain.c
1672+  l10nflist.c
1673+  explodename.c
1674+  dcigettext.c
1675+  dcngettext.c
1676+  dngettext.c
1677+  ngettext.c
1678+  plural-exp.c
1679+  localcharset.c
1680+  threadlib.c
1681+  lock.c
1682+  relocatable.c
1683+  langprefs.c
1684+  localename.c
1685+  log.c
1686+  printf.c
1687+  setlocale.c
1688+  version.c
1689+  osdep.c
1690+  intl-compat.c
1691+  libintl.rc
1692+  plural.c
1693+  intl.def
1694+)
1695+
1696+add_definitions(-DLOCALE_ALIAS_PATH="")
1697+add_definitions(-DLOCALEDIR="")
1698+add_definitions(-DIN_LIBINTL)
1699+#add_definitions(-DBUILDING_DLL)
1700+#add_definitions(-DHAVE_VISIBILITY)
1701+
1702+add_library(intl ${LIBRARY_TYPE} ${INTL_SRCS})
1703+target_link_libraries(intl ${ICONV_LIBRARIES})
1704+if(MSVC)
1705+set_target_properties(intl PROPERTIES OUTPUT_NAME "libintl")
1706+endif(MSVC)
1707+
1708+if(WINCE)
1709+    target_link_libraries(intl ${WCECOMPAT_LIBRARIES})
1710+endif(WINCE)
1711+
1712+install(TARGETS intl RUNTIME DESTINATION bin
1713+                        LIBRARY DESTINATION lib
1714+                        ARCHIVE DESTINATION lib)
1715+
1716+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libgnuintl.h DESTINATION include RENAME libintl.h)
1717diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/dcigettext.c gettext-0.18/gettext-runtime/intl/dcigettext.c
1718--- gettext-0.18.orig/gettext-runtime/intl/dcigettext.c	2009-12-26 14:42:37.000000000 +0100
1719+++ gettext-0.18/gettext-runtime/intl/dcigettext.c	2013-03-19 08:59:57.017780800 +0100
1720@@ -140,8 +140,12 @@
1721 # define tfind __tfind
1722 #else
1723 # if !defined HAVE_GETCWD
1724+#  ifndef _WIN32_WCE
1725 char *getwd ();
1726-#  define getcwd(buf, max) getwd (buf)
1727+#   define getcwd(buf, max) getwd (buf)
1728+#  else
1729+#    define getcwd _getcwd
1730+#  endif
1731 # else
1732 #  if VMS
1733 #   define getcwd(buf, max) (getcwd) (buf, max, 0)
1734diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/intl.def gettext-0.18/gettext-runtime/intl/intl.def
1735--- gettext-0.18.orig/gettext-runtime/intl/intl.def	1970-01-01 01:00:00.000000000 +0100
1736+++ gettext-0.18/gettext-runtime/intl/intl.def	2013-03-19 08:59:57.019781000 +0100
1737@@ -0,0 +1,52 @@
1738+LIBRARY libintl.DLL
1739+EXPORTS
1740+;_imp___ctype_ptr
1741+_nl_expand_alias
1742+_nl_explode_name
1743+_nl_find_domain
1744+_nl_find_msg
1745+_nl_language_preferences_default
1746+_nl_load_domain
1747+_nl_locale_name
1748+_nl_locale_name_default
1749+_nl_locale_name_environ
1750+_nl_locale_name_posix
1751+_nl_locale_name_thread_unsafe
1752+_nl_log_untranslated
1753+_nl_make_l10nflist
1754+_nl_msg_cat_cntr
1755+_nl_normalize_codeset
1756+bind_textdomain_codeset
1757+bindtextdomain
1758+dcgettext
1759+dcngettext
1760+dgettext
1761+dngettext
1762+gettext
1763+gl_locale_name_thread
1764+libintl_bind_textdomain_codeset
1765+libintl_bindtextdomain
1766+libintl_dcgettext
1767+libintl_dcigettext
1768+libintl_dcngettext
1769+libintl_dgettext
1770+libintl_dngettext
1771+libintl_gettext
1772+libintl_gettext_extract_plural
1773+libintl_gettext_free_exp
1774+libintl_gettext_germanic_plural
1775+libintl_gettextparse
1776+libintl_fprintf
1777+libintl_hash_string
1778+libintl_ngettext
1779+libintl_nl_current_default_domain
1780+libintl_nl_default_default_domain
1781+libintl_nl_default_dirname
1782+libintl_nl_domain_bindings
1783+;libintl_relocate
1784+;libintl_set_relocation_prefix
1785+libintl_setlocale
1786+libintl_sprintf
1787+libintl_textdomain
1788+libintl_version
1789+locale_charset
1790diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/langprefs.c gettext-0.18/gettext-runtime/intl/langprefs.c
1791--- gettext-0.18.orig/gettext-runtime/intl/langprefs.c	2009-12-12 16:08:01.000000000 +0100
1792+++ gettext-0.18/gettext-runtime/intl/langprefs.c	2013-03-19 08:59:57.020781000 +0100
1793@@ -53,6 +53,8 @@
1794 extern const char *_nl_locale_name_from_win32_LANGID (LANGID langid);
1795 extern const char *_nl_locale_name_from_win32_LCID (LCID lcid);
1796
1797+#ifndef _WIN32_WCE
1798+
1799 /* Get the preferences list through the MUI APIs. This works on Windows Vista
1800    and newer.  */
1801 static const char *
1802@@ -205,6 +207,8 @@
1803   return NULL;
1804 }
1805
1806+
1807+
1808 /* Get the system's preference.  This can be used as a fallback.  */
1809 static BOOL CALLBACK
1810 ret_first_language (HMODULE h, LPCSTR type, LPCSTR name, WORD lang, LONG_PTR param)
1811@@ -222,7 +226,7 @@
1812                          ret_first_language, (LONG_PTR)&languages);
1813   return languages;
1814 }
1815-
1816+#endif
1817 #endif
1818
1819 /* Determine the user's language preferences, as a colon separated list of
1820@@ -324,6 +328,7 @@
1821     static const char *cached_languages;
1822     static int cache_initialized;
1823
1824+#ifndef _WIN32_WCE
1825     /* Activate the new code only when the GETTEXT_MUI environment variable is
1826        set, for the time being, since the new code is not well tested.  */
1827     if (!cache_initialized && getenv ("GETTEXT_MUI") != NULL)
1828@@ -346,10 +351,21 @@
1829         cached_languages = languages;
1830         cache_initialized = 1;
1831       }
1832+#else
1833+    if (!cache_initialized)
1834+      {
1835+        LCID lcid;
1836+
1837+        /* Use native Win32 API locale ID.  */
1838+        lcid = GetSystemDefaultLCID ();
1839+
1840+        cached_languages = _nl_locale_name_from_win32_LCID(lcid);
1841+        cache_initialized = 1;
1842+      }
1843+#endif
1844     if (cached_languages != NULL)
1845       return cached_languages;
1846   }
1847 #endif
1848-
1849   return NULL;
1850 }
1851diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/libgnuintl.h.in gettext-0.18/gettext-runtime/intl/libgnuintl.h.in
1852--- gettext-0.18.orig/gettext-runtime/intl/libgnuintl.h.in	2010-05-09 20:54:29.000000000 +0200
1853+++ gettext-0.18/gettext-runtime/intl/libgnuintl.h.in	2013-03-19 08:59:57.023781200 +0100
1854@@ -19,6 +19,10 @@
1855 #ifndef _LIBINTL_H
1856 #define _LIBINTL_H 1
1857
1858+#ifdef _MSC_VER
1859+#define inline __inline
1860+#endif
1861+
1862 #include <locale.h>
1863 #if (defined __APPLE__ && defined __MACH__) && @HAVE_NEWLOCALE@
1864 # include <xlocale.h>
1865diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/libintl.rc gettext-0.18/gettext-runtime/intl/libintl.rc
1866--- gettext-0.18.orig/gettext-runtime/intl/libintl.rc	2010-05-09 20:54:29.000000000 +0200
1867+++ gettext-0.18/gettext-runtime/intl/libintl.rc	2013-03-19 08:59:57.024781200 +0100
1868@@ -22,13 +22,13 @@
1869             VALUE "Comments", "This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\0"
1870             VALUE "CompanyName", "Free Software Foundation\0"
1871             VALUE "FileDescription", "LGPLed libintl for Windows NT/2000/XP/Vista/7 and Windows 95/98/ME\0"
1872-            VALUE "FileVersion", PACKAGE_VERSION_STRING "\0"
1873+            VALUE "FileVersion", "0.18\0"
1874             VALUE "InternalName", "intl.dll\0"
1875             VALUE "LegalCopyright", "Copyright (C) 1995-2010\0"
1876             VALUE "LegalTrademarks", "\0"
1877             VALUE "OriginalFilename", "intl.dll\0"
1878             VALUE "ProductName", "libintl: accessing NLS message catalogs\0"
1879-            VALUE "ProductVersion", PACKAGE_VERSION_STRING "\0"
1880+            VALUE "ProductVersion", "0.18\0"
1881         END
1882     END
1883     BLOCK "VarFileInfo"
1884diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/loadmsgcat.c gettext-0.18/gettext-runtime/intl/loadmsgcat.c
1885--- gettext-0.18.orig/gettext-runtime/intl/loadmsgcat.c	2009-06-28 21:44:04.000000000 +0200
1886+++ gettext-0.18/gettext-runtime/intl/loadmsgcat.c	2013-03-19 08:59:57.027781400 +0100
1887@@ -33,6 +33,11 @@
1888 #include <sys/types.h>
1889 #include <sys/stat.h>
1890
1891+#ifdef _WIN32_WCE
1892+# include <io.h>
1893+#define open(a,b) _open(a,b,0)
1894+#endif
1895+
1896 #ifdef __GNUC__
1897 # undef  alloca
1898 # define alloca __builtin_alloca
1899@@ -40,7 +45,9 @@
1900 #else
1901 # ifdef _MSC_VER
1902 #  include <malloc.h>
1903+#  undef alloca
1904 #  define alloca _alloca
1905+#  define HAVE_ALLOCA
1906 # else
1907 #  if defined HAVE_ALLOCA_H || defined _LIBC
1908 #   include <alloca.h>
1909@@ -499,7 +506,6 @@
1910 # define O_BINARY 0
1911 #endif
1912
1913-
1914 /* We need a sign, whether a new catalog was loaded, which can be associated
1915    with all translations.  This is important if the translations are
1916    cached by one of GCC's features.  */
1917@@ -782,7 +788,7 @@
1918 {
1919   __libc_lock_define_initialized_recursive (static, lock)
1920   int fd = -1;
1921-  size_t size;
1922+  size_t _size;
1923 #ifdef _LIBC
1924   struct stat64 st;
1925 #else
1926@@ -836,15 +842,15 @@
1927 #else
1928       __builtin_expect (fstat (fd, &st) != 0, 0)
1929 #endif
1930-      || __builtin_expect ((size = (size_t) st.st_size) != st.st_size, 0)
1931-      || __builtin_expect (size < sizeof (struct mo_file_header), 0))
1932+      || __builtin_expect ((_size = (size_t) st.st_size) != st.st_size, 0)
1933+      || __builtin_expect (_size < sizeof (struct mo_file_header), 0))
1934     /* Something went wrong.  */
1935     goto out;
1936
1937 #ifdef HAVE_MMAP
1938   /* Now we are ready to load the file.  If mmap() is available we try
1939      this first.  If not available or it failed we try to load it.  */
1940-  data = (struct mo_file_header *) mmap (NULL, size, PROT_READ,
1941+  data = (struct mo_file_header *) mmap (NULL, _size, PROT_READ,
1942 					 MAP_PRIVATE, fd, 0);
1943
1944   if (__builtin_expect (data != (struct mo_file_header *) -1, 1))
1945@@ -863,11 +869,11 @@
1946       size_t to_read;
1947       char *read_ptr;
1948
1949-      data = (struct mo_file_header *) malloc (size);
1950+      data = (struct mo_file_header *) malloc (_size);
1951       if (data == NULL)
1952 	goto out;
1953
1954-      to_read = size;
1955+      to_read = _size;
1956       read_ptr = (char *) data;
1957       do
1958 	{
1959@@ -897,7 +903,7 @@
1960       /* The magic number is wrong: not a message catalog file.  */
1961 #ifdef HAVE_MMAP
1962       if (use_mmap)
1963-	munmap ((caddr_t) data, size);
1964+	munmap ((caddr_t) data, _size);
1965       else
1966 #endif
1967 	free (data);
1968@@ -911,7 +917,7 @@
1969
1970   domain->data = (char *) data;
1971   domain->use_mmap = use_mmap;
1972-  domain->mmap_size = size;
1973+  domain->mmap_size = _size;
1974   domain->must_swap = data->magic != _MAGIC;
1975   domain->malloced = NULL;
1976
1977diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/localename.c gettext-0.18/gettext-runtime/intl/localename.c
1978--- gettext-0.18.orig/gettext-runtime/intl/localename.c	2010-05-09 04:27:13.000000000 +0200
1979+++ gettext-0.18/gettext-runtime/intl/localename.c	2013-03-19 08:59:57.030781600 +0100
1980@@ -1128,6 +1128,10 @@
1981 # endif
1982 #endif
1983
1984+#ifdef _WIN32_WCE
1985+#define GetThreadLocale GetUserDefaultLCID
1986+#endif
1987+
1988
1989 #if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE
1990 /* MacOS X 10.2 or newer */
1991@@ -1448,6 +1452,7 @@
1992 const char *
1993 gl_locale_name_from_win32_LANGID (LANGID langid)
1994 {
1995+#ifndef _WIN32_WCE
1996   /* Activate the new code only when the GETTEXT_MUI environment variable is
1997      set, for the time being, since the new code is not well tested.  */
1998   if (getenv ("GETTEXT_MUI") != NULL)
1999@@ -1465,6 +1470,7 @@
2000           return namebuf;
2001         }
2002     }
2003+#endif
2004   /* Internet Explorer has an LCID to RFC3066 name mapping stored in
2005      HKEY_CLASSES_ROOT\Mime\Database\Rfc1766.  But we better don't use that
2006      since IE's i18n subsystem is known to be inconsistent with the Win32 base
2007diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/os2compat.c gettext-0.18/gettext-runtime/intl/os2compat.c
2008--- gettext-0.18.orig/gettext-runtime/intl/os2compat.c	2009-06-28 21:44:04.000000000 +0200
2009+++ gettext-0.18/gettext-runtime/intl/os2compat.c	2013-03-19 08:59:57.032781700 +0100
2010@@ -23,7 +23,9 @@
2011
2012 #include <stdlib.h>
2013 #include <string.h>
2014+#ifdef HAVE_SYS_PARAM_H
2015 #include <sys/param.h>
2016+#endif
2017
2018 /* A version of getenv() that works from DLLs */
2019 extern unsigned long DosScanEnv (const unsigned char *pszName, unsigned char **ppszValue);
2020diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/printf-parse.c gettext-0.18/gettext-runtime/intl/printf-parse.c
2021--- gettext-0.18.orig/gettext-runtime/intl/printf-parse.c	2009-12-12 16:08:01.000000000 +0100
2022+++ gettext-0.18/gettext-runtime/intl/printf-parse.c	2013-03-19 08:59:57.034781800 +0100
2023@@ -75,6 +75,11 @@
2024 # include "c-ctype.h"
2025 #endif
2026
2027+#if defined(_WIN32_WCE) && !defined(_PTRDIFF_T_DEFINED)
2028+  typedef int ptrdiff_t;
2029+# define _PTRDIFF_T_DEFINED
2030+#endif
2031+
2032 #ifdef STATIC
2033 STATIC
2034 #endif
2035diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/setlocale.c gettext-0.18/gettext-runtime/intl/setlocale.c
2036--- gettext-0.18.orig/gettext-runtime/intl/setlocale.c	2009-12-26 04:15:07.000000000 +0100
2037+++ gettext-0.18/gettext-runtime/intl/setlocale.c	2013-03-19 08:59:57.037782000 +0100
2038@@ -16,6 +16,7 @@
2039    License along with this program; if not, write to the Free Software
2040    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
2041    USA.  */
2042+
2043
2044 #ifdef HAVE_CONFIG_H
2045 # include <config.h>
2046@@ -46,6 +47,9 @@
2047
2048 #if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__
2049
2050+/* FIXME: In Windwos CE the function setlocale is not defined */
2051+# ifndef _WIN32_WCE
2052+
2053 # undef setlocale
2054 # undef newlocale
2055
2056@@ -816,10 +820,14 @@
2057 #  define setlocale_single setlocale_unixlike
2058 # endif
2059
2060+# endif
2061+
2062 DLL_EXPORTED
2063 char *
2064 libintl_setlocale (int category, const char *locale)
2065 {
2066+/* FIXME: In Windwos CE we dont need setlocale */
2067+#ifndef _WIN32_WCE
2068   if (locale != NULL && locale[0] == '\0')
2069     {
2070       /* A request to the set the current locale to the default locale.  */
2071@@ -899,6 +907,8 @@
2072     }
2073   else
2074     return setlocale_single (category, locale);
2075+#endif
2076+    return NULL;
2077 }
2078
2079 # if HAVE_NEWLOCALE
2080diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/vasnprintf.c gettext-0.18/gettext-runtime/intl/vasnprintf.c
2081--- gettext-0.18.orig/gettext-runtime/intl/vasnprintf.c	2010-05-09 12:54:20.000000000 +0200
2082+++ gettext-0.18/gettext-runtime/intl/vasnprintf.c	2013-03-19 08:59:57.042782300 +0100
2083@@ -86,6 +86,10 @@
2084 # endif
2085 #endif
2086
2087+#ifdef _WIN32_WCE
2088+#include <wchar.h>
2089+#endif
2090+
2091 /* Checked size_t computations.  */
2092 #include "xsize.h"
2093
2094diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/intl/xsize.h gettext-0.18/gettext-runtime/intl/xsize.h
2095--- gettext-0.18.orig/gettext-runtime/intl/xsize.h	2009-06-28 21:44:04.000000000 +0200
2096+++ gettext-0.18/gettext-runtime/intl/xsize.h	2013-03-19 08:59:57.044782400 +0100
2097@@ -25,6 +25,9 @@
2098
2099 /* Get SIZE_MAX.  */
2100 #include <limits.h>
2101+#ifdef _WIN32_WCE
2102+#define SIZE_MAX  _UI32_MAX
2103+#endif
2104 #if HAVE_STDINT_H
2105 # include <stdint.h>
2106 #endif
2107diff -Nru -x '*~' gettext-0.18.orig/gettext-runtime/src/CMakeLists.txt gettext-0.18/gettext-runtime/src/CMakeLists.txt
2108--- gettext-0.18.orig/gettext-runtime/src/CMakeLists.txt	1970-01-01 01:00:00.000000000 +0100
2109+++ gettext-0.18/gettext-runtime/src/CMakeLists.txt	2013-03-19 08:59:57.046782500 +0100
2110@@ -0,0 +1,22 @@
2111+cmake_minimum_required(VERSION 2.6)
2112+set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
2113+
2114+project(tools)
2115+
2116+set(GETTEXT_SRCS
2117+    gettext.c
2118+)
2119+
2120+set(NGETTEXT_SRCS
2121+    ngettext.c
2122+)
2123+
2124+set(ENVSUBST_SRCS
2125+    envsubst.c
2126+)
2127+
2128+add_executable(gettext ${GETTEXT_SRCS})
2129+
2130+add_executable(ngettext ${NGETTEXT_SRCS})
2131+
2132+add_executable(envsubst ${ENVSUBST_SRCS})
2133