~ubuntu-branches/ubuntu/oneiric/ibus-m17n/oneiric

« back to all changes in this revision

Viewing changes to m4/ltsugar.m4

  • Committer: Bazaar Package Importer
  • Author(s): LI Daobing
  • Date: 2009-09-30 23:15:39 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (2.1.6 sid)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20090930231539-3vtw4sxl0nzf630s
* new upstream release.
* debian/control: bump standards version to 3.8.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
2
2
#
3
 
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
4
 
# Written by Gary V. Vaughan, 2004
 
3
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
4
#   Written by Gary V. Vaughan, 2004
5
5
#
6
6
# This file is free software; the Free Software Foundation gives
7
7
# unlimited permission to copy and/or distribute it, with or without
8
8
# modifications, as long as this notice is preserved.
9
9
 
10
 
# serial 6 ltsugar.m4
 
10
# serial 5 ltsugar.m4
11
11
 
12
12
# This is to help aclocal find these macros, as it can't see m4_define.
13
13
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
63
63
# Produce a SEP delimited list of all paired combinations of elements of
64
64
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
65
65
# has the form PREFIXmINFIXSUFFIXn.
66
 
# Needed until we can rely on m4_combine added in Autoconf 2.62.
67
66
m4_define([lt_combine],
68
 
[m4_if(m4_eval([$# > 3]), [1],
69
 
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
70
 
[[m4_foreach([_Lt_prefix], [$2],
71
 
             [m4_foreach([_Lt_suffix],
72
 
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
73
 
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
67
[m4_if([$2], [], [],
 
68
  [m4_if([$4], [], [],
 
69
    [lt_join(m4_quote(m4_default([$1], [[, ]])),
 
70
      lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
 
71
                   [m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
 
72
                               [_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
 
73
])
74
74
 
75
75
 
76
76
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])