summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAge
* Use Gnulib libgmp modulePaul Eggert2020-07-09
| | | | | | | | | | | | | | | | | | | | Instead of doing GMP by hand, use the Gnulib libgmp module. * .gitignore: Add lib/gmp.h. * admin/merge-gnulib (GNULIB_MODULES): Add libgmp. * configure.ac (GMP_LIB, GMP_OBJ): Remove. Gnulib uses the name LIB_GMP, so all uses changed. All uses of GMP_OBJ removed. (HAVE_GMP): Set this from Gnulib’s variables. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/mini-gmp-gnulib.c, lib/mini-gmp.c, lib/mini-gmp.h, m4/libgmp.m4: New files, copied from Gnulib. * src/bignum.h, test/data/emacs-module/mod-test.c: Include gmp.h unconditionally. * src/mini-gmp-emacs.c, src/mini-gmp.c, src/mini-gmp.h: Remove. This moves these files from src to lib, and updates them to the current GMP version. * test/Makefile.in (GMP_H): New macro. ($(test_module)): Use it to decide whether to compile mini-gmp-gnulib.c too.
* Speed up GCC 10.1 compilation in default Git buildsPaul Eggert2020-07-09
| | | | | | | | * configure.ac (nw): GCC 10.1 introduced warnings enabled by -fanalyzer that slow down compilation considerably. Generate these warnings only if --enable-gcc-warnings is explicitly given. Also, do not bother to eliminate warnings that Gnulib’s revised manywarnings module no longer generates.
* Support pty's on OpenBSDYASUOKA Masahiko2020-07-01
| | | | | | | * configure.ac (PTY_TTY_NAME_SPRINTF): OpenBSD has posix_openpt nowadays. (Bug#42059) Copyright-paperwork-exempt: yes
* Add thread-naming support for OpenBSDTimo Myyrä2020-06-28
| | | | | | | | | OpenBSD has pthread_set_name_np; FreeBSD appears to have both this call and pthread_setname_np (the latter call is used in preference). * configure.ac: Detect pthread_set_name_np. * sys/systhread.c: Include <pthread_np.h> and call pthread_set_name_np if available.
* --with-wide-int is a no-op on 64-bit hostsPaul Eggert2020-05-27
| | | | | | * configure.ac: Clarify wording for --with-wide-int help. * src/pdumper.c (dump_vectorlike_generic): Do the eassert even if --with-wide-int was specified unnecessarily.
* Use native image API for NSAlan Third2020-04-16
| | | | | | | | | | | | | | | | | * configure.ac (NATIVE_IMAGE_API): Move above NS definitions. (HAVE_NATIVE_IMAGE_API): Set for NS. (HAVE_PNG, HAVE_JPEG, HAVE_GIF, HAVE_TIFF): Enable on NS builds. * src/image.c (HAVE_NS): Fix a number of #if's so they no longer rely on HAVE_NS. (PIX_MASK_DRAW): Add for HAVE_NS so libpng support will compile. (image_can_use_native_api): (native_image_load): Add NS support. (png_load): (jpeg_load): (tiff_load): (gif_load): Remove NS specific definitions. * src/nsimage.m (ns_can_use_native_image_api): New function. * src/nsterm.h: (ns_can_use_native_image_api): New function.
* Fix small glitches in documenting the native image API featureEli Zaretskii2020-04-15
| | | | | | | * etc/NEWS: Fix wording of the entry for native image API support. Reported by Juanma Barranquero <lekktu@gmail.com>. * configure.ac (native-image-api): Fix the "--help" description.
* Make use of MS-Windows native image API be selectable at run timeEli Zaretskii2020-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Minor cleanup in how w32image.o is added to the build when native image APIs are requested. * src/w32gui.h (w32_load_image, w32_can_use_native_image_api) (w32_gdiplus_shutdown): Move prototypes from w32term.h here, since w32.c doesn't include w32term.h. * src/image.c (struct image_type): No need to pass TYPE to the 'valid_p' method. All callers changed. (initialize_image_type) [HAVE_NATIVE_IMAGE_API]: Call 'image_can_use_native_api' before trying image-specific methods. (image_can_use_native_api): New function. (image_types): Remove the native_image_type parts. (syms_of_image): New symbol 'native-image'. (parse_image_spec): Accept native-image "type" for any image type. * src/w32term.c (syms_of_w32term): New variable 'w32-use-native-image-API'. * src/w32image.c: (w32_can_use_native_image_api): New function. (gdiplus_init): Rename from w32_gdiplus_startup. Simplify code. Move the call to GdiplusStartup to a separate function. Use ordinal number for SHCreateMemStream if cannot load it by name. (w32_load_image): Ignore Win32Error status from w32_select_active_frame. Move DEFSYMs from here... * src/image.c (syms_of_image) [HAVE_NATIVE_IMAGE_API]: ...to here. * etc/NEWS: Update the entry about native image API use.
* Initial version of native image API support for MS-WindowsJuan José García-Ripoll2020-04-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/w32image.c: New file. * src/w32term.h: Add prototypes of 'w32_load_image', 'w32_gdiplus_startup', 'w32_gdiplus_shutdown', and 'w32_query_frame_background_color'. * src/w32term.c (w32_query_frame_background_color): No longer static. * src/w32.c (term_ntproc) [HAVE_GDIPLUS]: Call 'w32_gdiplus_shutdown'. * src/image.c (struct image_type) <valid_p>: Accept an additional argument, the image type. All implementations changed. (init_native_image_functions, native_image_p, native_image_load) [HAVE_NATIVE_IMAGE_API]: New methods for "native image type". (initialize_image_type) [HAVE_NATIVE_IMAGE_API]: Call 'init_native_image_functions'. (image_types) [HAVE_NATIVE_IMAGE_API]: Add settings for native image API. (lookup_image_type) [HAVE_NATIVE_IMAGE_API]: Initialize native functions if needed. * lisp/term/w32-win.el (dynamic-library-alist): Add gdiplus and shlwapi. * etc/NEWS: Announce the new feature. * configure.ac (native-image-api): New option, OFF by default. (HAVE_NATIVE_IMAGE_API): If native-image-api is selected, add w32image.o to W32_OBJ.
* Revert unneeded part of gcc -Og changePaul Eggert2020-04-04
| | | | | * configure.ac (DEFINE_KEY_OPS_AS_MACROS): Undo this recent change to configure.ac; it’s not needed.
* Default gcc -Og to inlining key opsPaul Eggert2020-04-04
| | | | | | | | | | Problem reported by Martin Rudalics in: https://lists.gnu.org/r/emacs-devel/2020-04/msg00195.html * configure.ac (DEFINE_KEY_OPS_AS_MACROS): Define if -Og. * src/Makefile.in (KEY_OPS_CFLAGS): New macro. (EMACS_CFLAGS): Use it. * src/lisp.h (DEFINE_KEY_OPS_AS_MACROS): Let the gcc command line specify it. Remove use of undocumented INLINING macro.
* Use hard links to Emacs executable in "make install" on MS-WindowsEli Zaretskii2020-03-29
| | | | | * configure.ac (LN_S_FILEONLY): Set to "/bin/ln" for MinGW unconditionally.
* Merge from origin/emacs-27Glenn Morris2020-02-06
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 09eed01afb Wrap some set-auto-mode calls with delay-mode-hooks (bug#3... 4a0a114505 Support ido-vertical-mode better ef5fba9f40 Fix faces tab-bar and tab-line. 831508422e Cater for 3-argument version of pthread_setname_np f27187f963 Clarify lexvar restrictions for add-to-ordered-list, add-t... 32763dac46 Replace add-to-list to lexical variable with push (bug#39373) d07f177382 Clarify add-to-list documentation (bug#39373) d3d2ea927c MH-E: alter content in mh-display-msg, not mh-show-mode db7fa2546f Update documentation for mh-show-mode-hook d10be6bf28 Example goto-addr hook: MH-E already uses goto-address # Conflicts: # etc/NEWS
| * Cater for 3-argument version of pthread_setname_npRobert Pluim2020-02-03
| | | | | | | | | | | | | | | | | | | | Fixes Bug#39363. * configure.ac: Add check for 3-argument version of pthread_setname_np. * src/systhread.c (sys_thread_set_name) [HAVE_PTHREAD_SETNAME_NP_3ARG]: Call pthread_setname_np with 3 arguments.
* | Merge from origin/emacs-27Glenn Morris2020-02-01
|\| | | | | | | cdf8c31844 Extend workaround for Cygwin O_PATH bug
| * Extend workaround for Cygwin O_PATH bugKen Brown2020-01-31
| | | | | | | | | | * configure.ac (HAVE_CYGWIN_O_PATH_BUG): Extend to Cygwin versions 3.1.0 through 3.1.2. (Bug#39371)
* | Merge from origin/emacs-27Glenn Morris2020-01-28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1bcac29b2f (origin/emacs-27) dns-mode-soa-auto-increment-serial: safe... abf0f8666d * lisp/wdired.el: Clean out isearch-filter-predicate (bug#... c31c31e57f ; Spelling and URL fixes 066aad7b9d Finish the documentation for c-noise-macro-{,with-parens-}... c8fcabf245 Correct regexp for flags in `format' doc string 2e9a153b26 Moderate recommendation to escape '(' in doc strings d7cd4ab7d9 Objective C Mode: Make c-forward-type work with "unsigned ... 1705e32ebc Fix help text about configure module support baca81e641 * doc/lispref/streams.texi (Output Functions): Improve ind... 568a560fce Improve doc string of 'newline' 7f50698505 Improve doc of eq on bignums etc. e5327a569c Do not refer to obsolete alias fd09196781 ; Clarify what time-stamp-active enables # Conflicts: # etc/NEWS
| * Fix help text about configure module supportMarco Wahl2020-01-26
| |
* | Revert the --with-install-srcdir patchPaul Eggert2020-01-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, update description of debuginfo and sources to match Debian and Red Hat more accurately, and move this sad tale from INSTALL to etc/PROBLEMS which is a better home for it. * Makefile.in (emacs_srcdir, install-c-src): * configure.ac (emacs_srcdir, --with-install-srcdir): * src/epaths.in (PATH_EMACS_SOURCE): * src/lread.c (emacs-source-directory): Remove. All uses removed. * lisp/emacs-lisp/find-func.el (find-function-C-source): Do not worry about compressed C sources. * src/lread.c: Do not include <dosname.h>.
* | Install C source code for C-h f etc.Paul Eggert2020-01-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this change, on typical GNU/Linux distributions like Debian, the first button of ‘C-h f car RET’ does not work because the source code for ‘car’ is not installed (Bug#37527). Fix this by installing the (compressed) C source code alongside the (compressed) Lisp source code that is already installed. This adds about 3 MB (about 2%) to the size of the installed files on my platform. * Makefile.in (emacs_srcdir): New macro. (epaths-force): Substitute PATH_EMACS_SOURCE. (install-c-src): New rule, that installs a copy of the C source code if emacs_srcdir says to. (install-arch-indep): Depend on it. * configure.ac (emacs_srcdir): New var. Add support for --disable-install-srcdir. * lisp/emacs-lisp/find-func.el (find-function-C-source-directory): Look in emacs-source-directory first. (find-function-C-source): Also look for gzipped source files. * lisp/startup.el (normal-top-level): Also recode emacs-source-directory. * src/epaths.in (PATH_EMACS_SOURCE): New macro. * src/lread.c: Include dosname.h, for IS_ABSOLUTE_FILE_NAME. (syms_of_lread): New var emacs-source-directory.
* | Expand Cairo and HarfBuzz descriptionsRobert Pluim2020-01-24
| | | | | | | | | | * etc/NEWS: * configure.ac: Expand description of Cairo and Harfbuzz
* | Warn about XFT and about Cairo without HarfBuzzRobert Pluim2020-01-24
| | | | | | | | | | | | | | * configure.ac: Warn about libXFT usage. Warn about using Cairo without HarfBuzz. * etc/NEWS: Announce XFT and HarfBuzz warnings.
* | Remove Gnulib putenv codePaul Eggert2020-01-18
| | | | | | | | | | | | | | | | | | | | It’s not needed, since Emacs always uses the system putenv and all platforms have putenv. This improves on the fix for Bug#19874. Suggested by Bruno Haible. * admin/merge-gnulib (GNULIB_MODULES): Remove putenv. * configure.ac: Remove workarounds for Gnulib putenv module. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/putenv.c, m4/putenv.m4: Remove.
* | Don't error on non-toolkit NS scrollbars (bug#37042)Alan Third2020-01-18
| | | | | | | | | | * configure.ac (HAVE_NS): Don't error, but warn, on non-toolkit scrollbars.
* | Remove unused ftx font backend driverStefan Kangas2020-01-15
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/ftxfont.c: Remove file. * admin/notes/font-backend: * configure.ac: * src/Makefile.in: * src/deps.mk (ftxfont.o): * src/font.c (syms_of_font): * src/font.h (top-level, font_property_index): * src/xfns.c (Fx_create_frame, x_create_tip_frame): Remove unused ftx font backend driver. Thanks to Glenn Morris for pointing out that it can be removed. (Bug#34663)
* | Default cairo to enabledRobert Pluim2020-01-14
| | | | | | | | | | | | * configure.ac (USE_CAIRO): Default cairo to enabled. * etc/NEWS: Announce the change to use cairo if found.
* | Port configure.ac to future GnulibPaul Eggert2020-01-13
| | | | | | | | | | | | | | | | | | | | | | | | Rewrite an ancient Alpha ELF check to port to a future Gnulib version that may require AC_CHECK_DECL to be set up properly as per the ‘Expanded Before Required’ section of the Autoconf manual Autoconf doesn’t guarantee that AC_CHECK_DECL will work properly if called conditionally (e.g., inside a shell ‘case’ statement) and the condition is false. Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2020-01/msg00088.html * configure.ac (LD_SWITCH_MACHINE): Migrate ELF check later, when AC_CHECK_DECL is properly set up.
* | Merge from origin/emacs-27Glenn Morris2020-01-08
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6cd9ccb0a2 (origin/emacs-27) Fix compression of directories in Dired 42329e6d3b ; * etc/NEWS: Review of the whole text. af5709f16b Further enhancement on `tramp-file-local-name' fb432446f5 Objective C Mode imenu: cease recognizing "functions" with... a18373a999 ; * etc/NEWS: Update the text about the XDG_CONFIG_HOME/em... 73fd8a4b53 Fix BSD and macOS builds w.r.t. pthread_setname_np (bug#38... f54b24304d Scale top-left coordinates in display-monitor-attributes-list b46c75b16c xref-matches-in-files: Big Tramp speed-up 883b3490d8 * lisp/net/tramp.el (tramp-file-local-name): Remove `save-... c01f55f126 Fix rendering bug due to unsynchronized cairo surface size... 075f21c0e3 Avoid crash by access to cleared img->pixmap->data/img->ma... 16c6dfb4f1 Avoid assertion violations in very small-height windows 9063124b91 Use pthread_setname_np to set thread name # Conflicts: # etc/NEWS # lisp/net/tramp.el
| * Fix BSD and macOS builds w.r.t. pthread_setname_np (bug#38632)Mattias Engdegård2020-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pthread_setname_np takes only a single argument on BSD and macOS, and affects the current thread only. * configure.ac: Add check for single-argument pthread_setname_np * src/systhread.c (sys_thread_set_name): New (w32 and pthread versions). (sys_thread_create): Remove name argument and name-setting. (w32_beginthread_wrapper): Remove name-setting. * src/systhread.h (sys_thread_create, sys_thread_set_name): Update prototypes. * src/thread.c (run_thread): Call sys_thread_set_name. (Fmake_thread): Adapt call to sys_thread_create. * src/thread.h (struct thread_state): Adjust comment.
| * Use pthread_setname_np to set thread nameRobert Pluim2020-01-06
| | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Remove check for sys/prctl.h and prctl, check for pthread_setname_np instead. * systhread.c: Remove sys/prctl.h include. (sys_thread_create) [HAVE_PTHREAD_SETNAME_NP]: Use pthread_setname_np to set the name of the newly created thread (Bug#38632). * thread.c (Fmake_thread): Use ENCODE_SYSTEM instead of ENCODE_UTF_8 on the thread name.
* | Merge from origin/emacs-27Paul Eggert2020-01-01
|\| | | | | | | | | | | | | | | | | | | | | 186152ba40 Pacify gcc -Wunused-function on Ubuntu 18.04.3 4cd143aded Fix copyright years by hand 365e01cc9f Update copyright year to 2020 cd2c156163 ; * etc/NEWS: Make the description of XDG fallback more ac... # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex
| * Fix copyright years by handPaul Eggert2020-01-01
| | | | | | | | These are dates that admin/update-copyright did not update.
| * Update copyright year to 2020Paul Eggert2020-01-01
| | | | | | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
| * Cut the emacs-27 release branchEli Zaretskii2019-12-23
| | | | | | | | | | | | | | | | | | | | * lisp/cus-edit.el (customize-changed-options-previous-release): Change the value to 26.3. * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: Bump Emacs version to 27.0.60.
* | Support .dylib suffix for modules on macOS (Bug#36226).Philipp Stephani2019-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On macOS, shared libraries typically have the suffix .dylib. This commit switches the module suffix to .dylib on Darwin to account for that. To also support the .so suffix, introduce the concept of a secondary module suffix. * configure.ac: Switch MODULES_SUFFIX to .dylib for Darwin, introduce MODULES_SECONDARY_SUFFIX. * src/lread.c (Fload, syms_of_lread): Also use MODULES_SECONDARY_SUFFIX if defined. * test/src/emacs-module-tests.el (module-darwin-secondary-suffix): New unit test.
* | Prepare module header generation for Emacs 28.Philipp Stephani2019-12-24
| | | | | | | | | | | | | | | | * configure.ac: Substitute environment function snippet for Emacs 28. * src/module-env-28.h: New file, with dummy contents for now. * src/emacs-module.h.in: Provide emacs_env_28 structure.
* | Bump Emacs version to 28.0.50Eli Zaretskii2019-12-23
|/ | | | | | | | | | | | | | | * README: * configure.ac: * nt/README.W32: * msdos/sed2v2.inp: * src/msdos.c (internal_terminal_init): * etc/refcards/ru-refcard.tex: Bump Emacs version to 28.0.50. * lisp/cus-edit.el (customize-changed-options-previous-release): Bump up the value to 26.3. * etc/NEWS.27: Renamed from NEWS. * etc/NEWS: New file for Emacs 28.
* Remove the error-out test for with_harfbuzzLars Ingebrigtsen2019-11-18
| | | | | | * configure.ac (HAVE_HARFBUZZ): Remove the check for explicit harfbuzz -- have_harfbuzz defaults to "yes", so we have no way of checking whether the user really asked for it, apparently.
* Error out on --with-harfbuzz without HarfBuzz supportLars Ingebrigtsen2019-11-17
| | | | | * configure.ac: Error out if the user says --with-harfbuzz, but HarfBuzz isn't available.
* Portcheck only if --enable-gcc-warningsPaul Eggert2019-10-21
| | | | | | | | | Problem reported by Richard Copley (Bug#37852). This patch causes the problem to not occur if one uses plain ‘configure’. The problem can still occur if with ‘configure --enable-gcc-warnings’, so a further fix may be needed. * configure.ac (GNULIB_PORTCHECK, _FORTIFY_SOURCE): Define these only with an explicit --enable-gcc-warnings.
* Enable modules by default.Philipp Stephani2019-10-14
| | | | | | | The interface has been stable since Emacs 25, and most bugs are fixed by now. * configure.ac: Enable modules by default.
* Make --with-imagemagick bug out if there's no support for itLars Ingebrigtsen2019-09-24
| | | | | | * configure.ac (HAVE_IMAGEMAGICK): Stop configuration if the user has said --with-imagemagick, but there's no support for it (bug#24455).
* Port to platforms with Xrender lib but not headerPaul Eggert2019-09-04
| | | | | | * configure.ac (HAVE_XRENDER): Also require ‘#include <X11/extensions/Xrender.h>’ to work. Problem found on gcc119 in GCC compile farm.
* Don't worry about pre-1.0.0 alsa-lib includePaul Eggert2019-08-28
| | | | | | | Problem reported by Ergus in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00563.html * configure.ac (ALSA_SUBDIR_INCLUDE): Do not define. * src/sound.c: Assume ALSA_SUBDIR_INCLUDE.
* * configure.ac (HAVE_JPEG): Test for window system. (Bug#36995)Ulrich Müller2019-08-20
|
* Debug out-of-range make_fixnum argsPaul Eggert2019-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | With --enable-checking, make_fixnum (N) now checks that N is in fixnum range. Suggested by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00548.html A new function make_ufixnum (N) is for the rare cases where N is intended to be unsigned and is in the range 0..INTMASK. * configure.ac (AC_C_TYPEOF): Add. (HAVE_STATEMENT_EXPRESSIONS): Resurrect this macro. * src/fns.c (Frandom, hashfn_eq, hashfn_equal, hashfn_user_defined): * src/profiler.c (hashfn_profiler): Use make_ufixnum rather than make_fixum, since the argument is an unsigned integer in the range 0..INTMASK rather than a signed integer in the range MOST_NEGATIVE_FIXNUM..MOST_POSITIVE_FIXNUM. Typically this is for hashes. * src/lisp.h (lisp_h_make_fixnum_wrap) [USE_LSB_TAG]: Rename from lisp_h_make_fixnum. (lisp_h_make_fixnum): Redefine in terms of lisp_h_make_fixnum_wrap. Check for fixnum overflow on compilers like GCC that have statement expressions and typeof. (FIXNUM_OVERFLOW_P): Move up. (make_fixnum): Check for fixnum overflow. (make_ufixnum): New function, which checks that the arg fits into 0..INTMASK range.
* Merge from origin/emacs-26Michael Albinus2019-07-12
|\ | | | | | | | | 305abae50e Raise required librsvg version so as to match the current use c6775bc9ca * lisp/net/tramp-sh.el (tramp-inline-compress-start-size):...
| * Raise required librsvg version so as to match the current useYAMAMOTO Mitsuharu2019-07-12
| | | | | | | | | | * configure.ac: Set RSVG_REQUIRED to 2.14.0 as rsvg_handle_get_dimensions needs it.
| * Bump Emacs version to 26.2.90Nicolas Petton2019-06-12
| | | | | | | | | | | | | | * README: * configure.ac: * msdos/sed2v2.inp: * nt/README.W32: Bump Emacs version.
| * Port to platforms where tputs is in libtinfowPaul Eggert2019-04-27
| | | | | | | | | | | | * configure.ac (tputs_library): Also try tinfow, ncursesw (Bug#33977). (cherry picked from commit a3d52b3057c98bce581bc94912ef3ced6fad6f14)