Don't install charset.alias on mingw and Cygwin.
authorBruno Haible <bruno@clisp.org>
Sun, 25 Jan 2009 17:15:44 +0000 (18:15 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 25 Jan 2009 17:15:44 +0000 (18:15 +0100)
ChangeLog
modules/localcharset

index 3b762f92028af95c920d9cf45689788baa26a1fb..e3be07ea7b3f4a790165d6e889c3836bf0f3cedf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Don't install charset.alias on mingw and Cygwin.
+       * modules/localcharset (install-exec-local): Don't install
+       charset.alias on mingw and Cygwin, if the file does not yet exist.
+       The result for these platforms is hardcoded in localcharset.c.
+
 2009-01-25  Bruno Haible  <bruno@clisp.org>
 
        Make it possible again to use AC_GNU_SOURCE together with gnulib.
index f0b7ed7193e78272af6ccb65156a77d2bfb506bb..ae42b032a7e7952f57b9c77558be6815f89544df 100644 (file)
@@ -40,13 +40,25 @@ all-local: charset.alias ref-add.sed ref-del.sed
 charset_alias = $(DESTDIR)$(libdir)/charset.alias
 charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
 install-exec-local: all-local
-       test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir)
+       if test $(GLIBC21) = no; then \
+         case '$(host_os)' in \
+           cygwin* | mingw* | pw32* | cegcc*) \
+             need_charset_alias=false ;; \
+           *) \
+             need_charset_alias=true ;; \
+         esac ; \
+       else \
+         need_charset_alias=false ; \
+       fi ; \
+       if $$need_charset_alias; then \
+         $(mkinstalldirs) $(DESTDIR)$(libdir) ; \
+       fi ; \
        if test -f $(charset_alias); then \
          sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
          $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
          rm -f $(charset_tmp) ; \
        else \
-         if test $(GLIBC21) = no; then \
+         if $$need_charset_alias; then \
            sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
            $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
            rm -f $(charset_tmp) ; \