aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-05-10 14:43:36 +0000
committerAndre Heinecke <[email protected]>2016-05-10 14:43:36 +0000
commit34e5c5b33de3608bedc2826be27a06e6eec0ea44 (patch)
treeb04ce687c5dcb72d84af230e05335da0213bf6de /acinclude.m4
parentAllow cc to detect missing cases in a switch. (diff)
parentQt / Cpp: Fix make dist (diff)
downloadgpgme-34e5c5b33de3608bedc2826be27a06e6eec0ea44.tar.gz
gpgme-34e5c5b33de3608bedc2826be27a06e6eec0ea44.zip
Merge branch 'gpgmepp'
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index cdfe6e43..575e526f 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -58,3 +58,19 @@ AC_DEFUN([GNUPG_CHECK_VA_COPY],
AC_MSG_RESULT($gnupg_cv_must_copy_va_byval)
fi
])
+
+dnl LIST_MEMBER()
+dnl Check wether an element ist contained in a list. Set `found' to
+dnl `1' if the element is found in the list, to `0' otherwise.
+AC_DEFUN([LIST_MEMBER],
+[
+name=$1
+list=$2
+found=0
+
+for n in $list; do
+ if test "x$name" = "x$n"; then
+ found=1
+ fi
+done
+])