summaryrefslogtreecommitdiff
path: root/src/gpg-error-config.in
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-02-23 12:44:07 +0100
committerWerner Koch <wk@gnupg.org>2011-02-23 12:44:07 +0100
commit7dc62ce5a81261255d9f25d3b08f5fa1f71e8fb7 (patch)
tree575fa86161e00315bbdad70f10bb9c63ca8318ba /src/gpg-error-config.in
parent9599e0d1d2e8eee0737970c0e712bc2495dfb206 (diff)
downloadlibgpg-error-7dc62ce5a81261255d9f25d3b08f5fa1f71e8fb7.tar.gz
Make gpg-error-config and gpg-error.m4 more robust.
This is done by taking host prefixed config scripts names in account (as suggested by bug#1261) and adding a new config option --host to print a warning if the used config script was not built for the current host. Care has been taken not to mess things up if an old config script without the option is used or if AC_CANONICAL_HOST has not been used.
Diffstat (limited to 'src/gpg-error-config.in')
-rw-r--r--src/gpg-error-config.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpg-error-config.in b/src/gpg-error-config.in
index 4be0343..14f0625 100644
--- a/src/gpg-error-config.in
+++ b/src/gpg-error-config.in
@@ -74,6 +74,10 @@ while test $# -gt 0; do
fi
output="$output @GPG_ERROR_CONFIG_LIBS@"
;;
+ --host)
+ echo "@GPG_ERROR_CONFIG_HOST@"
+ exit 0
+ ;;
*)
usage 1 1>&2
;;