aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg-error.m4 (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-06-13Apply spell fix.NIIBE Yutaka1-1/+1
* src/gpg-error.m4: Apply spell fix from GnuPG master. Signed-off-by: NIIBE Yutaka <[email protected]>
2024-06-13Fix gpg-error.m4.NIIBE Yutaka1-14/+23
* 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]>
2023-04-01m4: Fix behavior with older gpg-error-config and gpgrt-config.NIIBE Yutaka1-1/+2
* 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]>
2023-03-23m4: Fallback to $possible_libdir1, when not found with $CC.NIIBE Yutaka1-7/+4
* 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]>
2022-11-15gpg-error.m4: Factor out _AM_PATH_GPGRT_CONFIG.NIIBE Yutaka1-17/+32
* 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]>
2022-09-21m4: Fix detection of gpgrt's libdir.Damien Goutte-Gattat1-1/+5
* 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]>
2022-02-17gpg-error.m4: Fix use with older gpgrt-config (< 1.33).NIIBE Yutaka1-1/+2
* 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]>
2021-03-31m4: Fix previous commit.NIIBE Yutaka1-1/+1
Signed-off-by: NIIBE Yutaka <[email protected]>
2021-03-31m4: Support cross-compiling better.NIIBE Yutaka1-3/+4
* 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]>
2021-02-16build: More fix for determining libdir for gpgrt-config.NIIBE Yutaka1-11/+33
* 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]>
2021-02-15build: Fix the previous change.NIIBE Yutaka1-6/+6
* 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]>
2021-02-12build: Improve how to determine $libdir for gpgrt-configNIIBE Yutaka1-46/+42
* src/gpg-error.m4: Fix $gpgrt_libdir handling. -- GnuPG-bug-id: 5293 Signed-off-by: NIIBE Yutaka <[email protected]>
2020-11-17m4: Update with newer autoconf constructs.NIIBE Yutaka1-3/+3
* src/gpg-error.m4: Replace AC_HELP_STRING to AS_HELP_STRING. Signed-off-by: NIIBE Yutaka <[email protected]>
2018-11-02gpgrt-config: Don't support variable reference in --libdir option.NIIBE Yutaka1-4/+16
* 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]>
2018-11-02gpg-error.m4: Emit message when using gpgrt-config.NIIBE Yutaka1-0/+2
* src/gpg-error.m4: Add AC_MSG_NOTICE. Signed-off-by: NIIBE Yutaka <[email protected]>
2018-11-02gpg-error.m4: Find gpgrt_libdir by CC.NIIBE Yutaka1-12/+25
* 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]>
2018-11-01gpg-error.m4: Unset GPGRT_CONFIG when gpgrt-config doesn't work.NIIBE Yutaka1-2/+8
* src/gpg-error.m4: Unset GPGRT_CONFIG when gpgrt-config doesn't work. Signed-off-by: NIIBE Yutaka <[email protected]>
2018-10-29gpgrt-config: Better architecture independent support.NIIBE Yutaka1-16/+22
* 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]>
2018-10-26gpg-error.m4: Better backward compatibility support.NIIBE Yutaka1-7/+20
* 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]>
2018-10-25build: Set GPGRT_CONFIG in gpg-error.m4.NIIBE Yutaka1-4/+17
* 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]>
2018-10-25build: Update gpg-error.m4 and gpgrt.m4.NIIBE Yutaka1-9/+9
* 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]>
2018-10-23build: Supply CC to invoke gpg-error-config.NIIBE Yutaka1-6/+6
* 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]>
2018-09-11Make gpg-error-config compatible to pkg-config.NIIBE Yutaka1-3/+5
* 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]>
2017-01-10doc,configure: Be consistent about preferring --with-libgpg-error-prefixDaniel Kahn Gillmor1-1/+1
* 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]>
2014-10-02build: Support SYSROOT based config script finding.Werner Koch1-7/+26
* 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.
2014-01-24Make multi-threading flags available via gpg-error-config.Werner Koch1-2/+14
* 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.
2013-02-22Fix the alias mechanism for --with-libgpg-error-prefix.Werner Koch1-4/+5
* 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.
2011-11-28accept --with-libgpg-error-prefix as well as --with-gpg-error-prefixJim Meyering1-2/+12
* src/gpg-error.m4 (AM_PATH_GPG_ERROR): Also accept --with-libgpg-error-prefix=PFX, for consistency with our three library sibling packages.
2011-04-06Extra test for gpg-error-config scriptWerner Koch1-1/+2
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.
2011-03-04Updated error code referencesWerner Koch1-7/+6
2011-02-23Make gpg-error-config and gpg-error.m4 more robust.Werner Koch1-3/+17
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.
2007-06-27Minor W32 enhancementsWerner Koch1-1/+1
2004-09-142004-09-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+10
* src/gpg-error.m4: Add copyright note.
2004-04-192004-04-19 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+1
* src/gpg-error.m4: Quote first argument to AC_DEFUN.
2003-10-112003-10-11 Moritz Schulte <[email protected]>Moritz Schulte1-1/+0
* src/gpg-error.m4: Do not ask gpg-error-config to change the prefix, if --with-gpg-error-prefix=... is used.
2003-07-162003-07-15 Moritz Schulte <[email protected]>Moritz Schulte1-1/+1
* 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.
2003-06-06Fix last change.Marcus Brinkmann1-5/+5
2003-06-06Drop micro version.Marcus Brinkmann1-10/+0
2003-06-062003-06-06 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+67
* 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.