Changeset 4679 for trunk/osd

Show
Ignore:
Timestamp:
10/11/06 05:24:32 (2 years ago)
Author:
erijo
Message:

My commit in r4677 (and r4678) broke po installation if configured was generated with autoconf 2.60. So instead of going backwards, we'll use Makefile.in.in revision 1.25 from gettext cvs. But with one difference:

localedir = $(datadir)/locale

instead of

localedir = @localedir@

This should work with both autoconf 2.59 and 2.60. I've tested it on both Debian Sarge (autoconf 2.59) and Debian Sid (2.60) and it works for me (tm).But if someone else could try it as well, that would be great! Do make install DESTDIR=/tmp/licq-test if you just want to test the installation without messing with your current installation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/osd/po/Makefile.in.in

    r4678 r4679  
    11# Makefile for PO directory in any package using GNU gettext. 
    2 # Copyright (C) 1995-1997, 2000-2005 by Ulrich Drepper <drepper@gnu.ai.mit.edu> 
     2# Copyright (C) 1995-1997, 2000-2006 by Ulrich Drepper <drepper@gnu.ai.mit.edu> 
    33# 
    44# This file can be copied and used freely without restrictions.  It can 
     
    99# General Public License and is *not* in the public domain. 
    1010# 
    11 # Origin: gettext-0.15 
     11# Origin: gettext-0.15.1 
    1212 
    1313PACKAGE = @PACKAGE@ 
     
    3131INSTALL = @INSTALL@ 
    3232INSTALL_DATA = @INSTALL_DATA@ 
    33 MKINSTALLDIRS = @MKINSTALLDIRS@ 
    34 mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) 
     33 
     34# We use $(mkdir_p). 
     35# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as 
     36# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, 
     37# @install_sh@ does not start with $(SHELL), so we add it. 
     38# In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined 
     39# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake 
     40# versions, $(mkinstalldirs) and $(install_sh) are unused. 
     41mkinstalldirs = $(SHELL) @install_sh@ -d 
     42install_sh = $(SHELL) @install_sh@ 
     43MKDIR_P = @MKDIR_P@ 
     44mkdir_p = @mkdir_p@ 
    3545 
    3646GMSGFMT_ = @GMSGFMT@ 
     
    169179install-data: install-data-@USE_NLS@ 
    170180    if test "$(PACKAGE)" = "gettext-tools"; then \ 
    171       $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ 
     181      $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ 
    172182      for file in $(DISTFILES.common) Makevars.template; do \ 
    173183        $(INSTALL_DATA) $(srcdir)/$$file \ 
     
    182192install-data-no: all 
    183193install-data-yes: all 
    184     $(mkinstalldirs) $(DESTDIR)$(datadir) 
     194    $(mkdir_p) $(DESTDIR)$(datadir) 
    185195    @catalogs='$(CATALOGS)'; \ 
    186196    for cat in $$catalogs; do \ 
     
    188198      lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ 
    189199      dir=$(localedir)/$$lang/LC_MESSAGES; \ 
    190       $(mkinstalldirs) $(DESTDIR)$$dir; \ 
     200      $(mkdir_p) $(DESTDIR)$$dir; \ 
    191201      if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ 
    192202      $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ 
     
    228238installdirs-data: installdirs-data-@USE_NLS@ 
    229239    if test "$(PACKAGE)" = "gettext-tools"; then \ 
    230       $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ 
     240      $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ 
    231241    else \ 
    232242      : ; \ 
     
    234244installdirs-data-no: 
    235245installdirs-data-yes: 
    236     $(mkinstalldirs) $(DESTDIR)$(datadir) 
     246    $(mkdir_p) $(DESTDIR)$(datadir) 
    237247    @catalogs='$(CATALOGS)'; \ 
    238248    for cat in $$catalogs; do \ 
     
    240250      lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ 
    241251      dir=$(localedir)/$$lang/LC_MESSAGES; \ 
    242       $(mkinstalldirs) $(DESTDIR)$$dir; \ 
     252      $(mkdir_p) $(DESTDIR)$$dir; \ 
    243253      for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ 
    244254        if test -n "$$lc"; then \