aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgrt.m4 (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-11-13gpgrt.m4: Don't support --with-*-prefix or SYSROOT.NIIBE Yutaka1-52/+4
* src/gpgrt.m4: Remove old backward compatible support. -- Since this macro gpgrt.m4 has not yet been used by any, we can break now. The gpgrt-config script is for all hosts (switching by --libdir option), it's not switched by --with-*-prefix nor SYSROOT. Signed-off-by: NIIBE Yutaka <[email protected]>
2018-11-02gpgrt-config: Don't support variable reference in --libdir option.NIIBE Yutaka1-3/+15
* 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: Find gpgrt_libdir by CC.NIIBE Yutaka1-6/+19
* 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-10-29gpgrt-config: Better architecture independent support.NIIBE Yutaka1-7/+10
* 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-25build: Update gpg-error.m4 and gpgrt.m4.NIIBE Yutaka1-20/+26
* 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/+8
* 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]>
2017-11-27core: Install new files gpgrt.m4 and gpgrt-config.Werner Koch1-43/+46
* src/gpgrt.m4: New. Bascially a copy of libgpg-error.m4 * src/gpg-error-config.in: Decide which name to print. * src/Makefile.am (nodist_bin_SCRIPTS): Add gpgrt-config. (m4data_DATA): Add gpgrt.m4 (EXTRA_DIST): Add gpgrt.m4. (BUILT_SOURCES): Add gpgrt-config. (CLEANFILES): Add gpgrt-config. (gpgrt-config): Create from gpg-error-config. -- These files can be used instead of gpg-error-config or gpg-error.m4. The hope is that providing them early will ease an eventual migration from libgpg-error to libgpgrt easier. Signed-off-by: Werner Koch <[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.