aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* core: Implement the spawn functions.Werner Koch2017-11-291-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/gpg-error.h.in (GPGRT_SPAWN_NONBLOCK): New const. (GPGRT_SPAWN_RUN_ASFW): New const. (GPGRT_SPAWN_DETACHED): New const. (gpgrt_make_pipe): New function. (gpgrt_create_pipe): New macro. (gpgrt_create_inbound_pipe): New macro. (gpgrt_create_outbound_pipe): New macro. (gpgrt_spawn_process): New function. (gpgrt_spawn_process_fd): New function. (gpgrt_spawn_process_detached): New function. (gpgrt_wait_process): New function. (gpgrt_wait_processes): New function. (gpgrt_kill_process): New function. (gpgrt_release_process): New function. * src/gpg-error.def.in, src/gpg-error.vers: Add new functions. * src/visibility.c, src/visibility.h: Add wrappers for new functions. * src/spawn-posix.c: Rework to better fit the use in gpgrt. Rename all public function with a _gpgrt prefix. * src/spawn-w32.c: Ditto. * src/gpgrt-int.h: Likewise. * src/Makefile.am (arch_sources): Add spawn-posix.c and spawn-w32.c. * src/w32-add.h: Add pid_t typedef as a temporary hack. * configure.ac: Check for signal.h and getrlimit. (AC_FUNC_FORK): New. -- This does build but porting the tests and further changes are required. Don't assume that the API for the new fucntions is stable. Signed-off-by: Werner Koch <[email protected]>
* core: New API functions gpgrt_mkdir, gpgrt_chdir, gpgrt_getcwd.Werner Koch2017-11-281-2/+4
| | | | | | | | | | | | | | | | | | | | | | * src/gpg-error.h.in (gpgrt_mkdir, gpgrt_chdir, gpgrt_getcwd): New. * src/visibility.c, src/visibility.h: Add wrappers. * src/gpg-error.vers, src/gpg-error.def.in: Add them. * src/sysutils.c (modestr_to_mode): New. (_gpgrt_mkdir, _gpgrt_chdir, _gpgrt_getcwd): New. * m4/gnupg-misc.m4: New. * m4/Makefile.am (EXTRA_DIST): Add new M4 file. * configure.ac: Call new GNUPG_FUNC_MKDIR_TAKES_ONE_ARG. (AC_CHECK_FUNCS): Add stat. -- The code has been taken from GnuPG. _gpgrt_mkdir was originally written by me as gnupg_mkdir and here relicensed to LGPLv2.1+. _gpgrt_getcwd was originally written by in 2007 and also here relicensed to LGPLv2.1. The new M4 macro was also written by me for use in in GnuPG; it has been taken from GnUPG's acinclude.m4, moved to its own file here, and relicensed to FSFULLR. Signed-off-by: Werner Koch <[email protected]>
* core: Prepare to build with gpgscm.Werner Koch2017-11-281-1/+15
| | | | | | | | | | | | * configure.ac: New option --enable-gpgscm. Create gpgscm/Makefile. (GPGRT_ENABLE_LOG_MACROS): Define. * Makefile.am (SUBDIRS): Add gpgscm * src/logging.c (_gpgrt_logv_clock): Do not use the log_debug macro. -- Note that gpscm does not yet build. Signed-off-by: Werner Koch <[email protected]>
* w32: Add new API fucntion gpgrt_w32_reg_query_string.Werner Koch2017-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * src/w32-reg.c: New. * src/w32-add.h: Add gpgrt_w32_reg_query_string. * src/visibility.c (gpgrt_w32_reg_query_string): New wrapper. * src/gpg-error.def.in: Add gpgrt_w32_reg_query_string. * configure.ac (ac_check_funcs): Add stpcpy. * src/Makefile.am (arch_sources): Add w32-reg.c (socklibs): New. (libgpg_error_la_LIBADD): Add socklibs. * src/gpgrt-int.h (xfree, xtrymalloc, xtrycalloc) (xtryrealloc): New internal macros. (_gpgrt_stpcpy, stpcpy): New replacement fucntion and macro. * src/logging.c (_gpgrt_logv_internal): Use new registry query function and add standard registry key. -- This also fixes the build failure on Widnwos for logging.c. The code for gpgrt_w32_reg_query_string has been taken from the function read_w32_registry_string in w32-utils.c in the GPGME package. Signed-off-by: Werner Koch <[email protected]>
* New configure options and macros for internal use.Werner Koch2017-11-171-0/+29
| | | | | | | | | | | | | * configure.ac: Add option --enable-log-clock. * configure.ac: Add option --enable-werror. * src/sysutils.c: New. * src/Makefile.am (libgpg_error_la_SOURCES): Add sysutils.c * src/gpgrt-int.h: Add internal i18n macros and hacks to make working with sockets easier. (es_stdin, es_stdout, es_stderr): New internal macros. (snprintf): New macro. Signed-off-by: Werner Koch <[email protected]>
* gpgscm: Add required configure checks.Werner Koch2017-10-051-2/+6
| | | | | | | | * configure.ac: Add new checks. * m4/readline.m4: New. Taken from gnupg. * m4/Makefile.am (EXTRA_DIST): Add it. Signed-off-by: Werner Koch <[email protected]>
* build: Prepend the maintainer CFLAGS.Justus Winter2017-05-311-4/+8
| | | | | | | * configure.ac: Prepend the maintainer CFLAGS making it possible to override e.g. the optimization level for debugging. Signed-off-by: Justus Winter <[email protected]>
* build: Use macOS' compatibility macros to enable all features.Justus Winter2017-03-081-1/+7
| | | | | | | | | | | | * configure.ac: On macOS, use the compatibility macros to expose every feature of the libc. This is the equivalent of _GNU_SOURCE on GNU libc. -- Not defining this leads to compilation errors or superfluous warnings on macOS. GnuPG-bug-id: 2910 Signed-off-by: Justus Winter <[email protected]>
* Post release updatesWerner Koch2017-02-281-1/+1
| | | | | | -- Signed-off-by: Werner Koch <[email protected]>
* Release 1.27libgpg-error-1.27Werner Koch2017-02-281-2/+2
| | | | | | | | | | * configure.ac: Bump LT version to C22/A22/R0. -- Note that C21/A21/R0 was used in 1.26 but later lost in the repo due to a merge. Signed-off-by: Werner Koch <[email protected]>
* build: Modernize autogen.sh.Werner Koch2017-01-171-18/+14
| | | | | | | | | | * autogen.sh: Update from GnuPG. * autogen.rc (version_parts): New. * configure.ac: Change to use autogen.sh --find-version helper. * Makefile.am (dist-hook): Do not create VERSION (EXTRA_DIST): Add VERSION. Signed-off-by: Werner Koch <[email protected]>
* Fix last merge.Werner Koch2017-01-031-1/+1
| | | | --
* Post release updates.Werner Koch2016-11-141-1/+1
| | | | --
* Release 1.25libgpg-error-1.25Werner Koch2016-11-141-3/+3
| | | | | | * configure.ac: Set LT version to C20/A20/R0. Signed-off-by: Werner Koch <[email protected]>
* Check the size of the time_t.Werner Koch2016-09-011-0/+14
| | | | | | | * configure.ac (AC_HEADER_TIME): New. (AC_CHECK_SIZEOF): Check size of time_t. Signed-off-by: Werner Koch <[email protected]>
* Post release updates.Werner Koch2016-07-141-1/+1
| | | | --
* Release 1.24libgpg-error-1.24Werner Koch2016-07-141-1/+1
|
* Add an option to disable testsYann E. MORIN2016-07-121-0/+5
| | | | | | | | | | | | * configure.ac: add an option to enable/disable building tests * Makefile.am: conditionally build tests -- On an embeded device, there is no reason to have the tests present in a production release build. Add a configure-time option to disable them. Signed-off-by: "Yann E. MORIN" <[email protected]>
* Post release updatesWerner Koch2016-06-151-1/+1
| | | | --
* Release 1.23libgpg-error-1.23Werner Koch2016-06-151-2/+2
|
* Post release updates.Werner Koch2016-04-251-1/+1
| | | | --
* Release 1.22.libgpg-error-1.22Werner Koch2016-04-251-3/+3
| | | | | | * configure.ac: Set LT version to C18/A18/R0. Signed-off-by: Werner Koch <[email protected]>
* Fix for HPPA.NIIBE Yutaka2016-04-251-0/+22
| | | | | | | | | | | | | | * configure.ac (HAVE_GCC_ATTRIBUTE_ALIGNED): Revert. * src/gen-posix-lock-obj.c (USE_16BYTE_ALIGNMENT): Revert. * src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h: Revert. -- Signed-off-by: NIIBE Yutaka <[email protected]> This fixes commit 5168b97. I considered wrongly that long double were 128-bit in HPPA. Currently, all that we can do for HPPA is assuming GCC and use its extension of "aligned" attribute.
* For Solaris, add -lrt correctly.NIIBE Yutaka2016-03-031-5/+0
| | | | | | | | | | | | | | | | | | * configure.ac (LIB_SCHED_YIELD): Not avoiding defining LIB. -- This fixes commit 5168b97 for Solaris linking issue. It tried to add -lrt for build on Solaris for gpg-error, but it wrongly avoids adding it also to LIB, which actually is needed. Reported-by: Tom G. Christensen <[email protected]> Thanks also to Jörn Clausen, who submitted a report to our BTS. GnuPG-bug-id: 1671 Signed-off-by: NIIBE Yutaka <[email protected]>
* Add support for Solaris, fixing HPPA.NIIBE Yutaka2016-02-261-23/+20
| | | | | | | | | | | | * configure.ac (HAVE_GCC_ATTRIBUTE_ALIGNED): Remove. (LIB_SCHED_YIELD): New. Check sched_yield in -lrt. * src/gen-posix-lock-obj.c (USE_16BYTE_ALIGNMENT): Remove. (USE_DOUBLE_FOR_ALIGNMENT, USE_LONG_DOUBLE_FOR_ALIGNMENT): New. * src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h: Update. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Convert http links to https where possible in the source.Daniel Kahn Gillmor2016-02-081-2/+2
| | | | | | | | | | | | | | | | -- * use https for bug reporting * in comments and docs, use https to refer to: - www.gnu.org - creativecommons.org - translationproject.org - mail.gnome.org - www.perl.org - www.ctan.org - www.cl.cam.ac.uk - www.ntg.nl - cygwin.com - www.ethnologue.com
* Post release updates.Werner Koch2015-12-121-1/+1
| | | | --
* Release 1.21.libgpg-error-1.21Werner Koch2015-12-121-2/+2
| | | | * configure.ac: Set LT version to C17/A17/Ro.
* estream: Add gpgrt_set_nonblock and gpgrt_poll.Werner Koch2015-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (AC_CHECK_HEADERS): Add sys/select.h and sys/time.h. * src/estream.c: Include both header if available. (COOKIE_IOCTL_NONBLOCK): New. (struct estream_cookie_fd): Add field nonblock. (func_fd_create): Set nonblock from MODEFLAGS. (es_func_fd_ioctl): New. (parse_mode): Add modeflag "nonblock". (es_fill): Map EWOULDBLOCK to EAGAIN. Do not set error indicator for EAGAIN. (es_flush, es_seek, es_write_nbf): Map EWOULDBLOCK to EAGAIN. (do_fdopen): Call COOKIE_IOCTL_NONBLOCK. (_gpgrt_set_nonblock): New. (_gpgrt_get_nonblock): New. (_gpgrt_poll): New. * src/gpg-error.h.in (struct _gpgrt_poll_s): New. (gpgrt_poll_t, es_poll_t): New. (es_set_nonblock, es_get_nonblock, es_poll): New. * src/gpg-error.vers, src/gpg-error.def.in: Add gpgrt_set_nonblock, gpgrt_get_nonblock, and gpgrt_poll. * src/visibility.c (gpgrt_set_nonblock, gpgrt_get_nonblock): New. (gpgrt_poll): New. * tests/t-common.h (DIM): New. * tests/t-poll.c: New. * tests/Makefile.am (TESTS): Add t-poll. (t_poll_LDADD): New. -- The poll interface uses select(2) internally because that is more portable than poll(2). Signed-off-by: Werner Koch <[email protected]>
* Post release updatesWerner Koch2015-08-261-1/+1
| | | | --
* Release 1.20.libgpg-error-1.20Werner Koch2015-08-261-2/+2
| | | | | | * configure.ac: Set LT version to C16/A16/R0. Signed-off-by: Werner Koch <[email protected]>
* Make configure option --disable-build-timestamp the default.Werner Koch2015-08-251-9/+9
| | | | | | * configure.ac (BUILD_TIMESTAMP): Set to "<none>" by default. Signed-off-by: Werner Koch <[email protected]>
* Allow building with --disable-threads.Werner Koch2015-06-151-1/+7
| | | | | | | | | | | | | | | | | | | | * src/posix-lock-obj.h (LOCK_ABI_NOT_AVAILABLE): New. (LOCK_ABI_VERSION): Define depending on USE_POSIX_THREADS. (_gpgrt_lock_t) [!USE_POSIX_THREADS]: Do not define the union. * src/gen-posix-lock-obj.c: Take care of USE_POSIX_THREADS. * src/posix-lock.c (_gpgrt_lock_init, _gpgrt_lock_lock) (_gpgrt_lock_trylock, _gpgrt_lock_unlock) (_gpgrt_lock_destroy): Return success for a no-threads version. * tests/t-lock.c: Disable tests if threads are not available. * src/mkheader.c (main): Add NO-THREADS to the printed comment. * configure.ac: Show NO-TRHEADS in the final summary. -- Warning: Using --disable-threads creates a different ABI which we can't encode in the the cpu-vendor-os triplet. The run time checks should detect this and abort the process. Signed-off-by: Werner Koch <[email protected]>
* Post release updates.Werner Koch2015-04-101-1/+1
| | | | --
* Release 1.19.libgpg-error-1.19Werner Koch2015-04-101-2/+2
|
* w32: Add a manifest to libgpg-error.Werner Koch2015-03-061-4/+5
| | | | | | | | | | | * src/gpg-error.w32-manifest.in: New. * src/Makefile.am (EXTRA_DIST): Add it. (versioninfo.lo): Depend on it. * src/versioninfo.rc.in: Add it. * configure.ac (AC_CONFIG_FILES): Add it. (BUILD_VERSION): New. Signed-off-by: Werner Koch <[email protected]>
* Post release updatesWerner Koch2015-01-261-1/+1
| | | | --
* Release 1.18.libgpg-error-1.18Werner Koch2015-01-261-2/+2
| | | | * configure.ac: Set LT version to C14/A14/R0.
* Update copyright notices.Werner Koch2015-01-261-1/+1
| | | | --
* build: Update to gettext 0.19.Werner Koch2015-01-051-1/+1
| | | | | * po/Makefile.in.in (MSGMERGE): Remove --previous. * po/Makevars (MSGMERGE_OPTIONS): Add --previous.
* build: Require automake 1.14.Werner Koch2015-01-051-2/+2
| | | | | | | * configure.ac (AM_INIT_AUTOMAKE): Add serial-tests. * tests/Makefile.am (INCLUDES): Replace by AM_CPPFLAGS. Signed-off-by: Werner Koch <[email protected]>
* Fix commit 754a987.Werner Koch2014-12-151-2/+2
| | | | | | | * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New. (AUTOMAKE_OPTIONS): Move options to ... * configure.ac (AM_INIT_AUTOMAKE): .. here. (BUILD_DOC): Fix commit 754a987.
* Add configure option --disable-docWerner Koch2014-12-151-2/+9
| | | | | | | | | | | | * Makefile.am (doc) [!BUILD_DOC]: Do not recurse into doc/. * configure.ac (BUILD_DOC): New am_conditional and new option. -- We have this option already for GnuPG and should use it for all projects. Embedded platforms usually do not require documentation and being able to disable the building avoids a lot of build dependencies. Suggested-by: Hans-Christoph Steiner <[email protected]>
* Post release updates.Werner Koch2014-10-151-1/+1
| | | | --
* Release 1.17.libgpg-error-1.17Werner Koch2014-10-151-3/+3
| | | | * configure.ac: Set LT version to C13/A13/R0.
* doc: Add a man page for gpg-error-config.Werner Koch2014-10-151-1/+1
| | | | | | | | | | | | * doc/gpgrt.texi: New. Just a start for now. * doc/gpl.texi, doc/lgpl.texi: New. Take from Libgcrypt. * doc/yat2m.c: New. Take from GnuPG master. * doc/Makefile.am: New. * configure.ac (AC_CONFIG_FILES): Add doc/Makefile. * Makefile.am (SUBDIRS): Add doc/. * build-aux/mdate-sh, build-aux/texinfo.tex: New. Signed-off-by: Werner Koch <[email protected]>
* Fix to help building native on Windows.Werner Koch2014-10-151-0/+7
| | | | | | | | | | | | * configure.ac (FORCE_USE_SYSCFG): New am_conditional. * src/Makefile.am: Use new conditional to decide whether to build the native lock object header. -- This should help to build using msys2 and mingw. GnuPG-bug-id: 1717 Signed-off-by: Werner Koch <[email protected]>
* Allow ./configure to explicitly set libgpg-error's build timestampDaniel Kahn Gillmor2014-09-241-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: add --enable-build-timestamp -- A group within Debian is working on making the archive rebuildable in a reproducible way, so that the compiled binary outputs are byte-for-byte identical when built for the same platform using the same toolchain. This is useful in providing auditability and corroboration for users of the operating system. libgpg-error is very close to reproducible except for embedding the build timestamp in the generated binary. This timestamp is set in config.h during ./configure. This patch allows an external build system to set this embedded timestamp explicitly, which appears to make the package build repeatably when ./configure is called with (for example) --enable=build-timestamp=2014-09-23T01:02+0000 Debian-bug-id: 762397 (Minor reformatting and NEWS entry by wk.)
* Post release updates.Werner Koch2014-09-181-1/+1
| | | | --
* Release 1.16.libgpg-error-1.16Werner Koch2014-09-181-1/+1
| | | | * configure.ac: Set LT version to C12/A12/R2.