1. 07 May, 2010 1 commit
    • Dan Nicolaescu's avatar
      Define LIB_STANDARD and START_FILES using autoconf. · 49ebbd65
      Dan Nicolaescu authored
      * s/usg5-4.h (LIB_STANDARD):
      * s/netbsd.h (START_FILES):
      * s/irix6-5.h (LIB_STANDARD):
      * s/hpux10-20.h (LIB_STANDARD, START_FILES):
      * s/gnu-linux.h (START_FILES, LIB_STANDARD):
      * s/freebsd.h (START_FILES):
      * s/darwin.h (START_FILES):
      * s/cygwin.h (START_FILES):
      * s/aix4-2.h (LIB_STANDARD):
      * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
      * Makefile.in (STARTFILES): Rename to START_FILES, define using
      autoconf, not cpp.
      
      Define START_FILES and LIB_STANDARD using autoconf.
      * configure.in (START_FILES, LIB_STANDARD): New definitions, moved
      here from src/s/*.h.
      (HAVE_CRTIN): Remove, inline logic in the netbsd
      START_FILES/LIB_STANDARD computation.
      49ebbd65
  2. 06 May, 2010 2 commits
  3. 04 May, 2010 6 commits
    • Dan Nicolaescu's avatar
      Remove BSD_PGRPS. · 58eb6cf0
      Dan Nicolaescu authored
      * s/bsd-common.h (BSD_PGRPS): Remove undef.
      * s/gnu-linux.h (BSD_PGRPS): Remove.
      * term.c (dissociate_if_controlling_tty):
      * sysdep.c (narrow_foreground_group, widen_foreground_group)
      (init_sys_modes, reset_sys_modes):
      * emacs.c (main):
      * callproc.c (Fcall_process, child_setup): Remove code depending
      on BSD_PGRPS.
      58eb6cf0
    • Dan Nicolaescu's avatar
      Remove POSIX_SIGNALS. · ef03a4e6
      Dan Nicolaescu authored
      * s/usg5-4.h (POSIX_SIGNALS):
      * s/netbsd.h (POSIX_SIGNALS):
      * s/msdos.h (POSIX_SIGNALS):
      * s/ms-w32.h (POSIX_SIGNALS):
      * s/hpux11.h (POSIX_SIGNALS):
      * s/gnu.h (POSIX_SIGNALS):
      * s/gnu-linux.h (POSIX_SIGNALS):
      * s/freebsd.h (POSIX_SIGNALS):
      * s/darwin.h (POSIX_SIGNALS):
      * s/cygwin.h (POSIX_SIGNALS):
      * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
      * s/unixware.h:
      * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
      * process.c (create_process):
      * syssignal.h:
      * sysdep.c (wait_for_termination, init_signals):
      * process.c (create_process):
      * msdos.c: POSIX_SIGNALS is always defined on all platforms,
      remove all code that assumes the contrary.
      ef03a4e6
    • Glenn Morris's avatar
      Move LD_SWITCH_X_SITE_AUX from cpp to autoconf. · 27a2cdfc
      Glenn Morris authored
      * configure.in (LD_SWITCH_X_SITE_AUX): Use AC_SUBST only, not AC_DEFINE as well.
      (LD_SWITCH_X_SITE_AUX_RPATH): New output variable.
      
      * nt/config.nt (LD_SWITCH_X_SITE_AUX): Remove.
      
      * src/s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
      variable.
      * src/s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
      (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
      * src/s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
      (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
      LD_SWITCH_SYSTEM_tmp.
      * src/Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
      New variables, set by configure.
      27a2cdfc
    • Glenn Morris's avatar
      Move LD_SWITCH_SYSTEM_TEMACS from cpp to autoconf. · eb21eab5
      Glenn Morris authored
      * configure.in (LD_SWITCH_SYSTEM_TEMACS): New output variable.
      
      * src/s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
      * src/s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
      (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
      * src/Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
      (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
      eb21eab5
    • Glenn Morris's avatar
      Move C_SWITCH_MACHINE, C_SWITCH_SYSTEM from cpp to autoconf. · 49628785
      Glenn Morris authored
      * configure.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM): New output
      variables, replacing c_switch_machine, c_switch_system.
      
      * src/s/aix4-2.h (C_SWITCH_SYSTEM):
      * src/m/alpha.h (C_SWITCH_MACHINE):
      Move to configure.in.
      * src/Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
      New variables, set by configure.
      (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
      $c_switch_machine and $c_switch_system.
      
      * lib-src/Makefile.in: Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@
      rather than @c_switch_system@, @c_switch_machine@.
      49628785
    • Dan Nicolaescu's avatar
      * s/hpux10-20.h (LIB_STANDARD): New definition. · 7dff330b
      Dan Nicolaescu authored
      * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
      on it, not used anymore.
      7dff330b
  4. 01 May, 2010 3 commits
    • Dan Nicolaescu's avatar
      Clean up IRIX code. · c3a398a1
      Dan Nicolaescu authored
      * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
      * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
      c3a398a1
    • Dan Nicolaescu's avatar
      Clean up AIX code. · 87e7285c
      Dan Nicolaescu authored
      * m/ibmrs6000.inp: Remove file, unused.
      * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
      (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
      definition ...
      * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
      87e7285c
    • Eli Zaretskii's avatar
      Emulate POSIX_SIGNALS on MS-Windows. · d6dae14b
      Eli Zaretskii authored
       w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask): New stubs.
       sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
       (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
       from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
       s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
       (SIG_SETMASK, SIG_UNBLOCK): Define.
      d6dae14b
  5. 30 Apr, 2010 1 commit
  6. 28 Apr, 2010 1 commit
    • Glenn Morris's avatar
      Move LIBXMU from cpp to configure. · 294c50a0
      Glenn Morris authored
      * configure.in (LIBXMU): New output variable.
      
      * src/Makefile.in (LIBXMU): Set with configure, not cpp.
      * src/s/aix4-2.h (LIBXMU):
      * src/s/hpux10-20.h (LIBXMU):
      Remove definition, now set in configure.
      294c50a0
  7. 27 Apr, 2010 3 commits
    • Glenn Morris's avatar
      Move LIBXTR6 from cpp to autoconf. · 8fdac2c3
      Glenn Morris authored
      * configure.in (LIBXTR6): New output variable.  Move unixware special
      case here from src/s/unixware.h.
      
      * src/Makefile.in (LIBXTR6): Set with configure, not cpp.
      * src/s/unixware.h (NEED_LIBW): Remove definition.
      
      * admin/CPP-DEFINES: Remove NEED_LIBW.
      8fdac2c3
    • Glenn Morris's avatar
      Move MOTIF_LIBW to autoconf. · c6ea2936
      Glenn Morris authored
      * configure.in (HAVE_MOTIF_2_1): Remove unused variable.
      (LIBXP): No longer substitute in Makefiles.
      (MOTIF_LIBW): New output variable.  Move system-specific settings here
      from src/s files.
      
      * src/Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
      (MOTIF_LIBW): Set with configure, not cpp.
      * s/aix4-2.h (LIB_MOTIF):
      * s/gnu-linux.h (LIB_MOTIF):
      * s/unixware.h (LIB_MOTIF): Move to configure.in.
      
      * admin/CPP-DEFINES: Remove LIB_MOTIF.
      c6ea2936
    • Glenn Morris's avatar
      Use $CRT_DIR in more places. · 76cda504
      Glenn Morris authored
      * configure.in (--with-crt-dir): Doc fix (now valid for all platforms).
      (CRT_DIR): On (powerpc64|sparc64)-*-linux-gnu*, default to /usr/lib64.
      On hpux10-20, default to /lib.
      
      * src/m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
      since the defaults (set by the system file) are fine in most cases.
      [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
      * src/m/ibms390x.h (START_FILES, LIB_STANDARD):
      * src/m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
      * src/m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
      Remove definitions, since they are set correctly in s/gnu-linux.h.
      * src/s/freebsd.h (START_FILES, LIB_STANDARD):
      * src/s/gnu-linux.h (START_FILES, LIB_STANDARD):
      * src/s/hpux10-20.h (START_FILES):
      * src/s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
      Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
      
      * src/Makefile.in: Comment.
      76cda504
  8. 26 Apr, 2010 1 commit
    • Dan Nicolaescu's avatar
      Use autoconf instead of cpp for LIB_MATH. · 9452ded1
      Dan Nicolaescu authored
      * s/darwin.h (LIB_MATH): Do not define here, move to configure.
      * s/cygwin.h (LIB_MATH): Likewise.
      * Makefile.in (LIB_MATH): Do not define with cpp.
      (LIBES): Use autoconf for LIB_MATH.
      
      * configure.in (LIB_MATH): New output variable.  Set it for some systems.
      9452ded1
  9. 23 Apr, 2010 6 commits
    • Dan Nicolaescu's avatar
      4196ff33
    • Dan Nicolaescu's avatar
      Remove redundant flags. · 879b0ee4
      Dan Nicolaescu authored
      * s/freebsd.h (C_SWITCH_SYSTEM):
      * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
      * s/netbsd.h (C_SWITCH_SYSTEM):
      * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
      of these.
      879b0ee4
    • Dan Nicolaescu's avatar
      Simplify m/intel386.h. · 03cbbcb8
      Dan Nicolaescu authored
      * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
      user: ecrt0.c.
      (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
      (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
      the only user: s/unixware.h.
      * ecrt0.c: Remove #ifndef static.  Inline CRT0_DUMMIES definition
      from m/intel386.h.
      * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
      moved here from m/intel386.h.
      03cbbcb8
    • Dan Nicolaescu's avatar
      * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc. · 809fcaba
      Dan Nicolaescu authored
      * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
      809fcaba
    • Dan Nicolaescu's avatar
      Simplify STARTFILES definition. · ed710380
      Dan Nicolaescu authored
      * s/hpux10-20.h (START_FILES): Explicitly define here instead of
      relying on Makefile.in to define it.
      * s/cygwin.h (START_FILES): Likewise.
      * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
      ed710380
    • Dan Nicolaescu's avatar
      Clean up Solaris code. · feeb1604
      Dan Nicolaescu authored
      * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
      (LIB_MOTIF): Remove, configure takes care of this.
      (NOT_USING_MOTIF): Remove, unused.
      * xrdb.c: Remove #if 0-ed #include.
      (SYSV): Remove conditional for old SysV.
      * sysdep.c (closedir): Remove conditional code for Solaris,
      Solaris has closedir.
      feeb1604
  10. 21 Apr, 2010 4 commits
    • Dan Nicolaescu's avatar
      Clean up HP-UX files. · 56bae7c7
      Dan Nicolaescu authored
      * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
      (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
      (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
      * s/hpux10-20.h: ... to the only user, here.
      56bae7c7
    • Dan Nicolaescu's avatar
      Remove NOMULTIPLEJOBS, unused. · 3ec759e7
      Dan Nicolaescu authored
      * s/template.h (NOMULTIPLEJOBS):
      * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
      3ec759e7
    • Dan Nicolaescu's avatar
      Simplify LD_SWITCH_SYSTEM_TEMACS usage. · 4285ac5a
      Dan Nicolaescu authored
      * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
      * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
      detects -znocombreloc and passes it to the linker
      * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
      4285ac5a
    • Juanma Barranquero's avatar
      Don't depend on cm.c or termcap.c on Windows, use stubs. · 91eac4bb
      Juanma Barranquero authored
      * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
        ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
      * w32console.c (current_tty, cost): New vars; lifted from cm.c.
        (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
        (sys_tputs, sys_tgetstr): New stubs.
      * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
        (tputs, tgetstr): New; define to sys_*.
      91eac4bb
  11. 16 Apr, 2010 2 commits
  12. 11 Apr, 2010 1 commit
    • Dan Nicolaescu's avatar
      Remove C_SWITCH_SYSTEM_TEMACS. · b1f52161
      Dan Nicolaescu authored
      * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
      (malloc, realloc, free): Use emacs, not temacs for conditional
      definition.
      
      * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
      (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
      b1f52161
  13. 10 Apr, 2010 2 commits
  14. 07 Apr, 2010 2 commits
  15. 03 Apr, 2010 1 commit
  16. 02 Apr, 2010 1 commit
    • Dan Nicolaescu's avatar
      Remove extern errno declarations. · 42a2c622
      Dan Nicolaescu authored
      * xterm.c:
      * xrdb.c:
      * w32term.c:
      * unexec.c:
      * unexaix.c:
      * sysdep.c:
      * process.c:
      * lread.c:
      * keyboard.c:
      * floatfns.c:
      * filelock.c:
      * fileio.c:
      * emacs.c (main):
      * ecrt0.c:
      * dispnew.c:
      * callproc.c:
      * buffer.c: Remove errno extern declarations.
      * s/netbsd.h (NEED_ERRNO): Remove.
      
      * movemail.c:
      * etags.c:
      * emacsclient.c: Remove extern errno declarations.
      42a2c622
  17. 01 Apr, 2010 2 commits
    • Dan Nicolaescu's avatar
      Remove all uses of LIBX11_SYSTEM. · 8224f93d
      Dan Nicolaescu authored
      * Makefile.in (LIBX11_SYSTEM): Remove.
      * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
      instead.
      
      * configure.in: Remove all references to LIBX11_SYSTEM.
      8224f93d
    • Eli Zaretskii's avatar
      Remove support for DJGPP v1.x (bug#5813). · ed68db4d
      Eli Zaretskii authored
       src/:
       w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
       s/msdos.h: 
       unexec.c (make_hdr, copy_text_and_data): 
       sysdep.c (wait_for_termination, sys_subshell): 
       msdos.c (dos_set_window_size, msdos_set_cursor_shape)
       (IT_set_terminal_modes): 
       (__write, _rename, gethostname, gettimeofday, alarm, fork, kill)
       (dos_ttraw, dos_ttcooked, run_msdos_command, abort): Remove DJGPP
       v1.x code and tests of the value of __DJGPP__.
       (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
       compatibility code.
       lread.c: 
       gmalloc.c (memalign): 
       fileio.c (Fcopy_file, check_executable, Ffile_modes): 
       emacs.c (main): 
       dosfns.c (init_dosfns): 
       dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
      
       msdos/:
       sed3.inp:
       sed2.inp:
       sed1.inp:
       mainmake: Files removed.
      ed68db4d
  18. 30 Mar, 2010 1 commit
    • Dan Nicolaescu's avatar
      Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG. · 32a8894e
      Dan Nicolaescu authored
      * s/usg5-4.h (LIBS_DEBUG):
      * s/irix6-5.h (C_DEBUG_SWITCH):
      * s/gnu-linux.h (LIBS_DEBUG):
      * s/darwin.h (LIBS_DEBUG):
      * s/bsd-common.h (LIBS_DEBUG):
      * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
      * m/iris4d.h (LIBS_DEBUG):
      * m/hp800.h (LIBS_DEBUG): Remove definitions.
      
      * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
      (LIBS_DEBUG): Remove definition.
      
      * configure.in: Remove all references to C_DEBUG_SWITCH.
      32a8894e