diff options
author | Jim Meyering <[email protected]> | 2011-11-28 12:44:09 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2011-11-28 13:57:09 +0000 |
commit | aaa3f53457369125bcfa6eeaf283df77df87d4f9 (patch) | |
tree | 57d2760c452a37fed4968088dd9fcb4b086e63ae | |
parent | gpg-error-config: handle /usr/lib64, /lib64 just like /usr/lib and /lib (diff) | |
download | libgpg-error-aaa3f53457369125bcfa6eeaf283df77df87d4f9.tar.gz libgpg-error-aaa3f53457369125bcfa6eeaf283df77df87d4f9.zip |
accept --with-libgpg-error-prefix as well as --with-gpg-error-prefix
* src/gpg-error.m4 (AM_PATH_GPG_ERROR): Also accept
--with-libgpg-error-prefix=PFX, for consistency with our three
library sibling packages.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/gpg-error.m4 | 14 |
2 files changed, 19 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2011-11-28 Jim Meyering <[email protected]> + + accept --with-libgpg-error-prefix as well as --with-gpg-error-prefix + * src/gpg-error.m4 (AM_PATH_GPG_ERROR): Also accept + --with-libgpg-error-prefix=PFX, for consistency with our three + library sibling packages. + 2011-08-23 Werner Koch <[email protected]> * src/err-codes.h.in: Add GPG_ERR_DUP_KEY and GPG_ERR_AMBIGUOUS. diff --git a/src/gpg-error.m4 b/src/gpg-error.m4 index ef07fd7..f0b9f1f 100644 --- a/src/gpg-error.m4 +++ b/src/gpg-error.m4 @@ -15,10 +15,20 @@ dnl Test for libgpg-error and define GPG_ERROR_CFLAGS and GPG_ERROR_LIBS dnl AC_DEFUN([AM_PATH_GPG_ERROR], [ AC_REQUIRE([AC_CANONICAL_HOST]) - AC_ARG_WITH(gpg-error-prefix, - AC_HELP_STRING([--with-gpg-error-prefix=PFX], + dnl --with-libgpg-error-prefix=PFX is the preferred name for this option, + dnl since that is consistent with how our three siblings use the directory/ + dnl package name in --with-$dir_name-prefix=PFX. + AC_ARG_WITH(libgpg-error-prefix, + AC_HELP_STRING([--with-libgpg-error-prefix=PFX], [prefix where GPG Error is installed (optional)]), gpg_error_config_prefix="$withval", gpg_error_config_prefix="") + + dnl Accept --with-gpg-error-prefix and make it work the same as + dnl --with-libgpg-error-prefix above, for backwards compatibility, + dnl but do not document this old, inconsistently-named option. + AC_ARG_WITH(gpg-error-prefix,, + gpg_error_config_prefix="$withval", gpg_error_config_prefix="") + if test x$gpg_error_config_prefix != x ; then if test x${GPG_ERROR_CONFIG+set} != xset ; then GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config |