mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
build: Update gpg-error.m4.
--
This commit is contained in:
parent
482b2f8b5d
commit
eb54282e39
@ -26,19 +26,20 @@ dnl is added to the gpg_config_script_warn variable.
|
|||||||
dnl
|
dnl
|
||||||
AC_DEFUN([AM_PATH_GPG_ERROR],
|
AC_DEFUN([AM_PATH_GPG_ERROR],
|
||||||
[ AC_REQUIRE([AC_CANONICAL_HOST])
|
[ AC_REQUIRE([AC_CANONICAL_HOST])
|
||||||
|
gpg_error_config_prefix=""
|
||||||
dnl --with-libgpg-error-prefix=PFX is the preferred name for this option,
|
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 since that is consistent with how our three siblings use the directory/
|
||||||
dnl package name in --with-$dir_name-prefix=PFX.
|
dnl package name in --with-$dir_name-prefix=PFX.
|
||||||
AC_ARG_WITH(libgpg-error-prefix,
|
AC_ARG_WITH(libgpg-error-prefix,
|
||||||
AC_HELP_STRING([--with-libgpg-error-prefix=PFX],
|
AC_HELP_STRING([--with-libgpg-error-prefix=PFX],
|
||||||
[prefix where GPG Error is installed (optional)]),
|
[prefix where GPG Error is installed (optional)]),
|
||||||
gpg_error_config_prefix="$withval", gpg_error_config_prefix="")
|
[gpg_error_config_prefix="$withval"])
|
||||||
|
|
||||||
dnl Accept --with-gpg-error-prefix and make it work the same as
|
dnl Accept --with-gpg-error-prefix and make it work the same as
|
||||||
dnl --with-libgpg-error-prefix above, for backwards compatibility,
|
dnl --with-libgpg-error-prefix above, for backwards compatibility,
|
||||||
dnl but do not document this old, inconsistently-named option.
|
dnl but do not document this old, inconsistently-named option.
|
||||||
AC_ARG_WITH(gpg-error-prefix,,
|
AC_ARG_WITH(gpg-error-prefix,,
|
||||||
gpg_error_config_prefix="$withval", gpg_error_config_prefix="")
|
[gpg_error_config_prefix="$withval"])
|
||||||
|
|
||||||
if test x"${GPG_ERROR_CONFIG}" = x ; then
|
if test x"${GPG_ERROR_CONFIG}" = x ; then
|
||||||
if test x"${gpg_error_config_prefix}" != x ; then
|
if test x"${gpg_error_config_prefix}" != x ; then
|
||||||
@ -63,7 +64,8 @@ AC_DEFUN([AM_PATH_GPG_ERROR],
|
|||||||
min_gpg_error_version=ifelse([$1], ,0.0,$1)
|
min_gpg_error_version=ifelse([$1], ,0.0,$1)
|
||||||
AC_MSG_CHECKING(for GPG Error - version >= $min_gpg_error_version)
|
AC_MSG_CHECKING(for GPG Error - version >= $min_gpg_error_version)
|
||||||
ok=no
|
ok=no
|
||||||
if test "$GPG_ERROR_CONFIG" != "no" ; then
|
if test "$GPG_ERROR_CONFIG" != "no" \
|
||||||
|
&& test -f "$GPG_ERROR_CONFIG" ; then
|
||||||
req_major=`echo $min_gpg_error_version | \
|
req_major=`echo $min_gpg_error_version | \
|
||||||
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
|
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
|
||||||
req_minor=`echo $min_gpg_error_version | \
|
req_minor=`echo $min_gpg_error_version | \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user