]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Support for compiling Windows resource files.
authorBruno Haible <bruno@clisp.org>
Mon, 28 May 2007 12:11:15 +0000 (12:11 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:51 +0000 (12:14 +0200)
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/intl.m4

index 73ca5c69e760e5e6a2b35526feffa5449ff043bd..6627cc859b8c47a0530e8ed7545f7fd569865135 100644 (file)
@@ -1,3 +1,7 @@
+2007-05-28  Bruno Haible  <bruno@clisp.org>
+
+       * intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
+
 2007-05-27  Bruno Haible  <bruno@clisp.org>
 
        * iconv.m4: Update from gnulib.
index e44fe21960f51be583f4599237fb6435fe6d4e38..e0771d2a04e5688492eff65d968e7949b50c954a 100644 (file)
@@ -1,4 +1,4 @@
-# intl.m4 serial 4 (gettext-0.16.2)
+# intl.m4 serial 5 (gettext-0.16.2)
 dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -106,6 +106,19 @@ AC_DEFUN([AM_INTL_SUBDIR],
   WOE32DLL=$is_woe32dll
   AC_SUBST([WOE32DLL])
 
+  dnl On mingw and Cygwin, we can activate special Makefile rules which add
+  dnl version information to the shared libraries and executables.
+  case "$host_os" in
+    mingw* | cygwin*) is_woe32=yes ;;
+    *) is_woe32=no ;;
+  esac
+  WOE32=$is_woe32
+  AC_SUBST([WOE32])
+  if test $WOE32 = yes; then
+    dnl Check for a program that compiles Windows resource files.
+    AC_CHECK_TOOL([WINDRES], [windres])
+  fi
+
   dnl Rename some macros and functions used for locking.
   AH_BOTTOM([
 #define __libc_lock_t                   gl_lock_t