| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* src/gpg-error.m4: Apply spell fix from GnuPG master.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4 (_AM_PATH_GPGRT_CONFIG): Don't set
gpg_error_config_version.
(AM_PATH_GPG_ERROR): Set GPG_ERROR_CONFIG here and set
gpg_error_config_version with GPG_ERROR_CONFIG.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4 (_AM_PATH_GPGRT_CONFIG): Set the variable
gpg_error_config_version on error with gpgrt-config.
--
When detecting older gpgrt-config (<= 1.35), make sure to set
the variable.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4: Try $possible_libdir1 for gpgrt_libdir.
--
GnuPG-bug-id: 6388
Reported-by: Andrew Collier <[email protected]>
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4 (_AM_PATH_POSSIBLE_GPG_ERROR_CONFIG): New.
(_AM_PATH_GPGRT_CONFIG): New.
(AM_PATH_GPG_ERROR): Use _AM_PATH_POSSIBLE_GPG_ERROR_CONFIG
and _AM_PATH_GPGRT_CONFIG.
--
GnuPG-bug-id: 6273
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4 (GPGRT_CONFIG): Handle the case where none of the
system lib directories contain a pkgconfig subdirectory.
--
When we look for gpgrt_libdir, there's a corner case if we had been able
to obtain system libdirs (using `cc -print-search-dirs`) *but* none of
those system libdirs happen to contain a valid pkgconfig subdirectory
(which may be unlikely but can and does happen when cross-compiling).
We do test for the case where we have not obtained any system libdir at
all, in which case we fallback to `${gpgrt_prefix}/lib`
(`possible_libdir1`), but we do not test if the list of libdir
candidates is reduced to nothing after we have eliminated all the
libdirs that do not contain a pkgconfig subdirectory.
This patch adds a test for this precise case.
Signed-off-by: Damien Goutte-Gattat <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4: When gpgrt-config doesn't work expected for
gpg-error.pc, unset GPGRT_CONFIG.
--
Found the issue in the libgcrypt build with libgpg-error 1.31.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
| |
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4 (GPGRT_CONFIG): Prefer the one under $prefix.
(sed expression): Better compatibility to POSIX sed.
--
GnuPG-bug-id: 5365
Reported-by: Jay Freeman (saurik)
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4: Use CC -print-search-dirs for better support of
GNU style cross prefix.
--
GnuPG-bug-id: 5293
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4: Fix test condition for GPGRT_CONFIG.
Fix behaviour when there is no GPG_ERROR_CONFIG.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4: Fix $gpgrt_libdir handling.
--
GnuPG-bug-id: 5293
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
| |
* src/gpg-error.m4: Replace AC_HELP_STRING to AS_HELP_STRING.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpgrt-config: Simplify --libdir support, remove variable
substituion.
* src/gpg-error.m4: Expand possible ${prefix}, ${exec_prefix} in
libdir. Simplify invocation of gpgrt-config.
* src/gpgrt.m4: Likewise.
--
The --libdir option for configure can include variable reference
like --libdir='${exec_prefix}/lib/x86_64-linux-gnu', and this
expression should be expanded (the variable should be substituted)
beforehand to determine if there is gpg-error.pc file or not.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
| |
* src/gpg-error.m4: Add AC_MSG_NOTICE.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4 (gpgrt_libdir): New. Bump the version date.
* src/gpgrt.m4: Likewise.
--
Locating gpg-error.pc file, when it's not found at target's $libdir,
try system libdir defined by CC, assuming CC supports gcc compatible
-print-file-name option.
GnuPG-bug-id: 4239
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
| |
* src/gpg-error.m4: Unset GPGRT_CONFIG when gpgrt-config doesn't work.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac: Don't generate gpgrt-config.
* src/gpgrt-config: Rename from gpgrt-config.in.
(--prefix, --exec-prefix, --libdir): Use --libdir to determine
PKG_CONFIG_LIBDIR.
* src/Makefile.am (EXTRA_DIST): Remove gpgrt-config.in.
* src/gpg-error-config-test.sh: Fix for path to gpgrt-config.
* src/gpg-error.m4: Provide --prefix, --exec-prefix, --libdir
option from configure. Don't use CC because we have --libdir.
Bump version date.
* src/gpgrt.m4: Likewise.
--
Considering multilib support as well as multiarch support, it is
better to provide the information for PKG_CONFIG_LIBDIR by --libdir
directly, instead of CC.
Difficulty is that configure allows variable reference like:
--libdir='${exec_prefix}/i386-linux'
So, it should also support --prefix and --exec_prefix options.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
| |
* src/gpg-error.m4: Don't assume newer implementation of
gpg-error-config. Use old way when it found old.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4: Detect gpgrt-config to set GPGRT_CONFIG.
--
Set GPGRT_CONFIG when there is no gpg-error-config or gpg-error-config
reports version >= 1.33.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4: Bump version date.
(min_gpg_error_version): Require >= 1.33, if not specified.
(gpg_error_config_args): Remove bogus uses.
* src/gpgrt.m4: Bump version date.
(libgpgrt-prefix): Add support of --with-libgpgrt-prefix option.
(gpgrt-config): Search/call gpgrt-config instead of gpg-error-config.
(min_gpgrt_version): Require >= 1.33, if not specified.
(gpgrt_config_args): Remove bogus uses.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4: Add CC when invoking gpg-error-config.
* src/gpgrt.m4: Likewise.
--
For standard cross build, the use of --with-libgpg-error-prefix will
not be needed, as the script automatically finds the place.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac (AC_CONFIG_FILES): Generate src/gpg-error.pc, as well
as src/gpg-error-config-old and src/gpg-error-config-new.
* src/Makefile.am (pkgconfigdir, pkgconfig_DATA): New.
(EXTRA_DIST): Add gpg-error-config-new.in, gpg-error-config-test.sh,
and gpg-error.pc.in.
(CLEANFILES): Add gpg-error-config gpg-error-config-test.log.
(TESTS): New.
(gpg-error-config): New target.
* src/gpg-error-config-new.in: New.
* src/gpg-error-config-test.sh: New.
* src/gpg-error.pc.in: New.
* src/gpg-error.m4 (GPG_ERROR_MT_CFLAGS): Use --variable.
(GPG_ERROR_MT_LIBS, gpg_error_config_host): Likewise.
--
This change is to privide gpg-error.pc for pkg-config, so that
developers can use pkg-config to configure their applications. The
gpg-error-config script is also kept supported for applications which
want to avoid dependency of pkg-config.
Note that new gpg-error-config script uses gpg-error.pc as master
data, so that it can keep compatibility to pkg-config easily. In the
new gpg-error-config script, features are added to increase
compatibility to pkg-config, like --variable option and multiple
module support. However, it is not meant to oriented to be a
full-fledged version of pkg-config, only a small set of features is
supported.
To be conservative, new gpg-error-config is checked at build time
against old gpg-error-config. On the host which fails, old
gpg-error-config will be installed with a warning.
GnuPG-bug-id: 4085
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/gpgrt.texi: Say "--with-libgpg-error-prefix" instead of
"--with-gpg-error-prefix".
* src/gpg-error.m4: When warning about library locations, warn with
the preferred "--with-libgpg-error-prefix" name.
--
in src/gpg-error.m4, it already says:
> 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.
so this is an attempt to live up to that expectation.
Signed-off-by: Daniel Kahn Gillmor <[email protected]>
|
|
|
|
|
|
|
| |
* src/gpg-error.m4: Add support for SYSROOT and set
gpg_config_script_warn. Use AC_PATH_PROG instead of AC_PATH_TOOL
because the config script is not expected to be installed with a
prefix for its name.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* m4/threadlib.m4: Set THREADLIB_CPPFLAGS.
* src/gpg-error-config.in: Add option --mt.
* configure.ac: Add support for the --mt option.
* src/gpg-error.m4: Add ac_subst GPG_ERROR_MT_CFLAGS and
GPG_ERROR_MT_LIBS.
--
Although, libgpg-error does not yet provide an API for multi-thread
support, it is useful to add the already available detection to the
config script. This allows the latest Libgcrypt to take advantage of
this in its regression tests. In particular for the regression tests
a gpgrt_thread functions would be useful and eventually added to
libgpg-error. The new gpg-error.m4 script should already be used by
other packages to be prepared for future updates.
|
|
|
|
|
|
|
|
| |
* src/gpg-error.m4: Do not use the no-action branch in AC_ARG_WITH.
--
This fixes commit aaa3f534. The bug was that --with-gpg-error-prefix
always reset the value from --with-libgpg-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.
|
|
|
|
|
|
|
|
|
|
| |
If the path to gpg-error-config was explicitly given by the user it
may happen that it does not exists but AC_CHECK_TOOL may assume it
still exists because it is somewhere in the PATH. The extra check
avoids extra sh warnings.
Note that we can't use test -x because that is not defined on some old
systems.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
* src/gpg-error.m4: Add copyright note.
|
|
|
|
|
| |
* src/gpg-error.m4: Quote first argument to AC_DEFUN.
|
|
|
|
|
|
| |
* src/gpg-error.m4: Do not ask gpg-error-config to change the
prefix, if --with-gpg-error-prefix=... is used.
|
|
|
|
|
|
|
| |
* src/gpg-error.m4 (AM_PATH_GPG_ERROR): Use `0.0' instead of
`0.0.0' in case no version number is given, since the following
sed commands expect the former form, not a triplet.
|
| |
|
| |
|
|
* configure.ac: Define GPG_ERROR_CONFIG_LIBS and
GPG_ERROR_CONFIG_CFLAGS.
Add src/gpg-error-config to config files.
* src/Makefile.am (EXTRA_DIST): Add gpg-error-config.in and
gpg-error.m4.
(bin_SCRIPTS): New variable.
(m4datadir, m4data_DATA): New variables.
* src/gpg-error-config.in: New file.
* src/gpg-error.m4: New file.
|