From 3e60788810f93cfcd7f08e5882aff32ed7b6f831 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sun, 21 Aug 2016 15:49:03 +0200 Subject: core: New commands --lang and --have-lang for gpgme-config * configure.ac (GPGME_CONFIG_AVAIL_LANG): New ac_subst. * src/gpgme-config.in (avail_lang): Add commands --lang and --have-lang. Signed-off-by: Werner Koch --- src/gpgme-config.in | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) (limited to 'src/gpgme-config.in') diff --git a/src/gpgme-config.in b/src/gpgme-config.in index 4be1e08e..0d9fda21 100644 --- a/src/gpgme-config.in +++ b/src/gpgme-config.in @@ -36,6 +36,8 @@ thread_modules="" libs_pthread="-lpthread" cflags_pthread="" +avail_lang='c @GPGME_CONFIG_AVAIL_LANG@' + # Configure glib. libs_glib="@GLIB_LIBS@" cflags_glib="@GLIB_CFLAGS@" @@ -48,16 +50,16 @@ usage() cat <&2 fi ;; + --print-lang) + output="$avail_lang" + ;; + --have-lang=*) + for lang in $avail_lang; do + if test x"$lang" = x"$optarg"; then + exit 0 + fi + done + exit 1 + ;; --get-gpg) + # Deprecated output="$output @GPG@" ;; --get-gpgsm) + # Deprecated output="$output @GPGSM@" ;; *) -- cgit v1.2.3