Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Side by Side Diff: third_party/libxml/src/m4/ltsugar.m4

Issue 1752223002: Roll libxml to 2.9.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-cherry-pick fprintf formatting fix. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 1 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
2 # 2 #
3 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 3 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
4 # Foundation, Inc.
4 # Written by Gary V. Vaughan, 2004 5 # Written by Gary V. Vaughan, 2004
5 # 6 #
6 # This file is free software; the Free Software Foundation gives 7 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without 8 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved. 9 # modifications, as long as this notice is preserved.
9 10
10 # serial 6 ltsugar.m4 11 # serial 6 ltsugar.m4
11 12
12 # This is to help aclocal find these macros, as it can't see m4_define. 13 # This is to help aclocal find these macros, as it can't see m4_define.
13 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 14 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
(...skipping 12 matching lines...) Expand all
26 m4_define([_lt_join], 27 m4_define([_lt_join],
27 [m4_if([$#$2], [2], [], 28 [m4_if([$#$2], [2], [],
28 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 29 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
29 30
30 31
31 # lt_car(LIST) 32 # lt_car(LIST)
32 # lt_cdr(LIST) 33 # lt_cdr(LIST)
33 # ------------ 34 # ------------
34 # Manipulate m4 lists. 35 # Manipulate m4 lists.
35 # These macros are necessary as long as will still need to support 36 # These macros are necessary as long as will still need to support
36 # Autoconf-2.59 which quotes differently. 37 # Autoconf-2.59, which quotes differently.
37 m4_define([lt_car], [[$1]]) 38 m4_define([lt_car], [[$1]])
38 m4_define([lt_cdr], 39 m4_define([lt_cdr],
39 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 40 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
40 [$#], 1, [], 41 [$#], 1, [],
41 [m4_dquote(m4_shift($@))])]) 42 [m4_dquote(m4_shift($@))])])
42 m4_define([lt_unquote], $1) 43 m4_define([lt_unquote], $1)
43 44
44 45
45 # lt_append(MACRO-NAME, STRING, [SEPARATOR]) 46 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
46 # ------------------------------------------ 47 # ------------------------------------------
47 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 48 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
48 # Note that neither SEPARATOR nor STRING are expanded; they are appended 49 # Note that neither SEPARATOR nor STRING are expanded; they are appended
49 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 50 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
50 # No SEPARATOR is output if MACRO-NAME was previously undefined (different 51 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
51 # than defined and empty). 52 # than defined and empty).
52 # 53 #
53 # This macro is needed until we can rely on Autoconf 2.62, since earlier 54 # This macro is needed until we can rely on Autoconf 2.62, since earlier
54 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 55 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
55 m4_define([lt_append], 56 m4_define([lt_append],
56 [m4_define([$1], 57 [m4_define([$1],
57 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 58 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 115
115 116
116 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 117 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
117 # -------------------------------------------------------------- 118 # --------------------------------------------------------------
118 m4_define([lt_dict_filter], 119 m4_define([lt_dict_filter],
119 [m4_if([$5], [], [], 120 [m4_if([$5], [], [],
120 [lt_join(m4_quote(m4_default([$4], [[, ]])), 121 [lt_join(m4_quote(m4_default([$4], [[, ]])),
121 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shift n(4, $@)]), 122 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shift n(4, $@)]),
122 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])]) ))))])[]dnl 123 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])]) ))))])[]dnl
123 ]) 124 ])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698