Changeset 3366 for trunk/m4/yat_common.m4
- Timestamp:
- Dec 3, 2014, 12:23:07 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/m4/yat_common.m4
r3114 r3366 55 55 56 56 57 # YAT_SET_CONTAINS(set, value, [if-present], [if-not-present]) 58 # ============================================================ 59 # Loop over set (space-separated) and if value exists, execute 60 # if-present. otherwise execute if-not-present 61 AC_DEFUN([YAT_SET_CONTAINS], 62 [ 63 AS_IF([AS_ECHO([$1]) | tr ' ' '\n' | grep '^$2$' > /dev/null], [$3], [$4]) 64 ]) #YAT_SET_CONTAINS 65 66 57 67 # YAT_VAR_REMOVE(VAR, LIST) 58 68 # ==========================
Note: See TracChangeset
for help on using the changeset viewer.