Jan Djärv
ffd817eb10
* Makefile.in (install-arch-indep): Handle space in locallisppath.
...
* src/lread.c (init_lread): Remove if-statement in ifdef HAVE_NS before
setting sitelisp.
Fixes: debbugs:12010
2012-07-29 18:55:02 +02:00
Paul Eggert
e32a579975
Use Gnulib stdalign and environ modules (Bug#9772, Bug#9960).
...
* .bzrignore: Add lib/stdalign.h.
* config.bat: Do not set NO_DECL_ALIGN; no longer needed.
Copy lib/stdalign.in.h to lib/stdalign.in-h as needed.
* configure.ac (HAVE_ATTRIBUTE_ALIGNED): Remove the code that
fiddles with this, as gnulib now does this for us.
* admin/merge-gnulib: Add environ, stdalign.
* m4/environ.m4: New file, from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/stdalign.in.h, m4/stdalign.m4: New files, from gnulib.
* sed2v2.inp (HAVE_ATTRIBUTE_ALIGNED): Remove edit.
* sedlibmk.inp (STDALIGN_H, @GL_GENERATE_STDALIGN_H_TRUE@)
(GL_GENERATE_STDALIGN_H_FALSE): New edits.
* nt/config.nt (HAVE_ATTRIBUTE_ALIGNED): Remove.
* src/alloc.c (XMALLOC_BASE_ALIGNMENT, GC_POINTER_ALIGNMENT, pure_alloc):
Simplify by using alignof.
(pure_alloc) [! USE_LSB_TAG]: Don't over-align EMACS_INT values.
* src/lisp.h: Include <stdalign.h>.
(GCALIGNMENT): New macro and constant.
(DECL_ALIGN): Remove. All uses replaced by alignas (GCALIGNMENT).
(USE_LSB_TAG): ifdef on alignas, not on DECL_ALIGN.
(stdalign): New macro, if not already defined.
2012-07-28 16:05:32 -07:00
Dmitry Antipov
441efe9fdd
Fix toolkit configuration report.
...
* configure.ac (USE_X_TOOLKIT): Report toolkit as GTK3 if
--with-x-toolkit=gtk3 is used.
2012-07-17 11:30:25 +04:00
Paul Eggert
5dad233cb8
Fix regression with pthread_sigmask on FreeBSD.
...
* configure.ac: Configure gnulib at the end, not before running
pkg-config. This restores the behavior before 2012-06-22, when
higher-resolution time stamps were added, and fixes a bug whereby
LIB_PTHREAD was not used and gnulib's part of 'configure'
therefore incorrectly assumed that pthread_sigmask wasn't working.
Fix the problem with -lrt and clock_gettime a different way.
This should complete the fix for Bug#11884.
(pre_PKG_CONFIG_CFLAGS, pre_PKG_CONFIG_LIBS): New shell vars.
2012-07-16 19:09:58 -07:00
Paul Eggert
b6e9e0ffac
Merge from gnulib.
...
2012-07-15 pthread_sigmask: fix bug on FreeBSD 9 (Bug#11884)
2012-07-11 gettext: do not assume '#define ... defined ...' behavior
2012-07-15 11:18:37 -07:00
Juanma Barranquero
ed9265fc7d
Fix typos in ChangeLogs.
2012-07-14 04:08:32 +02:00
Glenn Morris
5b3f250f88
Move GC_SETJMP_WORKS, GC_MARK_STACK from src/s to configure
...
* configure.ac (GC_SETJMP_WORKS, GC_MARK_STACK): Move here from src/s.
(AH_BOTTOM): Move GC_SETJMP_WORKS GCC fallback to main body.
* src/s/aix4-2.h, src/s/freebsd.h, src/s/gnu-linux.h, src/s/hpux10-20.h:
* src/s/irix6-5.h, src/s/netbsd.h, src/s/sol2-6.h, src/s/unixware.h:
Let configure set GC_SETJMP_WORKS, GC_MARK_STACK.
2012-07-13 20:04:10 -04:00
Glenn Morris
5b63334279
Move GC_MARK_SECONDARY_STACK from src/s to configure
...
* configure.ac (GC_MARK_SECONDARY_STACK): Move here from src/s.
* src/s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Let configure set it.
2012-07-13 17:54:35 -04:00
Glenn Morris
32fb4bb69b
Remove some src/s files that are now empty
...
* configure.ac (opsysfile): Set to empty on gnu, cygwin.
* src/s/bsd-common, src/s/cygwin.h: Remove empty files.
* src/s/freebsd.h, src/s/netbsd.h: Do not include bsd-common.h.
2012-07-12 19:38:30 -07:00
Glenn Morris
983188fd54
Move "system type" macros from src/s to configure
...
* configure.ac (BSD4_2, BSD_SYSTEM, USG, USG5, _AIX, CYGWIN)
(DARWIN_OS, GNU_LINUX, HPUX, IRIX6_5, SOLARIS2):
Move "system type" macros here from src/s.
(BSD_SYSTEM_AHB): New hack macro.
(AH_BOTTOM): Set BSD_SYSTEM, using BSD_SYSTEM_AHB.
* src/s/usg5-4-common.h (USG, USG5):
* src/s/template.h (USG5, USG, HPUX, BSD4_2, BSD_SYSTEM):
* src/s/sol2-6.h (SOLARIS2):
* src/s/irix6-5.h (IRIX6_5):
* src/s/hpux10-20.h (USG, USG5, HPUX):
* src/s/gnu-linux.h (USG, GNU_LINUX):
* src/s/freebsd.h (BSD_SYSTEM):
* src/s/darwin.h (BSD4_2, BSD_SYSTEM, DARWIN_OS):
* src/s/cygwin.h (CYGWIN):
* src/s/bsd-common.h (BSD_SYSTEM, BSD4_2):
* src/s/aix4-2.h (USG, USG5, _AIX): Move "system type" macros to configure.
2012-07-12 19:34:05 -07:00
Glenn Morris
739ae01050
Move NSIG_MINIMUM from src/s to configure
...
* configure.ac (NSIG_MINIMUM): Move here from src/s.
* src/s/usg5-4-common.h (NSIG_MINIMUM): Let configure set it.
2012-07-12 21:19:06 -04:00
Glenn Morris
dbee57935d
Move ULIMIT_BREAK_VALUE from src/s to configure
...
* configure.ac (ULIMIT_BREAK_VALUE): Move here from src/s.
* src/s/gnu-linux.h, src/s/irix6-5.h: Let configure set ULIMIT_BREAK_VALUE.
2012-07-12 20:19:10 -04:00
Glenn Morris
4fae5a7a91
Move darwin.h's SYSTEM_PURESIZE_EXTRA setting to configure
...
* configure.ac (AH_BOTTOM) [DARWIN_OS]: Move SYSTEM_PURESIZE_EXTRA
setting here from src/s/darwin.h.
* src/s/darwin.h (SYSTEM_PURESIZE_EXTRA): Move to configure.
2012-07-12 20:00:23 -04:00
Glenn Morris
ba9e4b84ac
Move NO_EDITRES from src/s to configure
...
* configure.ac (NO_EDITRES): Move here from src/s.
* src/s/aix4-2.h, src/s/hpux10-20.h: Let configure set NO_EDITRES.
2012-07-12 17:14:13 -04:00
Glenn Morris
3e91a053d9
Move UNIX98_PTYS from src/s to configure
...
* configure.ac (UNIX98_PTYS): Move here from src/s.
* src/s/gnu-linux.h (UNIX98_PTYS): Let configure set it.
2012-07-12 15:48:21 -04:00
Glenn Morris
3f922c3769
Move PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF from src/s to configure
...
* configure.ac (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Move here from src/s.
* src/s/aix4-2.h, src/s/cygwin.h, src/s/darwin.h:
* src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/irix6-5.h:
* src/s/sol2-6.h, src/s/unixware.h, src/s/usg5-4-common.h:
Move PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF to configure.
2012-07-12 00:43:05 -07:00
Glenn Morris
0ab7b23ae0
Move PTY_OPEN from src/s to configure
...
* configure.ac (PTY_OPEN) Move here from src/s.
* src/s/cygwin.h, src/s/darwin.h, src/s/gnu-linux.h, src/s/irix6-5.h:
Move PTY_OPEN to configure.
2012-07-12 00:10:44 -07:00
Glenn Morris
6e7778482f
Move FIRST_PTY_LETTER, PTY_ITERATION from src/s to configure
...
* configure.ac (FIRST_PTY_LETTER PTY_ITERATION): Move here from src/s.
* src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/darwin.h:
* src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/irix6-5.h, src/s/template.h:
* src/s/usg5-4-common.h: Move FIRST_PTY_LETTER, PTY_ITERATION to configure.
2012-07-11 23:34:40 -07:00
Glenn Morris
42bd17194c
Move more things from src/s to configure
...
* configure.ac (BROKEN_GET_CURRENT_DIR_NAME, BROKEN_PTY_READ_AFTER_EAGAIN)
(G_SLICE_ALWAYS_MALLOC): Move here from src/s.
* src/s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN):
* src/s/cygwin.h (G_SLICE_ALWAYS_MALLOC):
* src/s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME): Let configure set them.
2012-07-11 22:14:29 -04:00
Glenn Morris
7ccad0028b
Move more stuff from src/s to configure
...
* configure.ac (PREFER_VSUSP, RUN_TIME_REMAP, SETPGRP_RELEASES_CTTY)
(TAB3, TABDLY, RUN_TIME_REMAP, XOS_NEEDS_TIME_H): Move here from src/s.
* src/s/bsd-common.h, src/s/darwin.h: Move TAB3 to configure.
* src/s/hpux10-20.h, src/s/sol2-6.h: Move XOS_NEEDS_TIME_H to configure.
* src/s/irix6-5.h (SETPGRP_RELEASES_CTTY, PREFER_VSUSP):
* src/s/hpux10-20.h (RUN_TIME_REMAP):
* src/s/bsd-common.h (TABDLY): Move to configure.
2012-07-11 21:49:28 -04:00
Glenn Morris
ea0bbd1767
Move some AIX defines from src/s to configure
...
* configure.ac (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPOLL)
(BROKEN_SIGPTY): Move here from src/s.
* src/s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY)
(BROKEN_SIGPOLL): Let configure set them.
* src/s/syssignal.h: Comment fix.
2012-07-11 21:18:45 -04:00
Glenn Morris
c5564388a3
Move NO_ABORT from src/s to configure
...
* configure.ac (NO_ABORT): Move here from src/s.
* src/s/darwin.h (NO_ABORT): Let configure set it.
2012-07-11 21:14:56 -04:00
Glenn Morris
51c3b9b4b8
Move setting of NO_MATHERR for Darwin from src/s to configure
...
* configure.ac (NO_MATHERR): Unconditionally define for Darwin;
as src/s/darwin.h used to.
* src/s/darwin.h (NO_MATHERR): Let configure set it.
2012-07-11 21:11:37 -04:00
Glenn Morris
308aab7949
Move NARROWPROTO from src/s to configure
...
* configure.ac (NARROWPROTO): Move here from src/s.
* src/s/bsd-common.h, src/s/cygwin.h, src/s/gnu-linux.h, src/s/irix6-5.h:
* src/s/template.h: Move NARROWPROTO to configure.
2012-07-11 20:49:24 -04:00
Glenn Morris
ee1cf5cfae
All platforms using configure support HAVE_PTYS and HAVE_SOCKETS
...
* configure.ac (HAVE_PTYS, HAVE_SOCKETS): Define unconditionally.
* src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/darwin.h:
* src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/template.h:
* src/s/usg5-4-common.h: Move HAVE_PTYS and HAVE_SOCKETS to configure.
2012-07-11 19:40:59 -04:00
Glenn Morris
c43fb4c32d
Move INTERRUPT_INPUT from src/s to configure
...
* configure.ac (INTERRUPT_INPUT): Move here from src/s.
* src/s/darwin.h, src/s/gnu-linux.h, src/s/template.h:
Move INTERRUPT_INPUT to configure.
2012-07-11 13:04:19 -04:00
Glenn Morris
09f4e3b014
Move SIGNALS_VIA_CHARACTERS from src/s to configure
...
* configure.ac (SIGNALS_VIA_CHARACTERS): Move here from src/s.
* src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/gnu-linux.h:
* src/s/irix6-5.h: Move SIGNALS_VIA_CHARACTERS to configure.
2012-07-11 00:28:27 -07:00
Paul Eggert
554fef512f
* configure.ac (tzset): Remove redundant check.
2012-07-11 00:23:59 -07:00
Glenn Morris
172bedefc9
All the cool platforms support CLASH_DETECTION...
...
* configure.ac (CLASH_DETECTION): Define unconditionally.
Every platform using configure supports it.
* src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/darwin.h:
* src/s/gnu-linux.h, src/s/hpux10-20.h, src/s/template.h:
* src/s/usg5-4-common.h: Move CLASH_DETECTION to configure.
* etc/PROBLEMS: Recommend customizing create-lockfiles rather than
recompiling with CLASH_DETECTION unset.
2012-07-11 00:07:19 -07:00
Paul Eggert
bb3522608f
Assume mkdir, rmdir.
2012-07-11 00:05:21 -07:00
Glenn Morris
249685df40
Remove src/s/gnu.h
...
* configure.ac (opsysfile): Use bsd-common on gnu systems.
* src/s/gnu.h: Remove file, which is now empty.
2012-07-10 23:55:30 -07:00
Glenn Morris
c8add24e86
Move GNU_LIBRARY_PENDING_OUTPUT_COUNT from src/s to configure
...
* configure.ac (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Move here from src/s.
* src/s/gnu.h, src/s/gnu-linux.h:
Move GNU_LIBRARY_PENDING_OUTPUT_COUNT to configure.
2012-07-10 23:52:48 -07:00
Paul Eggert
57054ddd44
Assume rename.
2012-07-10 23:09:09 -07:00
Paul Eggert
5ebbef1dc0
Assume strerror.
2012-07-10 22:44:06 -07:00
Glenn Morris
9d596af370
Move DONT_REOPEN_PTY from src/s to configure
...
* configure.ac (DONT_REOPEN_PTY): Move here from src/s.
* src/s/darwin.h, src/s/freebsd.h, src/s/netbsd.h:
Move DONT_REOPEN_PTY to configure.
2012-07-10 22:29:13 -04:00
Glenn Morris
20e94fdd8e
Let configure set DEFAULT_SOUND_DEVICE
...
* configure.ac (DEFAULT_SOUND_DEVICE): New definition.
* src/sound.c (DEFAULT_SOUND_DEVICE) [!WINDOWSNT]:
* src/s/netbsd.h (DEFAULT_SOUND_DEVICE): Let configure set it.
2012-07-10 22:16:25 -04:00
Paul Eggert
22ffb97351
Remove "#define unix" that is no longer needed (Bug#11905).
...
Merge from gnulib to make "#define unix" unnecessary, incorporating:
2012-07-10 getloadavg: clean out old Emacs and Autoconf cruft
2012-07-09 getopt: Simplify after Emacs changed.
* src/s/aix4-2.h (unix): Remove; no longer needed.
2012-07-10 17:01:21 -07:00
Glenn Morris
d02eb359e6
Move PENDING_OUTPUT_COUNT from src/s to configure
...
* configure.ac (PENDING_OUTPUT_COUNT): Move here from src/s.
* src/s/cygwin.h, src/s/darwin.h, src/s/freebsd.h, src/s/netbsd.h:
* src/s/unixware.h: Move PENDING_OUTPUT_COUNT definition to configure.
2012-07-10 00:37:17 -07:00
Glenn Morris
882cf227ab
Move DATA_START, DATA_SEG_BITS from src/s to configure
...
* configure.ac (DATA_START, DATA_SEG_BITS): Move here from src/s.
* src/s/irix6-5.h (DATA_START, DATA_SEG_BITS):
* src/s/hpux10-20.h (DATA_SEG_BITS, DATA_START):
* src/s/gnu.h (DATA_START): Move definitions to configure.
2012-07-10 00:15:05 -07:00
Andreas Schwab
cda158b40d
* configure.ac (PNG_DEPSTRUCT): Define this instead of
...
PNG_DEPRECATED.
2012-07-10 00:06:31 +02:00
Paul Eggert
5994c1836b
Add GCC-style 'const' attribute to functions that can use it.
2012-07-09 09:38:45 -07:00
Juanma Barranquero
52331d2c41
lib/makefile.w32-in: Rework dependencies.
...
(GNU_LIB, NT_INC, C_CTYPE_H, MS_W32_H, CONFIG_H, FILEMODE_H)
(FTOASTR_H, FTOASTR_C, GETOPT_INT_H, MD5_H, SHA1_H, SHA256_H)
(U64_H, SHA512_H): New macros.
(SRC): Redefine to point to src/, not current directory.
($(BLD)/c-ctype.$(O), $(BLD)/c-strcasecmp.$(O))
($(BLD)/c-strncasecmp.$(O), $(BLD)/dtoastr.$(O))
($(BLD)/dtotimespec.$(O), $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O))
($(BLD)/gettime.$(O), $(BLD)/strftime.$(O), $(BLD)/time_r.$(O))
($(BLD)/timespec-add.$(O), $(BLD)/timespec-sub.$(O), $(BLD)/md5.$(O))
($(BLD)/sha1.$(O), $(BLD)/sha256.$(O), $(BLD)/sha512.$(O))
($(BLD)/filemode.$(O)): Update dependencies.
2012-07-09 17:37:43 +02:00
Paul Eggert
2f93ecceb9
Merge from gnulib.
2012-07-09 01:34:39 -07:00
Paul Eggert
61a116066f
Mention coordinates of recent Autoconf change, thanks to Stefano Lattarini.
2012-07-08 21:58:55 -07:00
Paul Eggert
c4444d16dc
Rename configure.in to configure.ac.
...
Fixes: debbugs:11603
2012-07-08 21:52:49 -07:00
Paul Eggert
0ccb0b0983
Restore deprecation warnings, except for older libpng.
...
* configure.in (WARN_CFLAGS): Remove -Wno-deprecated-declarations.
(HAVE_LIBPNG_PNG_H): Don't bother checking for this if we have png.h.
(PNG_DEPRECATED): Define when compiling with older PNG versions.
2012-07-08 13:03:56 -07:00
Juanma Barranquero
090bd7cb34
Fix ChangeLog typos.
2012-07-08 01:16:19 +02:00
Andreas Schwab
4da41f1c10
* configure.in (WARN_CFLAGS): Add -Wno-deprecated-declarations.
2012-07-07 22:32:41 +02:00
Paul Eggert
6045c4fdb8
Improve static checking when configured --with-ns.
...
See Samuel Bronson's remarks in
<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00146.html >.
* configure.in (WARN_CFLAGS): Omit -Wunreachable-code, as it's
a no-op with recent GCC and harmful in earlier ones.
Omit -Wsync-nand, as it's irrelevant to Emacs and provokes a
warning when compiling with ObjC. Always omit
-Wunsafe-loop-optimizations, as we don't mind when optimization is
being done correctly.
Fix some minor --with-ns problems found by static checking.
* src/frame.c (Ftool_bar_pixel_width) [!FRAME_TOOLBAR_WIDTH]:
(x_set_font) [!HAVE_X_WINDOWS]:
* src/image.c (xpm_load_image) [HAVE_NS]:
(x_to_xcolors) [!HAVE_X_WINDOWS && !HAVE_NTGUI]:
(x_disable_image) [!HAVE_NS && !HAVE_NTGUI]:
Remove unused local.
(Fx_parse_geometry) [HAVE_NS]: Don't return garbage.
(xpm_load_image) [HAVE_NS && !HAVE_XPM]: Remove unused label.
* src/image.c (x_create_bitmap_from_file) [HAVE_NS]:
(xpm_load_image, xpm_load) [HAVE_NS && !HAVE_XPM]:
* src/nsselect.m (symbol_to_nsstring, ns_string_to_pasteboard_internal):
* src/xfaces.c (Fx_load_color_file) [!HAVE_X_WINDOWS]:
Fix pointer signedness problem.
* src/xfaces.c (FRAME_X_FONT_TABLE):
* src/xterm.h (FRAME_X_FONT_TABLE): Remove unused, incompatible macros.
2012-07-07 12:23:41 -07:00
Glenn Morris
41f9404e0c
* configure.in (BROKEN_SA_RESTART): Doc fix.
...
* src/sysdep.c, src/s/irix6-5.h: Related comments.
2012-07-07 11:16:15 -07:00