diff options
author | Andre Heinecke <[email protected]> | 2016-03-02 13:00:48 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-03-02 13:00:48 +0000 |
commit | a313b3e28cc42785365822519b25d6a87dfdf0c9 (patch) | |
tree | e479c1da41f35fd26a8701aab1baa87faee85e68 /acinclude.m4 | |
parent | Add README for gpgmepp (diff) | |
download | gpgme-a313b3e28cc42785365822519b25d6a87dfdf0c9.tar.gz gpgme-a313b3e28cc42785365822519b25d6a87dfdf0c9.zip |
Add enable-languages build option
* acinclude.m4 (LIST_MEMBER): New macro.
* configure.ac (enable-languages): New option. Add info output.
* lang/Makefile.am: Only add enabled language subdirs.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 16 |
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 +]) |