source: trunk/toolchain/gcc/patches/4.3.5/105-libtool.patch @ 21599

Last change on this file since 21599 was 21599, checked in by nico, 7 years ago

toolchain/gcc: add support for gcc-4.3.5

File size: 2.8 KB
  • libtool.m4

    2008-03-02  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
    
    	Backport from upstream Libtool:
    
    	2007-10-12  Eric Blake  <ebb9@byu.net>
    
    	Deal with Autoconf 2.62's semantic change in m4_append.
    	* ltsugar.m4 (lt_append): Replace broken versions of
    	m4_append.
    	(lt_if_append_uniq): Don't require separator to be overquoted, and
    	avoid broken m4_append.
    	(lt_dict_add): Fix typo.
    	* libtool.m4 (_LT_DECL): Don't overquote separator.
    
    a b m4_bpatsubst([m4_bpatsubst([$1], [^ *],  
    319319# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 
    320320# VARNAME.  Any other value will be used directly. 
    321321m4_define([_LT_DECL], 
    322 [lt_if_append_uniq([lt_decl_varnames], [$2], [[, ]], 
     322[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 
    323323    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 
    324324        [m4_ifval([$1], [$1], [$2])]) 
    325325    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 
  • ltsugar.m4

    a b  
    11# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*- 
    22# 
    3 # Copyright (C) 2004, 2005 Free Software Foundation, Inc. 
     3# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 
    44# Written by Gary V. Vaughan. 
    55# 
    66# This file is free software; the Free Software Foundation gives 
    77# unlimited permission to copy and/or distribute it, with or without 
    88# modifications, as long as this notice is preserved. 
    99 
    10 # serial 3 ltsugar.m4 
     10# serial 4 ltsugar.m4 
    1111 
    1212# This is to help aclocal find these macros, as it can't see m4_define. 
    1313AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 
    m4_define([lt_cdr], 
    4646m4_define([lt_unquote], $1) 
    4747 
    4848 
     49# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 
     50# ------------------------------------------ 
     51# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 
     52# Note that neither SEPARATOR nor STRING are expanded.  No SEPARATOR is 
     53# output if MACRO-NAME was previously undefined (different than defined 
     54# and empty). 
     55# This macro is needed until we can rely on Autoconf 2.62, since earlier 
     56# versions of m4 mistakenly expanded SEPARATOR. 
     57m4_define([lt_append], 
     58[m4_define([$1], 
     59           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 
     60 
     61 
     62 
    4963# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 
    5064# ---------------------------------------------------------- 
    5165# Produce a SEP delimited list of all paired combinations of elements of 
    m4_define([lt_combine], 
    6781# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 
    6882m4_define([lt_if_append_uniq], 
    6983[m4_ifdef([$1], 
    70         [m4_bmatch($3[]m4_defn([$1])$3, $3[]m4_re_escape([$2])$3, 
    71                 [$5], 
    72             [m4_append([$1], [$2], [$3])$4])], 
    73     [m4_append([$1], [$2], [$3])$4])]) 
     84          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 
     85                 [lt_append([$1], [$2], [$3])$4], 
     86                 [$5])], 
     87    [lt_append([$1], [$2], [$3])$4])]) 
    7488 
    7589 
    7690# lt_dict_add(DICT, KEY, VALUE) 
Note: See TracBrowser for help on using the repository browser.