Mailing List Archive

[issue83] some foo-config programs accept --prefix=DIR, others don't => gnupg doesn't configure
New submission from David Faure <faure@kde.org>:

gnupg-1-9-branch passes --prefix=DIR to gpg-error-config, libgcrypt-config and
libassuan-config and ksba-config.

The last two (from CVS HEAD) support it.
The first two (from CVS HEAD) don't support it, which makes configure fail.

checking for gpg-error-config... /mnt/devel/kde/kdepimdir/bin/gpg-error-config
checking for GPG Error - version >= 0.6... Usage: gpg-error-config [OPTIONS]
Options:
[--prefix]
[--exec-prefix]
[--version]
[--libs]
[--cflags]
./configure: line 4649: test: : integer expression expected
./configure: line 4652: test: : integer expression expected
no

Unless gpg-error-config and libgcrypt-config are fixed, the fix seems to be to
simply comment out the passing of --prefix to those programs (what is it good
for anyway?).

Index: acinclude.m4
===================================================================
RCS file: /cvs/gnupg/gnupg/acinclude.m4,v
retrieving revision 1.34.4.5
diff -u -p -r1.34.4.5 acinclude.m4
--- acinclude.m4 12 Feb 2004 09:25:29 -0000 1.34.4.5
+++ acinclude.m4 17 Feb 2004 09:39:57 -0000
@@ -378,7 +378,7 @@ AC_DEFUN(AM_PATH_LIBGCRYPT,
[prefix where LIBGCRYPT is installed (optional)]),
libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="")
if test x$libgcrypt_config_prefix != x ; then
- libgcrypt_config_args="$libgcrypt_config_args
--prefix=$libgcrypt_config_prefix"
+ dnl libgcrypt_config_args="$libgcrypt_config_args
--prefix=$libgcrypt_config_prefix"
if test x${LIBGCRYPT_CONFIG+set} != xset ; then
LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
fi
@@ -646,7 +646,7 @@ AC_DEFUN(AM_PATH_GPG_ERROR,
[prefix where GPG Error is installed (optional)]),
gpg_error_config_prefix="$withval", gpg_error_config_prefix="")
if test x$gpg_error_config_prefix != x ; then
- gpg_error_config_args="$gpg_error_config_args
--prefix=$gpg_error_config_prefix"
+ dnl gpg_error_config_args="$gpg_error_config_args
--prefix=$gpg_error_config_prefix"
if test x${GPG_ERROR_CONFIG+set} != xset ; then
GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
fi

The .m4 files in libgpg-error and libgcrypt don't have this bug.

----------
messages: 335
nosy: david
priority: bug
status: unread
title: some foo-config programs accept --prefix=DIR, others don't => gnupg doesn't configure
topic: gpg
______________________________________________________
Aegypten issue tracker <aegypten-issues@intevation.de>
<https://intevation.de/roundup/aegypten/issue83>
______________________________________________________
Re: [issue83] some foo-config programs accept --prefix=DIR, others don't => gnupg doesn't configure [ In reply to ]
At Tue, 17 Feb 2004 09:44:28 +0000,
David Faure wrote:
>
> Unless gpg-error-config and libgcrypt-config are fixed, the fix seems to be to
> simply comment out the passing of --prefix to those programs (what is it good
> for anyway?).

The aclocal macros should simply be updated to the newest version in
libgpg-error etc. We have another update for those macros scheduled,
though (unrelated to this issue).

Thanks,
Marcus