123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
- #
- # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
- # Foundation, Inc.
- # Written by Gary V. Vaughan, 2004
- #
- # This file is free software; the Free Software Foundation gives
- # unlimited permission to copy and/or distribute it, with or without
- # modifications, as long as this notice is preserved.
- # serial 6 ltsugar.m4
- # This is to help aclocal find these macros, as it can't see m4_define.
- AC_DEFUN(, )
- # lt_join(SEP, ARG1, )
- # -----------------------------
- # Produce ARG1SEPARG2...SEPARGn, omitting arguments and their
- # associated separator.
- # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
- # versions in m4sugar had bugs.
- m4_define(,
- )
- m4_define(,
- )
- # lt_car(LIST)
- # lt_cdr(LIST)
- # ------------
- # Manipulate m4 lists.
- # These macros are necessary as long as will still need to support
- # Autoconf-2.59, which quotes differently.
- m4_define(, )
- m4_define(,
- )
- m4_define(, $1)
- # lt_append(MACRO-NAME, STRING, )
- # ------------------------------------------
- # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
- # Note that neither SEPARATOR nor STRING are expanded; they are appended
- # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
- # No SEPARATOR is output if MACRO-NAME was previously undefined (different
- # than defined and empty).
- #
- # This macro is needed until we can rely on Autoconf 2.62, since earlier
- # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
- m4_define(,
- )
- # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, )
- # ----------------------------------------------------------
- # Produce a SEP delimited list of all paired combinations of elements of
- # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
- # has the form PREFIXmINFIXSUFFIXn.
- # Needed until we can rely on m4_combine added in Autoconf 2.62.
- m4_define(,
- dnl
- )
- # lt_if_append_uniq(MACRO-NAME, VARNAME, , , )
- # -----------------------------------------------------------------------
- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
- # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
- m4_define(,
- )
- # lt_dict_add(DICT, KEY, VALUE)
- # -----------------------------
- m4_define(,
- )
- # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
- # --------------------------------------------
- m4_define(,
- )
- # lt_dict_fetch(DICT, KEY, )
- # ----------------------------------
- m4_define(,
- )
- # lt_if_dict_fetch(DICT, KEY, , VALUE, IF-TRUE, )
- # -----------------------------------------------------------------
- m4_define(,
- )
- # lt_dict_filter(DICT, , VALUE, , KEY, )
- # --------------------------------------------------------------
- m4_define(,
- )
|