From 61d78fdc25e5ff9289697c141457d8d322232250 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 5 Sep 2018 11:55:55 +0900 Subject: gpg-error-config: Forward compatibility support. * src/gpg-error-config.in: Support --variable=* option. Signed-off-by: NIIBE Yutaka --- src/gpg-error-config.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gpg-error-config.in b/src/gpg-error-config.in index 93f25f7..e050632 100644 --- a/src/gpg-error-config.in +++ b/src/gpg-error-config.in @@ -67,6 +67,16 @@ while test $# -gt 0; do echo "@PACKAGE_VERSION@" exit 0 ;; + --variable=*) + case "${1#*=}" in + prefix) echo "$prefix" ;; + exec_prefix) echo "$exec_prefix" ;; + host) echo "@GPG_ERROR_CONFIG_HOST@" ;; + mtcflags) echo "@GPG_ERROR_CONFIG_MT_CFLAGS@" ;; + mtlibs) echo "@GPG_ERROR_CONFIG_MT_LIBS@";; + esac + exit 0 + ;; --cflags) output="$output @GPG_ERROR_CONFIG_CFLAGS@" if test $mt = yes ; then -- cgit v1.2.3